/* ==========================================================================
   ASISTMED — Responsive & fixes
   ========================================================================== */

/* Menú móvil (faltaba en el CSS principal) */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--white);
  padding: 24px 32px 32px;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-mobile__group {
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-mobile__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile__toggle.open {
  color: var(--blue);
}

.nav-mobile__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.nav-mobile__toggle.open .nav-mobile__chevron {
  transform: rotate(180deg);
}

.nav-mobile__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile__submenu.is-open {
  display: flex;
  padding: 0 0 12px 12px;
}

.nav-mobile__submenu-link {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: var(--gray-light);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-mobile__submenu-link:hover,
.nav-mobile__submenu-link:focus-visible {
  background: var(--blue-soft);
  color: var(--blue-dark);
  outline: none;
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.nav-mobile.open {
  display: flex;
}

body.menu-open {
  overflow: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --nav-h: 76px;
  }

  .section {
    padding: 88px 0;
  }

  .section--tight {
    padding: 72px 0;
  }

  .about-grid,
  .coverage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 0;
  }

  .stats-card {
    position: static;
    width: 100%;
    max-width: 360px;
    margin: 24px auto 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .coverage-map {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-h: 68px;
  }

  .logo-img {
    height: 95px;
    max-width: 100%;
  }

  .navbar.scrolled .logo-img {
    height: 81px;
  }

  .container,
  .nav-inner {
    padding: 0 16px;
    gap: 8px;
    max-width: 100%;
    width: 100%;
  }

  .logo {
    max-width: calc(100% - 40px);
  }

  .nav-actions {
    gap: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-text {
    padding: calc(var(--nav-h) + 40px) 20px 64px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-metrics {
    gap: 12px;
    max-width: 100%;
  }

  .hero-metric strong {
    font-size: 20px;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .why-grid,
  .services-grid,
  .coverage-list {
    grid-template-columns: 1fr;
  }

  .coverage-list li {
    padding: 14px 16px;
  }

  .value-card,
  .approach-card,
  .contact-form {
    padding: 32px 24px;
  }

  .service-card {
    padding: 0;
  }

  .service-card .service-body {
    padding: 24px 20px 28px;
  }

  .about-image {
    min-height: 280px;
  }

  /* Quiénes somos — layout móvil editorial */
  .about-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 55%);
  }

  .about-grid {
    gap: 36px;
  }

  .about-visual {
    order: -1;
    max-width: none;
    width: 100%;
    padding-bottom: 0;
  }

  .about-image {
    aspect-ratio: 4 / 3.2;
    min-height: 240px;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(10, 61, 145, 0.14);
    border: 1px solid rgba(13, 110, 253, 0.08);
  }

  .about-stats {
    position: relative;
    bottom: auto;
    right: auto;
    width: calc(100% - 24px);
    max-width: none;
    margin: -36px auto 0;
    padding: 18px 14px;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(10, 61, 145, 0.12);
    z-index: 2;
  }

  .about-stats .stat-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--gray-light);
    border-radius: 14px;
    border: 1px solid rgba(13, 110, 253, 0.06);
  }

  .about-stats .stat-item strong {
    font-size: 22px;
  }

  .about-stats .stat-item small {
    font-size: 11px;
    line-height: 1.35;
    display: block;
    margin-top: 2px;
  }

  .about-content {
    text-align: center;
  }

  .about-content .eyebrow {
    justify-content: center;
  }

  .about-content .section-title {
    font-size: clamp(26px, 7vw, 34px);
    margin-left: auto;
    margin-right: auto;
  }

  .about-content p {
    font-size: 15px;
    line-height: 1.75;
  }

  .about-cta {
    width: 100%;
    margin-top: 8px;
  }

  .value-card__num {
    font-size: 36px;
    top: 16px;
    right: 18px;
  }

  .values-grid {
    gap: 20px;
  }

  .testi-card {
    padding: 32px 24px;
  }

  .testi-quote {
    font-size: 16px;
  }

  .footer {
    padding: 56px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .float-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .float-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-btn-whatsapp {
    min-width: 0;
    padding: 18px 36px;
    letter-spacing: 0.12em;
  }

  .stats-card {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
  }

  .stat-item strong {
    font-size: 24px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 14.5px;
    gap: 12px;
  }

  .faq-answer-inner {
    padding: 0 20px 20px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 82vh;
  }

  .hero-bg-img {
    object-position: center 50%;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 78vh;
  }

  .hero-bg-img {
    object-position: 80% center;
  }
}

@media (max-width: 480px) {
  .stats-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-bg-img {
    object-position: 80% center;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-metric strong {
    font-size: 17px;
  }

  .hero-metric span {
    font-size: 10px;
  }

  .hero-trust li {
    font-size: 12px;
    padding: 8px 12px;
  }

  .service-modal {
    padding: 12px;
  }

  .service-modal__body {
    padding: 22px 20px 24px;
  }

  .service-modal__actions {
    flex-direction: column;
  }

  .service-modal__actions .btn {
    width: 100%;
  }

  .services-list-modal__body {
    padding: 28px 20px 24px;
  }

  .services-list-modal__item {
    gap: 10px;
    padding: 12px 14px;
  }

  .services-list-modal__info small {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nav-mobile {
    padding: 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .contact-grid {
    gap: 32px;
  }
}
