/* Páginas públicas: portada de acceso, registro, recuperar contraseña, legales. */

body.ui.test-landing-page, body.ui.pagina-publica { background: var(--bg); color: var(--ink); min-height: 100vh; }
.landing-shell { max-width: 1120px; margin: 0 auto; padding: 0 28px 40px; box-sizing: border-box; }

/* Cabecera */
.landing-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand-lockup { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup .auth-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.brand-lockup strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand-lockup span { display: block; font-size: 13px; color: var(--ink-2); }
.landing-country-switch { margin: 0; font-size: 15px; color: var(--ink-2); }
.landing-country-switch a { color: var(--enlace); text-decoration: none; }

/* Portada */
.landing-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px); gap: 56px; align-items: start; padding: 28px 0 56px; }
.hero-panel { padding-top: 24px; }
.hero-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accion-suave); color: var(--accion); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 24px; max-width: 13em; }
.hero-lead { font-size: 21px; line-height: 1.4; color: var(--ink-2); margin: 0 0 16px; max-width: 34em; letter-spacing: -0.01em; }
.hero-lead.hero-lead-secundario { font-size: 17px; color: var(--ink-3); }
.hero-highlight { color: var(--ink); font-weight: 600; }

/* Tarjeta de acceso */
.login-panel { position: sticky; top: 24px; }
.login-card { background: var(--sup); border-radius: var(--r-xl); box-shadow: var(--sombra-2); padding: 28px; }
.login-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 16px; }
.login-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.login-stat { background: var(--fill-2); border-radius: var(--r-m); padding: 10px 6px; text-align: center; }
.login-stat strong { display: block; font-size: 17px; font-weight: 700; }
.login-stat span { font-size: 12px; color: var(--ink-2); }
.auth-switcher { display: flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: 10px; margin-bottom: 16px; }
.auth-tab { flex: 1; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.auth-tab.is-active { background: var(--sup); font-weight: 600; box-shadow: var(--sombra-1); }
.auth-pane[hidden] { display: none; }
.pane-intro { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.pane-copy p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.preview-auth-form { display: flex; flex-direction: column; gap: 14px; }
.preview-auth-form .form-group, .login-card .form-group { margin: 0; }
.password-row { position: relative; display: flex; }
.password-row input { width: 100%; padding-right: 48px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink-3); font-size: 16px; cursor: pointer; border-radius: 50%; }
.login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.login-links a, .login-card a { color: var(--enlace); text-decoration: none; font-weight: 500; }
.login-links a:hover { text-decoration: underline; }
.panel-message { display: none; margin: 0; }
.panel-message p { margin: 0; }
.login-card .btn { width: 100%; }
.login-card .field-inline .btn, .login-card .inline-actions .btn { width: auto; }
.btn-lg { min-height: 50px; font-size: 17px; }
.btn-hot { background: var(--accion-relleno); color: #fff; border-radius: 980px; font-weight: 600; }
.btn-hot:hover { background: var(--accion-relleno-hover); }
.field-inline { display: flex; gap: 8px; align-items: center; }
.field-inline input { flex: 1; }
.field-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.checkbox-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--fill-2); border-radius: var(--r-m); font-size: 15px; }
.checkbox-card label { margin: 0; font-weight: 400; color: var(--ink); }
.visibilidad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
.visibilidad-option { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); font-weight: 400; }
.register-cta { margin-top: 12px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-afterglow { margin-top: 18px; padding: 14px 16px; background: var(--fill-2); border-radius: var(--r-m); }
.login-afterglow strong { font-size: 15px; }
.login-afterglow p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* Selector de país */
.gateway-card-embedded, .gateway-card { display: flex; flex-direction: column; gap: 12px; }
.gateway-help { margin: 0; font-size: 15px; color: var(--ink-2); }
.gateway-field { display: flex; flex-direction: column; gap: 6px; }
.gateway-field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.gateway-note, .gateway-aviso, .gateway-destino { margin: 0; font-size: 13px; color: var(--ink-3); }
.gateway-aviso:empty, .gateway-destino:empty { display: none; }
.gateway-actions { margin-top: 8px; }
.gateway-actions button, .gateway-continuar { width: 100%; min-height: 50px; border: 0; border-radius: 980px; background: var(--accion-relleno); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
.gateway-actions button:disabled { opacity: .45; cursor: not-allowed; }

/* Bandas informativas */
.desire-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.desire-card { background: var(--sup); border-radius: var(--r-xl); box-shadow: var(--sombra-1); padding: 24px; }
.desire-card .number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accion-suave); color: var(--accion); font-weight: 700; margin-bottom: 14px; }
.desire-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.desire-card p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.proof-band { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.proof-quote, .proof-list { background: var(--sup); border-radius: var(--r-xl); box-shadow: var(--sombra-1); padding: 28px; }
.proof-quote h3, .proof-list h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.proof-quote p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.proof-list ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.proof-list a, .proof-quote a { color: var(--enlace); text-decoration: none; }
.landing-faq { display: flex; flex-direction: column; }
.landing-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.landing-faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: ""; width: 8px; height: 8px; margin-top: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); flex: none; transition: transform .2s; }
.landing-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.landing-faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Pie legal */
.legal-footer { padding: 24px 0 8px; text-align: center; color: var(--ink-3); font-size: 13px; }
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.legal-footer-links a { color: var(--ink-2); text-decoration: none; }
.legal-footer-links a:hover { color: var(--accion); }
.legal-footer-separator { display: none; }

