/*
  ============================================================
  RESPONSIVE OVERRIDES — Landing Clínica Las Torres 3.0
  Premium visual upgrade: typography, color palette, rhythm
  ============================================================
*/

/* ── TIPOGRAFÍA — Plus Jakarta Sans + Geist (Hero H1) ── */
:root {
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ── H1: editorial, tensión premium ── */
h1 {
  font-weight: 700 !important;
  font-size: clamp(38px, 4.6vw, 60px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
}

/* Hero H1: Geist — tracking más apretado */
#hero h1 {
  font-family: "Geist", "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.038em !important;
}

/* ── H2: refined ── */
h2 {
  font-weight: 700 !important;
  font-size: clamp(32px, 3.8vw, 46px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.028em !important;
}

/* ── H3: card titles ── */
h3 {
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  letter-spacing: -0.012em !important;
}

h4, h5, h6 { font-weight: 600; }

/* ── SUBTÍTULOS DE SECCIÓN ── */
[data-section-hdr] > p {
  font-size: 1.0625rem !important;
  line-height: 1.72 !important;
  font-weight: 400 !important;
  max-width: 52ch;
  color: hsl(var(--muted-foreground)) !important;
}

/* ── BOTONES / CTAs ── */
[data-open-wa],
[data-wa-link] {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.035em !important;
}

/* ── BADGES / EYEBROW LABELS — sistema tipográfico ── */
[data-hero-eyebrow],
[data-test-eyebrow],
[data-ubicacion-eyebrow],
[data-como-eyebrow],
[data-urg-eyebrow],
[data-faq-eyebrow],
[data-casos-eyebrow] {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
}

/* ============================================================
   HEADER — transparente → glass solo al hacer scroll
   ============================================================ */
header {
  transition: padding 0.4s ease !important;
}
header.scrolled {
  padding-top:    0.75rem;
  padding-bottom: 0.75rem;
}
.header-inner.glass-card {
  background:              rgba(255,255,255,0.92) !important;
  backdrop-filter:         blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border:                  1px solid rgba(255,255,255,0.65) !important;
  box-shadow:
    0 8px 32px rgba(15,23,42,0.10),
    0 2px 8px  rgba(15,23,42,0.04),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

/* ── HERO: columna de imagen oculta en mobile/tablet ── */
@media (max-width: 1023px) {
  .hero-image-col { display: none; }
}

/* ── Imagen hero reubicada en mobile — oculta en desktop/tablet ── */
.hero-mobile-image-after-reviews { display: none; }

/* ── FAQ: acordeón ── */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
  opacity: 1;
}
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-item.open .faq-icon-btn {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
/* FAQ — divisores delicados en sección oscura */
.faq-item {
  border-color: rgba(255,255,255,0.07) !important;
}
/* FAQ — pregunta: legible sobre oscuro */
.faq-item button > span:first-child {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 500 !important;
  font-size: 15.5px !important;
  line-height: 1.45 !important;
}
/* FAQ — respuesta: contraste controlado */
.faq-answer p {
  color: rgba(255,255,255,0.68) !important;
  font-weight: 400;
  line-height: 1.72;
  font-size: 0.9375rem;
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal="left"]  { transform: translateX(-18px); }
[data-reveal="right"] { transform: translateX(18px);  }
[data-reveal].revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── CARRUSEL DOTS: indicadores premium (punto inactivo + píldora activa) ── */
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-dot--active {
  width: 22px;
  background: hsl(var(--primary));
}
#testimonios [data-carousel-dots] {
  margin-top: 1.75rem;
  gap: 6px;
}

/* ── CARRUSEL ── */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-out;
}
.carousel-slide {
  width: 100%;
  flex-shrink: 0;
  padding: 0 4px;
}
.carousel-btn-prev,
.carousel-btn-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(7,26,42,0.08);
  box-shadow: 0 2px 12px -3px rgba(7,26,42,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.carousel-btn-prev:hover,
.carousel-btn-next:hover {
  background: hsl(var(--primary));
  color: #ffffff;
  border-color: hsl(var(--primary));
  box-shadow: 0 6px 20px -4px rgba(7,135,154,0.38);
}
.carousel-btn-prev { left:  -1.4rem; }
.carousel-btn-next { right: -1.4rem; }

/* ── WHATSAPP FLOTANTE: responsive ── */
@media (max-width: 767px) {
  #wa-float {
    width: 56px;
    height: 56px;
    padding: 0 !important;
    gap: 0;
    align-items: center;
    justify-content: center;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    right: 16px;
  }
  #wa-float [data-wa-cta] { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #wa-float {
    padding-left: 0.875rem !important;
    padding-right: 1rem !important;
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
  }
}

