/* ==========================================================================
   TABLETA · FORMATO 1 "COLLAGE" (sala de espera) · v1 · 12-nov-2026
   El héroe se reemplaza por una pantalla fija del tamaño exacto de la tableta:
   - Profesional grande (foto propia de tableta), corte derecho abajo (sin degradado).
   - Tarjeta de Google (logo + 5 estrellas) encimada sobre el hombro + 3 pasos de reseña.
   - Celular inclinado abajo a la izquierda: "Agenda tu próxima cita" + QR + 3 pasos.
   - Nombre (jerarquía 1) + especialidad + dirección sobre el profesional.
   - Fondo siempre en movimiento con el recurso gráfico del sitio.
   UNIDAD: 1em de .tc = min(100vw/64,100dvh/48) acostada · min(100vw/48,100dvh/64) parada.
   ANTI-DESARME: todo vive en .tc__stage (48em parada / 60em acostada, centrado). Si la
   tableta es más larga o ancha, solo crece el fondo. Reglas: ningún QR tapado, nada sobre
   la cara, los pasos del celular siempre completos.
   ========================================================================== */
.tc{display:none;--tc-font:"Poppins",system-ui,sans-serif;--tc-ink:#0f1b33;--tc-mute:#5b6b86;--tc-a1:#4d8bff;--tc-a2:#1f5fe0;--tc-glow:rgba(31,95,224,.55);--tc-line:rgba(31,95,224,.3);--tc-line2:rgba(31,95,224,.12);--tc-bg:radial-gradient(120% 90% at 70% 10%,#fff 0%,#f4f8ff 45%,#e3edff 100%);--tc-shape:radial-gradient(circle at 40% 35%,#fff 0%,#dbe8ff 40%,#a9c7ff 100%);--tc-shape-r:50%;--tc-name-w:700;--tc-name-em:#1f5fe0;--tc-halo:#f4f8ff;--tc-pro-sh:rgba(15,27,51,.18);--tc-card-sh:rgba(15,27,51,.16);--tc-ph-sh:rgba(15,31,61,.32);--tc-ph-bg:linear-gradient(160deg,#4d8bff 0%,#1f5fe0 52%,#1546b8 100%);--tc-ph-k1:#cfe0ff;--tc-ph-num:#1f5fe0;--tc-ph-ink:#fff;--tc-ph-em:#fff;--tc-ph-em-bg:linear-gradient(transparent 62%,rgba(255,255,255,.28) 0);--tc-ph-plate:rgba(255,255,255,.16);--tc-ph-fc:#fff;--tc-ph-num-bg:#fff;--tc-ph-ring:rgba(255,255,255,.25);--tc-doc-max-p:58em;--tc-doc-right-p:-10em;--tc-doc-max-l:44em;--tc-doc-left-l:12.3em;}
@media (min-width:600px) and (max-width:1024px) and (min-height:561px), (min-width:600px) and (max-aspect-ratio:10/11) and (min-height:561px), (min-width:1025px) and (max-width:1400px) and (min-height:600px) and (hover:none) and (pointer:coarse){
  .jose-hero{position:relative!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:0!important;overflow:hidden!important;background:none!important;box-shadow:none!important}
  .jose-hero::before,.jose-hero::after{display:none!important}
  .jose-hero>:not(.tc),.jose-kiosk{display:none!important}
  .tc{display:block;position:absolute;inset:0;overflow:hidden;font-family:var(--tc-font);color:var(--tc-ink);background:var(--tc-bg);-webkit-font-smoothing:antialiased;
    font-size:min(calc(100vw/64),calc(100vh/48));font-size:min(calc(100vw/64),calc(100dvh/48))}
  .tc *{box-sizing:border-box}
  .tc p,.tc h2,.tc ol{margin:0;padding:0}
  .tc__stage{position:absolute;top:0;bottom:0;left:50%;translate:-50% 0;width:60em}

  /* fondo vivo */
  .tc__fx{position:absolute;inset:0;z-index:1;pointer-events:none}
  .tc__shape{position:absolute;left:20em;top:9em;width:24em;bottom:-4em;border-radius:var(--tc-shape-r);background:var(--tc-shape);animation:tc-breathe 9s ease-in-out infinite}
  .tc__orb{position:absolute;left:52%;top:42%;width:46em;aspect-ratio:1;translate:-50% -50%;border-radius:50%;border:.12em dashed var(--tc-line);animation:tc-spin 90s linear infinite}
  .tc__orb::before{content:"";position:absolute;top:-.4em;left:50%;width:.8em;height:.8em;border-radius:50%;background:var(--tc-a2);box-shadow:0 0 .9em var(--tc-glow)}
  .tc__orb--b{width:60em;border-style:solid;border-color:var(--tc-line2);animation-direction:reverse;animation-duration:140s}
  .tc__orb--b::before{display:none}
  .tc__dot{position:absolute;border-radius:50%;animation:tc-float 7s ease-in-out infinite}
  .tc__deco{position:absolute;animation:tc-float 8s ease-in-out infinite}
  .tc__line{position:absolute;left:0;top:40%;width:60%;height:30%;stroke:var(--tc-line);fill:none;stroke-width:2;stroke-linecap:round;stroke-dasharray:400;animation:tc-draw 9s ease-in-out infinite}
  .tc__spark{position:absolute;width:.9em;height:.9em;animation:tc-twinkle 3.4s ease-in-out infinite}
  .tc__spark::before{content:"";position:absolute;inset:0;background:#fff;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);filter:drop-shadow(0 0 .3em var(--tc-a1))}

  /* profesional (corte derecho abajo, sin degradado) */
  .tc__pro{position:absolute;z-index:3;width:auto;max-width:none;bottom:0;left:var(--tc-doc-left-l,17.4em);height:min(calc(100% - var(--tc-doc-gap-l,2.4em)),var(--tc-doc-max-l,60em));pointer-events:none;filter:drop-shadow(0 1.5em 2.5em var(--tc-pro-sh))}

  /* nombre */
  .tc__name{position:absolute;z-index:6;right:1.2em;bottom:var(--tc-name-b-l,5.2em);background:var(--tc-name-plate-l,none);padding:var(--tc-name-pad-l,0);border-radius:1.4em;-webkit-backdrop-filter:var(--tc-name-blur-l,none);backdrop-filter:var(--tc-name-blur-l,none);font-weight:var(--tc-name-w)}
  .tc__nm{display:block;font-size:var(--tc-nf-l,3.1em);line-height:.98;letter-spacing:-.035em;color:var(--tc-ink);white-space:nowrap}
  .tc__nm em{font-style:normal;color:var(--tc-name-em)}
  .tc__spec{display:block;font-size:.95em;font-weight:500;margin-top:.6em !important}
  .tc__loc{display:flex;align-items:center;gap:.3em;font-size:.72em;color:var(--tc-mute);margin-top:.3em !important;font-weight:400}
  .tc__loc svg{flex:none;width:1.2em;height:1.2em;stroke:var(--tc-a2);fill:none;stroke-width:2}

  /* QR (común) */
  .tc__qr{position:relative;margin:0 auto;width:var(--qw,12em);padding:.5em;background:#fff;border-radius:.9em}
  .tc__code{width:100%;aspect-ratio:1}
  .tc__code img,.tc__code canvas{width:100%!important;height:100%!important;display:block}
  .tc__code p{font-size:.6em;color:#5f6676;text-align:center;padding:2em .5em}
  .tc__badge{position:absolute;left:50%;top:50%;translate:-50% -50%;width:23%;aspect-ratio:1;border-radius:26%;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 .22em #fff}
  .tc__badge img{width:100%;height:100%;border-radius:24%}
  .tc__badge svg{width:72%;height:72%;fill:#f5b301}
  .tc__c{position:absolute;width:1.8em;height:1.8em;border:.24em solid var(--fc)}
  .tc__c--tl{top:-.55em;left:-.55em;border-right:0;border-bottom:0;border-radius:.85em 0 0 0}
  .tc__c--tr{top:-.55em;right:-.55em;border-left:0;border-bottom:0;border-radius:0 .85em 0 0}
  .tc__c--bl{bottom:-.55em;left:-.55em;border-right:0;border-top:0;border-radius:0 0 0 .85em}
  .tc__c--br{bottom:-.55em;right:-.55em;border-left:0;border-top:0;border-radius:0 0 .85em 0}
  .tc__scan{position:absolute;left:8%;right:8%;height:.16em;border-radius:1em;top:12%;background:linear-gradient(90deg,transparent,var(--sc),transparent);box-shadow:0 0 .8em var(--sc);animation:tc-scan 3.6s ease-in-out infinite}

  /* tarjeta de Google */
  .tc__g{position:absolute;z-index:8;right:1em;top:2.6em;width:17.6em;rotate:3deg;--qw:12.6em;background:#fff;border-radius:1.6em;padding:1.3em 1.4em 1.1em;text-align:center;color:#1c2433;
    box-shadow:0 1.6em 3.4em var(--tc-card-sh),0 .2em .6em rgba(0,0,0,.06);animation:tc-bob 7s ease-in-out infinite;overflow:hidden}
  .tc__g::before{content:"";position:absolute;inset:0 0 auto;height:.42em;background:linear-gradient(90deg,#4285f4 0 25%,#ea4335 0 50%,#fbbc05 0 75%,#34a853 0)}
  .tc__gh{font-size:1.45em;line-height:1.1;letter-spacing:-.01em;font-weight:700}
  .tc__gs{font-size:.74em;color:#5f6676;max-width:16em;margin:.3em auto 0 !important;line-height:1.35}
  .tc__g .tc__qr{--fc:#f5b301;--sc:#f5b301;margin:.9em auto .7em;box-shadow:0 0 0 .14em #f1e3b8}
  .tc__glogo{display:block;width:62%;height:auto;margin:.1em auto 0;animation:tc-glint 5s ease-in-out infinite}
  .tc__rs{position:absolute;z-index:8;right:-.4em;top:30.6em;width:20.4em;list-style:none;display:flex;justify-content:center;gap:.75em;color:var(--tc-mute);font-weight:500}
  .tc__rs li{flex:none;display:flex;align-items:center;gap:.35em;font-size:.66em;white-space:nowrap}
  .tc__rs b{display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:#fff1c7;color:#8a5d00;font-size:.92em}

  /* celular */
  .tc__ph{position:absolute;z-index:9;left:.6em;bottom:-5em;--pw:18.4em;--rot:-7deg;width:var(--pw);aspect-ratio:9/18.6;border-radius:3.1em;background:#111;padding:.9em;
    box-shadow:0 2.4em 4em var(--tc-ph-sh),inset 0 0 0 .18em #2b2b2b;animation:tc-wob 8s ease-in-out infinite}
  .tc__ph::before,.tc__ph::after{content:"";position:absolute;left:-.32em;width:.3em;border-radius:.2em 0 0 .2em;background:#2a2a2a}
  .tc__ph::before{top:7em;height:3em}.tc__ph::after{top:11em;height:5em}
  .tc__scr{position:relative;height:100%;border-radius:2.3em;overflow:hidden;background:var(--tc-ph-bg);color:var(--tc-ph-ink);display:flex;flex-direction:column;align-items:center;text-align:center;padding:3.1em 1.3em 0}
  .tc__scr::before{content:"";position:absolute;width:26em;height:26em;border-radius:50%;border:.08em solid var(--tc-ph-ring);left:-9em;top:10em;animation:tc-spin 70s linear infinite}
  .tc__notch{position:absolute;top:.9em;left:50%;translate:-50% 0;width:7.4em;height:1.9em;border-radius:99em;background:#111}
  .tc__k1{position:relative;font-size:.62em;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-top:.4em !important;color:var(--tc-ph-k1)}
  .tc__h{position:relative;font-size:1.95em;line-height:1.02;letter-spacing:-.025em;margin:.35em 0 0 !important;font-weight:700;color:var(--tc-ph-ink)}
  .tc__h em{font-style:normal;color:var(--tc-ph-em);background:var(--tc-ph-em-bg)}
  .tc__qw{position:relative;margin-top:.95em;padding:1em;border-radius:1.6em;background:var(--tc-ph-plate)}
  .tc__ph .tc__qr{--qw:12.2em;--fc:var(--tc-ph-fc);--sc:var(--tc-a2);box-shadow:0 1em 2em rgba(0,0,0,.25)}
  .tc__ps{position:relative;list-style:none;display:flex;flex-direction:column;gap:.36em;margin-top:.85em !important;align-self:stretch;padding:0 .6em}
  .tc__ps li{display:flex;align-items:center;gap:.6em;font-size:.76em;font-weight:600;text-align:left;color:var(--tc-ph-ink)}
  .tc__ps b{flex:none;display:grid;place-items:center;width:1.85em;height:1.85em;border-radius:50%;background:var(--tc-ph-num-bg);color:var(--tc-ph-num);font-size:.9em}

  @media (orientation:portrait){
    .tc{font-size:min(calc(100vw/48),calc(100vh/64));font-size:min(calc(100vw/48),calc(100dvh/64))}
    .tc__stage{width:48em}
    .tc__shape{left:auto;right:-3em;top:20em;width:30em}
    .tc__orb{left:68%;top:30%;width:44em}.tc__orb--b{width:58em}
    .tc__pro{left:auto;right:var(--tc-doc-right-p,-1.5em);height:min(calc(100% - var(--tc-doc-gap-p,4em)),var(--tc-doc-max-p,70em))}
    .tc__name{right:1.4em;bottom:var(--tc-name-b-p,14.6em);background:var(--tc-name-plate-p,none);padding:var(--tc-name-pad-p,0);border-radius:1.4em;-webkit-backdrop-filter:var(--tc-name-blur-p,none);backdrop-filter:var(--tc-name-blur-p,none)}
    .tc__nm{font-size:var(--tc-nf-p,3.2em)}
    .tc__g{right:auto;left:2em;top:2.6em;width:19.4em;rotate:-3deg;--qw:12em}
    .tc__rs{right:auto;left:1.4em;top:28.6em;width:20.6em}
    .tc__ph{left:1.4em;bottom:-9.2em;--pw:20.2em;--rot:-8deg}
  }
  @keyframes tc-spin{to{rotate:360deg}}
  @keyframes tc-breathe{0%,100%{scale:1}50%{scale:1.025}}
  @keyframes tc-float{0%,100%{translate:0 0}50%{translate:.4em -1em}}
  @keyframes tc-draw{0%{stroke-dashoffset:400}45%,70%{stroke-dashoffset:0}100%{stroke-dashoffset:-400}}
  @keyframes tc-twinkle{0%,100%{opacity:0;scale:.4}50%{opacity:1;scale:1}}
  @keyframes tc-scan{0%,100%{top:12%;opacity:.15}12%,88%{opacity:1}50%{top:86%}}
  @keyframes tc-bob{0%,100%{translate:0 0}50%{translate:0 -.45em}}
  @keyframes tc-glint{0%,75%,100%{filter:none}82%{filter:brightness(1.12) drop-shadow(0 0 .35em rgba(251,188,5,.55))}}
  @keyframes tc-wob{0%,100%{rotate:var(--rot);translate:0 0}50%{rotate:calc(var(--rot) + .8deg);translate:0 -.5em}}
  @media (prefers-reduced-motion:reduce){.tc *,.tc *::before,.tc *::after{animation:none!important}.tc__ph{rotate:var(--rot)}}
}
@media (min-width:600px) and (max-width:1024px) and (min-height:561px), (min-width:600px) and (max-aspect-ratio:10/11) and (min-height:561px), (min-width:1025px) and (max-width:1400px) and (min-height:600px) and (hover:none) and (pointer:coarse){
  .tc__shape{bottom:auto;aspect-ratio:1;width:40em;left:13em;top:6em;animation:tc-breathe 8s ease-in-out infinite}
  .tc__tooth{filter:drop-shadow(0 1em 1.4em rgba(31,95,224,.22))}
  .tc__tooth--a{left:37em;top:1.6em;width:4em;height:4.8em}
  .tc__tooth--b{left:22em;top:39em;width:3em;height:3.6em;opacity:.75;animation-delay:-3s}
  .tc__nm{font-size:var(--tc-nf-l,4.4em)}
  @media (orientation:portrait){.tc__shape{left:auto;right:-8em;top:13em;width:42em}.tc__tooth--a{left:auto;right:2.4em;top:2em}.tc__tooth--b{left:23em;top:auto;bottom:3em}}
}

/* Dental Clinic (3-dic-2026): la tableta vive en la sala de espera de la clínica → «Bienvenido a» + logo.
   Horizontal: arriba a la izquierda (espacio libre sobre el celular). Vertical: arriba a la derecha (sobre el doctor). */
.tc__bienv{position:absolute;z-index:7;left:1.3em;top:1.5em;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:.45em;font-family:"Inter",system-ui,sans-serif}
.tc__bienv span{font-size:.8em;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--tc-mute)}
.tc__bienv img{display:block;height:2.7em;width:auto}
@media (orientation:portrait){
  .tc__bienv{left:auto;right:1.4em;top:1.3em;align-items:flex-end}
  .tc__bienv img{height:2.5em}
}

/* ---------- Ronda 38 · modo sala escondido: transición al cambiar y aviso discreto ---------- */
.sala-entra{animation:sala-entra .55s cubic-bezier(.2,.8,.2,1) both}
@keyframes sala-entra{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
.sala-aviso{position:fixed;z-index:200;left:50%;bottom:28px;transform:translate(-50%,16px);opacity:0;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:12px 22px;border-radius:18px;background:rgba(15,27,51,.92);color:#fff;font:500 14px Inter,system-ui,sans-serif;box-shadow:0 18px 40px -18px rgba(0,0,0,.6);transition:opacity .25s ease,transform .3s cubic-bezier(.2,.8,.2,1)}
.sala-aviso b{font-size:16px;font-weight:700}
.sala-aviso span{opacity:.75;font-size:13px}
.sala-aviso.is-on{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.sala-entra{animation:none}}
/* en modo sala la tableta es una pantalla para la clínica: sin el globito del asistente encima de la portada */
html.sala-on .asw-globo{display:none !important}
/* ---------- Ronda 39 · fondo de la portada = fondo del héroe del sitio ----------
   Azul claro en degradado, destellos que titilan y el diente de cristal; sin el círculo ni las órbitas de antes. */
#sala .tc{background:radial-gradient(90% 70% at 75% 20%,#ffffff 0%,rgba(255,255,255,0) 60%),linear-gradient(165deg,#f5f9ff 0%,#e9f1ff 55%,#d9e7ff 100%) !important}
#sala .tc__shape,#sala .tc__orb,#sala .tc__spark,#sala .tc__deco,#sala .tc__line,#sala .tc__dot{display:none !important}
#sala .tc__cristal{position:absolute;width:9em;height:auto;right:4%;top:24%;opacity:.9;filter:drop-shadow(0 1.2em 2em rgba(31,95,224,.25));animation:tc-cristal 6s ease-in-out infinite}
#sala .tc__destello{position:absolute;width:1em;height:1em;color:#3D7BFF;animation:tc-destello 3.6s ease-in-out infinite}
#sala .tc__destello svg{display:block;width:100%;height:100%;fill:currentColor}
@keyframes tc-cristal{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-.8em) rotate(3deg)}}
@keyframes tc-destello{0%,100%{opacity:.25;transform:scale(.7) rotate(0)}50%{opacity:1;transform:scale(1) rotate(20deg)}}
@media (orientation:landscape){#sala .tc__cristal{right:auto;left:3%;top:60%;width:8em}}
@media (prefers-reduced-motion:reduce){#sala .tc__cristal,#sala .tc__destello{animation:none}}
/* ronda 39b · en espacios libres: vertical, entre la tarjeta de Google y la cabeza; acostada, entre el celular y el doctor */
#sala .tc__cristal{right:auto;left:49%;top:11%;width:7.5em}
@media (orientation:landscape){#sala .tc__cristal{left:46%;top:4%;width:6.5em}}
#sala .tc__destello{width:1.3em;height:1.3em;color:#2f6df0}
@media (orientation:landscape){#sala .tc__cristal{left:27%;top:11%;width:5.5em}}
/* ronda 40 · en modo sala, la burbuja del asistente no se ve sobre la portada: aparece al bajar, junto con la barra flotante */
.asw-burbuja{transition:opacity .3s ease,transform .3s cubic-bezier(.2,.8,.2,1)}
html.sala-on:not(:has(.mp-flot.is-on)) .asw-burbuja{opacity:0;transform:translateY(16px) scale(.9);pointer-events:none}

/* ronda 47 · sin nombre del doctor en la portada: solo «Bienvenido a Dental Clinic» arriba */
#sala .tc__name{display:none}
/* ronda 47 · tocar un QR lo abre en grande (js/sala-qr-v1.js). Sin leyenda: solo una respuesta al toque */
#sala .tc__qr{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .18s ease}
#sala .tc__qr:active{transform:scale(.97)}
.sqr{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:3vmin;
  background:rgba(10,25,60,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;transition:opacity .25s ease}
.sqr[hidden]{display:none}
.sqr.is-on{opacity:1}
.sqr__card{position:relative;width:min(96vw,94vh * .8);max-height:94vh;display:flex;flex-direction:column;align-items:center;text-align:center;
  background:#fff;border-radius:32px;padding:clamp(24px,4vmin,48px);box-shadow:0 40px 80px -30px rgba(10,30,80,.5);
  transform:translateY(16px) scale(.98);transition:transform .3s cubic-bezier(.2,.8,.2,1);font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#0f1c3a}
.sqr.is-on .sqr__card{transform:none}
.sqr__x{position:absolute;top:16px;right:16px;width:56px;height:56px;border:0;border-radius:50%;background:#EEF3FF;color:#1F5FE0;display:grid;place-items:center;cursor:pointer}
.sqr__x svg{width:26px;height:26px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round}
.sqr__t{margin:0;font-family:Poppins,sans-serif;font-size:clamp(26px,4.2vmin,44px);line-height:1.1;letter-spacing:-.02em;font-weight:800;padding:0 56px}
.sqr__s{margin:10px 0 0;font-size:clamp(15px,2.2vmin,20px);color:#5b6787}
.sqr__qr{margin-top:clamp(18px,3vmin,32px);padding:clamp(14px,2.2vmin,24px);background:#fff;border-radius:24px;box-shadow:0 0 0 2px #E3EAFB}
.sqr__code{width:min(80vw,62vh);aspect-ratio:1}
.sqr__code canvas,.sqr__code img{display:block;width:100% !important;height:100% !important;image-rendering:pixelated}
.sqr__p{list-style:none;margin:clamp(18px,3vmin,30px) 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;font-size:clamp(15px,2.1vmin,19px);font-weight:600}
.sqr__p li{display:flex;align-items:center;gap:10px}
.sqr__p b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#1F5FE0;color:#fff;font-size:.85em}
@media (orientation:landscape){.sqr__code{width:min(54vh,60vw)}.sqr__card{width:min(80vw,96vh)}}
html.sqr-abierto .asw-burbuja,html.sqr-abierto .mp-flot{visibility:hidden}
@media (prefers-reduced-motion:reduce){.sqr,.sqr__card{transition:none}}
