/* ==========================================================================
   Fase 52C · Páginas de TVCI (host principal) y acceso.
   Fase 52F · Rediseño ejecutivo: más contraste y profundidad, acentos refinados, animaciones 100 % CSS + JS externo (CSP enforce),
   login con atmósfera animada. Usa solo los tokens de tvci-themes.css: funciona con los 4 temas (sin selectores de tema aquí).
   Los bloques ocultos hasta el scroll solo existen cuando el JS marca <html class="tp-js">; sin JS todo se ve.
   ========================================================================== */
.tp-site, .tp-auth { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.tp-site { display: flex; flex-direction: column; font-size: 15px; line-height: 1.6; }
.tp-site main { flex: 1; }
.tp-site a:not(.btn), .tp-link { color: var(--accent); }
.tp-site a:focus-visible, .tp-auth a:focus-visible, .tp-pass__eye:focus-visible, .tp-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.tp-skip { position: absolute; left: -9999px; }
.tp-skip:focus { left: 12px; top: 12px; z-index: 60; padding: 10px 14px; background: var(--surface); }
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tp-btn-lg.btn { position: relative; overflow: hidden; min-height: 46px; height: auto; padding: 10px 18px; justify-content: center; text-align: center; font-size: 14.5px; transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease; }
.tp-btn-lg.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px var(--accent); }
.tp-btn-lg.btn:active { transform: translateY(0); box-shadow: none; }
.tp-btn-lg.btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.tp-btn-lg.btn--primary:hover::after { animation: tp-sheen .9s ease; }
.tp-btn-lg .ic { transition: transform .2s ease; }
.tp-btn-lg:hover .ic { transform: translateX(2px); }