/* ── WHATSAPP FLOTANTE: pulse ring ── */
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0;   }
}
.wa-pulse-ring { animation: wa-pulse 2s ease-out infinite; }

/* ── LÍNEAS DECORATIVAS ── */
.datum-line {
  background: linear-gradient(
    to bottom,
    transparent,
    hsl(var(--border)) 20%,
    hsl(var(--border)) 80%,
    transparent
  );
}

/* ── BOTÓN CTA PRINCIPAL ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 9999px;
  padding: 0.9375rem 1.875rem;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
  cursor: pointer;
  background: linear-gradient(135deg, #42b5c4 0%, #07879a 100%);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover {
  background: linear-gradient(135deg, #3aabba 0%, #065f6e 100%);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
}

/* ── HERO CTA: gradiente premium ── */
#hero button[data-open-wa] {
  background: linear-gradient(135deg, #42b5c4 0%, #07879a 100%) !important;
  box-shadow: 0 14px 40px -8px rgba(7,135,154,0.42), 0 4px 12px -4px rgba(7,135,154,0.20) !important;
}
#hero button[data-open-wa]:hover {
  background: linear-gradient(135deg, #3aabba 0%, #065f6e 100%) !important;
  box-shadow: 0 20px 52px -8px rgba(7,135,154,0.55), 0 6px 16px -4px rgba(7,135,154,0.28) !important;
}

/* ============================================================
   EYEBROW LABELS — cápsula premium refinada
   ============================================================ */

/* Ocultar decorativo */
.eyebrow-line { display: none; }

/* Base: secciones claras */
[data-hero-eyebrow],
[data-test-eyebrow],
[data-ubicacion-eyebrow],
[data-como-eyebrow],
[data-urg-eyebrow],
[data-faq-eyebrow],
[data-casos-eyebrow] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 8px;
  border-radius: 100px;
  background: hsl(var(--primary) / 0.07);
  border: 1px solid hsl(var(--primary) / 0.18);
  box-shadow: 0 1px 4px -1px hsl(var(--primary) / 0.1);
}

/* Punto decorativo — 4px */
[data-hero-eyebrow]::before,
[data-test-eyebrow]::before,
[data-ubicacion-eyebrow]::before,
[data-como-eyebrow]::before,
[data-urg-eyebrow]::before,
[data-faq-eyebrow]::before,
[data-casos-eyebrow]::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsl(var(--primary));
  flex-shrink: 0;
  opacity: 0.85;
}

/* Eyebrows en secciones oscuras — más luminosas */
#ubicacion   [data-ubicacion-eyebrow],
#como-te-atendemos [data-como-eyebrow],
#faq         [data-faq-eyebrow] {
  background:   rgba(66,181,196,0.12) !important;
  border-color: rgba(66,181,196,0.28) !important;
  color:        rgba(255,255,255,0.9) !important;
  box-shadow:   0 1px 6px -2px rgba(66,181,196,0.18) !important;
}
#ubicacion   [data-ubicacion-eyebrow]::before,
#como-te-atendemos [data-como-eyebrow]::before,
#faq         [data-faq-eyebrow]::before {
  background: #42B5C4 !important;
  opacity: 1 !important;
}

/* ============================================================
   SECTION HEADERS — centrado scoped
   ============================================================ */

#faq               [data-section-hdr],
#urgencias         [data-section-hdr],
#ubicacion         [data-section-hdr],
#testimonios       [data-section-hdr],
#como-te-atendemos [data-section-hdr] {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#faq               [data-section-hdr] > div:first-child,
#urgencias         [data-section-hdr] > div:first-child,
#ubicacion         [data-section-hdr] > div:first-child,
#testimonios       [data-section-hdr] > div:first-child,
#como-te-atendemos [data-section-hdr] > div:first-child {
  justify-content: center;
}

