/* ═══════════════════════════════════════════════════
   DORADMED — SISTEMA DE DISEÑO Y ESTILOS
   Centro de Diagnóstico por Imagen — "La imagen de tu salud"
   ═══════════════════════════════════════════════════ */

/* ── FUENTES AUTO-HOSPEDADAS (WOFF2 variables, subset latin / latin-ext) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── VARIABLES Y PALETA DE COLORES ── */
:root {
  --color-primary:    #0A3656; /* Azul marino clínico */
  --color-primary-dark:#062238;
  --color-secondary:  #199ED8; /* Azul cian médico */
  --color-secondary-h:#1484b6;
  --color-secondary-text:#0B6E96; /* Cian accesible para texto sobre fondos claros (AA) */
  --color-accent:     #D99B52; /* Acento cálido dorado */
  --color-accent-strong:#9A6218; /* Dorado accesible para texto/fondos con texto blanco (AA) */
  --color-accent-light:#F9EFE4;
  --color-whatsapp:   #25D366; /* WhatsApp oficial (icono decorativo) */
  --color-whatsapp-h: #1EBE5D;
  --color-whatsapp-btn:#0B7A3E; /* Verde accesible para botones con texto blanco (AA) */
  --color-whatsapp-btn-h:#096531;
  --color-tiktok:     #000000;
  --color-instagram:  #E1306C;
  --color-white:      #FFFFFF;
  --color-ice:        #F4F8FB; /* Fondo gris hielo suave */
  --color-ice-subtle: #EBF3F8;
  --color-text:       #1E293B;
  --color-text-light: #64748B;
  --color-border:     #E2E8F0;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --shadow-sm:  0 2px 6px rgba(10,54,86,.04);
  --shadow-md:  0 8px 24px rgba(10,54,86,.07);
  --shadow-lg:  0 16px 40px rgba(10,54,86,.11);
  --shadow-xl:  0 24px 60px rgba(10,54,86,.16);

  --transition: .3s cubic-bezier(.4,0,.2,1);
  --navbar-h: 90px;
  --topbar-h: 38px;
}

/* ── RESET Y ESTILOS BASE (MOBILE-READY) ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* <picture> no debe alterar el layout existente */
picture {
  display: contents;
}

/* Sprites SVG fuera del flujo visual */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Enlace de salto para navegación por teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Foco visible coherente en todo el sitio */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TOPBAR DE CONTACTO Y REDES ── */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__item,
.topbar__right,
.topbar__link,
.topbar__socials,
.topbar__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__link:hover,
.topbar__social-link:hover {
  color: var(--color-secondary);
}

.topbar__divider {
  opacity: 0.3;
  margin: 0 6px;
}

.topbar__socials {
  gap: 14px;
}

/* ── BOTONES GLOBALES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 48px; /* Touch target accesible móvil */
}

.btn--whatsapp {
  background: var(--color-whatsapp-btn);
  color: #fff;
  padding: 13px 26px;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(11, 122, 62, 0.32);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-btn-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 122, 62, 0.45);
}

/* Botón principal del Hero */
.btn--hero-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0d79a8 100%);
  color: #fff;
  padding: 14px 28px;
  font-size: 0.98rem;
  box-shadow: 0 6px 20px rgba(25, 158, 216, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--hero-primary:hover {
  background: linear-gradient(135deg, #22acf8 0%, var(--color-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(25, 158, 216, 0.45);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 13px 26px;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 15px 32px;
  font-size: 1.02rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.88rem;
  min-height: 42px;
}

/* ── NAVBAR STICKY CON LOGO AMPLIADO Y SIN FONDO ── */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 12px rgba(10, 54, 86, 0.05);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px rgba(10, 54, 86, 0.1);
  height: 80px;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 2px 0;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 74px;
  width: auto;
  max-width: 310px;
  aspect-ratio: 640 / 418;
  object-fit: contain;
  background: transparent;
  transition: all var(--transition);
  display: block;
}

.navbar.scrolled .navbar__logo img {
  height: 64px;
}

.navbar__logo:hover img {
  transform: scale(1.02);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  transition: all var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15px;
  right: 15px;
  height: 2.5px;
  background: var(--color-secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-secondary-text);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: scaleX(1);
}

.navbar__cta {
  font-size: 0.88rem;
  padding: 11px 22px;
  flex-shrink: 0;
}

/* Menú hamburguesa móvil */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5.5px;
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}

.navbar__hamburger:hover {
  background: var(--color-ice);
}