/* Cabecera: nunca parte la marca ni el botón; las secciones se deslizan en una sola fila. */
.tp-top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg-2) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 22%, transparent); }
.tp-top__in { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; grid-template-areas: "brand nav login"; align-items: center; column-gap: 24px; min-height: 68px; }
.tp-brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; text-decoration: none; }
.tp-site a.tp-brand, .tp-auth a.tp-brand { color: var(--text); }
.tp-brand__mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--btn-bg), color-mix(in srgb, var(--accent-2) 70%, var(--btn-bg))); color: var(--btn-text); box-shadow: 0 8px 18px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s ease; }
a.tp-brand:hover .tp-brand__mark { transform: rotate(-6deg) scale(1.05); }
.tp-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tp-brand__text b, .tp-brand__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-brand__text small { color: var(--muted); font-size: 12px; }
.tp-nav { grid-area: nav; display: flex; justify-content: flex-end; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tp-nav::-webkit-scrollbar { display: none; }
.tp-site .tp-nav a { position: relative; display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.tp-site .tp-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.tp-site .tp-nav a:hover, .tp-site .tp-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.tp-site .tp-nav a:hover::after, .tp-site .tp-nav a[aria-current="page"]::after { transform: scaleX(1); }
.tp-top__login.btn { grid-area: login; white-space: nowrap; text-decoration: none; min-height: 40px; height: auto; }

/* Portada · hero con malla de luz animada */
.tp-hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 60px; border-bottom: 1px solid var(--border); }
.tp-hero::before, .tp-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.tp-hero::before { width: 560px; height: 560px; left: -140px; top: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%); animation: tp-drift 16s ease-in-out infinite alternate; }
.tp-hero::after { width: 520px; height: 520px; right: -120px; bottom: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 68%); animation: tp-drift 20s ease-in-out infinite alternate-reverse; }
.tp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 44px; align-items: center; }
.tp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-strong)); border-radius: 999px; background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: 12.5px; letter-spacing: .02em; color: var(--text); }
.tp-eyebrow .ic { color: var(--accent); }
.tp-site h1 { margin: 0 0 14px; font: var(--display-weight) clamp(28px, 4.4vw, 48px)/1.12 var(--font-display); letter-spacing: -.02em; }
.tp-hero h1 { background: linear-gradient(120deg, var(--text) 30%, color-mix(in srgb, var(--accent) 75%, var(--text)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-site h2 { margin: 28px 0 10px; font: var(--display-weight) clamp(20px, 2.5vw, 28px)/1.25 var(--font-display); letter-spacing: -.01em; }
.tp-site h3 { margin: 12px 0 6px; font-size: 16.5px; }
.tp-lead { margin: 0 0 24px; max-width: 62ch; color: var(--muted); font-size: 16.5px; }
.tp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-cta .btn { text-decoration: none; }
.tp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.tp-trust li { display: inline-flex; align-items: center; gap: 6px; }
.tp-trust .ic { color: var(--good); }

/* «Así avanza un pedido»: línea de flujo que recorre los cuatro pasos */
.tp-flow { position: relative; padding: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 20px; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.tp-flow::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .85; }
.tp-flow__title { margin: 0 0 14px; font-weight: 600; letter-spacing: .01em; }
.tp-flow ol { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tp-flow ol::before { content: ""; position: absolute; left: 16px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--border-strong); }
.tp-flow ol::after { content: ""; position: absolute; left: 14px; top: 8px; width: 6px; height: 34px; border-radius: 6px; background: linear-gradient(180deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px var(--accent); animation: tp-flow-run 5.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.tp-flow li { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.tp-flow li div { display: flex; flex-direction: column; }
.tp-flow small { color: var(--muted); font-size: 13px; }
.tp-flow__ic { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border-strong)); background: var(--surface-2); color: var(--accent); animation: tp-step 5.2s ease-in-out infinite; }
.tp-flow li:nth-child(2) .tp-flow__ic { animation-delay: 1.3s; }
.tp-flow li:nth-child(3) .tp-flow__ic { animation-delay: 2.6s; }
.tp-flow li:nth-child(4) .tp-flow__ic { animation-delay: 3.9s; }

.tp-section { padding: 44px 0 56px; }
.tp-section--alt { background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 88%, var(--accent))); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.tp-site .tp-section h2:first-child { margin-top: 0; }
.tp-kicker { margin: 0 0 6px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tp-grid4, .tp-grid3, .tp-plans { display: grid; gap: 18px; }
.tp-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.tp-grid3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tp-card { position: relative; min-width: 0; padding: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--accent)), var(--surface) 42%); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 22px 40px -30px rgba(0, 0, 0, .8); transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease; }
.tp-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .3s ease; }
.tp-card--flat { box-shadow: none; }
.tp-site .tp-card--flat h3 { margin-top: 0; }
.tp-card h3 { display: flex; align-items: center; gap: 8px; }
.tp-card p { margin: 0 0 8px; color: var(--muted); }
.tp-card__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--accent); transition: transform .3s ease; }
.tp-grid4 .tp-card:hover, .tp-grid3 .tp-card:hover, .tp-plan:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 34px 50px -32px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.tp-grid4 .tp-card:hover::before, .tp-grid3 .tp-card:hover::before, .tp-plan:hover::before { opacity: 1; }
.tp-grid4 .tp-card:hover .tp-card__ic { transform: scale(1.08) rotate(-4deg); }
.tp-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 32px; border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border)); border-radius: 22px; background: radial-gradient(520px 200px at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .85); }
.tp-site .tp-band h2 { margin-top: 0; }
.tp-band p { margin: 0; color: var(--muted); }