#faq               [data-section-hdr] > p,
#urgencias         [data-section-hdr] > p,
#ubicacion         [data-section-hdr] > p,
#testimonios       [data-section-hdr] > p,
#como-te-atendemos [data-section-hdr] > p {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   RITMO VISUAL — FONDOS DE SECCIÓN
   Hero (claro) → Testimonios (azul-frío) → Ubicación (dark)
   → Situaciones (azul-suave) → Casos Reales (blanco)
   → Cómo te atendemos (dark) → FAQ (dark profundo)
   → Footer (claro)
   ============================================================ */

/* HERO — blanco limpio con hint teal */
#hero {
  background:
    radial-gradient(ellipse 80% 55% at 72% -10%, rgba(66,181,196,0.07) 0%, transparent 60%),
    linear-gradient(168deg, #ffffff 0%, #f6fbfc 65%, #edf7f9 100%) !important;
  position: relative;
}
#hero::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(66,181,196,0.22) 28%,
    rgba(66,181,196,0.22) 72%,
    transparent 100%
  );
  pointer-events: none;
}

/* TESTIMONIOS — azul-blanco frío */
#testimonios {
  background: linear-gradient(180deg, #f4fafb 0%, #ffffff 55%) !important;
  border-top:    1px solid rgba(66,181,196,0.12);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

/* UBICACION — dark navy */
#ubicacion {
  background: linear-gradient(155deg, #0B2436 0%, #071A2A 100%) !important;
  border-top: 2px solid rgba(66,181,196,0.14);
}

/* URGENCIAS/SITUACIONES — azul-blanco frío, claramente diferente */
#urgencias {
  background: linear-gradient(165deg, #EEF9FB 0%, #F5FBFC 55%, #fafeff 100%) !important;
  border-top: 1px solid rgba(66,181,196,0.14);
}

/* CASOS REALES — blanco puro limpio */
#casos-reales {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%) !important;
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

/* COMO TE ATENDEMOS — dark navy con glow teal: distinto de ubicacion */
#como-te-atendemos {
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(66,181,196,0.07) 0%, transparent 62%),
    linear-gradient(168deg, #0D2840 0%, #071A2A 55%, #07172A 100%) !important;
  border-top: 1px solid rgba(66,181,196,0.12);
}

/* FAQ — azul más profundo */
#faq {
  background: linear-gradient(170deg, #06172A 0%, #050e1d 100%) !important;
  border-top: 1px solid rgba(66,181,196,0.07);
}

/* ============================================================
   SECCIONES OSCURAS — jerarquía tipográfica
   ============================================================ */

/* H2 en oscuro: blanco casi puro */
#ubicacion h2,
#como-te-atendemos h2,
#faq       h2 {
  color: rgba(255,255,255,0.97) !important;
}

/* Subtítulos en oscuro: legibles */
#ubicacion         [data-section-hdr] > p,
#como-te-atendemos [data-section-hdr] > p,
#faq               [data-section-hdr] > p {
  color: rgba(255,255,255,0.62) !important;
  max-width: 48ch;
}

/* Párrafos descriptivos en oscuro */
#ubicacion p:not(.text-xs):not([class*="font-bold"]):not([class*="font-semibold"]),
#como-te-atendemos p:not(.text-xs):not([class*="font-bold"]):not([class*="font-semibold"]) {
  color: rgba(255,255,255,0.72) !important;
}

/* Textos de pasos en la nueva sección independiente */
#como-te-atendemos [data-pasos] h3 {
  color: rgba(255,255,255,0.92) !important;
}
#como-te-atendemos [data-pasos] p {
  color: rgba(255,255,255,0.62) !important;
}

/* ============================================================
   CARDS — tratamiento premium
   ============================================================ */

/* Cards situaciones (sección clara) */
[data-casos] > div {
  border-radius: 1.25rem !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04), 0 8px 28px -6px rgba(15,23,42,0.06) !important;
  transition: box-shadow 0.26s ease, transform 0.26s ease, border-color 0.26s ease !important;
}
[data-casos] > div:hover {
  box-shadow:
    0 0 0 1px rgba(66,181,196,0.22),
    0 8px 32px -6px rgba(7,135,154,0.18) !important;
  transform: translateY(-3px) !important;
  border-color: rgba(66,181,196,0.24) !important;
}

/* Pasos en sección oscura independiente */
#como-te-atendemos [data-pasos] > div {
  background:   rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  border-radius: 1.25rem !important;
  transition: background 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
