/* Identidad del Dr. Tuquerrez: negro, grafito, franja diagonal azul pizarra y blanco platino. Va después de las demás hojas. */
:root { --f-marca: 'Jost', 'Century Gothic', 'Manrope', sans-serif; --pizarra1: #1b2040; --pizarra2: #3a4268; --pizarra3: #656d92; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 600; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #030304 0%, #131315 55%, #232326 100%); clip-path: polygon(0 0, 100% 0, 100% 110%, 0 150%); transition: clip-path 1.15s cubic-bezier(.76, 0, .18, 1) .12s; }
.intro.fuera { clip-path: polygon(0 0, 100% 0, 100% -45%, 0 -5%); pointer-events: none; }
.in-foto { position: absolute; inset: 0 auto 0 0; width: min(100%, 900px); background: center left / cover no-repeat; filter: grayscale(1) brightness(.8); opacity: 0; -webkit-mask-image: linear-gradient(90deg, #000 10%, rgba(0,0,0,.55) 48%, transparent 96%); mask-image: linear-gradient(90deg, #000 10%, rgba(0,0,0,.55) 48%, transparent 96%); transform-origin: 20% 60%; animation: inFoto 4.4s cubic-bezier(.22, 1, .36, 1) forwards; }
.in-franja { position: absolute; inset: 0; background: linear-gradient(165deg, var(--pizarra1) 45%, var(--pizarra2) 74%, var(--pizarra3) 100%); opacity: .88; clip-path: polygon(0 89%, 100% 56%, 100% 100%, 0 100%); animation: inFranja 1.7s cubic-bezier(.22, 1, .36, 1) both; }
.in-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px 4vh; transition: transform .8s cubic-bezier(.76, 0, .18, 1), opacity .5s; }
.intro.fuera .in-c { transform: translateY(-34px) scale(.97); opacity: 0; }
.in-mark { width: clamp(132px, 24vh, 208px); height: auto; overflow: visible; filter: drop-shadow(0 10px 30px rgba(0,0,0,.55)); }
.in-mark path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1; animation: inTrazo 1.25s cubic-bezier(.65, 0, .25, 1) forwards; }
.in-mark .t-aro { animation-delay: .25s; animation-duration: 1.45s; }
.in-mark .t-j { animation-delay: .65s; }
.in-mark .t-m { animation-delay: 1.35s; animation-duration: .6s; }
.in-mark .t-t { animation-delay: 1.45s; animation-duration: .85s; }
.in-nombre { position: relative; width: clamp(214px, 38vh, 330px); margin-top: clamp(22px, 4vh, 38px); overflow: hidden; }
.in-nombre img { display: block; width: 100%; height: auto; opacity: 0; animation: inNombre 1.15s cubic-bezier(.22, 1, .36, 1) 1.75s forwards; }
.in-sub { margin-top: 20px; font: 400 .68rem var(--f-marca); letter-spacing: .46em; padding-left: .46em; text-transform: uppercase; color: rgba(255,255,255,.72); text-align: center; opacity: 0; animation: inSube .9s ease 2.4s forwards; }
.in-barra { position: absolute; left: 50%; bottom: max(34px, env(safe-area-inset-bottom, 0px)); width: 150px; height: 1px; translate: -50% 0; background: rgba(255,255,255,.2); }
.in-barra i { display: block; height: 100%; background: #fff; transform-origin: left; animation: inBarra linear both; }
/* versión corta: el logo entra completo de una vez */
.intro.corto .in-mark path { animation-duration: .7s; animation-delay: .05s; }
.intro.corto .in-nombre img { animation-duration: .6s; animation-delay: .3s; }
.intro.corto .in-sub { animation-delay: .5s; animation-duration: .4s; }
@keyframes inFoto { from { opacity: 0; transform: scale(1.16); } 30% { opacity: .62; } to { opacity: .62; transform: scale(1); } }
@keyframes inFranja { from { transform: translateY(46%); } }
@keyframes inTrazo { to { stroke-dashoffset: 0; } }
@keyframes inNombre { from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes inSube { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes inBarra { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .in-mark path { stroke-dashoffset: 0; } .in-nombre img, .in-sub { opacity: 1; } .in-foto { opacity: .62; } }

/* ---------- marca en cabeceras ---------- */
.brand .mk, .brand .mk:hover { width: 46px; height: 46px; border: 0; background: none; box-shadow: none; color: #fff; display: grid; place-items: center; flex: none; }
.brand .mk svg { filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.brand .bt b { font-family: var(--f-marca); font-weight: 400; font-size: .94rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.brand .bt small { font-family: var(--f-marca); font-weight: 400; letter-spacing: .2em; font-size: .58rem; color: var(--mute); }
.sb .brand b { font-size: .8rem; letter-spacing: .1em; }
.sb .brand small { font-size: .52rem; letter-spacing: .14em; }
@media (max-width: 560px) { .nav .brand { gap: 9px; } .nav .brand .mk { width: 42px; height: 42px; } .nav .brand .bt b { font-size: .7rem; letter-spacing: .1em; } }
@media (max-width: 440px) { .nav { gap: 8px; } .nav .brand { gap: 8px; min-width: 0; } .nav .brand .mk { width: 38px; height: 38px; } .nav .brand .bt b { font-size: .64rem; letter-spacing: .08em; line-height: 1.4; white-space: normal; max-width: 12ch; } .nav .nav-r { gap: 7px; } .nav .nav-r .btn.sm:not(.hide-m) { padding: 0 .75rem; font-size: .74rem; } .nav .burger { width: 40px; height: 40px; flex: none; } .nav .burger i { left: 11px; right: 11px; } .nav .burger i:nth-child(1) { top: 16px; } .nav .burger i:nth-child(2) { top: 23px; } .nav .burger.on i:nth-child(1), .nav .burger.on i:nth-child(2) { top: 19px; } }
@media (max-width: 374px) { .nav .brand .bt { display: none; } }

/* ---------- botones platino ---------- */
.btn:not(.ghost):not(.dark) { color: #0b0d18; background: linear-gradient(180deg, #ffffff 0%, #eceef7 40%, #b6bcd8 100%); box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 7px rgba(45,52,98,.38), 0 10px 24px -8px rgba(0,0,0,.75), 0 22px 46px -20px rgba(150,162,220,.65); }
.btn:not(.ghost):not(.dark):hover { box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 7px rgba(45,52,98,.38), 0 18px 34px -10px rgba(0,0,0,.8), 0 34px 70px -20px rgba(166,176,224,.75); filter: none; }
.btn:not(.ghost):not(.dark)::before { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%); }

/* ---------- portada: el mismo lenguaje de su arte ---------- */
.hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #030304 0%, #101012 55%, #1d1d20 100%); }
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: min(100%, 880px); z-index: -1; background: url(../media/brand/fondo.jpg) center left / cover no-repeat; filter: grayscale(1) brightness(.72); opacity: .5; -webkit-mask-image: linear-gradient(90deg, #000 5%, rgba(0,0,0,.45) 45%, transparent 94%); mask-image: linear-gradient(90deg, #000 5%, rgba(0,0,0,.45) 45%, transparent 94%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, var(--pizarra1) 48%, var(--pizarra2) 76%, var(--pizarra3) 100%); opacity: .86; clip-path: polygon(0 92%, 100% 54%, 100% 100%, 0 100%); }
.hero .aurora { display: none; }
.hero-h .it, .sec-h h2 em, h2 em { color: #bcc3e6; }

/* franja diagonal y monograma como sello de agua en secciones */
.phil, .ag, .ruta { position: relative; isolation: isolate; }
.phil::after, .ruta::after { content: ''; position: absolute; width: min(620px, 78vw); aspect-ratio: 1; right: -9%; top: 4%; z-index: -1; background: url(../media/brand/jt-mark.svg) center / contain no-repeat; opacity: .045; pointer-events: none; }
.ag::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(165deg, rgba(27,32,64,.55), rgba(101,109,146,.34)); clip-path: polygon(0 74%, 100% 40%, 100% 100%, 0 100%); }

/* ---------- pie con el logo completo ---------- */
.ft { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #050507, #101013); }
.ft::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, var(--pizarra1) 40%, var(--pizarra2) 80%, var(--pizarra3)); opacity: .5; clip-path: polygon(0 86%, 100% 38%, 100% 100%, 0 100%); }
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; }
.lockup .m { width: 118px; height: 118px; }
.lockup .n { width: 206px; height: auto; }
.ft-s { color: #b9bccb; }
@media (max-width: 760px) { .ft-b { text-align: center; } .ft-b p { margin-inline: auto; } }

/* ---------- app del paciente ---------- */
.ob .lockup { align-self: center; justify-self: center; margin: 0 auto 4px; gap: 12px; }
.ob .lockup .m { width: 86px; height: 86px; }
.ob .lockup .n { width: 168px; }
.card.nextc { position: relative; overflow: hidden; isolation: isolate; }
.card.nextc::after { content: ''; position: absolute; width: 190px; height: 190px; right: -46px; top: -40px; z-index: -1; background: url(../media/brand/jt-mark.svg) center / contain no-repeat; opacity: .08; }

/* ---------- panel ---------- */
.top-mk { display: none; color: #fff; flex: none; }
@media (max-width: 900px) { .top-mk { display: grid; place-items: center; } }
.av.av-marca { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(157deg, #050507 0 55%, #2a3054 55.5%, #656d92); border: 1px solid var(--line2); color: #fff; flex: none; }

/* los sellos de agua no deben ensanchar la página */
.phil, .ruta, .ag { overflow: clip; }
@media (max-width: 900px) { .top .me .av-marca { display: none; } }
.ob.view { min-height: 100%; background: linear-gradient(165deg, rgba(27,32,64,0) 0 68%, rgba(41,47,84,.55) 68.15%, rgba(101,109,146,.42) 100%); }
@media (min-width: 861px) and (max-height: 900px) { .ob .lockup { gap: 8px; } .ob .lockup .m { width: 58px; height: 58px; } .ob .lockup .n { width: 124px; } }
.luna-float .lu-panel { background: linear-gradient(170deg, #1d1f30, #08080c); }
