/* PraxisMD v7 · landing polish (index.html) */
/* 1. Light mode: pale Tailwind 200/300 accents were near-invisible on white */
html[data-theme="light"] body.v7-public .text-fuchsia-200,html[data-theme="light"] body.v7-public .text-fuchsia-300{color:#a21caf!important}
html[data-theme="light"] body.v7-public .text-cyan-200,html[data-theme="light"] body.v7-public .text-cyan-300{color:#0e7490!important}
html[data-theme="light"] body.v7-public .text-indigo-200,html[data-theme="light"] body.v7-public .text-indigo-300{color:#4338ca!important}
html[data-theme="light"] body.v7-public .text-violet-200,html[data-theme="light"] body.v7-public .text-violet-300{color:#6d28d9!important}
html[data-theme="light"] body.v7-public .text-purple-200,html[data-theme="light"] body.v7-public .text-purple-300{color:#7e22ce!important}
html[data-theme="light"] body.v7-public .text-blue-200,html[data-theme="light"] body.v7-public .text-blue-300{color:#1d4ed8!important}
html[data-theme="light"] body.v7-public .text-emerald-300{color:#047857!important}
html[data-theme="light"] body.v7-public .hero-pill-card p,html[data-theme="light"] body.v7-public .hero-float-layer p{color:#334155!important}
/* 2. Seasonal badge: cream text on amber was unreadable in light */
html[data-theme="light"] .seasonal-hero-badge{color:#92400e!important;background:linear-gradient(135deg,#fef3c7,#fae8ff)!important;border-color:#f59e0b!important}
/* 3. Demo "Tachar": slate block looked like a disabled button in light */
html[data-theme="light"] .demo-strike{background:#fff!important;border-color:#cbd5e1!important;color:#475569!important}
.demo-strike:hover{border-color:#818cf8;color:#6366f1}
/* 4. Heavy dark section borders in light mode */
html[data-theme="light"] body.v7-public section.border-t,html[data-theme="light"] body.v7-public footer.border-t{border-color:#e2e8f0!important}
/* 5. Brand icon in footer was dimmed to 50% */
footer .opacity-50{opacity:1!important}
/* 6. Mobile: hero CTA fits one line, legal links don't squeeze */
@media (max-width:480px){
 .hero-landing-section a[href="planes.html"]>span{padding-inline:0}
 .hero-landing-section a[href="planes.html"] span{font-size:.95rem;white-space:nowrap}
 .landing-legal{flex-wrap:wrap;row-gap:.5rem;padding-inline:1rem}
 .landing-legal a{white-space:nowrap}
 .landing-legal>span{display:none}
 footer p{text-align:center}
}
/* 7. Career cards: chips + "Probar demo" wrap together instead of stacking chips */
.career-foot{flex-wrap:wrap}
.career-foot>div{flex-wrap:nowrap!important}
@media (prefers-reduced-motion:reduce){.hero-float-layer *{animation:none!important}}
/* 8. Iconos en línea (sprite local; reemplaza lucide desde unpkg) */
.ico{width:1em;height:1em;display:inline-block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.125em}
/* 9. Chip del hero hacia Novedades */
.hero-new-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font-size:13px;font-weight:650;text-decoration:none;transition:border-color .2s var(--ease-out),transform .2s var(--ease-out)}
.hero-new-chip b{color:var(--accent-ink);font-weight:800}
.hero-new-chip:hover{border-color:var(--brand-600);transform:translateY(-1px)}
.hero-new-chip .dot{position:relative;width:8px;height:8px;border-radius:50%;background:#10b981}
.hero-new-chip .dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgb(16 185 129/.45);animation:nvPing 2.4s var(--ease-out) infinite}
@keyframes nvPing{0%{transform:scale(1);opacity:1}70%,100%{transform:scale(3);opacity:0}}
/* 10. Novedades */
.nv{padding:88px 20px 72px}
.nv-in{max-width:1120px;margin:0 auto}
.nv-head{max-width:640px;margin-bottom:48px}
.nv-head h2{font-family:var(--f-display);font-size:clamp(30px,4.6vw,48px);line-height:1.05;letter-spacing:-.025em;font-weight:750;color:var(--ink);margin:0 0 12px}
.nv-head p{color:var(--ink-2);font-size:17px;line-height:1.55;margin:0}
.nv-rows{display:flex;flex-direction:column;gap:72px}
.nv-row{display:grid;gap:24px;align-items:center}
@media (min-width:900px){
 .nv-row{grid-template-columns:1.15fr .85fr;gap:56px}
 .nv-row.is-flip .nv-shot{order:2}
}
html[data-landing-career="medicina"] .nv-row[data-for="medicina"],html[data-landing-career="odontologia"] .nv-row[data-for="odontologia"]{order:-1}
.nv-shot{position:relative;margin:0;border-radius:16px;border:1px solid var(--line-strong);background:var(--surface-2);box-shadow:0 8px 8px -6px rgb(20 20 31/.14);overflow:hidden;transform:perspective(1200px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .5s var(--ease-out);will-change:transform}
.nv-shot img{display:block;width:100%;height:auto;aspect-ratio:16/10}
html[data-theme="dark"] .nv-shot .is-light,html:not([data-theme="dark"]) .nv-shot .is-dark{display:none}
.nv-shot figcaption{position:absolute;right:10px;bottom:8px;font-size:11px;color:#e2e8f0;background:rgb(12 12 20/.6);padding:3px 8px;border-radius:6px}
.nv-chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:5px 11px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);border:1px solid var(--line)}
.nv-chip.is-odo{background:#f3e8ff;color:#6b21a8;border-color:#e9d5ff}
.nv-chip.is-med{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}
html[data-theme="dark"] .nv-chip.is-odo{background:#2e1065;color:#e9d5ff;border-color:#4c1d95}
html[data-theme="dark"] .nv-chip.is-med{background:#172554;color:#bfdbfe;border-color:#1e3a8a}
.nv-copy h3{font-family:var(--f-display);font-size:clamp(24px,2.6vw,32px);line-height:1.12;letter-spacing:-.02em;font-weight:720;color:var(--ink);margin:14px 0 12px}
.nv-copy p{color:var(--ink-2);font-size:16px;line-height:1.6;margin:0 0 12px;max-width:52ch}
.nv-copy .nv-note{font-size:14px;color:var(--ink-3)}
.nv-list{list-style:none;margin:16px 0;padding:0;display:grid;gap:8px;max-width:52ch}
.nv-list li{position:relative;padding-left:22px;color:var(--ink-2);font-size:15px;line-height:1.5}
.nv-list li::before{content:"";position:absolute;left:3px;top:.5em;width:9px;height:9px;border-radius:3px;background:var(--grad-brand)}
.nv-list b{color:var(--ink);font-weight:750}
.nv-forceps{list-style:none;margin:16px 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:340px}
.nv-forceps li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.nv-forceps img{width:auto;height:84px;transition:transform .35s var(--ease-out)}
.nv-forceps li:hover img{transform:translateY(-4px) rotate(-4deg)}
.nv-forceps span{font:700 12px var(--f-num);color:var(--ink-2)}
.nv-xmas{display:none}
body.theme-navidad .nv-xmas{display:block}
/* Trazo de ECG que barre la parte de arriba de la captura de CardioPraxis */
.nv-shot.is-cp{padding-top:40px;background:#0b1020}
.nv-ecg{position:absolute;left:0;right:0;top:0;height:40px;width:100%;pointer-events:none;border-bottom:1px solid #1f2937}
.nv-ecg path{fill:none;stroke:#22c55e;stroke-width:2.2;stroke-linejoin:round;stroke-dasharray:.18 .82;stroke-dashoffset:1;filter:drop-shadow(0 0 3px rgb(34 197 94/.6));animation:nvEcg 3.2s linear infinite}
@keyframes nvEcg{to{stroke-dashoffset:0}}
html.nv-js .nv-row:not(.is-in) .nv-ecg path{animation-play-state:paused}
/* Entrada al hacer scroll (solo si JS marcó la página) */
html.nv-js .nv-row{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}
html.nv-js .nv-row.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
 .hero-new-chip .dot::after,.nv-ecg path{animation:none}
 .hero-new-chip .dot::after{display:none}
 .nv-ecg path{stroke-dasharray:none}
 html.nv-js .nv-row{opacity:1;transform:none;transition:none}
 .nv-shot,.nv-forceps img{transition:none;transform:none}
}
@media (max-width:480px){.nv{padding:64px 16px 56px}.nv-rows{gap:56px}.nv-head{margin-bottom:32px}}
/* 11. Portada: tipografía Praxis, captura real y navegación visible */
.landing-shell{width:min(1240px,calc(100% - 64px));margin-inline:auto}
html.v7 body.v7-public nav.landing-nav{display:block!important;position:sticky;top:0;z-index:60;border-bottom:1px solid var(--line)}
.landing-nav .nav-in{height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.nav-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;color:var(--ink);text-decoration:none;letter-spacing:-.04em}
.nav-brand img{width:34px;height:34px;border-radius:10px}
.nav-brand span span{color:var(--accent-ink)}
.nav-links{display:flex;align-items:center;gap:24px;font-size:14px;color:var(--ink-2);font-weight:600}
.nav-links a:hover{color:var(--accent-ink)}
.nav-actions{display:flex;align-items:center;gap:12px}
.nav-login{font-size:14px;font-weight:650;padding:12px 4px}
.nav-actions .landing-btn{min-height:40px;padding:0 16px;font-size:13px;border-radius:10px}
.theme-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;color:var(--ink-2);background:var(--surface);cursor:pointer;font-size:18px}
.theme-button .ico{width:18px;height:18px}
.theme-button:hover{background:var(--surface-2)}
.theme-button .theme-dark-icon{display:none}
html[data-theme="dark"] .theme-button .theme-light-icon{display:none}
html[data-theme="dark"] .theme-button .theme-dark-icon{display:block}
.nav-mobile-button{display:none;min-width:44px;min-height:44px;align-items:center;justify-content:center;font-size:22px;border:1px solid var(--line);border-radius:10px}
html.v7 body.v7-public .landing-hero{padding:82px 0 0!important;min-height:0;overflow:clip}
.hero-layout{display:grid;grid-template-columns:.96fr 1.04fr;gap:50px;align-items:center;padding-bottom:64px;min-height:646px}
.hero-copy{min-width:0}
/* Fuera del flujo, en el padding del hero: al aparecer tarde (Firestore) no empuja el título (CLS). */
.hero-copy{position:relative}
.hero-copy .seasonal-hero-wrap{position:absolute;left:0;bottom:calc(100% + 10px);display:flex;justify-content:flex-start;margin:0;min-height:0}
.hero-copy .seasonal-hero-wrap:has(.hidden){display:none}
.hero-copy .seasonal-hero-badge{font-size:11px;line-height:1.4}
.hero-copy .hero-new-chip{font-size:12px;gap:8px;margin-bottom:20px;background:var(--surface);max-width:100%;line-height:1.4}
.hero-copy .hero-new-chip .ico{width:14px;height:14px}
.hero-copy h1{font-family:var(--f-display);font-weight:750;font-size:clamp(40px,4.1vw,60px);line-height:1.03;letter-spacing:-.045em;color:var(--ink);margin:0 0 22px;max-width:560px;text-wrap:balance}
.hero-copy .hero-lead{font-size:17px;line-height:1.65;color:var(--ink-2);max-width:510px;margin:0 0 26px;text-wrap:pretty}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.landing-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;min-height:50px;border-radius:12px;font-size:15px;font-weight:700;text-decoration:none;transition:transform .2s var(--ease-out),background-color .2s,border-color .2s;line-height:1.3}
.landing-btn.is-primary{background:var(--grad-brand);color:#fff;border:1px solid transparent}
.landing-btn.is-primary:hover{transform:translateY(-2px)}
.landing-btn.is-secondary{color:var(--ink);background:var(--surface);border:1px solid var(--line-strong)}
.landing-btn.is-secondary:hover{border-color:var(--accent-ink);transform:translateY(-2px)}
.hero-fine{font-size:12px;color:var(--ink-3);margin-top:12px}
.hero-fine a{color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.hero-copy .career-pick{align-items:flex-start;margin:25px 0 0;gap:9px}
.hero-copy .career-pick-label{font-size:12px}
.hero-copy .career-seg{max-width:360px;border-radius:12px}
.hero-copy .career-seg-btn{min-height:40px;font-size:14px;border-radius:8px}
.hero-copy .career-exams{justify-content:flex-start;gap:6px}
.hero-copy .career-exams a{font-size:12px;min-height:36px;padding:6px 10px}
.hero-copy .career-hint{font-size:12px}
.hero-product{min-width:0;perspective:1200px}
.hero-atlas{margin:0;background:var(--surface);border-radius:16px;overflow:hidden;border:1px solid var(--line-strong);transform:rotateY(-5deg) rotateX(2deg);transition:transform .5s var(--ease-out)}
.hero-product:hover .hero-atlas{transform:rotateY(0) rotateX(0)}
.hero-atlas-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 16px;font-size:12px;color:var(--ink-2)}
.hero-atlas-bar>span:first-child{display:flex;align-items:center;gap:7px;font-weight:700;color:var(--ink)}
.hero-atlas-bar img{border-radius:6px}
.hero-atlas-bar>span:last-child{font-size:11px;color:var(--accent-ink);border:1px solid var(--line);border-radius:99px;padding:3px 8px}
.hero-atlas-image{aspect-ratio:16/10;overflow:hidden;position:relative;background:var(--bg)}
.hero-atlas-image img{width:100%;height:auto;display:block;aspect-ratio:16/10}
html[data-theme="dark"] .hero-atlas .is-light,html:not([data-theme="dark"]) .hero-atlas .is-dark{display:none}
.hero-atlas figcaption{display:flex;align-items:center;gap:16px;padding:18px 18px;color:var(--ink-2);font-size:13px;line-height:1.5;border-top:1px solid var(--line)}
.hero-atlas figcaption b{display:block;font-size:14px;font-weight:650;color:var(--ink)}
.hero-atlas figcaption a{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border:1px solid var(--line-strong);color:var(--accent-ink);border-radius:50%;margin-left:auto;font-size:17px}
.hero-product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--ink-3);margin:14px 12px 0}
.hero-product-foot>span:first-child{display:flex;align-items:center;gap:6px}
.hero-product-foot .ico{width:14px;height:14px}
.hero-jump-links{display:grid;grid-template-columns:.9fr 1fr 1.3fr 1fr 1.1fr;border-top:1px solid var(--line);padding-block:22px;align-items:center;gap:20px}
.hero-jump-links>p{font-size:13px;font-weight:650;color:var(--ink-2)}
.hero-jump-links>a{font-size:13px;font-weight:700;color:var(--ink);display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;padding:5px 0}
.hero-jump-links>a span{font-weight:500;font-size:11px;color:var(--ink-3);grid-column:1/-1}
.hero-jump-links>a .ico{width:14px;height:14px;color:var(--accent-ink);transition:transform .2s var(--ease-out)}
.hero-jump-links>a:hover .ico{transform:translateX(4px)}
html{scroll-padding-top:110px}
.nv-copy h3{scroll-margin-top:130px}
/* 12. Herramientas en lista */
.landing-tools{padding:88px 0;border-block:1px solid var(--line);background:var(--surface)}
.tools-layout{display:grid;grid-template-columns:1fr 1.4fr;gap:100px;align-items:start}
.tools-layout>header{position:sticky;top:130px}
.tools-layout h2{font-family:var(--f-display);font-size:clamp(30px,3.5vw,44px);line-height:1.07;letter-spacing:-.03em;font-weight:750;color:var(--ink);margin:0 0 18px;max-width:12ch}
.tools-layout>header p{font-size:17px;line-height:1.6;color:var(--ink-2);max-width:30ch;margin:0 0 20px}
.landing-text-link{display:inline-flex;align-items:center;gap:10px;color:var(--accent-ink);font-size:14px;font-weight:650;padding:8px 0}
.tools-list article{display:flex;align-items:start;gap:20px;padding:22px 0;border-top:1px solid var(--line)}
.tools-list article:first-child{padding-top:0;border-top:0}
.tools-list .ico{width:22px;height:22px;color:var(--accent-ink);margin-top:2px}
.tools-list h3{font-size:18px;font-weight:650;color:var(--ink);margin:0 0 6px;letter-spacing:-.015em}
.tools-list p{font-size:15px;line-height:1.6;color:var(--ink-2);margin:0;max-width:53ch}
/* Contraste de botones heredados */
body.v7-public .landing-btn.is-primary,body.v7-public .landing-btn.is-primary *{color:#fff!important}
/* La nieve y la guirnalda siguen obedeciendo al administrador. */
body.theme-navidad .hero-landing-section::before{inset:0;opacity:.3}
body.theme-navidad.v7-public .hero-landing-section+.eg-promo::before{display:none}
@media (max-width:1100px){.nav-links{gap:16px}.nav-links a:nth-child(3){display:none}.hero-layout{gap:28px}.hero-copy h1{font-size:48px}.hero-copy .hero-lead{font-size:16px}.hero-actions .landing-btn{padding-inline:16px;font-size:14px}.tools-layout{gap:60px}}
@media (max-width:899px){
 .landing-shell{width:calc(100% - 40px)}
 .nav-links{display:none}
 .nav-mobile-button{display:inline-flex}
 .nav-login{display:none}
 .nav-actions .landing-btn{display:none}
 html.v7 body.v7-public .landing-hero{padding-top:72px!important}
 .hero-layout{grid-template-columns:1fr;gap:36px;max-width:640px;padding-bottom:36px;min-height:0}
 .hero-copy h1{font-size:clamp(40px,7vw,56px);max-width:600px}
 .hero-copy .hero-lead{max-width:600px}
 .hero-product{width:100%;max-width:640px}
 .hero-atlas{transform:none}
 .hero-jump-links{grid-template-columns:1fr 1fr;gap:12px 24px;padding-block:22px;max-width:640px}
 .hero-jump-links>p{grid-column:1/-1}
 .hero-jump-links>a{padding-block:8px}
 .tools-layout{grid-template-columns:1fr;gap:32px}
 .tools-layout>header{position:static}
 .tools-layout h2{max-width:20ch}
 .tools-layout>header p{max-width:50ch}
 .landing-tools{padding:60px 0}
 .nv-head p{font-size:16px}
}
@media (max-width:480px){
 .landing-shell{width:calc(100% - 32px)}
 .landing-nav .nav-in{height:68px;gap:12px}
 .nav-brand{font-size:21px}
 .nav-brand img{width:32px;height:32px}
 .nav-actions{gap:8px}
 .nav-mobile-button,.theme-button{width:40px;height:40px;min-width:40px;min-height:40px}
 body.theme-navidad .christmas-lights.is-landing-garland{top:68px}
 html.v7 body.v7-public .landing-hero{padding-top:74px!important}
 .hero-copy .hero-new-chip{font-size:11px;padding:6px 10px;gap:7px}
 .hero-copy .hero-new-chip .ico{display:none}
 .hero-copy h1{font-size:44px;line-height:1.03;letter-spacing:-.035em;margin-bottom:18px}
 .hero-copy .hero-lead{font-size:15px;line-height:1.65;margin-bottom:22px}
 .hero-actions{gap:8px}
 .hero-actions .landing-btn{font-size:13px;min-height:46px;padding-inline:13px}
 .hero-copy .career-pick{margin-top:24px}
 .hero-atlas-bar{padding:10px 12px}
 .hero-atlas figcaption{padding:14px;font-size:12px;gap:8px}
 .hero-atlas figcaption b{font-size:12px}
 .hero-product-foot{font-size:9px;margin:12px 0 0}
 .hero-jump-links{gap:8px 18px}
 .hero-jump-links>a{font-size:12px;gap:4px}
 .hero-jump-links>a .ico{width:12px;height:12px}
 .nv-copy p{font-size:15px}
 .nv-row{gap:20px}
 .tools-list article{gap:14px}
 .tools-list h3{font-size:17px}
}
@media (max-width:350px){.hero-copy h1{font-size:38px}.hero-actions{flex-direction:column}.hero-actions .landing-btn{width:100%}.hero-jump-links>a{font-size:11px}}
/* Solo la captura entra con movimiento; el título no se oculta para no retrasar el LCP. */
@media (prefers-reduced-motion:no-preference){
 .hero-product{animation:landingEnter .8s .1s var(--ease-out) both}
 @keyframes landingEnter{from{transform:translateY(16px) scale(.985)}to{transform:none}}
}
@media (prefers-reduced-motion:reduce){.hero-atlas,.landing-btn,.hero-jump-links>a .ico{transition:none;transform:none!important}}
.landing-skip{position:fixed;top:8px;left:12px;z-index:1000;transform:translateY(-160%);padding:12px 18px;border-radius:10px;background:var(--brand-600);color:#fff;font-weight:700}
.landing-skip:focus{transform:none}
#mobile-menu{top:100%}
@media (min-width:900px){#mobile-menu{display:none!important}}
/* Planes: la etiqueta y "MXN / sem" no se salen ni se parten en tablet */
.plan-flag{width:max-content;max-width:calc(100% - 20px);white-space:normal!important;text-align:center;line-height:1.35}
.plan-price span{white-space:nowrap}
#planes{scroll-margin-top:96px}