#como-te-atendemos [data-pasos] > div:hover {
  background:   rgba(255,255,255,0.07) !important;
  border-color: rgba(66,181,196,0.24) !important;
  box-shadow:   0 8px 28px -8px rgba(66,181,196,0.20) !important;
  transform:    none !important;
}

/* Cards de horario/mapa en Ubicacion */
#ubicacion .glass-card {
  background:      rgba(255,255,255,0.05) !important;
  border:          1px solid rgba(255,255,255,0.09) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius:   1.25rem !important;
}

/* ============================================================
   CASOS REALES — cards antes/después
   ============================================================ */
.caso-card {
  border-radius: 1.25rem !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04), 0 10px 32px -6px rgba(15,23,42,0.08) !important;
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease !important;
}
.caso-card:hover {
  box-shadow:
    0 0 0 1px rgba(66,181,196,0.20),
    0 12px 40px -8px rgba(7,135,154,0.16) !important;
  transform: translateY(-4px) !important;
  border-color: rgba(66,181,196,0.22) !important;
}
.caso-card h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.014em !important;
  line-height: 1.4 !important;
}

/* Badges antes/después */
.caso-badge-before,
.caso-badge-after {
  position: absolute;
  top: 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 100px;
  line-height: 1.4;
}
.caso-badge-before {
  left: 0.75rem;
  background: rgba(7,26,42,0.72);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.caso-badge-after {
  right: 0.75rem;
  background: hsl(var(--primary));
  color: #ffffff;
}

/* ============================================================
   MOBILE UX/UI — max-width: 767px
   ============================================================ */
@media (max-width: 767px) {

  /* ── 0. RESEÑAS: ocultar título y subtítulo en mobile ── */
  #testimonios [data-section-hdr] { display: none !important; }

  /* ── 0b. ESPACIADO HERO → RESEÑAS: el título oculto dejaba 96px de aire vacío ── */
  #hero        { padding-bottom: 20px !important; }
  #testimonios { padding-top:    24px !important; }

  /* ── 1. HERO: centrar textos y CTA ── */
  #hero h1,
  [data-hero-subtitle] {
    text-align: center;
  }
  #hero h1 {
    font-size: clamp(32px, 9vw, 44px) !important;
    letter-spacing: -0.028em !important;
  }
  #hero div:has(> button[data-open-wa]) {
    display: flex;
    justify-content: center;
  }
  [data-hero-stats]       { justify-items: center; }
  [data-hero-stats] > div { text-align: left; }
  [data-hero-subtitle] {
    font-size: 1rem !important;
    line-height: 1.68 !important;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── 2. COMO TE ATENDEMOS: timeline vertical ── */
  /* Fuerza eliminación de recuadros con selector más específico */
  #como-te-atendemos [data-pasos] > div,
  #como-te-atendemos [data-pasos] > div[data-reveal],
  #como-te-atendemos [data-pasos] > div.revealed {
    background-color: transparent !important;
    background:       transparent !important;
    border:           none !important;
    border-color:     transparent !important;
    box-shadow:       none !important;
    backdrop-filter:  none !important;
    -webkit-backdrop-filter: none !important;
    border-radius:    0 !important;
  }

  [data-pasos] {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  [data-pasos] > div {
    background:          transparent !important;
    border:              none !important;
    border-radius:       0 !important;
    box-shadow:          none !important;
    backdrop-filter:     none !important;
    -webkit-backdrop-filter: none !important;
    transform:           none !important;

    display: grid;
    grid-template-areas:
      "circle title"
      "circle desc";
    grid-template-columns: 2rem 1fr;
    column-gap: 1rem;
    row-gap:    0.25rem;
    text-align: left;
    padding:    0 0 2rem 0;
    position:   relative;
  }
  [data-pasos] > div:last-child { padding-bottom: 0; }
  [data-pasos] > div:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1rem;
    transform: translateX(-50%);
    top: 2rem; bottom: 0;
    width: 1px;
    background: linear-gradient(
      to bottom,
      hsl(var(--primary) / 0.38) 0%,
      hsl(var(--primary) / 0.05) 100%
    );
  }
  [data-pasos] > div > div:first-child {
    grid-area:   circle;
    width:       2rem !important;
    height:      2rem !important;
    border-radius: 50% !important;
    font-size:   0.6rem !important;
    margin:      0 !important;
    box-shadow:  0 2px 10px -2px hsl(var(--primary) / 0.38) !important;
    align-self:  start;
    position:    relative;
    z-index:     1;
  }
  [data-pasos] > div > h3 {
    grid-area:   title;
    font-size:   0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin:      0 !important;
    text-align:  left;
    align-self:  center;
    color:       rgba(255,255,255,0.92) !important;
  }
  [data-pasos] > div > p {
    grid-area:   desc;
    font-size:   0.8125rem;
    line-height: 1.6;
    margin:      0 !important;
    text-align:  left;
    align-self:  start;
    color:       rgba(255,255,255,0.62) !important;
  }

  /* ── 3. SITUACIONES v3.0: ícono a la izquierda del título ── */
  [data-casos] > div {
    display: block;
    padding: 1rem 1.125rem;
    transform: none !important;
  }
  [data-casos] > div > div:first-child {
    margin-bottom: 0.5rem;
  }
  [data-casos] > div > div:first-child > div:first-child {
    width:         2.25rem;
    height:        2.25rem;
    border-radius: 0.5rem;
  }
  [data-casos] > div > div:first-child h3 {
    font-size:   0.9375rem !important;
    font-weight: 600 !important;
  }
  [data-casos] > div > p {
    margin-top:  0;
    font-size:   0.8125rem;
    line-height: 1.6;
    opacity:     0.72;
  }

  /* ── 4. CASOS REALES mobile ── */
  .caso-card { transform: none !important; }
  /* CASOS REALES — mobile: imágenes apiladas verticalmente para mejor legibilidad */
  .caso-img-grid {
    grid-template-columns: 1fr !important;
  }
  .caso-img-col:first-child {
    border-right: none !important;
    border-bottom: 1px solid rgba(15,23,42,0.06);
  }

  /* ── 5. SECCIONES OSCURAS en mobile: padding ── */
  #ubicacion,
  #como-te-atendemos,
  #faq {
    padding-top:    3.75rem;
    padding-bottom: 3.75rem;
  }
  #urgencias,
  #casos-reales {
    padding-top:    3.75rem;
    padding-bottom: 3.75rem;
  }

  /* Subtítulos en mobile */
  [data-section-hdr] > p {
    font-size: 0.9375rem !important;
    max-width: 36ch;
  }

  /* ── 6. COMPONENTES mobile ── */
  .faq-item button {
    padding-top:    1.25rem;
    padding-bottom: 1.25rem;
    min-height:     60px;
  }
  .faq-item button > span:first-child {
    font-size: 0.9375rem !important;
  }

  /* Footer columnas en mobile */
  footer .grid { gap: 2rem; }

  /* ── Imagen hero reubicada debajo de reseñas ── */
  .hero-mobile-image-after-reviews {
    display: block;
    margin-top: 2rem;
  }
}