.navbar__hamburger-line {
  width: 100%;
  height: 2.8px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.navbar__hamburger.open .navbar__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.navbar__hamburger.open .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.open .navbar__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ── HERO CON IMAGEN DE FONDO Y DEGRADADO DIRECCIONAL ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 76vh, 760px);
  padding: 96px 0 104px;
  overflow: hidden;
  background: var(--color-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

/* Oscurece solo la zona del texto y deja ver el equipo a la derecha */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 34, 56, 0.97) 0%, rgba(6, 34, 56, 0.92) 32%, rgba(8, 42, 68, 0.74) 56%, rgba(10, 54, 86, 0.34) 82%, rgba(10, 54, 86, 0.14) 100%),
    linear-gradient(to top, rgba(6, 34, 56, 0.55) 0%, rgba(6, 34, 56, 0) 34%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 660px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  margin-bottom: 26px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__badge-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.05rem, 4.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(3, 18, 30, 0.35);
}

.hero__accent {
  color: #7BD6FF;
}

/* Degradado de marca del titular (cian → blanco → dorado) */
.text-gradient {
  background: linear-gradient(135deg, #75d5ff 0%, #ffffff 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin-bottom: 34px;
  line-height: 1.75;
}

.hero__subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__actions .btn {
  padding-left: 26px;
  padding-right: 26px;
  font-size: 0.96rem;
}

/* ── FRANJA DE DATOS Y CONFIANZA ── */
.stats-band {
  background: var(--color-ice);
  border-bottom: 1px solid var(--color-border);
}

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

.stats-band__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 30px 20px;
}

.stats-band__item + .stats-band__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--color-border);
}

.stats-band__icon {
  display: inline-flex;
  color: var(--color-secondary-text);
  margin-bottom: 6px;
}

.stats-band__num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stats-band__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5A6B80;
}

/* ── CABECERAS DE SECCIÓN COMPARTIDAS ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(25, 158, 216, 0.08);
  border-radius: var(--radius-xl);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ── SECCIÓN SERVICIOS (Adaptación de imágenes) ── */
.services {
  padding: 100px 0;
  background: var(--color-white);
}

/* ── INDICADORES DE CARRUSEL (solo móvil) ── */
.services__dots,
.location__dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.services__dots {
  margin: -18px 0 34px;
}

.location__dots {
  margin: 22px 0 0;
}

.services__dot,
.location__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: rgba(10, 54, 86, 0.18);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.services__dot:hover,
.location__dot:hover {
  background: rgba(10, 54, 86, 0.35);
}

.services__dot[aria-current="true"],
.location__dot[aria-current="true"] {
  width: 26px;
  background: var(--color-secondary-text);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(25, 158, 216, 0.3);
}

.service-card__image-wrap {
  position: relative;
  width: 100%;
  height: 205px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-primary);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__img {
  transform: scale(1.07);
}

.service-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 54, 86, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.service-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-card__icon {
  width: 46px;
  height: 46px;
  background: var(--color-ice);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(25, 158, 216, 0.12);
  border-color: var(--color-secondary);
}

.service-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-card__list {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.service-card__list li {
  font-size: 0.84rem;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--color-secondary-text);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ── BANDA DE AGENDAMIENTO INMEDIATO ── */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #ffffff;
  background-color: #062238;
  background-image:
    linear-gradient(100deg, rgba(6, 34, 56, 0.96) 0%, rgba(6, 34, 56, 0.92) 38%, rgba(7, 38, 60, 0.72) 68%, rgba(8, 42, 68, 0.52) 100%),
    url("images/agenda.jpg");
  background-size: cover;
  background-position: center, center 58%;
  background-repeat: no-repeat;
}

.cta-band__glow {
  position: absolute;
  top: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 158, 216, 0.32) 0%, rgba(25, 158, 216, 0) 68%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-band__content {
  max-width: 640px;
}

.cta-band__badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A8E4FF;
  background: rgba(25, 158, 216, 0.22);
  border: 1px solid rgba(25, 158, 216, 0.45);
  border-radius: var(--radius-xl);
}

.cta-band__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta-band__text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.cta-band__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cta-band__phone {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band__phone strong {
  color: #ffffff;
}

/* ── SECCIÓN ¿POR QUÉ ELEGIRNOS? ── */
.why-us {
  padding: 100px 0;
  background: var(--color-ice);
  position: relative;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-us__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.why-us__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 158, 216, 0.3);
}