@media (max-width: 900px) {
    .landing-shell { padding: 0 16px 32px; }
    .landing-topbar { padding: 16px 0; }
    .landing-main { grid-template-columns: 1fr; gap: 20px; padding-top: 4px; }
    .login-panel { position: static; order: -1; }
    .login-card { padding: 22px 18px; border-radius: var(--r-l); }
    .hero-panel { padding-top: 8px; }
    .hero-lead { font-size: 19px; }
    .desire-band, .proof-band { grid-template-columns: 1fr; }
}

/* Tarjeta de acceso a pantalla completa (recuperar contraseña, códigos, reactivar, baja) */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.auth-box { width: 100%; max-width: 440px; background: var(--sup); border-radius: var(--r-xl); box-shadow: var(--sombra-2); padding: 32px 28px; box-sizing: border-box; }
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header .auth-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; margin: 0 auto 14px; display: block; }
.auth-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 6px; }
.auth-header .subtitle, .auth-header p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.auth-tabs { display: flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: 10px; margin-bottom: 18px; }
.auth-tabs .tab { flex: 1; text-align: center; min-height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.auth-tabs .tab.active { background: var(--segmento); font-weight: 600; box-shadow: var(--sombra-1); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-group { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.auth-form .form-group > label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.u-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.u-actions .btn, .auth-box .btn-primary { width: 100%; min-height: 50px; font-size: 17px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 15px; }
.auth-footer p { margin: 6px 0; }
.auth-box a:not(.btn) { color: var(--enlace); text-decoration: none; font-weight: 500; }
.auth-box a:not(.btn):hover { text-decoration: underline; }
.auth-box .form-hint { font-size: 13px; color: var(--ink-3); }
.auth-box > p { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 480px) { .auth-box { padding: 24px 18px; } }

/* Páginas de texto (términos, contacto) */
.landing-doc { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.landing-doc h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; }
.landing-doc h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 32px 0 8px; }
.landing-doc h3 { font-size: 19px; margin: 20px 0 6px; }
.landing-doc p, .landing-doc li { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.landing-doc a { color: var(--enlace); }

/* Contacto y términos */
.contacto-page-main, .terminos-page-main { max-width: 640px; margin: 0 auto; padding: 8px 0 24px; }
.terminos-page-main { max-width: 780px; }
.contacto-card h1, .terminos-card h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
.contacto-updated { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.contacto-card p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.contacto-kv { display: grid; grid-template-columns: minmax(72px, auto) 1fr; gap: 10px 16px; align-items: baseline; font-size: 15px; }
.contacto-kv dt { color: var(--ink-3); } .contacto-kv dd { margin: 0; }
.contacto-divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.contacto-card a:not(.btn), .terminos-doc a { color: var(--enlace); text-decoration: none; }
.contacto-form textarea { min-height: 140px; }
.contacto-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contacto-alert { padding: 12px 14px; border-radius: var(--r-m); font-size: 15px; margin-bottom: 12px; background: var(--fill-2); }
.contacto-alert-ok { background: var(--ok-suave); color: var(--ok); }
.contacto-alert-error, .contacto-field-error { background: var(--peligro-suave); color: var(--peligro); }
.contacto-field-error { margin: 4px 0 0; padding: 0; background: none; font-size: 13px; }
.contacto-note { font-size: 13px; color: var(--ink-3); }
.contacto-enviado h1 { font-size: 30px; }
.terminos-card { padding: 32px 36px; }
.terminos-doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 28px 0 8px; }
.terminos-doc h3 { font-size: 17px; margin: 18px 0 6px; }
.terminos-doc p, .terminos-doc li { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.terminos-doc ul, .terminos-doc ol { padding-left: 22px; }
@media (max-width: 600px) { .terminos-card { padding: 22px 18px; } .contacto-card h1, .terminos-card h1 { font-size: 30px; } }

/* Selector de país a pantalla completa */
.gateway-shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.gateway-brand { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.gateway-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.gateway-brand strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.gateway-brand span { font-size: 13px; color: var(--ink-2); }
.gateway-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px); gap: 56px; align-items: start; padding: 28px 0 40px; }
.gateway-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accion-suave); color: var(--accion); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.gateway-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 20px; }
.gateway-hero p { font-size: 19px; line-height: 1.4; color: var(--ink-2); margin: 0 0 14px; max-width: 34em; }
.gateway-layout > .gateway-card { background: var(--sup); border-radius: var(--r-xl); box-shadow: var(--sombra-2); padding: 28px; }
.gateway-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; }
.gateway-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .gateway-shell { padding: 0 16px; } .gateway-layout { grid-template-columns: 1fr; gap: 20px; } }