/* ============================================================
   TABLET PORTRAIT — 768px a 1023px
   Sin imagen hero → columna centrada, grids de 2 cols, padding compacto
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  /* ── TIPOGRAFÍA ── */
  h2 {
    font-size: clamp(28px, 3.8vw, 36px) !important;
  }
  [data-section-hdr] > p {
    font-size: 1rem !important;
    max-width: 48ch;
  }

  /* ── SECCIONES: padding equilibrado ── */
  #hero        { padding-top: 4.5rem !important; padding-bottom: 3rem !important; }
  #testimonios { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  #ubicacion   { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  #urgencias   { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  #casos-reales{ padding-top: 4.5rem; padding-bottom: 4.5rem; }
  #como-te-atendemos { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  #faq         { padding-top: 4.5rem; padding-bottom: 4.5rem; }

  /* ── HERO: columna única centrada (imagen oculta a este ancho) ── */
  #hero-copy {
    text-align:    center;
    max-width:     600px;
    margin-left:   auto;
    margin-right:  auto;
  }
  #hero-copy .hidden.lg\:block {
    display: flex !important;
    justify-content: center;
  }
  #hero-copy div:has(> button[data-open-wa]) {
    justify-content: center;
  }
  [data-hero-subtitle] {
    max-width:    44ch;
    margin-left:  auto;
    margin-right: auto;
  }
  [data-hero-stats] {
    justify-items: center;
    max-width:     420px;
    margin-left:   auto;
    margin-right:  auto;
  }
  [data-hero-stats] > div { text-align: left; }

  /* ── TESTIMONIOS: header visible, carousel bien proporcioando ── */
  #testimonios .mb-14 { margin-bottom: 2rem; }
  #testimonios [data-carousel] { max-width: 560px; }

  /* ── UBICACION: 2 columnas en tablet ── */
  #ubicacion .grid.mb-12 {
    display:               grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap:                   1.5rem !important;
  }
  /* Orden visual: Horario a la izquierda, Mapa a la derecha */
  #ubicacion .grid.mb-12 > *:nth-child(1) { order: 1 !important; }
  #ubicacion .grid.mb-12 > *:nth-child(2) { order: 2 !important; }

  /* ── URGENCIAS: 2 columnas (sm:grid-cols-2 ya activo) ── */
  [data-casos] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── CASOS REALES: grid 2-col + imágenes side-by-side ── */
  /* md:grid-cols-2 ya activo en tablet.
     caso-img-grid mantiene grid-cols-2 (el stack solo aplica en mobile). */
  #casos-reales .grid.mb-12 {
    gap: 1.25rem !important;
  }

  /* ── COMO TE ATENDEMOS: sm:grid-cols-2 ya activo ── */
  /* Los cards con glassmorphism se muestran en 2 columnas. */
  [data-pasos] {
    gap: 1.25rem !important;
  }
  #como-te-atendemos [data-pasos] > div {
    padding: 1.5rem !important;
  }

  /* ── FAQ: max-width legible ── */
  #faq > div { max-width: 700px; margin-left: auto; margin-right: auto; }

  /* ── FOOTER: 3 cols ya activo via md: ── */
  footer .grid { gap: 1.5rem; }
}