.why-us__icon {
  width: 72px;
  height: 72px;
  background: var(--color-ice);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

.why-us__card:hover .why-us__icon {
  background: rgba(25, 158, 216, 0.12);
  border-color: var(--color-secondary);
  transform: scale(1.08);
}

.why-us__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-us__card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ── SECCIÓN FAQ (Acordeón compacto en 2 columnas) ── */
.faq {
  padding: 88px 0;
  background: var(--color-ice);
}

.faq .section-header {
  margin-bottom: 36px;
}

.faq__accordion {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  align-items: start;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  overflow: hidden;
  transition: all var(--transition);
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(10,54,86,0.03);
}

.faq__item[open] {
  border-color: rgba(25, 158, 216, 0.4);
  box-shadow: 0 6px 20px rgba(25, 158, 216, 0.08);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-primary);
  transition: color var(--transition);
  list-style: none;
  gap: 14px;
}

.faq__question-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
}

.faq__category-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--color-secondary-text);
  background: rgba(25, 158, 216, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }

.faq__question:hover {
  color: var(--color-secondary-text);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-secondary);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 14px 18px 18px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  animation: fadeDown 0.3s ease;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  margin-top: 0;
}

.faq__answer strong {
  color: var(--color-primary);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── NUEVA SECCIÓN DE REDES SOCIALES ── */
.social-section {
  padding: 100px 0;
  background: var(--color-ice);
  position: relative;
}

.social-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1020px;
  margin: 0 auto;
}

.social-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.social-card--tiktok {
  border-top: 4px solid #000000;
}

.social-card--tiktok:hover {
  border-color: #00f2fe;
}

.social-card--instagram {
  border-top: 4px solid #E1306C;
}

.social-card--instagram:hover {
  border-color: #E1306C;
}

.social-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.social-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card__icon--tiktok {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.social-card__icon--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35);
}

.social-card__meta {
  flex: 1;
}

.social-card__platform {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.social-card__handle {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.social-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 26px;
  flex: 1;
}

.social-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.social-card__btn--tiktok {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.social-card__btn--tiktok:hover {
  background: #1c1c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.social-card__btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.social-card__btn--instagram:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(225, 48, 108, 0.45);
}

.external-icon {
  opacity: 0.8;
  margin-left: 2px;
}

/* ── SECCIÓN UBICACIÓN Y DOS SEDES ── */
.location {
  padding: 100px 0;
  background: var(--color-white);
}

.location__branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.location__branch-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.location__branch-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(25, 158, 216, 0.25);
}

.location__branch-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.location__badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.location__badge--primary {
  background: var(--color-primary);
}

.location__badge--accent {
  background: var(--color-accent-strong);
}

.location__branch-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.location__branch-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
}

.location__details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.location__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location__icon {
  width: 44px;
  height: 44px;
  background: rgba(25, 158, 216, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location__item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.location__item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

.location__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-secondary-text);
  margin-top: 4px;
  transition: all var(--transition);
}

.location__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.phone-link {
  color: var(--color-primary);
  font-weight: 700;
  transition: color var(--transition);
}

.phone-link:hover {
  color: var(--color-secondary-text);
}

/* ── ACCIONES EN SEDES: WHATSAPP + GPS ── */
.location__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn--outline-gps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-secondary-text);
  border: 1.5px solid var(--color-secondary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn--outline-gps:hover {
  background: var(--color-secondary-text);
  border-color: var(--color-secondary-text);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(11, 110, 150, 0.25);
}

.btn--outline-gps:active {
  transform: scale(0.97);
}

.location__map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-ice);
  height: 300px;
  margin-top: auto;
}

.location__map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── FOOTER PROFESIONAL ── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  height: 60px;
  width: auto;
  max-width: 240px;
  aspect-ratio: 640 / 418;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer__slogan {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.footer__privacy {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer__social-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.footer__social-pill:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
}

.footer h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
}

.footer ul li {
  margin-bottom: 11px;
}

.footer ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--transition);
}

