/*
 * VITALMED — RESPONSIVE.CSS v14
 * Archivo único. Se carga DESPUÉS de styles.css.
 * Cascada: 1024 → 820 → 640 → 480
 * Cada regla neutraliza explícitamente lo que pisa desde la base.
 */

/* ============================================================
   VARIABLES GLOBALES — override de base
   ============================================================ */
:root {
  --container: min(1180px, calc(100% - 40px));
  --header-height: 88px;
}


/* ============================================================
   COMPONENTES FLOTANTES — siempre en DOM, visibles por @media
   ============================================================ */

/* ── Sticky CTA Bar ── */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 11px 18px;
  padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(105deg, #0a3448 0%, #1a6b8a 50%, #0a3448 100%);
  border-top: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 -8px 28px rgba(5,38,55,0.32);
  gap: 12px;
  align-items: center;
  transform: translateY(100%);
  transition: transform 340ms cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.sticky-cta-bar.is-visible { transform: translateY(0); }
.sticky-cta-bar__text       { flex: 1 1 auto; min-width: 0; }
.sticky-cta-bar__text strong {
  display: block; font-size: 13px; font-weight: 800;
  color: #fff; line-height: 1.25;
}
.sticky-cta-bar__text span {
  display: block; font-size: 11px;
  color: rgba(255,255,255,0.60); margin-top: 2px;
}
.sticky-cta-bar .btn {
  flex: 0 0 auto;
  min-height: 42px; padding: 0 20px;
  font-size: 13.5px; font-weight: 800;
  border-radius: 12px; white-space: nowrap;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.46);
  color: #fff; animation: none;
}
.sticky-cta-bar .btn:active { background: rgba(255,255,255,0.26); }

/* ── FAB WhatsApp ── */
.whatsapp-fab {
  --fab-lift: 0px;
  display: none;
  position: fixed;
  bottom: calc(18px + var(--fab-lift) + env(safe-area-inset-bottom, 0px));
  right: 16px; z-index: 201;
  width: 54px; height: 54px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: linear-gradient(145deg, #28d467, #18a84e);
  color: #fff; text-decoration: none;
  box-shadow: 0 6px 22px rgba(24,168,78,0.50);
  transition: bottom 340ms cubic-bezier(0.22,1,0.36,1);
  animation: waPulse 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.whatsapp-fab:active     { transform: scale(0.91); }
.whatsapp-fab__icon      { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.whatsapp-fab__label     { display: none; font-size: 13px; font-weight: 800; white-space: nowrap; }

@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 22px rgba(24,168,78,0.50); }
  50%      { box-shadow: 0 8px 30px rgba(24,168,78,0.70), 0 0 0 6px rgba(24,168,78,0.12); }
}

/* ── Scroll hint ── */
.hero__scroll-hint {
  display: none;
  align-items: center; gap: 8px; margin-top: 16px;
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__scroll-hint::before {
  content: ''; display: block;
  width: 16px; height: 26px;
  border: 2px solid rgba(13,61,82,0.25); border-radius: 999px;
  background: radial-gradient(circle, rgba(13,61,82,0.40) 2px, transparent 2px)
              center 5px / auto no-repeat;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { background-position: center 5px;  opacity: 1; }
  100% { background-position: center 15px; opacity: 0; }
}


/* ============================================================
   FORMULARIO POR PASOS — estilos base (todos los tamaños)
   ============================================================ */
/* Neutralizar booking-card de la base */
.booking-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  min-width: 0;
  width: 100%;
}

/* Neutralizar booking-form display:grid de la base */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

/* form-row con 2 cols por defecto en desktop */
.booking-form .form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}
.booking-form .form-row.form-row--single {
  grid-template-columns: 1fr;
}