/* Planes */
.tp-head { margin-bottom: 26px; }
.tp-plans { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.tp-plan { display: flex; flex-direction: column; }
.tp-site .tp-plan h2 { margin: 0 0 4px; }
.tp-plan__price b { font: var(--display-weight) 32px var(--font-display); color: var(--text); letter-spacing: -.02em; }
.tp-plan__price span { color: var(--muted); }
.tp-list { flex: 1; display: grid; align-content: start; gap: 8px; margin: 10px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--border); list-style: none; }
.tp-list li { display: flex; align-items: flex-start; gap: 8px; }
.tp-list .ic { margin-top: 5px; color: var(--good); }
.tp-plan .btn { text-decoration: none; }
.tp-plan__login { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; font-size: 13.5px; }
.tp-flex { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.tp-site .tp-flex h2 { margin-top: 0; }
.tp-flex > div:first-child { flex: 1 1 420px; min-width: 0; }
.tp-flex__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-flex__cta .btn { text-decoration: none; }
.tp-site .tp-subtitle { margin-bottom: 8px; }
.tp-hint { display: none; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.tp-table { position: relative; max-width: 100%; overflow-x: auto; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 44px -34px rgba(0, 0, 0, .85); }
.tp-table table { width: 100%; min-width: 620px; border-collapse: collapse; }
.tp-table th, .tp-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.tp-table thead th { background: color-mix(in srgb, var(--surface-2) 90%, var(--accent)); }
.tp-table th:first-child { position: sticky; left: 0; z-index: 1; width: 210px; text-align: left; font-weight: 500; background: var(--surface-2); }
.tp-table tbody tr { transition: background .2s ease; }
.tp-table tbody tr:hover > * { background: color-mix(in srgb, var(--surface-2) 86%, var(--accent)); }
.tp-table tbody tr:last-child > * { border-bottom: 0; }
.tp-yes { display: inline-flex; color: var(--good); }
.tp-no { color: var(--muted); font-size: 12.5px; }
.tp-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

/* Documentos y formularios */
.tp-doc { max-width: 860px; }
.tp-doc li { margin-bottom: 6px; }
.tp-site .tp-doc > .tp-grid3 h2 { margin: 12px 0 4px; font-size: 17px; }
.tp-updated { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.tp-holder { display: grid; margin: 0 0 8px; border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tp-holder > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.tp-holder > div:last-child { border-bottom: 0; }
.tp-holder dt { color: var(--muted); font-size: 13px; }
.tp-holder dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tp-receipt .btn { margin-top: 12px; }
.tp-pre { white-space: pre-line; }
.tp-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-strong)); border-left-width: 3px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.tp-notice p { margin: 0; }
.tp-form { display: flex; flex-direction: column; gap: 14px; }
.tp-site .tp-form h2 { margin: 10px 0 0; font-size: 18px; }
.tp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-field[hidden] { display: none; }
.tp-field--full { grid-column: 1 / -1; }
.tp-field > span, .tp-field > label { color: var(--muted); font-size: 13px; font-weight: 500; }
.tp-field input, .tp-field select, .tp-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.tp-field textarea { resize: vertical; }
.tp-field input:hover, .tp-field select:hover, .tp-field textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); }
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 22px -4px var(--accent); }
.tp-check { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.tp-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.tp-hint2 { margin: -4px 0 0; font-size: 13px; }
.tp-card p.tp-hint2, .tp-form .tp-hint2 { color: var(--muted); }
.tp-types { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.tp-types label { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.tp-types label:hover { border-color: var(--accent); background: var(--accent-soft); }
.tp-types input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.tp-types span { display: flex; flex-direction: column; }
.tp-types small { color: var(--muted); }
.tp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.tp-foot { padding: 36px 0 22px; background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 90%, var(--accent))); border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); font-size: 13.5px; }
.tp-foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.tp-foot p { margin: 4px 0; color: var(--muted); }
.tp-foot nav { display: flex; flex-direction: column; align-items: flex-start; }
.tp-site .tp-foot nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--muted); text-decoration: none; transition: color .2s ease, transform .2s ease; }
.tp-site .tp-foot nav a:hover { color: var(--text); transform: translateX(3px); }
.tp-site .tp-foot nav a.tp-foot__book { color: var(--text); }
.tp-foot .tp-foot__copy { margin: 18px auto 0; font-size: 12px; }

/* ───────── Acceso (login y recuperación) ───────── */
.tp-auth { position: relative; isolation: isolate; overflow-x: hidden; }
.tp-auth__bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
    radial-gradient(640px circle at var(--mx, 62%) var(--my, 26%), color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%),
    radial-gradient(1000px 560px at -8% 108%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--bg) 92%, #000) 0%, var(--bg) 52%, color-mix(in srgb, var(--bg-2) 86%, var(--accent-2)) 100%); }
