/*styles3.css*/
/* Estilos adicionales para la página de servicios */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/casco.jpg') center/cover no-repeat;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
  text-align: center;
  color: var(--white);
  padding: 1rem;
}

.hero__content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero__content p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.services {
  padding: 5rem 1.5rem;
}

.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services__title {
  font-size: 2rem;
  color: var(--black-color);
  margin-bottom: 1rem;
}

.services__description {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service__card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service__image {
  height: 200px;
  overflow: hidden;
}

.service__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service__card:hover .service__image img {
  transform: scale(1.1);
}

.service__content {
  padding: 1.5rem;
}

.service__content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--black-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service__content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service__content a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: gap 0.3s;
}

.service__content a:hover {
  gap: 0.75rem;
}

.service__icon {
  font-size: 1.4rem;
  color: var(--primary-color);
  background-color: rgba(30, 90, 150, 0.1);
  padding: 10px;
  border-radius: 50%;
}

/* Panel de servicios */
.tabs {
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.tabs__title {
  text-align: center;
  font-size: 2rem;
  color: var(--black-color);
  margin-bottom: 2rem;
}

.tabs__container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.tabs__buttons {
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
}

.tabs__button {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  text-align: left;
}

.tabs__button i {
  font-size: 1.5rem;
}

.tabs__button.active {
  background-color: var(--black-color);
}

.tabs__content {
  padding: 2rem;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  background-color: var(--white);
}

.tabs__content.active {
  display: block;
}

.tab__header {
  margin-bottom: 2rem;
}

.tab__title {
  font-size: 1.5rem;
  color: var(--black-color);
  margin-bottom: 0.5rem;
}

.tab__description {
  color: var(--text-light);
  line-height: 1.6;
}

.tab__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tab__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tab__feature i {
  color: var(--primary-color);
  font-size: 1.5rem;
  padding-top: 0.25rem;
}

.tab__feature-content h4 {
  font-size: 1.1rem;
  color: var(--black-color);
  margin-bottom: 0.5rem;
}

.tab__feature-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Testimonios */
.testimonials {
  background-color: #f7f9fc;
  padding: 5rem 1.5rem;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials__title {
  font-size: 2rem;
  color: var(--black-color);
  margin-bottom: 1rem;
}

.testimonials__description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

.testimonials__container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials__slider {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  flex: 0 0 100%;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial__content {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial__author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__author-name {
  font-weight: 600;
  color: var(--black-color);
}

.testimonial__author-title {
  font-size: 0.9rem;
  color: var(--text-light);
}

.testimonials__buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.testimonials__button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s;
}

.testimonials__button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* CTA */
.cta {
  padding: 5rem 1.5rem;
  background-color: #1d466e;
  color: var(--white);
  text-align: center;
}

.cta__container {
  max-width: 800px;
  margin: 0 auto;
}

.cta__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta__text {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta__button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--white);
  color: var(--black-color);
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta__button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad */
@media (min-width: 768px) {
  .hero__content h1 {
    font-size: 3.5rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .tab__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial {
    padding: 3rem;
  }
}