/* Labels e inputs nunca desbordan */
.booking-form label {
  min-width: 0;
}
.booking-form input,
.booking-form textarea,
.cs-btn {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pasos */
.form-step { display: grid; gap: 16px; }
.form-step__label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-deeper);
}
.form-step__label small {
  font-size: 10px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: var(--text-muted); margin-left: 2px;
}
.form-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #1a6b8a, #0d3d52);
  /* Especificidad extra para ganar a .booking-form span { color: var(--text-soft) } */
  color: #ffffff !important;
  font-size: 11.5px; font-weight: 900; flex-shrink: 0;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  box-shadow: 0 2px 8px rgba(13,61,82,0.30);
}
.booking-form em.req { font-style: normal; color: #d94f38; margin-left: 2px; }

/* Botón custom-select */
.cs-btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; min-height: 54px; padding: 0 16px;
  border-radius: 16px; border: 1px solid rgba(83,110,124,0.18);
  background: rgba(255,255,255,0.92); color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 400;
  text-align: left; cursor: pointer;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-sizing: border-box;
}
.cs-btn:focus-visible {
  outline: none;
  border-color: rgba(111,142,157,0.52);
  box-shadow: 0 0 0 4px rgba(197,233,249,0.56);
  background: #fff;
}
.cs-btn:disabled, .cs-btn--disabled {
  opacity: 0.48; cursor: not-allowed; pointer-events: none;
}
.cs-btn__text {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(51,66,76,0.42);
}
.cs-btn__text.has-value { color: var(--text); font-weight: 500; }
.cs-btn__chevron {
  flex-shrink: 0; width: 18px; height: 18px; color: var(--accent-deep);
  transition: transform 200ms ease;
}
.cs-btn.is-open   .cs-btn__chevron { transform: rotate(180deg); }
.cs-btn.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }


/* ============================================================
   BOTTOM SHEET / DROPDOWN
   ============================================================ */
.bs-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(5,38,55,0.48);
  opacity: 0; transition: opacity 220ms ease;
}
.bs-overlay.is-active  { display: block; }
.bs-overlay.is-visible { opacity: 1; }

.bs-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 901;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 40px rgba(5,38,55,0.16);
  max-height: 76vh;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.32,0.72,0,1);
  will-change: transform;
}
.bs-sheet.is-visible { transform: translateY(0); }

.bs-sheet__bar {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(13,61,82,0.16);
  margin: 10px auto 0; flex-shrink: 0;
}
.bs-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(13,61,82,0.07); flex-shrink: 0;
}
.bs-sheet__title { margin: 0; font-size: 15px; font-weight: 800; color: var(--accent-deeper); }
.bs-sheet__close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(13,61,82,0.07);
  color: var(--accent-deeper); cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.bs-sheet__close:active { background: rgba(13,61,82,0.14); }

.bs-sheet__search-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(13,61,82,0.07); flex-shrink: 0;
}
.bs-sheet__search-wrap svg { flex-shrink: 0; color: rgba(13,61,82,0.32); }
.bs-sheet__search-wrap.is-hidden { display: none; }
.bs-sheet__search {
  flex: 1; border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: transparent; padding: 0;
}
.bs-sheet__search::placeholder { color: rgba(13,61,82,0.30); }
.bs-sheet__search::-webkit-search-cancel-button { display: none; }