/* ============================================================
   TABLET LANDSCAPE / WIDE — 1024px a 1180px
   lg: activo → layout desktop, solo ajustes finos de spacing
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1180px) {

  /* ── TIPOGRAFÍA ── */
  h2 {
    font-size: clamp(30px, 3.4vw, 40px) !important;
  }

  /* ── HERO: padding compacto ── */
  #hero {
    padding-top:    5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* ── SECCIONES: padding moderado ── */
  #testimonios { padding-top: 5rem; padding-bottom: 5rem; }
  #ubicacion   { padding-top: 5rem; padding-bottom: 5rem; }
  #urgencias   { padding-top: 5rem; padding-bottom: 5rem; }
  #casos-reales{ padding-top: 5rem; padding-bottom: 5rem; }
  #como-te-atendemos { padding-top: 5rem; padding-bottom: 5rem; }
  #faq         { padding-top: 5rem; padding-bottom: 5rem; }

  /* ── TESTIMONIOS: carrusel proporcioado ── */
  #testimonios [data-carousel] { max-width: 640px; }

  /* ── HERO IMAGEN: proporción más equilibrada a este ancho ── */
  .hero-image-col .rounded-\[2rem\] {
    aspect-ratio: 3/4 !important;
  }

  /* ── PASOS: 4 cols ya activo via lg:, padding ajustado ── */
  #como-te-atendemos [data-pasos] > div {
    padding: 1.5rem !important;
  }
}

/* ============================================================
   SOCIAL PROOF TOAST — componente flotante autónomo
   ============================================================ */
#social-proof-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 1.25rem;
  z-index: 38;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 268px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  padding: 0.7rem 0.95rem;
  box-shadow:
    0 4px 20px -4px rgba(15, 23, 42, 0.12),
    0 1px 4px rgba(15, 23, 42, 0.05);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
#social-proof-toast.sp-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#social-proof-toast.sp-hiding {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 450ms ease, transform 450ms ease;
}
.sp-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(66, 181, 196, 0.13);
  border: 1px solid rgba(66, 181, 196, 0.22);
  flex-shrink: 0;
  color: #42B5C4;
  position: relative;
}
.sp-icon-wrap svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 30px;
  height: 30px;
  margin: 0;
}
.sp-online {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
}
.sp-content { min-width: 0; }
.sp-name {
  font-size: 0.8125rem;
  line-height: 1.3;
}
.sp-who {
  font-weight: 700;
  color: #0f172a;
}
.sp-action {
  font-weight: 400;
  color: rgba(15, 23, 42, 0.52);
}
.sp-meta-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}
.sp-pin {
  flex-shrink: 0;
  color: rgba(15, 23, 42, 0.38);
}
.sp-meta {
  font-size: 0.6875rem;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.3;
}