.tp-auth__bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 40% 35%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse at 40% 35%, #000 10%, transparent 72%); animation: tp-grid 40s linear infinite; }
.tp-auth__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.tp-auth__orb--a { width: 420px; height: 420px; left: -90px; top: -110px; background: color-mix(in srgb, var(--accent) 40%, transparent); animation: tp-drift 15s ease-in-out infinite alternate; }
.tp-auth__orb--b { width: 380px; height: 380px; right: -80px; top: 36%; background: color-mix(in srgb, var(--accent-2) 38%, transparent); animation: tp-drift 19s ease-in-out infinite alternate-reverse; }
.tp-auth__orb--c { width: 300px; height: 300px; left: 34%; bottom: -150px; background: color-mix(in srgb, var(--accent) 22%, transparent); animation: tp-drift 23s ease-in-out infinite alternate; }

.tp-auth__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 440px); grid-template-rows: auto auto 1fr auto; grid-template-areas: "top top" "intro side" "features side" "foot foot"; column-gap: 64px; width: 100%; max-width: 1180px; min-height: 100vh; margin: 0 auto; padding: 22px 32px 18px; }
.tp-auth__top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding-bottom: 10px; }
.tp-auth__back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.tp-auth__back:hover { transform: translateX(-3px); border-color: var(--accent); background: var(--accent-soft); }
.tp-auth__back .ic { color: var(--accent); }
.tp-auth__top .tp-brand { grid-area: auto; }
.tp-auth__intro { grid-area: intro; align-self: start; min-width: 0; padding: 22px 0 8px; }
.tp-auth__side { grid-area: side; align-self: start; min-width: 0; padding: 22px 0 16px; }
.tp-auth__features { grid-area: features; align-self: start; min-width: 0; padding-bottom: 12px; }
.tp-auth__foot { grid-area: foot; text-align: center; font-size: 12px; color: var(--muted); }
.tp-auth__foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.tp-auth__foot a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; color: var(--text); font-size: 13px; text-decoration: none; opacity: .85; transition: opacity .2s ease, color .2s ease; }
.tp-auth__foot a:hover { opacity: 1; color: var(--accent); }
.tp-auth__foot p { margin: 6px 0 0; }
.tp-auth__rule { width: 56px; height: 3px; margin: 0 0 18px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff)); box-shadow: 0 0 16px var(--accent); }
.tp-auth__headline { margin: 0 0 12px; font: var(--display-weight) clamp(26px, 3.6vw, 44px)/1.12 var(--font-display); letter-spacing: -.02em; }
.tp-auth__headline em { font-style: normal; color: var(--accent); text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.tp-auth__lead { margin: 0 0 22px; max-width: 46ch; color: var(--muted); font-size: 16px; }
.tp-auth__features ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; max-width: 600px; }
.tp-auth__features li { display: flex; gap: 12px; min-width: 0; padding: 14px; background: color-mix(in srgb, var(--surface) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); border-radius: 14px; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.tp-auth__features li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.tp-auth__features li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-auth__features b { font-size: 13.5px; }
.tp-auth__features small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Tarjeta de acceso: halo vivo + borde luminoso; se intensifica al escribir. */
.tp-auth__glow { position: relative; isolation: isolate; border-radius: 24px; }
.tp-auth__glow::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--tp-ang, 0deg), var(--accent), transparent 28%, var(--accent-2) 52%, transparent 76%, var(--accent)); filter: blur(16px); opacity: .42; transition: opacity .35s ease; animation: tp-breathe 6s ease-in-out infinite, tp-spin 14s linear infinite; }
.tp-auth__glow:focus-within::before { animation: tp-spin 14s linear infinite; opacity: .75; }
.tp-auth__card { position: relative; padding: 32px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--accent)), var(--surface) 38%); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border-strong)); border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06) inset; overflow: hidden; }
.tp-auth__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), color-mix(in srgb, var(--accent) 45%, #fff), var(--accent), transparent); background-size: 200% 100%; animation: tp-line 5s linear infinite; }
.tp-auth__card h1 { margin: 0 0 4px; font: var(--display-weight) 27px/1.2 var(--font-display); letter-spacing: -.01em; }
.tp-auth__sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.tp-auth__company { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.tp-auth__company > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tp-auth__company small { color: var(--muted); font-size: 12px; }
.tp-auth__initial { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--btn-bg), color-mix(in srgb, var(--accent-2) 70%, var(--btn-bg))); color: var(--btn-text); font-weight: 700; }
.tp-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.tp-auth__row .tp-check { align-items: center; }
.tp-auth__row .tp-check input { margin: 0; }
.tp-auth__row a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13.5px; }
.tp-auth__alt { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.tp-auth__home { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin: 6px 0 0; font-size: 13.5px; }
.tp-auth__home a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.tp-auth__home a:hover { color: var(--accent); }
.tp-auth__home .ic { color: var(--accent); }
.tp-pass { position: relative; }
.tp-field .tp-pass input { padding-right: 52px; }
.tp-pass__eye { position: absolute; top: 0; right: 0; bottom: 0; display: grid; place-items: center; width: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s ease; }
.tp-pass__eye[hidden] { display: none; }
.tp-pass__eye:hover { color: var(--text); }
.tp-pass__eye span { display: inline-flex; }
.tp-pass__eye .tp-pass__hide, .tp-pass__eye[aria-pressed="true"] .tp-pass__show { display: none; }
.tp-pass__eye[aria-pressed="true"] .tp-pass__hide { display: inline-flex; }

/* Entrada escalonada (página al cargar) y revelado al hacer scroll */
.tp-rise { animation: tp-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.tp-rise--2 { animation-delay: .12s; }
.tp-rise--3 { animation-delay: .24s; }
.tp-rise--4 { animation-delay: .36s; }
.tp-js .tp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--tp-i, 0) * 90ms); }
.tp-js .tp-reveal.is-in { opacity: 1; transform: none; }
.tp-js .tp-reveal.is-in.tp-card:hover { transform: translateY(-5px); transition-delay: 0s; }
.tp-auth__features li, .tp-auth__card .tp-field, .tp-auth__card .tp-auth__row, .tp-auth__card .btn--primary { animation: tp-rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.tp-auth__features li:nth-child(1) { animation-delay: .35s; }
.tp-auth__features li:nth-child(2) { animation-delay: .43s; }
.tp-auth__features li:nth-child(3) { animation-delay: .51s; }
.tp-auth__features li:nth-child(4) { animation-delay: .59s; }
.tp-auth__card .tp-field:nth-of-type(1) { animation-delay: .3s; }
.tp-auth__card .tp-field:nth-of-type(2) { animation-delay: .38s; }
.tp-auth__card .tp-auth__row { animation-delay: .46s; }
.tp-auth__card .btn--primary { animation-delay: .54s; }

@property --tp-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tp-breathe { 0%, 100% { opacity: .3; } 50% { opacity: .5; } }
@keyframes tp-spin { to { --tp-ang: 360deg; } }
@keyframes tp-line { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes tp-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, 46px, 0) scale(1.14); } }
@keyframes tp-grid { to { background-position: 56px 56px, 56px 56px; } }
@keyframes tp-sheen { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
@keyframes tp-flow-run { 0% { top: 4px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 38px); opacity: 0; } }
@keyframes tp-step { 0%, 24%, 100% { box-shadow: none; background: var(--surface-2); } 8% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px -2px var(--accent); background: var(--accent-soft); } }