.bs-sheet__list {
  list-style: none; margin: 0; padding: 6px 0 12px;
  overflow-y: auto; flex: 1;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.bs-sheet__group {
  padding: 10px 20px 3px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #1a6b8a; opacity: 0.60; pointer-events: none;
}
.bs-sheet__group.is-hidden { display: none; }
.bs-sheet__option {
  display: flex; align-items: center;
  width: 100%; padding: 14px 20px;
  border: none; background: transparent;
  font-family: inherit; font-size: 15.5px; font-weight: 500;
  color: var(--text); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; transition: background 80ms;
}
.bs-sheet__option:active  { background: rgba(26,107,138,0.08); }
.bs-sheet__option.is-selected { color: #0d3d52; font-weight: 700; }
.bs-sheet__option.is-selected .bs-opt-check { display: block; }
.bs-sheet__option.is-hidden { display: none; }
.bs-opt-check {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10.5l4 4 8-8' stroke='%231a6b8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.bs-sheet__empty {
  display: none; padding: 20px; text-align: center;
  font-size: 14px; color: var(--text-muted); font-style: italic; margin: 0;
}
.bs-sheet__empty.is-visible { display: block; }


/* ============================================================
   1024px — TABLET
   ============================================================ */
@media (max-width: 1024px) {

  /* FAB */
  .whatsapp-fab { display: flex; }

  /* Tap targets */
  .btn, .tab-btn, .comp-tab-btn,
  .service-item, .faq-question,
  .slider-btn, .reviews-nav, .carousel-btn,
  .cs-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .btn:active                           { transform: scale(0.97); }
  .tab-btn:active, .comp-tab-btn:active { transform: scale(0.96); }
  .cs-btn:active                        { transform: scale(0.98); }

  /* Hero 2 cols tablet */
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .hero__copy h1 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.06; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Booking 2 cols tablet */
  .booking-shell { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* CTA */
  .final-cta__box { flex-direction: column; text-align: center; align-items: center; }

  /* Video */
  .hero-video__media { animation: none; transform: none; }

  /* Carruseles */
  .carousel-track, .reviews-track {
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }

  /* Bottom sheet: desktop dropdown —
     El JS lo posiciona con getBoundingClientRect + position:fixed */
  .bs-overlay { background: transparent !important; }
  .bs-sheet {
    /* En desktop el JS sobreescribe con inline styles (fixed + top/left/width) */
    /* Solo definimos la transición y el estado inicial de opacity */
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
    box-shadow: 0 8px 40px rgba(5,38,55,0.18), 0 2px 8px rgba(5,38,55,0.08);
  }
  .bs-sheet.is-visible {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .bs-sheet__bar { display: none; }
  .bs-sheet__option { padding: 10px 14px; font-size: 14.5px; }
  .bs-sheet__group { padding: 8px 14px 3px; }
  .bs-sheet__head { padding: 10px 14px 8px; }
  .bs-sheet__search-wrap { padding: 8px 14px; }
  .bs-sheet__list { padding: 4px 0 8px; }
}


/* ============================================================
   820px — MÓVIL GRANDE
   ============================================================ */
@media (max-width: 820px) {

  /* Variables */
  :root { --container: min(1180px, calc(100% - 28px)); --header-height: 74px; }

  /* Sticky bar y scroll hint */
  .sticky-cta-bar    { display: flex; }
  .hero__scroll-hint { display: flex; }

  /* Topbar */
  .topbar__content {
    flex-direction: column; gap: 3px; padding: 9px 0;
    font-size: 11.5px; text-align: center; line-height: 1.5;
  }

  /* Header */
  .site-header, .header__content { min-height: var(--header-height); }
  .header__content { gap: 12px; }

  /* Brand */
  .brand { gap: 10px; padding: 6px 14px 6px 6px; }
  .brand__logo { width: 50px; height: 50px; }
  .brand__text strong { font-size: clamp(1.1rem, 4vw, 1.35rem); }
  .brand__text small  { font-size: 10px; letter-spacing: 0.05em; }

  /* Hamburguesa */
  .menu-toggle {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(13,61,82,0.07);
    border: 1px solid rgba(13,61,82,0.12);
    padding: 0; flex-shrink: 0;
  }
  .menu-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--accent-deeper); border-radius: 2px;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav móvil */
  .nav {
    position: absolute; top: calc(100% + 6px);
    left: 8px; right: 8px;
    display: grid; gap: 6px; padding: 14px;
    border-radius: 20px;
    background: linear-gradient(160deg, #0d3d52 0%, #052c48 65%, #031a2e 100%);
    box-shadow: 0 18px 48px rgba(5,35,52,0.36);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 35;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a {
    width: 100%; text-align: center; padding: 13px 16px;
    border-radius: 14px; font-size: 0.97rem; font-weight: 700;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    justify-content: center;
  }
  .nav a.nav__cta { margin-top: 4px; min-height: 50px; font-weight: 800; border-radius: 15px; }

  /* Hero */
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero__visual { order: -1; }
  .hero-video--clean {
    border-radius: 18px; overflow: hidden; aspect-ratio: 16/9;
    box-shadow: 0 14px 40px rgba(5,38,55,0.20);
  }
  .hero__copy h1 { font-size: clamp(1.85rem, 6vw, 2.7rem); line-height: 1.07; max-width: none; }
  .hero__copy > p { font-size: 0.98rem; line-height: 1.72; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .hero__actions .btn { min-height: 50px; font-size: 0.93rem; border-radius: 14px; }
  .hero-coverage__cities li { font-size: 11.5px; padding: 5px 10px; }

  /* Hero mini */
  .hero-mini-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-mini:nth-child(1), .hero-mini:nth-child(3) { transform: none; }
  .hero-mini:nth-child(3) { grid-column: span 2; }

  /* Trust strip */
  .trust-strip__content {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 18px; padding: 12px 16px; gap: 10px;
  }
  .trust-strip__content span { font-size: 11px; letter-spacing: 0.06em; }

  /* Secciones */
  .section { padding-block: clamp(60px, 9vw, 88px); }
  .section--vibrant::before,
  .section--soft::before { inset: 10px 0; border-radius: 22px; }
  .section-heading h2 { font-size: clamp(1.65rem, 5vw, 2.2rem); }

  /* Tratamientos */
  .treatments-shell { padding: 22px 18px; border-radius: 24px; }
  .tab-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
  .tab-btn { width: 100%; min-height: 44px; font-size: 13px; padding: 0 12px; border-radius: 12px; text-align: center; justify-content: center; }
  .tab-grid { grid-template-columns: 1fr; }
  .accordion-cards { flex-direction: column; height: auto; gap: 7px; margin-top: 16px; }
  .ac-card { flex: 0 0 54px; border-radius: 14px; min-height: 54px; }
  .ac-card.is-open { flex: 0 0 auto; min-height: min(64vh, 460px); border-radius: 18px; }
  .ac-card__vline { top: 50%; bottom: auto; left: 16px; transform: translateY(-50%); justify-content: flex-start; }
  .ac-card__vline span { writing-mode: horizontal-tb; transform: none; font-size: 14px; padding: 6px 12px; letter-spacing: 0.06em; }
  .ac-card__content { padding: 22px 18px 20px; }
  .ac-card__title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .ac-card__desc  { font-size: 14.5px; }
  .ac-card__ideal { font-size: 13.5px; }
  .ac-card__price { font-size: 18px; }
  .ac-card__content .btn--sm { width: 100%; min-height: 50px; font-size: 15px; border-radius: 14px; }
  .service-switch { grid-template-columns: 1fr; gap: 14px; }
  .service-list   { max-height: 340px; -webkit-overflow-scrolling: touch; }
  .service-item   { min-height: 50px; padding: 12px 14px; border-radius: 12px; }

  /* Complementos */
  .complements-shell { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 24px; gap: 20px; }
  .comp-tab-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .comp-tab-btn { width: 100%; min-height: 44px; font-size: 13px; padding: 0 12px; border-radius: 12px; text-align: center; }
  .comp-detail { grid-template-columns: 1fr; padding: 20px 18px; border-radius: 18px; gap: 16px; }
  .comp-detail__icon { width: 62px; height: 62px; border-radius: 14px; }
  .comp-detail__body h3 { font-size: clamp(1.35rem, 4.5vw, 1.75rem); }

  /* Reseñas */
  .reviews-shell { grid-template-columns: 1fr; gap: 16px; }
  .reviews-summary { padding: 22px; border-radius: 22px; }
  .reviews-carousel { padding-inline: 0; }
  .reviews-track { grid-auto-columns: minmax(86%, 1fr); gap: 14px; }
  .review-card { min-height: auto; height: auto; padding: 18px; border-radius: 18px; gap: 12px; }
  .reviews-controls {
    position: static; transform: none;
    margin-top: 18px; display: flex;
    justify-content: center; gap: 14px; pointer-events: auto;
  }
  .reviews-controls .reviews-nav:first-child,
  .reviews-controls .reviews-nav:last-child { position: static; }
  .reviews-nav {
    width: 52px; height: 52px;
    box-shadow:
      0 6px 20px rgba(13,61,82,0.16),
      inset 0 1px 0 rgba(255,255,255,1.00);
  }

  /* Reservas */
  .booking-shell { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 24px; gap: 20px; min-width: 0; overflow: hidden; }
  .booking-copy h2 { font-size: clamp(1.65rem, 5vw, 2.2rem); }
  .booking-highlights { gap: 10px; margin-top: 18px; }
  .booking-highlights article { padding: 14px 16px; border-radius: 14px; }

  /* Formulario */
  .booking-form {
    gap: 14px; padding: 22px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.93);
    border: 1px solid rgba(255,255,255,0.92);
    box-shadow: 0 14px 38px rgba(5,38,55,0.12);
  }
  /* La base pone form-row a 1fr en ≤820px — reforzamos */
  .booking-form .form-row { grid-template-columns: 1fr; gap: 12px; }
  .booking-form input,
  .booking-form textarea {
    font-size: 16px; min-height: 52px;
    border-radius: 14px;
    border: 1.5px solid rgba(13,61,82,0.14);
    background: #fff;
  }
  .booking-form textarea   { min-height: 108px; padding-top: 14px; }
  .booking-form input:focus,
  .booking-form textarea:focus {
    border-color: #1a6b8a;
    box-shadow: 0 0 0 3px rgba(94,201,226,0.24);
    outline: none; transform: none;
  }
  .booking-form .btn--primary.btn--full {
    min-height: 56px; font-size: 1rem;
    font-weight: 800; border-radius: 15px; letter-spacing: 0.02em;
  }
  .booking-form__note { font-size: 12px; text-align: center; }
  .cs-btn { font-size: 16px; min-height: 52px; border-radius: 14px; }

  /* Bottom sheet: modo sheet en móvil — el JS limpia inline styles */
  .bs-overlay { background: rgba(5,38,55,0.48) !important; }
  .bs-sheet {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    width: auto !important; top: auto !important;
    border-radius: 22px 22px 0 0 !important; max-height: 76vh !important;
    transform: translateY(100%) !important; opacity: 1 !important;
    transition: transform 280ms cubic-bezier(0.32,0.72,0,1) !important;
    pointer-events: auto !important;
  }
  .bs-sheet.is-visible { transform: translateY(0) !important; }
  .bs-sheet__bar { display: block; }
  .bs-sheet__option { padding: 14px 20px; font-size: 16px; }
  .bs-sheet__group { padding: 10px 20px 3px; }
  .bs-sheet__head { padding: 12px 20px 10px; }
  .bs-sheet__search-wrap { padding: 10px 20px; }
  .bs-sheet__list { padding: 6px 0 12px; }

  /* Bento */
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bento-card--large { grid-column: span 2; min-height: 240px; }
  .bento-card { padding: 22px 18px; min-height: auto; }

  /* Timeline */
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .timeline::before { display: none; }

  /* FAQ */
  .faq__grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-question { padding: 18px 16px; min-height: 56px; align-items: center; }

  /* Final CTA */
  .final-cta__box { padding: 26px 20px; border-radius: 22px; gap: 20px; }
  .final-cta__box .btn { width: 100%; min-height: 52px; }

  /* Footer — espacio para sticky bar */
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 22px; }
  .site-footer  { padding-bottom: calc(32px + 72px); }
}


/* ============================================================
   640px — MÓVIL MEDIANO
   ============================================================ */
@media (max-width: 640px) {

  :root { --container: min(1180px, calc(100% - 22px)); --header-height: 68px; }

  /* Brand */
  .brand { gap: 8px; padding: 5px 12px 5px 5px; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__text strong { font-size: clamp(1rem, 4.8vw, 1.2rem); }
  .brand__text small  { font-size: 9.5px; }
  .menu-toggle { width: 42px; height: 42px; border-radius: 11px; }
  .menu-toggle span { width: 18px; }

  /* Hero */
  .hero { padding-top: 36px; padding-bottom: 48px; }
  .hero__copy h1 { font-size: clamp(1.75rem, 7.5vw, 2.4rem); line-height: 1.08; }
  .hero__actions { grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero-video--clean { border-radius: 15px; }
  .hero-mini-grid { grid-template-columns: 1fr; }
  .hero-mini:nth-child(3) { grid-column: auto; }

  /* Secciones */
  .section { padding-block: clamp(50px, 11vw, 72px); }
  .section-heading h2 { font-size: clamp(1.5rem, 6.5vw, 1.95rem); }
  .section-heading p  { font-size: 0.97rem; }
  .section--vibrant::before, .section--soft::before { inset: 8px 0; border-radius: 18px; }

  /* Tratamientos */
  .treatments-shell { padding: 18px 14px; border-radius: 20px; }
  .tab-btn { font-size: 12.5px; min-height: 42px; }
  .ac-card { flex: 0 0 50px; min-height: 50px; }
  .ac-card.is-open { min-height: min(68vh, 430px); }
  .ac-card__title { font-size: clamp(1.4rem, 7vw, 1.85rem); }
  .ac-card__content { padding: 18px 16px 16px; }

  /* Complementos */
  .complements-shell { padding: 18px 14px; border-radius: 20px; }
  .comp-tab-btn { font-size: 12.5px; min-height: 42px; }
  .comp-detail { padding: 18px 14px; }

  /* Reseñas */
  .reviews-summary { padding: 18px; border-radius: 18px; }
  .reviews-track { grid-auto-columns: minmax(90%, 1fr); gap: 10px; }
  .review-card { padding: 16px 14px; border-radius: 16px; }

  /* Reservas */
  .booking-shell { padding: 18px 14px; border-radius: 20px; }
  .booking-highlights { display: none; }
  .booking-form { padding: 18px 14px; border-radius: 18px; }
  .booking-form .form-row { grid-template-columns: 1fr; }
  .form-step { gap: 12px; }
  .booking-form input, .booking-form textarea {
    min-height: 50px; border-radius: 12px; font-size: 16px;
  }
  .booking-form .btn--primary.btn--full { min-height: 54px; border-radius: 14px; }
  .cs-btn { min-height: 50px; font-size: 16px; border-radius: 12px; }

  /* Bento */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--large { grid-column: auto; }

  /* Timeline */
  .timeline { grid-template-columns: 1fr; }
  .timeline-step { padding: 18px 14px; border-radius: 16px; }

  /* FAQ */
  .faq-question { padding: 16px 14px; }
  .faq-item { border-radius: 18px; }

  /* Final CTA */
  .final-cta__box { padding: 22px 18px; border-radius: 20px; gap: 16px; }
  .final-cta__box h2 { font-size: clamp(1.4rem, 6.5vw, 1.85rem); }

  /* Footer */
  .site-footer { padding-bottom: calc(24px + 72px); }
  .brand--footer { margin-bottom: 10px; }
}


/* ============================================================
   480px — MÓVIL PEQUEÑO
   ============================================================ */
@media (max-width: 480px) {

  :root { --container: min(1180px, calc(100% - 16px)); --header-height: 62px; }

  /* Topbar */
  .topbar__content {
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; gap: 2px 8px;
    font-size: 11px; padding: 7px 0;
  }
  .topbar__content p { margin: 0; }

  /* Header */
  .site-header, .header__content { min-height: var(--header-height); }
  .brand { gap: 7px; padding: 4px 10px 4px 4px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__text strong { font-size: clamp(0.9rem, 4.5vw, 1.1rem); }
  .brand__text small  { font-size: 9px; letter-spacing: 0.04em; }
  .menu-toggle { width: 40px; height: 40px; border-radius: 10px; }
  .menu-toggle span { width: 17px; }

  /* Hero */
  .hero { padding-top: 32px; padding-bottom: 40px; }
  .hero__copy h1 { font-size: clamp(1.6rem, 8.5vw, 2.1rem); line-height: 1.08; }
  .hero__copy > p { font-size: 0.94rem; }
  .hero__actions { gap: 9px; margin-top: 16px; }
  .hero__actions .btn { min-height: 48px; font-size: 0.9rem; border-radius: 13px; }
  .hero-video--clean { border-radius: 12px; }
  .hero-coverage__cities li { font-size: 10px; padding: 4px 8px; }
  .hero__scroll-hint { font-size: 10px; margin-top: 14px; }

  /* Secciones */
  .section { padding-block: clamp(44px, 12vw, 64px); }
  .section-heading h2 { font-size: clamp(1.38rem, 7.5vw, 1.75rem); }
  .section-heading p  { font-size: 0.94rem; }
  .section--vibrant::before, .section--soft::before { inset: 6px 0; border-radius: 16px; }

  /* Trust strip */
  .trust-strip__content { gap: 8px; padding: 10px 12px; border-radius: 14px; }

  /* Tratamientos */
  .treatments-shell { padding: 15px 12px; border-radius: 18px; }
  .tab-nav { gap: 6px; margin-bottom: 16px; }
  .tab-btn { font-size: 12px; min-height: 40px; padding: 0 10px; border-radius: 10px; }
  .accordion-cards { gap: 5px; margin-top: 12px; }
  .ac-card { flex: 0 0 48px; min-height: 48px; border-radius: 12px; }
  .ac-card.is-open { min-height: min(70vh, 400px); border-radius: 16px; }
  .ac-card__content { padding: 16px 14px 14px; }
  .ac-card__title { font-size: clamp(1.28rem, 7.5vw, 1.65rem); }
  .ac-card__desc  { font-size: 14px; }
  .ac-card__ideal { font-size: 13px; }
  .ac-card__price { font-size: 17px; }
  .ac-card__content .btn--sm { min-height: 46px; font-size: 14px; border-radius: 12px; }
  .service-item { min-height: 46px; padding: 11px 12px; font-size: 14px; }
  .service-list { max-height: 290px; }

  /* Complementos */
  .complements-shell { padding: 15px 12px; border-radius: 18px; }
  .comp-tab-nav { gap: 6px; }
  .comp-tab-btn { font-size: 12px; min-height: 40px; padding: 0 10px; border-radius: 10px; }
  .comp-detail { padding: 15px 12px; border-radius: 16px; gap: 12px; }
  .comp-detail__icon { width: 56px; height: 56px; border-radius: 12px; }
  .comp-detail__body h3 { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .comp-price-list li { padding: 10px 12px; font-size: 14px; }

  /* Reseñas */
  .reviews-summary { padding: 15px; border-radius: 16px; }
  .reviews-track { grid-auto-columns: minmax(93%, 1fr); gap: 8px; }
  .review-card { padding: 14px 12px; border-radius: 14px; gap: 10px; }
  .review-text { font-size: 0.92rem; line-height: 1.58; }
  .reviews-nav { width: 42px; height: 42px; }

  /* Reservas */
  .booking-shell { padding: 15px 12px; border-radius: 18px; gap: 14px; }
  .booking-copy h2 { font-size: clamp(1.38rem, 7.5vw, 1.75rem); }
  .booking-copy > p { font-size: 0.94rem; }
  .booking-form { padding: 16px 12px; border-radius: 16px; gap: 12px; }
  .booking-form input, .booking-form textarea {
    min-height: 48px; border-radius: 12px; font-size: 16px;
  }
  .booking-form textarea { min-height: 96px; }
  .booking-form .btn--primary.btn--full { min-height: 52px; font-size: 0.95rem; border-radius: 13px; }
  .booking-form__note { font-size: 11.5px; }
  .cs-btn { min-height: 48px; font-size: 16px; border-radius: 12px; }
  .bs-sheet__option { padding: 15px 18px; }

  /* Bento */
  .bento-card { padding: 18px 14px; border-radius: 16px; }

  /* FAQ */
  .faq-question { padding: 15px 13px; font-size: 0.95rem; }
  .faq-item { border-radius: 16px; }

  /* Final CTA */
  .final-cta__box { padding: 18px 14px; border-radius: 18px; gap: 14px; }
  .final-cta__box h2 { font-size: clamp(1.3rem, 7vw, 1.65rem); }

  /* FAB */
  .whatsapp-fab { width: 50px; height: 50px; right: 14px; }
  .whatsapp-fab__icon { width: 24px; height: 24px; }

  /* Sticky bar */
  .sticky-cta-bar { padding: 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .sticky-cta-bar__text strong { font-size: 12px; }
  .sticky-cta-bar__text span   { font-size: 10px; }
  .sticky-cta-bar .btn { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

  /* Footer */
  .footer__grid { gap: 18px; padding-top: 16px; }
  .site-footer  { padding-bottom: calc(20px + 68px); }
  .site-footer h3 { font-size: 1rem; margin-bottom: 8px; }
}


/* ============================================================
   HOVER — solo dispositivos con puntero real
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .whatsapp-fab:hover {
    width: auto; border-radius: 999px;
    padding: 0 18px 0 12px; gap: 8px;
  }
  .whatsapp-fab:hover .whatsapp-fab__label { display: block; }
  .whatsapp-fab:hover .whatsapp-fab__icon  { margin: 0; }
}