.footer ul a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer__contact-phone {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer__contact-phone a {
  color: var(--color-secondary);
  font-size: 1.05rem;
  font-weight: 700;
}

.footer__contact-text {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer__bottom {
  text-align: center;
  padding: 26px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── BOTÓN FLOTANTE WHATSAPP CON PULSO (SAFE-AREA OPTIMIZED) ── */
.whatsapp-float {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  right: calc(26px + env(safe-area-inset-right, 0px));
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-float__tooltip {
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(10, 54, 86, 0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
  pointer-events: none;
  border: 1px solid var(--color-border);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float__btn {
  width: 62px;
  height: 62px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition);
  animation: floatPulse 2.8s ease-in-out infinite;
}

.whatsapp-float__btn:hover {
  background: var(--color-whatsapp-h);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes floatPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0.15);
  }
}

/* ── ANIMACIONES DE ENTRADA SCROLL (INTERSECTION OBSERVER) ── */
.animate-on-scroll {
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

/* Solo se oculta cuando JS está disponible: si el script falla, el contenido siempre es visible */
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeta la preferencia del sistema de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════
   ADAPTATIVIDAD RESPONSIVE (MOBILE-FIRST / MULTI-DEVICE)
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   ADAPTATIVIDAD RESPONSIVE (MOBILE-FIRST / MULTI-DEVICE / MODO ESCRITORIO EN MÓVIL)
   ═══════════════════════════════════════════════════ */

/* ── MODO ESCRITORIO (960px - 1180px) ──
   Asegura que la vista de computadora sea 100% fiel y completa tanto en laptops
   como en celulares con "Modo Computador / Sitio para computadoras" activo (viewport 980px - 1024px).
   Mantiene la estructura de 2 columnas en Hero, 4 columnas en Servicios, mapas lado a lado y navbar completo. */
@media (min-width: 960px) and (max-width: 1180px) {
  .container {
    padding: 0 18px;
  }

  /* Navbar compacto de escritorio para encajar perfecto en 980px */
  .navbar__inner {
    gap: 12px;
  }

  .navbar__logo img {
    height: 58px;
    max-width: 200px;
  }

  .navbar__links {
    gap: 2px;
  }

  .navbar__link {
    font-size: 0.84rem;
    padding: 8px 9px;
  }

  .navbar__cta {
    font-size: 0.82rem;
    padding: 9px 15px;
    gap: 6px;
  }

  .hero {
    min-height: clamp(480px, 70vh, 660px);
    padding: 80px 0 88px;
  }

  .hero__content {
    max-width: 540px;
  }

  .hero__title {
    font-size: 2.3rem;
  }

  .hero__subtitle {
    font-size: 0.94rem;
    margin: 0 0 30px 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__actions .btn {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.9rem;
  }

  .hero__bg img {
    object-position: 72% center;
  }

  /* Franja de datos */
  .stats-band__item {
    padding: 24px 12px;
  }

  .stats-band__num {
    font-size: 1.3rem;
  }

  .stats-band__label {
    font-size: 0.78rem;
  }

  /* Servicios: Mantiene las 4 tarjetas en una fila como en escritorio */
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .service-card__body {
    padding: 22px 16px;
  }

  .service-card__title {
    font-size: 1.02rem;
  }

  .service-card__desc {
    font-size: 0.82rem;
  }

  .service-card__list {
    font-size: 0.8rem;
  }

  .service-card__image-wrap {
    height: 170px;
  }

  /* ¿Por qué DORADMED?: 4 columnas horizontales */
  .why-us__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .why-us__card {
    padding: 30px 18px;
  }

  .why-us__card h3 {
    font-size: 1rem;
  }

  .why-us__card p {
    font-size: 0.82rem;
  }

  /* Sedes: dos tarjetas en paralelo, con el mapa a ancho completo dentro de cada una */
  .location__branches {
    gap: 22px;
  }

  .location__branch-card {
    padding: 26px;
  }

  .location__branch-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer en 4 columnas */
  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 24px;
  }
}

/* ── TABLETS EN VERTICAL (769px - 959px) ── */
@media (min-width: 769px) and (max-width: 959px) {
  .container {
    padding: 0 20px;
  }

  .navbar__inner {
    gap: 10px;
  }

  .navbar__logo img {
    height: 52px;
    max-width: 180px;
  }

  .navbar__link {
    font-size: 0.8rem;
    padding: 7px 7px;
  }

  .navbar__cta {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 72px;
  }

  .hero__content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .hero__subtitle {
    margin: 0 auto 32px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__bg img {
    object-position: 66% center;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(6, 34, 56, 0.93) 0%, rgba(8, 42, 68, 0.82) 55%, rgba(6, 34, 56, 0.93) 100%);
  }

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

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

  .location__branches {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location__branch-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
  }
}

/* ── NAVEGACIÓN MÓVIL Y TABLET (hasta 959px) ──
   Hasta 959px la cabecera usa menú hamburguesa: el logo + 6 enlaces + CTA
   no caben con holgura por debajo de ese ancho. */
@media (max-width: 959px) {
  .navbar__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    z-index: 998;
    overflow-y: auto;
    padding: 24px;
  }

  .navbar__nav.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
  }

  .navbar__links {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    padding: 20px;
  }

  .navbar__link {
    font-size: 1.35rem;
    font-weight: 700;
    padding: 14px 24px;
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .navbar__link::after {
    display: none;
  }

  .navbar__link:hover,
  .navbar__link.active {
    background: rgba(25, 158, 216, 0.08);
  }

  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
    z-index: 999;
  }

  /* El desenfoque del navbar crea un "containing block" que encerraría el menú
     fixed dentro de los 80px de la barra. En móvil se desactiva y se mantiene
     el fondo blanco translúcido. */
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Móviles grandes y Tablets en vertical (< 768px) */
@media (max-width: 768px) {
  :root {
    --navbar-h: 76px;
    --topbar-h: 0px; /* Corrección: topbar oculta en móvil para scroll-padding exacto */
  }

  .topbar {
    display: none; /* Simplificación limpia en móvil */
  }

  .navbar__logo img {
    height: 56px;
    max-width: 240px;
  }

  /* Hero en móvil */
  .hero {
    padding-top: 36px;
    padding-bottom: 70px;
    min-height: auto;
  }

  .hero__content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero__subtitle {
    margin: 0 auto 30px;
    font-size: 0.97rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__bg img {
    object-position: 70% center;
  }

  .hero__title {
    font-size: clamp(1.8rem, 5.6vw, 2.4rem);
    line-height: 1.14;
  }

  /* ── Escala tipográfica móvil (más contenido por pantalla) ── */
  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.18;
    text-wrap: balance;
  }

  .section-desc {
    font-size: 0.97rem;
  }

  .service-card__title {
    font-size: 1.03rem;
  }

  .service-card__body {
    padding: 18px;
  }

  .why-us__card {
    padding: 26px 20px;
  }

  .why-us__card h3 {
    font-size: 1.03rem;
  }

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

  .faq__question {
    font-size: 0.94rem;
  }

  .navbar__link {
    font-size: 1.2rem;
  }

  /* Franja de datos: 2 x 2 */
  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band__item {
    padding: 22px 14px;
  }

  .stats-band__num {
    font-size: 1.25rem;
  }

  .stats-band__item + .stats-band__item::before {
    display: none;
  }

  .stats-band__item:nth-child(even)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: var(--color-border);
    display: block;
  }

  .stats-band__item:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  /* Servicios en móvil */
  .services, .why-us, .faq, .social-section, .location {
    padding: 56px 0;
  }

  .faq .section-header {
    margin-bottom: 30px;
  }

  .faq__accordion {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Banda de agendamiento en móvil */
  .cta-band {
    padding: 56px 0;
    background-image:
      linear-gradient(180deg, rgba(6, 34, 56, 0.95) 0%, rgba(6, 34, 56, 0.87) 55%, rgba(6, 34, 56, 0.96) 100%),
      url("images/agenda.jpg");
    background-position: center, 68% center;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .cta-band__content {
    max-width: 100%;
  }

  .cta-band__action {
    width: 100%;
  }

  .cta-band__action .btn {
    width: 100%;
    justify-content: center;
  }

  /* Redes sociales en móvil */
  .social-section__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .social-card {
    padding: 26px 20px;
  }

  /* Sedes en móvil: carrusel horizontal con snap */
  .location__branches {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin: 0 -16px;
    padding: 4px 16px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .location__branches::-webkit-scrollbar {
    display: none;
  }

  .location__branch-card {
    flex: 0 0 88%;
    max-width: 88%;
    padding: 24px 20px;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
  }

  .location__dots {
    display: flex;
  }

  .location__branch-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location__branch-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .location__map-container {
    height: 280px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 14px;
  }

  .footer__social-pills {
    justify-content: center;
  }

  .footer ul a:hover {
    padding-left: 0;
  }

  /* ── CARRUSEL DE SERVICIOS (una tarjeta por vista, deslizable) ── */
  .services__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin: 0 -16px 24px;
    padding: 4px 16px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services__grid::-webkit-scrollbar {
    display: none;
  }

  .services__grid .service-card {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: center;
    /* Sin desplazamiento de entrada: evita saltos al hacer snap */
    opacity: 1 !important;
    transform: none !important;
  }

  .services__dots {
    display: flex;
    margin: 0 0 40px;
  }

  /* Acciones de sedes en móvil (WhatsApp + GPS) */
  .location__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .location__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Microinteracción táctil en botones */
  .btn:active,
  .why-us__card:active,
  .social-card:active,
  .faq__question:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

/* Teléfonos (hasta 480px): escala compacta y fluida para cualquier ancho */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .navbar__logo img {
    height: 44px;
    max-width: 180px;
  }

  /* Cabecera y hero */
  .hero {
    padding: 40px 0 46px;
  }

  .hero__title {
    font-size: clamp(1.42rem, 6.3vw, 1.72rem);
  }

  .hero__subtitle {
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0 auto 26px;
  }

  .hero__badge {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

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

  .hero__actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.9rem;
  }

  /* Secciones */
  .services, .why-us, .faq, .social-section, .location {
    padding: 44px 0;
  }

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

  .section-title {
    font-size: clamp(1.18rem, 5.4vw, 1.4rem);
  }

  .section-desc {
    font-size: 0.88rem;
  }

  .section-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    margin-bottom: 8px;
  }

  /* Tarjetas de servicio */
  .service-card__image-wrap {
    height: 175px;
  }

  .service-card__body {
    padding: 15px;
  }

  .service-card__title {
    font-size: 0.97rem;
  }

  .service-card__desc {
    font-size: 0.83rem;
  }

  .service-card__list li {
    font-size: 0.81rem;
  }

  .service-card__badge {
    font-size: 0.66rem;
    padding: 4px 10px;
  }

  .services__dots,
  .location__dots {
    gap: 6px;
  }

  /* ¿Por qué elegirnos? */
  .why-us__card {
    padding: 20px 16px;
  }

  .why-us__card h3 {
    font-size: 0.97rem;
  }

  .why-us__card p {
    font-size: 0.83rem;
  }

  .why-us__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* FAQ */
  .faq__question {
    font-size: 0.9rem;
    padding: 13px 14px;
  }

  .faq__answer {
    font-size: 0.83rem;
    padding: 12px 14px 16px;
  }

  .faq__category-tag {
    font-size: 0.6rem;
  }

  /* Redes */
  .social-card {
    padding: 20px 16px;
  }

  .social-card__handle {
    font-size: 1.1rem;
  }

  .social-card__platform {
    font-size: 0.7rem;
  }

  .social-card__desc {
    font-size: 0.84rem;
  }

  .social-card__btn {
    font-size: 0.88rem;
    padding: 11px 18px;
  }

  /* Sedes */
  .location__branch-card {
    padding: 20px 16px;
  }

  .location__branch-title {
    font-size: 1.08rem;
  }

  .location__badge {
    font-size: 0.66rem;
    padding: 5px 12px;
  }

  .location__item h4 {
    font-size: 0.9rem;
  }

  .location__item p {
    font-size: 0.84rem;
  }

  .location__map-container {
    height: 220px;
  }

  /* Franja de datos */
  .stats-band__item {
    padding: 16px 10px;
  }

  .stats-band__num {
    font-size: 1rem;
  }

  .stats-band__label {
    font-size: 0.7rem;
  }

  .stats-band__icon svg {
    width: 18px;
    height: 18px;
  }

  /* Banda de agendamiento */
  .cta-band {
    padding: 44px 0;
  }

  .cta-band__title {
    font-size: 1.28rem;
  }

  .cta-band__text {
    font-size: 0.88rem;
  }

  .cta-band__badge {
    font-size: 0.66rem;
  }

  /* Menú móvil */
  .navbar__link {
    font-size: 1.1rem;
    padding: 12px 18px;
  }

  /* Footer */
  .footer {
    padding-top: 48px;
  }

  .footer__inner {
    gap: 26px;
    padding-bottom: 34px;
  }

  .footer h3 {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .footer ul a {
    font-size: 0.82rem;
  }

  .footer__privacy {
    font-size: 0.76rem;
  }

  .footer__logo {
    height: 48px;
  }

  .footer__slogan {
    font-size: 0.94rem;
  }

  .footer__bottom {
    font-size: 0.78rem;
    padding: 20px 0;
  }

  .btn--lg {
    padding: 13px 22px;
    font-size: 0.92rem;
  }

  /* Botón flotante */
  .whatsapp-float {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
  }

  .whatsapp-float__btn {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float__tooltip {
    display: none; /* No saturar en pantallas muy angostas */
  }
}