/* Tablet y celular: dedos y sin zoom al escribir */
@media (max-width: 1024px) {
    .tp-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .tp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-field input, .tp-field select, .tp-field textarea { font-size: 16px; min-height: 46px; }
    .tp-check { min-height: 44px; align-items: center; }
    .tp-check input { width: 20px; height: 20px; margin: 0; }
    .tp-site .tp-nav a, .tp-top__login.btn, .tp-auth__foot a, .tp-auth__row a, .tp-site .tp-foot nav a, .tp-auth__back, .tp-auth__home a { min-height: 44px; }
    .tp-auth__alt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
    .tp-auth__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "top" "intro" "side" "features" "foot"; align-content: start; row-gap: 18px; max-width: 720px; padding: 18px 24px 16px; }
    .tp-auth__intro { text-align: center; padding-top: 4px; }
    .tp-auth__rule { margin-left: auto; margin-right: auto; }
    .tp-auth__lead { margin: 0 auto; }
    .tp-auth__side { width: 100%; max-width: 480px; justify-self: center; padding: 0; }
    .tp-auth__features ul { max-width: none; }
}
@media (max-width: 760px) {
    .tp-top { position: static; }
    .tp-top__in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand login" "nav nav"; column-gap: 10px; padding-top: 10px; }
    .tp-nav { justify-content: flex-start; margin-top: 4px; }
    .tp-fields, .tp-foot__grid { grid-template-columns: minmax(0, 1fr); }
    .tp-holder > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .tp-hint { display: block; }
    .tp-table th:first-child { width: 140px; min-width: 140px; }
    .tp-hero { padding: 36px 0 32px; }
    .tp-band { padding: 22px 20px; }
}
@media (max-width: 520px) {
    .tp-wrap { padding-left: 16px; padding-right: 16px; }
    .tp-grid4 { grid-template-columns: minmax(0, 1fr); }
    .tp-cta .btn, .tp-flex__cta .btn { flex: 1 1 100%; }
    .tp-site .tp-nav a { padding: 0 9px; }
    .tp-flex > div:first-child { flex-basis: 100%; }
    .tp-flex__cta { width: 100%; }
    .tp-card { padding: 18px; }
    .tp-flow { padding: 18px; }
    .tp-brand__mark { width: 36px; height: 36px; }
    .tp-brand__text b { font-size: 13.5px; }
    .tp-brand__text small { font-size: 11px; }
    .tp-auth__grid { padding: 14px 14px 14px; row-gap: 16px; }
    .tp-auth__top .tp-brand__text small { display: none; }
    .tp-auth__headline { font-size: 25px; }
    .tp-auth__lead { font-size: 14px; }
    .tp-auth__card { padding: 22px 16px; }
    .tp-auth__features ul { gap: 8px; }
    .tp-auth__features li { flex-direction: column; gap: 8px; padding: 12px; }
    .tp-auth__features .tp-card__ic { width: 34px; height: 34px; }
    .tp-auth__orb { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-rise, .tp-auth__features li, .tp-auth__card .tp-field, .tp-auth__card .tp-auth__row, .tp-auth__card .btn--primary { animation: none; }
    .tp-hero::before, .tp-hero::after, .tp-auth__orb, .tp-auth__bg::before, .tp-auth__glow::before, .tp-auth__card::before, .tp-flow ol::after, .tp-flow__ic { animation: none; }
    .tp-flow ol::after { display: none; }
    .tp-js .tp-reveal { opacity: 1; transform: none; transition: none; }
    .tp-card, .tp-card__ic, .tp-btn-lg.btn, .tp-btn-lg .ic, .tp-field input, .tp-auth__back, .tp-auth__features li, .tp-brand__mark, .tp-site .tp-nav a::after, .tp-site .tp-foot nav a { transition: none; }
    .tp-grid4 .tp-card:hover, .tp-grid3 .tp-card:hover, .tp-plan:hover, .tp-btn-lg.btn:hover, .tp-auth__back:hover, .tp-auth__features li:hover, .tp-site .tp-foot nav a:hover, a.tp-brand:hover .tp-brand__mark, .tp-grid4 .tp-card:hover .tp-card__ic { transform: none; }
    .tp-btn-lg.btn--primary:hover::after { animation: none; }
}
@media print {
    .tp-top, .tp-foot, .tp-noprint, .tp-skip, .tp-auth__bg { display: none; }
    .tp-rise { animation: none; }
    .tp-js .tp-reveal { opacity: 1; transform: none; }
}
