/* ============================================================
   v2 · Acabado premium · Clínica Rehabilité (oct-2026)
   Se carga después del CSS base; no lo reescribe.
   ============================================================ */

/* Íconos de línea (antes eran emojis) */
.step .tip b.ti{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:rgba(140,196,255,.18);color:#BFDDFF}
.step .tip b.ti svg{width:16px;height:16px}
.goal .trophy{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.16);color:#FFD66B;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.goal .trophy svg{width:30px;height:30px}

/* Sello: texto exacto alrededor del círculo */
.about .seal text{letter-spacing:0}

/* Logo del pie: tamaño en que el PNG original se ve nítido */
footer.site img{height:30px}

/* Mapa en el tono de la marca */
.map{position:relative;background:#E6EBF2}
.map iframe{filter:grayscale(.55) contrast(1.04) brightness(1.02)}

/* ---------- Carruseles (solo celular) ---------- */
.dots{display:none}
@media(max-width:760px){
  section{padding:3.8rem 0}
  .head{margin-bottom:1.8rem}
  .about .g{gap:2.4rem}

  .xs{display:flex!important;grid-template-columns:none!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;gap:12px;
      margin-left:-4vw;margin-right:-4vw;padding:2px 4vw 6px;scroll-padding:0 4vw;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .xs::-webkit-scrollbar{display:none}
  .xs>*{scroll-snap-align:start;flex:0 0 84%}

  .dots{display:flex;justify-content:center;gap:6px;margin-top:14px}
  .dots i{width:6px;height:6px;border-radius:99px;background:currentColor;opacity:.22;transition:width .5s var(--ease),opacity .5s}
  .dots i.on{width:22px;opacity:.9}
  .dark .dots{color:#8CC4FF}
  .dots{color:var(--blue)}

  /* Instalaciones: fotos deslizables */
  .space .g.xs>figure{min-height:0!important;aspect-ratio:4/5;grid-row:auto}
  .space .g.xs>figure.big{flex-basis:88%}
  .space figcaption{left:.9rem;bottom:.9rem;font-size:.72rem}
  .perks{margin-top:1.2rem}

  /* Reseñas */
  .rgrid.xs>.rc{padding:1.5rem 1.4rem;gap:1rem}
  .rc p{font-size:1.06rem}
  .rv-cta{margin-top:1.2rem}

  /* ¿Sabías que? */
  .facts.xs{margin-top:1.6rem}
  .facts.xs>.fact{padding:1.7rem 1.5rem}
  .fact h4{font-size:1.35rem}

  /* Instagram: dos filas deslizables */
  .ig.xs{display:grid!important;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:40%;gap:8px}
  .ig.xs>a{flex:none;display:block!important;border-radius:14px}

  /* Pulmonar: tarjetas en 2 columnas */
  .pcards{grid-template-columns:1fr 1fr;gap:10px;margin-top:.6rem}
  .pc{flex-direction:column;align-items:flex-start;gap:.75rem;padding:1.1rem 1rem}
  .pc b{font-size:.92rem;line-height:1.25}
  .pc span:not(.ic){font-size:.78rem;line-height:1.35}

  /* Contacto */
  .contact .hero2{padding:2.2rem 1.4rem}
  .map{height:250px;border-radius:22px}
  footer.site{padding:2.4rem 0 7.5rem}
  footer.site .big{margin-bottom:1rem}
}

/* ---------- Portada en celular: nunca se encima con el menú superior ---------- */
@media(max-width:760px){
  .hero{height:auto;min-height:100svh;max-height:none}
  .hero .in{min-height:100svh;padding-top:6.2rem;padding-bottom:6rem}
  .hero .chips{margin-bottom:1.3rem}
  .hero .row{margin-top:1.5rem;gap:1.4rem}
  .hero .ctas{width:100%;flex-wrap:nowrap;gap:.6rem}
  .hero .ctas .btn{flex:1 1 0;justify-content:center;padding:.95rem .8rem;font-size:.88rem;white-space:nowrap}
}
@media(max-width:380px){.hero .row p{font-size:.92rem}.hero .ctas .btn svg{display:none}}

/* ---------- Pantallas angostas (iPhone SE 1.ª gen., 320 px) ---------- */
.stats .g>*{min-width:0}
@media(max-width:380px){
  .stat{padding:2rem 1.1rem 2.2rem}
  .stat>span{font-size:.78rem;overflow-wrap:anywhere}
  .chip{font-size:.74rem;padding:.45rem .8rem}
}

/* ---------- Barra inferior (celular) ---------- */
.tabbar{display:none}
@media(max-width:760px){
  .wa-float{display:none}
  .tabbar{position:fixed;z-index:90;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:2px;padding:6px;
    border-radius:999px;background:#0A2342;color:rgba(255,255,255,.7);box-shadow:0 18px 40px -14px rgba(6,26,48,.55),0 0 0 1px rgba(255,255,255,.06) inset;
    transform:translate(-50%,140%);transition:transform .8s var(--ease),background .5s,color .5s}
  .ready .tabbar{transform:translate(-50%,0)}
  body.menu .tabbar{transform:translate(-50%,140%)}
  .tabbar a{position:relative;display:flex;align-items:center;gap:0;height:46px;min-width:46px;padding:0 12px;border-radius:999px;justify-content:center;
    color:inherit;-webkit-tap-highlight-color:transparent;transition:background .5s var(--ease),color .5s,padding .5s var(--ease)}
  .tabbar a svg{width:22px;height:22px;flex:none}
  .tabbar a span{max-width:0;overflow:hidden;white-space:nowrap;font-size:.78rem;font-weight:700;letter-spacing:.01em;opacity:0;transition:max-width .55s var(--ease),opacity .35s,margin .55s var(--ease)}
  .tabbar a.on{background:rgba(140,196,255,.16);color:#fff;padding:0 14px 0 12px}
  .tabbar a.on span{max-width:120px;opacity:1;margin-left:.45rem}
  .tabbar a.tw{color:#fff;background:#1FAF5A;margin-left:4px;box-shadow:0 8px 18px -8px rgba(31,175,90,.9),inset 0 1px 0 rgba(255,255,255,.3)}
  .tabbar a.tw svg{width:21px;height:21px}
  /* versión clara sobre secciones claras */
  .tabbar.light{background:#FBFCFE;color:#5C6780;box-shadow:0 18px 40px -16px rgba(12,48,84,.35),0 0 0 1px rgba(11,20,38,.08) inset}
  .tabbar.light a.on{background:#E6EFFB;color:#0C3054}
  /* el contenido termina por encima de la barra */
  body{padding-bottom:0}
}
@media(max-width:340px){.tabbar a{padding:0 9px;min-width:40px}.tabbar a.on span{display:none}}

@media(prefers-reduced-motion:reduce){.tabbar{transition:none}.dots i{transition:none}}
