/* APGOSA — overrides de modernización (cargar después de style.css) */

/* 1. Base */
html {
  scroll-behavior: smooth;
}
a[href^="tel:"] {
  white-space: nowrap;
}
.btn {
  border-radius: 8px;
}

/* 2. Navbar */
.navbar-area.navbar-nine {
  -webkit-transition: box-shadow 0.3s ease-out 0s, background 0.3s ease-out 0s;
  transition: box-shadow 0.3s ease-out 0s, background 0.3s ease-out 0s;
}
.navbar-area.navbar-nine.sticky {
  box-shadow: var(--shadow-3);
  background: var(--primary-dark);
}
.navbar-nine .navbar-logo {
  max-height: 56px;
  width: auto;
}
.navbar-area.navbar-nine .navbar .navbar-nav .nav-item a {
  text-transform: none;
}
@media (min-width: 992px) {
  .navbar-area.navbar-nine .navbar .navbar-nav .nav-item.nav-cta {
    margin-left: 8px;
  }
  .navbar-area.navbar-nine .navbar .navbar-nav .nav-item.nav-cta a {
    background: var(--white);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 22px;
    font-weight: 700;
    opacity: 1;
  }
  .navbar-area.navbar-nine .navbar .navbar-nav .nav-item.nav-cta a:hover,
  .navbar-area.navbar-nine .navbar .navbar-nav .nav-item.nav-cta a.active {
    background: var(--accent);
    color: var(--black);
  }
}

/* 3. Hero */
.header-eight {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1f7ae8 100%);
  overflow: hidden;
}
.header-eight::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 215, 0.35) 0%, rgba(0, 212, 215, 0) 70%);
  pointer-events: none;
}
.header-eight .header-content h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: none;
}
.header-eight .header-content p {
  opacity: 0.85;
  font-size: 18px;
  max-width: 560px;
}
.header-eight .button {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.header-eight .primary-btn {
  margin-right: 0;
  padding: 12px 32px;
  font-weight: 700;
}
.header-eight .header-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-6);
}

/* 4. Diferenciadores */
.features-apgosa {
  padding: 70px 0 40px;
  background: var(--white);
}
.single-feature {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid var(--gray-4);
  height: calc(100% - 30px);
  margin-bottom: 30px;
  background: var(--white);
  -webkit-transition: all 0.3s ease-out 0s;
  transition: all 0.3s ease-out 0s;
}
.single-feature:hover {
  box-shadow: var(--shadow-4);
  transform: translateY(-4px);
  border-color: transparent;
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 28px;
}
.single-feature h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.single-feature p {
  color: var(--dark-3);
  margin: 0;
}

/* 5. Servicios */
.services-eight .single-services {
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-color: var(--gray-4);
}
.services-eight .single-services:hover {
  transform: translateY(-4px);
  border-color: transparent;
}
.services-eight .single-services .service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.services-eight .single-services .service-content p {
  flex: 1;
}
.services-eight .single-services .service-content .btn {
  align-self: flex-start;
  margin-top: auto;
}
.services-eight .single-services .service-icon {
  overflow: hidden;
}
.services-eight .single-services .service-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* 6. Contacto */
.contact-section .contact-content p {
  margin-bottom: 0;
}
.contact-section .contact-content a {
  color: var(--black);
  font-weight: 600;
  transition: color 0.3s ease-out 0s;
}
.contact-section .contact-content a:hover,
.contact-section .contact-content a:focus {
  color: var(--primary);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.contact-actions .btn {
  text-transform: none;
}
.contact-actions .btn i {
  margin-right: 8px;
}
.contact-social-title {
  color: var(--dark-3);
  margin: 28px 0 14px;
  font-size: 15px;
}
.contact-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.contact-social a {
  border: 1px solid var(--gray-4);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--dark-2);
  font-size: 14px;
  transition: all 0.3s ease-out 0s;
}
.contact-social a i {
  margin-right: 6px;
  color: var(--primary);
}
.contact-social a:hover,
.contact-social a:focus {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* 7. Footer */
.footer-eleven {
  background: var(--light-3);
  border-top: 1px solid var(--gray-4);
  padding-bottom: 0;
}
.footer-eleven .f-about p {
  color: var(--dark-2);
}
.footer-eleven .f-link ul li a i {
  margin-right: 8px;
  color: var(--primary);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-eleven .footer-widget .footer-social li {
  margin: 0;
}
.footer-eleven .footer-widget .footer-social li a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-4);
  color: var(--dark-2);
  font-size: 16px;
  transition: all 0.3s ease-out 0s;
}
.footer-eleven .footer-widget .footer-social li a:hover,
.footer-eleven .footer-widget .footer-social li a:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid var(--gray-4);
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: var(--dark-3);
}
.footer-bottom .copyright-text {
  margin: 0;
}

/* 8. Responsive */
.call-action .inner-content .light-rounded-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 767px) {
  .header-eight .header-content {
    text-align: center;
  }
  .header-eight .header-content p {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }
  .header-eight .button {
    justify-content: center;
  }
  .header-eight .video-button {
    margin-top: 0;
  }
  .contact-form-wrapper {
    padding: 30px 20px;
  }
  .contact-actions .btn {
    width: 100%;
    text-align: center;
  }
  .features-apgosa {
    padding: 50px 0 20px;
  }
  .footer-eleven .footer-widget ul {
    padding-left: 0;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    margin-top: 30px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .features-apgosa {
    padding: 60px 0 30px;
  }
}
