/* ==========================================================================
   KAIROS WEBAPP V4.1 - IDENTIDAD DE MARCA OFICIAL KAIROS (CAROLINA DESIGN)
   Arquitectura Dual: Split en PC / Stacked en Móvil + Menú 4 Rayas + Feng Shui
   ========================================================================== */

:root {
    /* PALETA SAGRADA KAIROS (SOYKAIROS.SITE / BRAND IDENTITY) */
    --carbon: #101314;
    --carbon-soft: #161b1c;
    --carbon-card: rgba(22, 27, 28, 0.85);
    --carbon-card-hover: rgba(28, 35, 36, 0.95);

    --emerald: #14564F;
    --emerald-bright: #1F7A6E;
    --emerald-dark: #0d2e29;
    --emerald-glow: rgba(31, 122, 110, 0.35);
    --emerald-subtle: rgba(20, 86, 79, 0.18);

    --gold: #C7A24E;
    --gold-soft: #dcbd7c;
    --gold-glow: rgba(199, 162, 78, 0.35);
    --gold-dark-tab: #1c1810;
    --border-gold: rgba(199, 162, 78, 0.35);

    --cream: #ECE4D5;
    --cream-dim: #c9c2b2;
    --cream-muted: #8e887d;

    /* MAPEO DE TOKENS DEL SISTEMA */
    --bg-base: var(--carbon);
    --bg-surface: var(--carbon-soft);
    --bg-card: var(--carbon-card);
    --bg-card-hover: var(--carbon-card-hover);
    --border-subtle: rgba(236, 228, 213, 0.12);
    --border-card: rgba(199, 162, 78, 0.22);
    --border-orange: var(--border-gold);

    --orange-primary: var(--gold);
    --orange-bright: var(--gold-soft);
    --orange-glow: var(--gold-glow);
    --orange-dark-tab: var(--gold-dark-tab);

    --text-primary: var(--cream);
    --text-secondary: var(--cream-dim);
    --text-muted: var(--cream-muted);

    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-main: var(--font-sans);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--carbon);
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ==========================================================================
   BARRA FLOTANTE DE SIMULACIÓN DE DISPOSITIVO (PARA TEST EN PC)
   ========================================================================== */
.device-simulator-bar {
    display: none !important; /* Oculta por defecto en producción */
    position: fixed;
    top: 10px;
    right: 14px;
    z-index: 9999;
    align-items: center;
    gap: 12px;
    background: rgba(11, 15, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 6px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.show-simulator .device-simulator-bar {
    display: flex !important;
}

.sim-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.sim-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.sim-controls {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.sim-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sim-btn.active {
    background: var(--orange-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--orange-glow);
}

.sim-wifi-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.sim-ip-badge {
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.35);
    color: var(--orange-bright);
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.72rem;
}

.sim-status-tester {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.sim-tester-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.sim-status-btn {
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sim-status-btn.active {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.sim-status-btn#btn-sim-expired.active {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   VIEWPORT FRAMES: COMPLETO VS SMARTPHONE SIMULADO
   ========================================================================== */
.viewport-frame-full {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.viewport-frame-mobile {
    width: 390px !important;
    height: 844px !important;
    max-height: 92vh !important;
    margin: 60px auto 30px auto !important;
    border-radius: 46px !important;
    border: 9px solid #1f2937 !important;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    position: relative !important;
    background: var(--bg-base) !important;
}

.app-root {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.viewport-frame-mobile .app-root {
    min-height: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.screen-view {
    display: none !important;
    width: 100%;
    min-height: 100vh;
    height: 100%;
}

.screen-view.active {
    display: flex !important;
}

.viewport-frame-mobile .screen-view {
    min-height: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
}

/* ==========================================================================
   BRAND LOCKUP (LOGO KAIROS OFICIAL DE SOYKAIROS.SITE)
   ========================================================================== */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.brand-logo-sidebar {
    height: 38px;
    max-width: 160px;
}

.portada-hero-col .brand-logo-img {
    height: 52px;
    max-width: 220px;
}

/* ==========================================================================
   1. PANTALLA DE ACCESO / PORTADA (SPLIT EN PC, STACKED EN MÓVIL)
   ========================================================================== */
#screen-portada {
    background: radial-gradient(circle at 80% 20%, rgba(199, 162, 78, 0.12) 0%, rgba(20, 86, 79, 0.10) 35%, transparent 70%),
                radial-gradient(circle at 15% 85%, rgba(20, 86, 79, 0.15) 0%, transparent 60%),
                var(--carbon);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 24px;
}

.portada-container {
    width: 100%;
    max-width: 1200px;
    margin: auto 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: flex-start;
}

/* Columna Izquierda (Propuesta de Valor) */
.portada-hero-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-badge-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.eyebrow-tag {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--gold-soft);
    margin-bottom: 16px;
    text-transform: uppercase;
    opacity: 0.95;
    text-align: center;
}

.portada-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.45rem, 4.4vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--cream);
    margin-bottom: 22px;
    text-align: center;
}

.portada-headline em {
    font-style: italic;
    color: var(--gold-soft);
}

.portada-subtext {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--cream-dim);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 16px auto;
    text-align: center;
}

.portada-science-text {
    font-size: 0.92rem;
    color: rgba(236, 228, 213, 0.76);
    line-height: 1.62;
    max-width: 550px;
    margin: 0 auto 26px auto;
}

.portada-chips-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.portada-chip {
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(199, 162, 78, 0.05);
    border: 1px solid rgba(199, 162, 78, 0.28);
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.portada-chip:hover {
    background: rgba(20, 86, 79, 0.22);
    border-color: var(--emerald-bright);
    color: var(--gold-soft);
}

.portada-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.portada-disclaimer-link {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.portada-disclaimer-link:hover {
    color: var(--cream);
}

/* Columna Derecha: Tarjeta de Acceso Flotante */
.portada-auth-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-card-norber {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    background: rgba(22, 27, 28, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(199, 162, 78, 0.28);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(20, 86, 79, 0.15);
}

/* Cinta diagonal en la esquina de la tarjeta de registro */
.auth-ribbon-corner {
    position: absolute;
    top: 20px;
    right: -42px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #dfbc69 0%, #C7A24E 50%, #9e7a2b 100%);
    color: #101314;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 5px 44px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 15px rgba(199, 162, 78, 0.35);
    text-transform: uppercase;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
}
.auth-ribbon-corner:hover {
    filter: brightness(1.18);
    transform: rotate(45deg) scale(1.05);
}

/* Banner superior sobrio y elegante de la portada */
.portada-top-promo-banner {
    width: calc(100% + 48px);
    margin: -40px -24px 32px -24px;
    background: linear-gradient(90deg, rgba(16, 19, 20, 0.98) 0%, rgba(20, 86, 79, 0.45) 50%, rgba(16, 19, 20, 0.98) 100%);
    border-bottom: 1px solid rgba(199, 162, 78, 0.35);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    color: var(--cream);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    z-index: 30;
    letter-spacing: 0.01em;
}
.portada-top-promo-banner .promo-pill {
    background: #C7A24E;
    color: #101314;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.portada-top-promo-banner .promo-code-click {
    background: rgba(16, 19, 20, 0.85);
    color: #dfbc69;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px dashed rgba(199, 162, 78, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.portada-top-promo-banner .promo-code-click:hover {
    background: #C7A24E;
    color: #101314;
    border-color: #C7A24E;
}

/* Ticket de descuento delineado con líneas punteadas (Sobrio y elegante) */
.promo-register-ticket {
    background: rgba(22, 27, 28, 0.92);
    border: 1px dashed rgba(199, 162, 78, 0.55);
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-sans);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.ticket-tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ticket-tag-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: #dfbc69;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ticket-tag-discount {
    background: #C7A24E;
    color: #101314;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.ticket-tag-desc {
    font-size: 0.84rem;
    color: var(--cream);
    line-height: 1.5;
    margin: 2px 0;
}
.ticket-tag-desc strong {
    color: var(--gold-soft);
}
.btn-copy-coupon {
    background: rgba(16, 19, 20, 0.8);
    border: 1px solid rgba(199, 162, 78, 0.6);
    color: #dfbc69;
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.btn-copy-coupon:hover {
    background: #C7A24E;
    color: #101314;
    border-color: #C7A24E;
}
.ticket-price-calc {
    font-size: 0.8rem;
    color: var(--cream-dim);
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(199, 162, 78, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticket-price-calc .old-price {
    text-decoration: line-through;
    opacity: 0.6;
}
.ticket-price-calc .new-price {
    color: #dfbc69;
    font-weight: 700;
}

/* Switcher de Facturación Mensual vs Anual */
.plan-billing-switcher {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.15fr;
    background: rgba(16, 20, 22, 0.9);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 12px;
    padding: 4px;
    gap: 6px;
    margin: 14px 0 16px 0;
}

.billing-switch-btn {
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--cream-dim);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.billing-switch-btn:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.04);
}

.billing-switch-btn.active {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.25) 0%, rgba(133, 102, 38, 0.35) 100%);
    border-color: rgba(199, 162, 78, 0.65);
    color: #dfbc69;
    box-shadow: 0 2px 10px rgba(199, 162, 78, 0.2);
    font-weight: 700;
}

.billing-switch-btn .btn-fire {
    font-size: 0.88rem;
    line-height: 1;
}

.badge-discount-pill {
    background: linear-gradient(135deg, #E09520 0%, #C7A24E 100%);
    color: #0c0f10;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    margin-left: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Estado especial para Ticket Anual: borde dorado y sutil resplandor cuántico */
.promo-register-ticket.annual-mode {
    border-color: rgba(199, 162, 78, 0.8);
    box-shadow: 0 4px 24px rgba(199, 162, 78, 0.12), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.ticket-breakdown-list {
    margin: 6px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--cream);
}
.ticket-breakdown-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.45;
}
.ticket-breakdown-list li strong {
    color: #dfbc69;
}
.ticket-breakdown-list li .list-icon {
    flex-shrink: 0;
    font-size: 0.88rem;
}

.ticket-prorrateo-row {
    background: rgba(199, 162, 78, 0.08);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ticket-prorrateo-row .prorrateo-highlight {
    color: #dfbc69;
    font-weight: 800;
    font-size: 0.96rem;
}

.auth-tabs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(199, 162, 78, 0.15);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
}

.auth-tab-btn {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--cream-dim);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--gold-dark-tab);
    border-color: rgba(199, 162, 78, 0.55);
    color: var(--gold-soft);
    box-shadow: 0 2px 12px rgba(199, 162, 78, 0.2);
}

.auth-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 6px;
}

.auth-card-body p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--cream-dim);
    margin-bottom: 24px;
    line-height: 1.55;
}

.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cream-dim);
    letter-spacing: 0.02em;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(16, 19, 20, 0.85);
    border: 1px solid rgba(236, 228, 213, 0.12);
    border-radius: 10px;
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--gold-soft);
    background: rgba(22, 27, 28, 0.95);
    box-shadow: 0 0 16px var(--gold-glow);
}

.form-recovery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 16px 0;
    gap: 12px;
}

.remember-me-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--cream-muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.remember-me-checkbox-label:hover {
    color: var(--cream);
}

.remember-me-checkbox-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0;
}

@media (max-width: 480px) {
    .form-recovery-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.form-recovery-row a {
    font-size: 0.78rem;
    color: var(--cream-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.form-recovery-row a:hover {
    color: var(--gold-soft);
}

.btn-orange-solid {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    border: none;
    border-radius: 10px;
    color: var(--carbon);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all 0.2s ease;
}

.btn-orange-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--gold-glow);
}

.btn-orange-solid:active {
    transform: scale(0.985);
}

.auth-footer-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
}

.auth-link-inline {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.auth-link-inline:hover {
    color: var(--orange-bright);
}

.auth-bono-wrapper {
    margin-top: 14px;
    text-align: center;
}

.auth-bono-link {
    background: transparent;
    border: none;
    color: var(--color-gold);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(199, 162, 78, 0.4);
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.auth-bono-link:hover {
    color: #dfbc69;
    text-decoration-color: #dfbc69;
    background: rgba(199, 162, 78, 0.08);
}

/* Aviso de error o cuenta duplicada */
.auth-error-notice {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.38);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 8px 0 12px 0;
    color: #fca5a5;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
}

/* Aviso de éxito / redirección segura a Stripe (Verde Esmeralda y Dorado) */
.auth-error-notice.is-success,
.auth-success-notice {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
}

/* ==========================================================================
   2. PANTALLA DE ACCESO PAUSADO / PAYWALL BLOQUEANTE (LOCK SCREEN)
   ========================================================================== */
#screen-locked {
    background: radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.08) 0%, rgba(199, 162, 78, 0.06) 40%, transparent 70%),
                var(--carbon);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 20px;
}

.locked-paywall-container {
    width: 100%;
    max-width: 580px;
    margin: auto;
}

.locked-card {
    background: rgba(22, 27, 28, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(199, 162, 78, 0.35);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(239, 68, 68, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--font-sans);
}

.locked-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.locked-shield-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.4));
}

.locked-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #fca5a5;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.locked-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.locked-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--cream);
    margin-bottom: 12px;
    font-weight: 500;
}

.locked-desc {
    font-size: 0.92rem;
    color: var(--cream-dim);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 480px;
}

.locked-warning-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    text-align: left;
    width: 100%;
}

.locked-warning-box .warning-title {
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.locked-warning-box p {
    color: var(--cream);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

.locked-warning-box strong {
    color: #fca5a5;
}

.locked-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-reactivate-annual {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.22) 0%, rgba(133, 102, 38, 0.35) 100%);
    border: 1px solid rgba(199, 162, 78, 0.7);
    border-radius: 14px;
    padding: 14px 18px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-shadow: 0 4px 18px rgba(199, 162, 78, 0.15);
    text-align: left;
    width: 100%;
}

.btn-reactivate-annual:hover {
    border-color: #dfbc69;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 162, 78, 0.25);
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.3) 0%, rgba(133, 102, 38, 0.45) 100%);
}

.reactivate-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.reactivate-tag-row .badge-fire {
    font-size: 0.72rem;
    font-weight: 800;
    color: #dfbc69;
    letter-spacing: 0.05em;
}

.reactivate-tag-row .badge-discount {
    background: #C7A24E;
    color: #101314;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.reactivate-main-text {
    font-size: 1rem;
    color: var(--cream);
    font-weight: 600;
}

.reactivate-main-text strong {
    color: #dfbc69;
}

.reactivate-subtext {
    font-size: 0.78rem;
    color: var(--cream-dim);
}

.btn-reactivate-monthly {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.88rem;
}

.btn-reactivate-monthly:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(199, 162, 78, 0.55);
}

.reactivate-monthly-title {
    font-weight: 600;
}

.reactivate-monthly-sub {
    font-size: 0.76rem;
    color: #dfbc69;
}

.btn-portal-stripe {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--cream-dim);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-portal-stripe:hover {
    color: var(--cream);
    border-color: rgba(199, 162, 78, 0.45);
    background: rgba(255, 255, 255, 0.03);
}

.locked-footer {
    margin-top: 24px;
}

.locked-logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.locked-logout-btn:hover {
    color: var(--cream);
    text-decoration: underline;
}

/* ==========================================================================
   2. PANTALLA PRINCIPAL: ASISTENTE DUAL (SIDEBAR DESKTOP + DRAWER MÓVIL)
   ========================================================================== */
#screen-main {
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: var(--carbon);
    position: relative;
}

#screen-main.active {
    display: flex !important;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    width: 100%;
}

/* Backdrop para Drawer Móvil */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
    display: block;
    opacity: 1;
}

/* SIDEBAR APP (FIJA EN PC, DESLIZABLE EN MÓVIL) */
.sidebar-app {
    width: 270px;
    height: 100%;
    background: var(--carbon-soft);
    border-right: 1px solid rgba(199, 162, 78, 0.15);
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    flex-shrink: 0;
    z-index: 105;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.drawer-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--cream-dim);
    cursor: pointer;
    padding: 4px;
}

/* Botón + Nuevo chat */
.btn-nuevo-chat-norber {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(199, 162, 78, 0.10);
    border: 1px solid rgba(199, 162, 78, 0.35);
    border-radius: 12px;
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.btn-nuevo-chat-norber:hover, .btn-nuevo-chat-norber:active {
    background: rgba(20, 86, 79, 0.25);
    border-color: var(--emerald-bright);
    color: var(--gold-soft);
    box-shadow: 0 0 16px var(--emerald-glow);
}

.btn-nuevo-chat-norber .plus-icon {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--gold-soft);
}

.sidebar-section-title {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--cream-muted);
    padding: 0 6px 8px 6px;
}

/* Navegación a Módulos */
.sidebar-nav-modules {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 18px;
}

.nav-module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: var(--cream-dim);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.nav-module-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--cream);
}

.nav-module-item.active {
    background: rgba(199, 162, 78, 0.12);
    border: 1px solid rgba(199, 162, 78, 0.25);
    color: var(--gold-soft);
    font-weight: 600;
}

.badge-mini {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(20, 86, 79, 0.25);
    border: 1px solid rgba(31, 122, 110, 0.4);
    color: var(--emerald-bright);
    font-weight: 700;
}

/* Lista de Conversaciones */
.sidebar-conversations-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--cream-dim);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s ease;
}

.conversation-item:hover, .conversation-item.active {
    background: rgba(199, 162, 78, 0.08);
    color: var(--cream);
}

/* Bloque Inferior */
.sidebar-footer-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

/* Tarjeta de Prueba 7 Días Free (SaaS Countdown) */
.trial-card-kairos {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.12) 0%, rgba(22, 27, 28, 0.9) 100%);
    border: 1px solid rgba(199, 162, 78, 0.28);
    border-radius: 14px;
    padding: 13px 13px 10px 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.trial-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trial-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cream);
    font-family: var(--font-sans);
}

.trial-days-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--carbon);
    background: linear-gradient(135deg, var(--gold) 0%, #b88f3d 100%);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.trial-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: 2px 0;
}

.trial-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald-bright), var(--gold));
    border-radius: 10px;
    transition: width 0.4s ease;
}

.trial-subtext {
    display: block;
    font-size: 0.67rem;
    color: var(--cream-dim);
    margin-bottom: 2px;
}

.btn-aprobar-sub-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: linear-gradient(135deg, var(--gold) 0%, #b88f3d 100%);
    border: none;
    border-radius: 9px;
    color: var(--carbon);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(199, 162, 78, 0.3);
    transition: all 0.2s ease;
}

.btn-aprobar-sub-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(199, 162, 78, 0.45);
}

.trial-cancel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
}

.btn-cancelar-sub-link {
    background: transparent;
    border: none;
    color: rgba(236, 228, 213, 0.4);
    font-family: var(--font-sans);
    font-size: 0.71rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(236, 228, 213, 0.25);
}

.btn-cancelar-sub-link:hover {
    color: var(--color-gold);
    text-decoration-color: var(--color-gold);
}

.btn-cargar-creditos:hover {
    border-color: var(--gold-soft);
    color: var(--cream);
    background: rgba(199, 162, 78, 0.08);
}

/* Botón Instalar Kairos IA (Solo Móvil no instalado) */
.btn-install-norber {
    display: none; /* Oculto por defecto en PC / Escritorio */
    width: 100%;
    padding: 10px;
    background: rgba(199, 162, 78, 0.10);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 10px;
    color: var(--gold-soft);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.btn-install-norber:hover {
    background: rgba(20, 86, 79, 0.22);
    border-color: var(--emerald-bright);
}

@media (max-width: 768px) {
    body:not(.is-standalone):not(.pwa-installed) .btn-install-norber:not(.is-hidden) {
        display: block;
    }
}

/* Blindaje: En PWA instalada, standalone o modo oculto, NUNCA mostrar */
body.is-standalone .btn-install-norber,
body.pwa-installed .btn-install-norber,
.btn-install-norber.is-hidden,
#btn-install-pwa.is-hidden {
    display: none !important;
}

/* User Pill Norber */
.user-pill-norber {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
}

.user-avatar-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--gold-dark-tab);
    border: 1px solid var(--border-gold);
    color: var(--gold-soft);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name-text {
    flex: 1;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.user-logout-btn:hover {
    color: #ef4444;
}

/* ==========================================================================
   BOTÓN DESTACADO: KAIROS STORE EN SIDEBAR
   ========================================================================== */
.sidebar-store-wrapper {
    margin-top: 12px;
    margin-bottom: 2px;
}

.sidebar-store-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.16) 0%, rgba(20, 86, 79, 0.24) 100%);
    border: 1px solid rgba(199, 162, 78, 0.45);
    border-radius: 12px;
    text-decoration: none;
    color: var(--cream);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-store-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: 0.6s ease;
}

.sidebar-store-btn:hover::before {
    left: 150%;
}

.sidebar-store-btn:hover {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.28) 0%, rgba(20, 86, 79, 0.36) 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 6px 22px rgba(199, 162, 78, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: #ffffff;
}

.store-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-cart-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(199, 162, 78, 0.2);
    border: 1px solid rgba(199, 162, 78, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-store-btn:hover .store-cart-icon-wrap {
    background: var(--gold-bright);
    color: #0d1314;
    transform: scale(1.05);
}

.store-btn-text-block {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-main-title {
    font-family: var(--font-serif);
    font-size: 0.90rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.store-btn-subtitle {
    font-size: 0.68rem;
    color: rgba(236, 228, 213, 0.65);
    letter-spacing: 0.02em;
}

.store-btn-chip {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0d1314;
    background: var(--gold-bright);
    padding: 3px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SECCIÓN DE AYUDA WHATSAPP EN SIDEBAR
   ========================================================================== */
.sidebar-help-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(199, 162, 78, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-help-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(236, 228, 213, 0.5);
    padding-left: 2px;
}

.sidebar-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(37, 211, 102, 0.10);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 8px;
    color: #25D366;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sidebar-whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: #25D366;
    color: #4ade80;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.sidebar-whatsapp-btn .whatsapp-icon-svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.4));
}

/* ==========================================================================
   CUADROS TUTORIALES / EPIFANÍA (ESTADO CERO PURO)
   ========================================================================== */
.empty-tutorial-box {
    background: rgba(16, 24, 25, 0.65);
    border: 1px dashed rgba(199, 162, 78, 0.35);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
}

.empty-tutorial-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(199, 162, 78, 0.3));
}

.empty-tutorial-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold-soft);
    margin: 0;
}

.empty-tutorial-text {
    font-size: 0.88rem;
    color: rgba(236, 228, 213, 0.75);
    line-height: 1.6;
    max-width: 540px;
    margin: 0;
}

.btn-tutorial-action {
    margin-top: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold) 0%, #b88f3d 100%);
    border: none;
    border-radius: 9px;
    color: var(--carbon);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(199, 162, 78, 0.25);
}

.btn-tutorial-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(199, 162, 78, 0.35);
}

/* ==========================================================================
   ACORDEÓN Y ARCHIVO HISTÓRICO DE EJERCICIOS DINÁMICOS
   ========================================================================== */
.exercises-archive-accordion {
    margin-top: 24px;
    border: 1px solid rgba(199, 162, 78, 0.2);
    border-radius: 12px;
    background: rgba(13, 22, 23, 0.5);
    overflow: hidden;
}

.exercises-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(199, 162, 78, 0.08);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.exercises-archive-header:hover {
    background: rgba(199, 162, 78, 0.14);
}

.exercises-archive-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exercises-archive-arrow {
    transition: transform 0.25s ease;
    color: var(--gold-soft);
}

.exercises-archive-accordion.open .exercises-archive-arrow {
    transform: rotate(180deg);
}

.exercises-archive-body {
    display: none;
    padding: 18px;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(199, 162, 78, 0.15);
}

.exercises-archive-accordion.open .exercises-archive-body {
    display: flex;
}

.exercises-search-box {
    position: relative;
    width: 100%;
}

.exercises-search-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 8px;
    color: var(--cream);
    font-size: 0.82rem;
    outline: none;
    box-sizing: border-box;
}

.exercises-search-input:focus {
    border-color: var(--gold-soft);
}

/* ==========================================================================
   LIENZO PRINCIPAL (MAIN CANVAS)
   ========================================================================== */
.app-main-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 65% 15%, rgba(20, 86, 79, 0.15) 0%, transparent 65%),
                radial-gradient(circle at 10% 85%, rgba(199, 162, 78, 0.08) 0%, transparent 55%),
                var(--carbon);
}

/* Topbar Header */
.canvas-topbar {
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    border-bottom: 1px solid rgba(199, 162, 78, 0.15);
    background: rgba(16, 19, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10;
    flex-shrink: 0 !important;
}

/* ÍCONO DE 4 RAYAS HORIZONTALES (EXCLUSIVO MÓVIL) */
.menu-btn-4lines {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 14px 11px;
    box-sizing: border-box;
    margin-left: -11px;
    background: transparent;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.menu-line {
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.menu-btn-4lines:hover .menu-line {
    background: var(--gold-soft);
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.topbar-title-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--cream);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-title-accent {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-right-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-icon-action {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    margin-right: -10px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Scroll Content */
.canvas-scroll-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 20px calc(165px + env(safe-area-inset-bottom, 0px)) 20px !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.canvas-module {
    display: none;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    flex-direction: column;
}

.canvas-module.active {
    display: flex;
}

/* ==========================================================================
   HERO INICIAL DE KAIROS (¿Qué te gustaría saber?)
   ========================================================================== */
.norber-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    padding: 20px 0 140px 0; /* Despeje garantizado sobre la barra de input para preguntas 3 y 4 */
    max-width: 740px;
    width: 100%;
}

.assistant-avatar-box {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: 0 0 35px rgba(199, 162, 78, 0.25), 0 0 50px rgba(20, 86, 79, 0.25);
    overflow: hidden;
    margin-bottom: 22px;
}

.assistant-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.assistant-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--gold-soft);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.assistant-question-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 12px;
}

.assistant-desc-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--cream-dim);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 34px;
}

/* Grid de Tarjetas 2x2 en PC / 1x4 en Móvil con Flecha ↗ */
.norber-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 740px;
}

.norber-card-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(199, 162, 78, 0.05) 0%, rgba(22, 27, 28, 0.75) 100%);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.norber-card-chip:hover {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.22) 0%, rgba(28, 35, 36, 0.95) 100%);
    border-color: var(--emerald-bright);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(31, 122, 110, 0.25);
    transform: translateY(-2px);
}

.norber-card-chip:active {
    transform: scale(0.99);
}

.card-chip-text {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--cream);
}

.card-chip-arrow {
    font-size: 1.05rem;
    color: var(--gold-soft);
    margin-left: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
}

.norber-card-chip:hover .card-chip-arrow {
    color: var(--emerald-bright);
    transform: translate(2px, -2px);
}

/* ==========================================================================
   MENSAJES EN CHAT (CUANDO HAY CONVERSACIÓN)
   ========================================================================== */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.msg-row {
    display: flex;
    gap: 14px;
    width: 100%;
    animation: fadeInMsg 0.25s ease;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-row.user {
    justify-content: flex-end;
}

.msg-row.kairos {
    justify-content: flex-start;
}

.msg-avatar-sq {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 2px;
}

.msg-avatar-sq img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 50%;
    display: block;
}

.msg-bubble-norber {
    max-width: 82%;
    padding: 14px 18px;
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.6;
    text-wrap: pretty;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chat-p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    text-wrap: pretty;
}

.chat-p:last-child {
    margin-bottom: 0;
}

.chat-ul,
.chat-ol {
    margin: 6px 0 10px 20px;
    padding: 0;
}

.chat-ul:last-child,
.chat-ol:last-child {
    margin-bottom: 0;
}

.chat-li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.msg-row.user .msg-bubble-norber {
    background: var(--carbon-soft);
    border: 1px solid rgba(199, 162, 78, 0.35);
    color: var(--cream);
    border-top-right-radius: 4px;
}

.msg-row.kairos .msg-bubble-norber {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.20) 0%, rgba(22, 27, 28, 0.92) 100%);
    border: 1px solid rgba(31, 122, 110, 0.35);
    color: var(--cream);
    border-top-left-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(20, 86, 79, 0.12);
}

.msg-author-header {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gold-soft);
    margin-bottom: 8px;
}

.editable-user-name {
    cursor: pointer;
    border-bottom: 1.5px dashed rgba(199, 162, 78, 0.45);
    transition: all 0.2s ease;
}

.editable-user-name:hover {
    color: var(--cream) !important;
    border-bottom-color: var(--gold-bright);
}

.btn-edit-user-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background: rgba(199, 162, 78, 0.12);
    border: 1px solid rgba(199, 162, 78, 0.3);
    color: var(--gold-soft);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-left: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.btn-edit-user-name:hover {
    opacity: 1;
    background: rgba(199, 162, 78, 0.28);
    color: #fff;
    border-color: var(--gold-soft);
    transform: scale(1.08);
}

.msg-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    background: rgba(199, 162, 78, 0.12);
    border: 1px solid rgba(199, 162, 78, 0.35);
    border-radius: 10px;
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.msg-action-pill:hover {
    background: rgba(20, 86, 79, 0.25);
    border-color: var(--emerald-bright);
    color: var(--cream);
    box-shadow: 0 0 12px var(--emerald-glow);
}

.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.assistant-small-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    overflow: hidden;
    border: none !important;
    background: transparent !important;
}

.assistant-small-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 50%;
    display: block;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(22, 27, 28, 0.85);
    border: 1px solid rgba(199, 162, 78, 0.2);
    border-radius: 14px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gold-soft);
    border-radius: 50%;
    animation: pulseDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   FOOTER INPUT BAR TIPO PÍLDORA (ESTILO NORBER)
   ========================================================================== */
.canvas-input-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 19, 20, 0.95) 45%, var(--carbon) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.norber-input-box {
    pointer-events: auto;
    width: 100%;
    max-width: 740px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(22, 27, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 18px;
    padding: 8px 10px 8px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.norber-input-box:focus-within {
    border-color: var(--gold-soft);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(199, 162, 78, 0.2);
}

.input-clip-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.15s ease;
}

.input-clip-btn:hover {
    color: var(--text-primary);
}

.norber-input-box textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    outline: none;
    resize: none;
    max-height: 120px;
    line-height: 1.45;
}

.norber-input-box textarea::placeholder {
    color: var(--text-muted);
}

.input-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    border: none;
    color: var(--carbon);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 10px var(--gold-glow);
}

.input-send-btn:active {
    transform: scale(0.92);
}

.canvas-disclaimer {
    pointer-events: auto;
    font-size: 0.7rem;
    color: var(--cream-muted);
    text-align: center;
    margin-top: 6px;
}

/* ==========================================================================
   MÓDULOS DE TRANSFORMACIÓN (PLAN, ESPEJO, REFLEXIONES)
   ========================================================================== */
.module-inner-header {
    margin-bottom: 24px;
}

.module-tag {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--emerald-bright);
    margin-bottom: 6px;
    display: inline-block;
}

.module-inner-header h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 6px;
}

.module-inner-header p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--cream-dim);
    line-height: 1.55;
}

/* Segment Tabs */
.segment-tabs-norber {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(199, 162, 78, 0.15);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 20px;
}

.seg-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--cream-dim);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seg-btn.active {
    background: var(--gold-dark-tab);
    border: 1px solid rgba(199, 162, 78, 0.45);
    color: var(--gold-soft);
    box-shadow: 0 2px 10px rgba(199, 162, 78, 0.18);
}

.plan-content-segment {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.plan-content-segment.active {
    display: flex;
}

/* Habit Card */
.habit-card-norber {
    background: linear-gradient(145deg, rgba(199, 162, 78, 0.05) 0%, rgba(22, 27, 28, 0.85) 100%);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.habit-card-norber h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 4px;
}

.habit-card-norber .habit-tag {
    font-size: 0.72rem;
    color: var(--gold-soft);
    font-weight: 600;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 10px;
}

.habit-snippet {
    font-family: var(--font-sans);
    font-size: 0.84rem;
    color: var(--cream-dim);
    line-height: 1.55;
    margin-bottom: 16px;
}

.habit-days-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.day-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(199, 162, 78, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--cream-dim);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.day-circle-btn.completed {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--carbon);
    border-color: transparent;
    box-shadow: 0 2px 10px var(--gold-glow);
    font-weight: 700;
}

.habit-progress-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-track-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-track-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--emerald-bright));
    border-radius: 10px;
}

.progress-pct-label {
    font-size: 0.75rem;
    color: var(--gold-soft);
    font-weight: 700;
}

/* ==========================================================================
   EL ESPEJO CUÁNTICO & CRÓNICAS DE EVOLUCIÓN (SISTEMA INTEGRAL)
   ========================================================================== */
.espejo-tab-segment {
    display: none;
}

.espejo-tab-segment.active {
    display: block;
    animation: fadeInModule 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.espejo-status-card {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.15) 0%, rgba(18, 24, 26, 0.96) 100%);
    border: 1px solid rgba(199, 162, 78, 0.28);
    border-radius: 20px;
    padding: 24px 22px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(20, 86, 79, 0.12);
}

.espejo-lock-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 12px;
}

.espejo-lock-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.espejo-status-info {
    text-align: left;
}

.espejo-status-title {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold-soft);
    line-height: 1.45;
}

.espejo-status-sub {
    font-size: 0.78rem;
    color: var(--cream-muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

@keyframes gold-pulse-soft {
    0% {
        box-shadow: 0 0 10px rgba(199, 162, 78, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(224, 149, 32, 0.65), 0 0 40px rgba(199, 162, 78, 0.35);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 10px rgba(199, 162, 78, 0.35);
        transform: scale(1);
    }
}

.magic-pulse-btn {
    animation: gold-pulse-soft 2.2s infinite ease-in-out;
}

.active-vision-card {
    background: linear-gradient(145deg, rgba(16, 24, 27, 0.95) 0%, rgba(10, 15, 17, 0.98) 100%);
    border: 1px solid rgba(199, 162, 78, 0.35);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(199, 162, 78, 0.12);
}

.cronica-date-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.decor-line-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px 0 20px 0;
}

.active-vision-body {
    font-family: var(--font-serif);
    font-size: 1.04rem;
    line-height: 1.85;
    color: rgba(236, 228, 213, 0.95);
}

.active-vision-body p {
    margin-bottom: 16px;
}

.empty-mirror-card {
    background: rgba(18, 25, 27, 0.6);
    border: 1px dashed rgba(199, 162, 78, 0.3);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
}

.espejo-loading-view {
    text-align: center;
    padding: 45px 20px;
}

/* Crónicas de Evolución List Stack */
.cronicas-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cronica-card-item {
    background: rgba(18, 25, 27, 0.85);
    border: 1px solid rgba(199, 162, 78, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cronica-card-item:hover {
    background: rgba(24, 34, 37, 0.95);
    border-color: rgba(199, 162, 78, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cronica-card-left {
    flex: 1;
}

.cronica-card-date {
    font-size: 0.72rem;
    color: var(--gold-soft);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cronica-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--cream);
    font-weight: 500;
}

.cronica-card-arrow {
    color: var(--gold-soft);
    font-size: 1.1rem;
    margin-left: 12px;
}

/* Modal Estilo Libro para Crónicas */
.cronica-book-modal {
    background: #0d1416;
    border: 1px solid var(--gold);
    box-shadow: 0 0 45px rgba(199, 162, 78, 0.25), 0 20px 60px rgba(0, 0, 0, 0.8);
}

.book-style-body {
    padding: 24px 18px;
}

.cronica-book-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--cream);
    margin: 8px 0 14px;
    line-height: 1.35;
}

.cronica-text-content {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.85;
    color: rgba(236, 228, 213, 0.92);
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 10px;
}

.cronica-text-content p {
    margin-bottom: 16px;
}

.cronica-modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

/* Mirror Hero Box (Legado / Compacto) */
.mirror-hero-box {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.18) 0%, rgba(22, 27, 28, 0.92) 100%);
    border: 1px solid rgba(31, 122, 110, 0.35);
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(20, 86, 79, 0.15);
}

.mirror-freq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31, 122, 110, 0.2);
    border: 1px solid rgba(31, 122, 110, 0.45);
    color: var(--emerald-bright);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.dot-green-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.mirror-hero-box h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 12px;
}

.mirror-quote {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    color: var(--cream);
    line-height: 1.7;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
    font-style: italic;
    margin-bottom: 20px;
}

/* Reflexiones Search */
.reflections-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 21, 33, 0.8);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.reflections-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.reflections-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reflection-item-norber {
    background: linear-gradient(145deg, rgba(199, 162, 78, 0.05) 0%, rgba(22, 27, 28, 0.75) 100%);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 16px;
    padding: 16px 18px;
    border-left: 3px solid var(--gold);
}

.reflection-item-norber h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 6px;
}

.reflection-item-norber p {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: var(--cream-dim);
    line-height: 1.6;
    font-style: italic;
}

/* ==========================================================================
   MÓDULO CONVERSACIONES (HISTORIAL DE ENCUENTROS CUÁNTICOS)
   ========================================================================== */
#module-conversaciones {
    display: none;
    flex-direction: column;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

#module-conversaciones.active {
    display: flex;
}

.conversations-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.btn-nueva-charla-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold) 0%, #b88f3d 100%);
    color: var(--carbon);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(199, 162, 78, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-nueva-charla-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(199, 162, 78, 0.4);
}

.conversations-search-box {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(22, 27, 28, 0.85);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 12px;
    padding: 11px 16px;
    transition: border-color 0.2s ease;
}

.conversations-search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(199, 162, 78, 0.2);
}

.conversations-search-box svg {
    color: var(--gold);
    flex-shrink: 0;
}

.conversations-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
}

.conversations-search-box input::placeholder {
    color: var(--cream-dim);
    opacity: 0.7;
}

.conversations-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conversation-card-kairos {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.1) 0%, rgba(22, 27, 28, 0.85) 100%);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.conversation-card-kairos:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(199, 162, 78, 0.15);
}

.conversation-card-kairos.active-conversation {
    border-color: var(--emerald-bright);
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.2) 0%, rgba(22, 27, 28, 0.9) 100%);
    box-shadow: 0 0 20px rgba(31, 122, 110, 0.25);
}

.conv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.conv-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.conv-icon-bubble {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(199, 162, 78, 0.12);
    border: 1px solid rgba(199, 162, 78, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.conv-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    margin: 0;
}

.conv-card-date {
    font-size: 0.76rem;
    color: var(--cream-dim);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.conv-card-snippet {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--cream-dim);
    margin: 0;
}

.conv-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.btn-resume-chat {
    background: transparent;
    border: 1px solid rgba(199, 162, 78, 0.45);
    color: var(--gold);
    border-radius: 8px;
    padding: 7px 16px;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-resume-chat:hover {
    background: var(--gold);
    color: var(--carbon);
    border-color: var(--gold);
}

.btn-delete-conv {
    background: transparent;
    border: none;
    color: rgba(236, 228, 213, 0.35);
    cursor: pointer;
    padding: 7px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-conv:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.conversations-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: rgba(22, 27, 28, 0.5);
    border: 1px dashed rgba(199, 162, 78, 0.25);
    border-radius: 16px;
    color: var(--cream-dim);
}

.conversations-empty-state p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   MÓDULO INICIO (PUNTO DE PARTIDA / DASHBOARD TRAS LOGIN)
   ========================================================================== */
#module-inicio {
    display: none;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

#module-inicio.active {
    display: flex;
}

.inicio-welcome-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.inicio-tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.inicio-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31, 122, 110, 0.18);
    border: 1px solid rgba(31, 122, 110, 0.4);
    color: var(--emerald-bright);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.inicio-date-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cream-muted);
    text-transform: capitalize;
}

.inicio-greeting-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--cream);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0;
    word-break: break-word;
    max-width: 100%;
}

.inicio-greeting-title span {
    font-style: italic;
    color: var(--gold-soft);
}

.inicio-greeting-sub {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--cream-dim);
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* Tarjeta Héroe Doble Cuántico */
.inicio-future-hero-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.12) 0%, rgba(20, 86, 79, 0.18) 50%, rgba(16, 19, 20, 0.95) 100%);
    border: 1px solid rgba(199, 162, 78, 0.35);
    border-radius: 22px;
    padding: 26px 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 35px rgba(20, 86, 79, 0.15);
    position: relative;
    overflow: hidden;
}

.inicio-future-hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(199, 162, 78, 0.18) 0%, rgba(20, 86, 79, 0.12) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.future-hero-left {
    flex-shrink: 0;
}

@keyframes pulse-coherence {
    0%, 100% {
        box-shadow: 0 0 28px rgba(199, 162, 78, 0.35), 0 0 45px rgba(20, 86, 79, 0.25);
        border-color: rgba(199, 162, 78, 0.5);
    }
    50% {
        box-shadow: 0 0 42px rgba(199, 162, 78, 0.6), 0 0 65px rgba(31, 122, 110, 0.45);
        border-color: rgba(220, 189, 124, 0.9);
    }
}

.future-avatar-glow {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 2px solid rgba(199, 162, 78, 0.5);
    box-shadow: 0 0 32px rgba(199, 162, 78, 0.3), inset 0 0 16px rgba(20, 86, 79, 0.35);
    overflow: hidden;
    background: #0d1617;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-coherence 4s infinite ease-in-out;
}

/* Widget: Insight del Día (Diseño y Arquitectura Original de Kairos) */
.widget-box.insight-widget,
.inicio-insight-card {
    background: linear-gradient(135deg, rgba(20, 86, 79, 0.14) 0%, rgba(16, 19, 20, 0.94) 100%);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 18px;
    padding: 22px 26px;
    margin: 20px 0 24px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.widget-box.insight-widget h3,
.inicio-insight-card h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--gold);
    text-transform: uppercase;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-container {
    position: relative;
    padding-top: 6px;
}

.quote-mark {
    position: absolute;
    top: -12px;
    left: -6px;
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--gold);
    opacity: 0.28;
    line-height: 1;
    pointer-events: none;
}

.insight-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--cream);
    line-height: 1.65;
    position: relative;
    z-index: 2;
    margin: 0 0 14px 0;
}

.decor-line {
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
    border-radius: 1px;
}

.future-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.future-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.future-card-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--gold-soft);
    margin-bottom: 8px;
    display: inline-block;
}

.future-card-quote {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.7;
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 16px;
    margin: 0 0 18px 0;
}

.future-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-future-continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-future-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px var(--gold-glow);
}

.arrow-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-future-continue:hover .arrow-icon {
    transform: translateX(4px);
}

/* Divisor de Sección */
.inicio-section-divider {
    margin: 10px 0 2px 0;
}

.inicio-section-divider h3 {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--cream);
    margin-bottom: 3px;
}

.inicio-section-divider span {
    font-size: 0.78rem;
    color: var(--cream-muted);
}

/* Grid de Caminos de Transformación */
.inicio-path-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.inicio-path-card {
    background: linear-gradient(145deg, rgba(199, 162, 78, 0.05) 0%, rgba(22, 27, 28, 0.75) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 18px;
    padding: 20px 22px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.inicio-path-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 86, 79, 0.16) 0%, rgba(199, 162, 78, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.inicio-path-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 122, 110, 0.55);
    background: rgba(28, 35, 36, 0.95);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(20, 86, 79, 0.18);
}

.inicio-path-card:hover::before {
    opacity: 1;
}

.path-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.path-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(199, 162, 78, 0.2);
    transition: all 0.2s ease;
}

.inicio-path-card:hover .path-card-icon-wrap {
    background: rgba(20, 86, 79, 0.25);
    border-color: var(--emerald-bright);
    transform: scale(1.05);
}

.path-card-arrow {
    font-size: 1.15rem;
    color: var(--gold-soft);
    transition: all 0.2s ease;
}

.inicio-path-card:hover .path-card-arrow {
    color: var(--emerald-bright);
    transform: translate(3px, -3px);
}

.path-card-meta {
    position: relative;
    z-index: 1;
}

.path-card-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--emerald-bright);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.path-card-meta h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.path-card-meta p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--cream-dim);
    line-height: 1.55;
    margin-bottom: 16px;
}

.path-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-progress-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--emerald-bright));
    border-radius: 6px;
}

.mini-progress-label {
    font-size: 0.72rem;
    color: var(--cream-muted);
    font-weight: 600;
    white-space: nowrap;
}

.mirror-status-pill,
.chat-status-pill,
.reflections-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.mirror-status-pill {
    background: rgba(31, 122, 110, 0.2);
    border: 1px solid rgba(31, 122, 110, 0.4);
    color: var(--emerald-bright);
}

.chat-status-pill {
    background: rgba(199, 162, 78, 0.12);
    border: 1px solid rgba(199, 162, 78, 0.3);
    color: var(--gold-soft);
}

.reflections-count-pill {
    background: rgba(20, 86, 79, 0.15);
    border: 1px solid rgba(31, 122, 110, 0.3);
    color: var(--cream-dim);
}

/* ==========================================================================
   MODAL DE SUSCRIPCIÓN
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-sheet-card {
    width: 100%;
    max-width: 440px;
    background: var(--carbon-soft);
    border: 1px solid rgba(199, 162, 78, 0.28);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(20, 86, 79, 0.2);
}

.modal-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-sheet-header h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--cream);
}

.modal-close-icon {
    background: transparent;
    border: none;
    color: var(--cream-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.sub-plan-box {
    background: linear-gradient(145deg, rgba(199, 162, 78, 0.08) 0%, rgba(20, 86, 79, 0.12) 100%);
    border: 1px solid rgba(199, 162, 78, 0.35);
    border-radius: 14px;
    padding: 18px;
}

.sub-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-soft);
    margin-bottom: 6px;
    display: inline-block;
}

.sub-plan-box h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 6px;
}

.sub-plan-box p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   BANNER SUAVE DE VERIFICACIÓN DE EMAIL Y MODAL DE CANCELACIÓN
   ========================================================================== */
.email-verify-banner {
    background: linear-gradient(90deg, rgba(20, 86, 79, 0.45) 0%, rgba(16, 19, 20, 0.95) 100%);
    border-bottom: 1px solid rgba(199, 162, 78, 0.22);
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 15;
    animation: fadeInBanner 0.3s ease;
}

.email-verify-banner.hidden {
    display: none !important;
}

@keyframes fadeInBanner {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.verify-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.verify-icon {
    font-size: 0.95rem;
    color: var(--gold-soft);
    line-height: 1;
}

.verify-text {
    font-family: var(--font-sans);
    font-size: 0.79rem;
    color: var(--cream);
    letter-spacing: 0.01em;
}

.btn-verify-resend {
    background: rgba(199, 162, 78, 0.12);
    border: 1px solid rgba(199, 162, 78, 0.35);
    color: var(--gold-soft);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-verify-resend:hover {
    background: var(--gold-soft);
    color: var(--carbon);
}

.btn-verify-close {
    background: transparent;
    border: none;
    color: var(--cream-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-verify-close:hover {
    color: var(--cream);
}

/* Aviso de términos en el formulario de registro (Alta de cuenta) */
.trial-terms-notice {
    background: rgba(20, 86, 79, 0.16);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 15px;
    animation: fadeInTerms 0.3s ease;
}

@keyframes fadeInTerms {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.terms-notice-title {
    font-family: var(--font-sans);
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--gold-soft);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

.terms-notice-list {
    margin: 0;
    padding-left: 17px;
    font-family: var(--font-sans);
    font-size: 0.73rem;
    color: var(--cream);
    line-height: 1.48;
}

.terms-notice-list li {
    margin-bottom: 5px;
}

.terms-notice-list li strong {
    color: var(--gold-soft);
}

/* Modal de Cancelación de Suscripción Refinado */
.cancel-modal-sheet {
    max-width: 480px;
}

.cancel-guarantee-box {
    background: linear-gradient(145deg, rgba(20, 86, 79, 0.12) 0%, rgba(16, 19, 20, 0.95) 100%);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cancel-warning-tag {
    color: #f59e0b !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cancel-modal-heading {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    margin: 0;
}

.cancel-sub-intro {
    font-size: 0.81rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.cancel-consequences-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(16, 19, 20, 0.65);
    border: 1px solid rgba(199, 162, 78, 0.18);
    border-radius: 10px;
    padding: 12px;
}

.consequence-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consequence-icon {
    font-size: 1.05rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.consequence-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--cream-muted);
    line-height: 1.42;
}

.consequence-text strong {
    color: var(--cream);
}

.btn-keep-trial {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c7a24e 0%, #dfbc69 100%);
    border: none;
    border-radius: 10px;
    color: #101314;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(199, 162, 78, 0.25);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.btn-keep-trial:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(199, 162, 78, 0.4);
}

.btn-cancel-confirm {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-confirm:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ffffff;
}

/* Modal de Acceso Bonificado / Cupones */
.bono-modal-sheet {
    max-width: 440px;
}

.bono-intro-box {
    margin-bottom: 16px;
    background: rgba(16, 19, 20, 0.65);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
}

.bono-tag {
    background: rgba(199, 162, 78, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(199, 162, 78, 0.4);
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.bono-modal-intro {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--cream-muted);
    line-height: 1.45;
    margin: 0;
}

.bono-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bono-status-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    line-height: 1.4;
}

.bono-status-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.bono-status-msg.success {
    background: rgba(20, 86, 79, 0.25);
    border: 1px solid rgba(199, 162, 78, 0.4);
    color: #dfbc69;
}

.btn-bono-submit {
    margin-top: 6px;
    width: 100%;
}

/* ==========================================================================
   MEDIA QUERIES RESPONSIVE: MÓVIL (< 899px)
   ========================================================================== */
@media (max-width: 899px) {
    /* Ocultar barra de simulación en pantallas móviles reales */
    .device-simulator-bar {
        display: none !important;
    }
    
    #screen-portada {
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px)) 20px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 100dvh !important;
        height: auto !important;
    }

    /* Bloqueo rígido del viewport de la app para evitar que iOS desplace la pantalla hacia arriba */
    #screen-main.active {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
        z-index: 1;
    }

    /* Banner superior en móvil: despegado del notch / barra del navegador y full width */
    .portada-top-promo-banner {
        width: calc(100% + 40px) !important;
        margin: calc(-20px - env(safe-area-inset-top, 0px)) -20px 24px -20px !important;
        padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 12px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        font-size: 0.78rem !important;
        gap: 6px !important;
        text-align: center !important;
        justify-content: center !important;
        line-height: 1.4 !important;
    }

    /* Portada en 1 columna vertical idéntica a NorberMobilePortada */
    .portada-container {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 0 auto !important;
        padding-top: 10px;
    }

    .portada-hero-col {
        text-align: center;
        align-items: center;
    }

    .portada-headline {
        font-size: 2.3rem;
    }

    .portada-subtext {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 14px;
        padding: 0 12px;
    }

    .portada-science-text {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 22px;
        padding: 0 12px;
    }

    .portada-chips-row {
        gap: 8px;
    }

    .portada-chip {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    /* En Móvil la sidebar se convierte en Drawer deslizante */
    .sidebar-app {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: calc(18px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        padding-left: calc(14px + env(safe-area-inset-left, 0px)) !important;
        padding-right: 14px !important;
        box-sizing: border-box;
    }

    .sidebar-app.active {
        transform: translateX(0);
    }

    .drawer-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        box-sizing: border-box;
        margin-right: -8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Mostrar botón de 4 rayas en móvil */
    .menu-btn-4lines {
        display: flex;
    }

    .topbar-icon-action {
        display: flex;
    }

    /* Tarjetas de inicio en 1 columna vertical */
    .norber-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .norber-card-chip {
        padding: 15px 18px;
    }

    .assistant-avatar-box {
        width: 76px;
        height: 76px;
        border-radius: 50% !important;
        background: transparent !important;
        border: none !important;
        margin-bottom: 18px;
    }

    .assistant-question-title {
        font-size: 1.8rem;
    }

    .canvas-topbar {
        min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        height: auto !important;
        padding-top: max(14px, env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 8px !important;
        padding-left: calc(16px + env(safe-area-inset-left, 0px)) !important;
        padding-right: calc(16px + env(safe-area-inset-right, 0px)) !important;
        flex-shrink: 0 !important;
    }

    .canvas-scroll-content {
        padding: 16px 14px calc(165px + env(safe-area-inset-bottom, 0px)) 14px !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .msg-row {
        gap: 8px;
    }

    .msg-bubble-norber {
        max-width: 86%;
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .canvas-input-footer {
        padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    }

    /* Módulo Inicio en Móvil */
    .inicio-future-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
    }

    .future-avatar-glow {
        width: 72px;
        height: 72px;
        border-radius: 50%;
    }

    .inicio-greeting-title {
        font-size: 1.75rem;
    }

    .inicio-path-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================================================
   REGLAS DE SIMULACIÓN MÓVIL EN PANTALLAS DE ESCRITORIO
   ========================================================================== */
.mode-simulated-mobile #screen-portada,
.viewport-frame-mobile #screen-portada {
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    padding-top: 24px !important;
    height: 100% !important;
}

.mode-simulated-mobile .portada-container,
.viewport-frame-mobile .portada-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin: 0 auto !important;
    padding-top: 10px !important;
}

.mode-simulated-mobile .portada-hero-col,
.viewport-frame-mobile .portada-hero-col {
    text-align: center !important;
    align-items: center !important;
}

.mode-simulated-mobile .portada-headline,
.viewport-frame-mobile .portada-headline {
    font-size: 2.1rem !important;
}

.mode-simulated-mobile .portada-chips-row,
.viewport-frame-mobile .portada-chips-row {
    gap: 8px !important;
}

.mode-simulated-mobile .portada-chip,
.viewport-frame-mobile .portada-chip {
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
}

.mode-simulated-mobile .sidebar-app,
.viewport-frame-mobile .sidebar-app {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 85% !important;
    max-width: 320px !important;
    transform: translateX(-100%) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7) !important;
}

.mode-simulated-mobile .sidebar-app.active,
.viewport-frame-mobile .sidebar-app.active {
    transform: translateX(0) !important;
}

.mode-simulated-mobile .drawer-close-btn,
.viewport-frame-mobile .drawer-close-btn {
    display: block !important;
}

.mode-simulated-mobile .menu-btn-4lines,
.viewport-frame-mobile .menu-btn-4lines {
    display: flex !important;
}

.mode-simulated-mobile .topbar-icon-action,
.viewport-frame-mobile .topbar-icon-action {
    display: flex !important;
}

.mode-simulated-mobile .norber-cards-grid,
.viewport-frame-mobile .norber-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.mode-simulated-mobile .norber-card-chip,
.viewport-frame-mobile .norber-card-chip {
    padding: 15px 18px !important;
}

.mode-simulated-mobile .assistant-avatar-box,
.viewport-frame-mobile .assistant-avatar-box {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 18px !important;
}

.mode-simulated-mobile .assistant-question-title,
.viewport-frame-mobile .assistant-question-title {
    font-size: 1.8rem !important;
}

.mode-simulated-mobile .canvas-scroll-content,
.viewport-frame-mobile .canvas-scroll-content {
    padding: 16px 14px 90px 14px !important;
}

.mode-simulated-mobile .canvas-input-footer,
.viewport-frame-mobile .canvas-input-footer {
    padding: 8px 12px 14px 12px !important;
}

.mode-simulated-mobile .inicio-future-hero-card,
.viewport-frame-mobile .inicio-future-hero-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px !important;
    gap: 16px !important;
}

.mode-simulated-mobile .future-avatar-glow,
.viewport-frame-mobile .future-avatar-glow {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
}

.mode-simulated-mobile .inicio-greeting-title,
.viewport-frame-mobile .inicio-greeting-title {
    font-size: 1.75rem !important;
}

.mode-simulated-mobile .inicio-path-grid,
.viewport-frame-mobile .inicio-path-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

/* ============================================================== */
/* ESTILOS DE RECUPERACIÓN Y RESTABLECIMIENTO DE CONTRASEÑA       */
/* ============================================================== */
.reset-pass-card {
    max-width: 480px;
}

.reset-form-fields {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forgot-modal-sheet {
    max-width: 440px;
}

.forgot-intro-box {
    margin-bottom: 16px;
    background: rgba(16, 19, 20, 0.65);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
}

.forgot-tag {
    background: rgba(199, 162, 78, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(199, 162, 78, 0.4);
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.forgot-modal-intro {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--cream-muted);
    line-height: 1.45;
    margin: 0;
}

.forgot-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forgot-status-msg {
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.forgot-status-msg.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #d1fae5;
}

.forgot-status-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.btn-test-reset-link {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #dfbc69, #c7a24e);
    color: #06090e !important;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-test-reset-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* ==========================================================================
   MODAL DE ONBOARDING / SINTONIZACIÓN CUÁNTICA INICIAL
   ========================================================================== */
.onboarding-modal-sheet {
    max-width: 520px;
    padding: 24px;
    background: radial-gradient(circle at top, rgba(20, 86, 79, 0.25) 0%, #0d1218 70%);
    border: 1px solid rgba(199, 162, 78, 0.4);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(20, 86, 79, 0.35);
}

.onboarding-hero-banner {
    text-align: center;
    margin-bottom: 20px;
}

.onboarding-avatar-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    box-shadow: 0 0 25px rgba(223, 188, 105, 0.4);
}

.onboarding-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

.onboarding-tag {
    color: var(--gold-light);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
}

.onboarding-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--cream);
    margin: 4px 0 8px;
    font-weight: 600;
}

.onboarding-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--cream-muted);
    max-width: 440px;
    margin: 0 auto;
}

.onboarding-steps-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.onboarding-step-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(199, 162, 78, 0.16);
    border-radius: 12px;
    padding: 12px 14px;
}

.step-num-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(199, 162, 78, 0.18);
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text-wrap h5 {
    font-size: 0.88rem;
    color: var(--cream);
    margin: 0 0 3px;
    font-weight: 600;
}

.step-text-wrap p {
    font-size: 0.78rem;
    color: var(--cream-muted);
    line-height: 1.4;
    margin: 0;
}

.onboarding-focus-section {
    margin-bottom: 22px;
}

.onboarding-focus-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.onboarding-chips-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.15fr;
    gap: 4px;
}

@media (max-width: 540px) {
    .onboarding-chips-grid {
        grid-template-columns: 1fr;
    }
}

.onboarding-focus-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 10px;
    color: var(--cream-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-focus-chip:hover {
    background: rgba(199, 162, 78, 0.1);
    color: var(--cream);
    border-color: rgba(199, 162, 78, 0.45);
}

.onboarding-focus-chip.active {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.18) 0%, rgba(20, 86, 79, 0.3) 100%);
    border-color: var(--gold-light);
    color: #fff;
    box-shadow: 0 0 16px rgba(199, 162, 78, 0.2);
}

.btn-onboarding-start {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(223, 188, 105, 0.35);
}

/* ==========================================================================
   REGLAS DINÁMICAS DE CONTRASEÑA EN TIEMPO REAL (ROJO / VERDE)
   ========================================================================== */
.password-rules-container {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(16, 19, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.76rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.rule-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Estado no cumplido / pendiente: ROJO */
.rule-legend.rule-invalid,
.rule-legend.rule-pending {
    color: #ef4444;
    font-weight: 500;
}

/* Estado cumplido: VERDE */
.rule-legend.rule-valid {
    color: #10b981;
    font-weight: 600;
}

/* ==========================================================================
   BOTÓN REVELADOR DE CONTRASEÑA ("EL OJITO" MANTENER PRESIONADO)
   ========================================================================== */
.input-password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-password-wrapper input {
    width: 100%;
    padding-right: 46px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--cream-muted, #a1a1aa);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s ease, transform 0.1s ease, background 0.15s ease;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.btn-toggle-password:hover {
    color: var(--color-gold, #dfbc69);
    background: rgba(199, 162, 78, 0.08);
}

.btn-toggle-password.active,
.btn-toggle-password:active {
    color: var(--emerald-bright, #10b981) !important;
    background: rgba(16, 185, 129, 0.12) !important;
    transform: translateY(-50%) scale(1.08);
}

.btn-toggle-password svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    display: block;
}

/* ==========================================================================
   SELECTOR DE TIPO DE REGISTRO (STRIPE VS LICENCIA / TESTER)
   ========================================================================== */
.register-type-switcher {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.15fr;
    gap: 4px;
    background: rgba(16, 19, 20, 0.75);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.reg-type-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--cream-muted, #a1a1aa);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.reg-type-btn.active {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.22) 0%, rgba(20, 86, 79, 0.35) 100%);
    color: var(--color-gold, #dfbc69);
    border-color: rgba(199, 162, 78, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BADGE LIFETIME SOBERANO (HEADER, HERO, CHAT)
   ========================================================================== */
.badge-lifetime-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.22) 0%, rgba(16, 185, 129, 0.22) 100%);
    border: 1px solid rgba(199, 162, 78, 0.55);
    color: #dfbc69;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(199, 162, 78, 0.3);
    vertical-align: middle;
}

.chat-lifetime-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(16, 19, 20, 0.65);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 20px;
    margin: 8px auto 14px auto;
    width: fit-content;
}

.chat-lic-code {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--emerald-bright, #10b981);
    letter-spacing: 1px;
}

.norber-card-chip.chip-lifetime-special {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.15) 0%, rgba(20, 86, 79, 0.28) 100%);
    border: 1px solid rgba(199, 162, 78, 0.5);
    box-shadow: 0 4px 14px rgba(199, 162, 78, 0.15);
}

.norber-card-chip.chip-lifetime-special:hover {
    border-color: #dfbc69;
    box-shadow: 0 4px 20px rgba(199, 162, 78, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   INTERACCIÓN Y BOTÓN DE GUARDADO EN MI BITÁCORA PERSONAL
   ========================================================================== */
.msg-tools-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-save-bitacora {
    background: rgba(199, 162, 78, 0.08);
    border: 1px solid rgba(199, 162, 78, 0.28);
    color: var(--gold-soft);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-save-bitacora:hover {
    background: rgba(199, 162, 78, 0.18);
    border-color: var(--gold);
    color: var(--cream);
    transform: translateY(-1px);
}

.btn-save-bitacora.saved {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    cursor: default;
}

/* ==========================================================================
   TOASTS Y NOTIFICACIONES SUTILES KAIROS
   ========================================================================== */
.kairos-toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kairos-toast {
    background: rgba(16, 19, 20, 0.96);
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(199, 162, 78, 0.25);
    border-radius: 30px;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.4s cubic-bezier(0.7, 0, 0.84, 0) 2.2s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-8px) scale(0.96); }
}

/* ==========================================================================
   EL UMBRAL - REGALO INAUGURAL (EXPERIENCIA SAGRADA DE BIENVENIDA)
   ========================================================================== */

/* 1. Tarjeta Banner en el Hero Vacío */
.umbral-hero-gift-card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 28px auto;
    background: linear-gradient(135deg, rgba(22, 27, 28, 0.95) 0%, rgba(13, 46, 41, 0.55) 50%, rgba(20, 86, 79, 0.25) 100%);
    border: 1px solid rgba(199, 162, 78, 0.45);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 40px rgba(199, 162, 78, 0.12);
    padding: 24px 26px;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.umbral-hero-gift-card:hover {
    border-color: rgba(199, 162, 78, 0.7);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 50px rgba(199, 162, 78, 0.22);
}

.umbral-hero-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.umbral-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(199, 162, 78, 0.16);
    border: 1px solid rgba(199, 162, 78, 0.4);
    color: var(--gold-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.umbral-badge-pages {
    font-size: 0.72rem;
    color: var(--cream-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.umbral-hero-body {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Mockup libro 3D miniatura */
.umbral-book-art {
    flex-shrink: 0;
    width: 82px;
    height: 116px;
    background: linear-gradient(145deg, #182321 0%, #0d1e1c 100%);
    border-radius: 6px 12px 12px 6px;
    border: 1px solid rgba(199, 162, 78, 0.5);
    box-shadow: 4px 8px 22px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(199, 162, 78, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 6px;
    position: relative;
    border-left: 4px solid var(--gold);
}

.umbral-book-symbol {
    font-size: 1.4rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 6px rgba(199, 162, 78, 0.5));
}

.umbral-book-title {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 4px;
}

.umbral-book-brand {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    color: var(--gold-soft);
    font-weight: 600;
}

.umbral-hero-info {
    flex: 1;
    min-width: 0;
}

.umbral-hero-headline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-soft);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.umbral-hero-subheadline {
    font-size: 0.8rem;
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.umbral-hero-copy {
    font-size: 0.82rem;
    color: var(--cream-dim);
    line-height: 1.55;
    margin-bottom: 16px;
}

.umbral-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-umbral-hero-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #b38e3e 100%);
    color: #0d1211 !important;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(199, 162, 78, 0.35);
    transition: all 0.2s ease;
}

.btn-umbral-hero-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(199, 162, 78, 0.5);
    color: #000 !important;
}

.btn-arrow-down {
    font-size: 1rem;
    font-weight: 800;
}

.umbral-reading-note {
    font-size: 0.74rem;
    color: var(--cream-muted);
    font-style: italic;
}

/* 2. Tarjeta Interactiva dentro del Chat (Inaugural) */
.msg-download-card {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(20, 86, 79, 0.35) 0%, rgba(16, 21, 22, 0.9) 100%);
    border: 1px solid rgba(199, 162, 78, 0.45);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.msg-download-card-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.msg-download-icon-box {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.msg-download-info {
    flex: 1;
}

.msg-download-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-soft);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.msg-download-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 4px;
    font-weight: 500;
}

.msg-download-desc {
    font-size: 0.8rem;
    color: var(--cream-dim);
    line-height: 1.45;
}

.btn-msg-download-gift {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #b38e3e 100%);
    color: #0e1312 !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 9px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(199, 162, 78, 0.3);
    transition: all 0.2s ease;
}

.btn-msg-download-gift:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(199, 162, 78, 0.45);
    color: #000 !important;
}

/* 3. Link en Sidebar */
.nav-umbral-gift-link {
    text-decoration: none !important;
    color: var(--cream-dim) !important;
}

.nav-umbral-gift-link:hover {
    color: var(--gold-soft) !important;
    background: rgba(199, 162, 78, 0.08) !important;
}

.badge-gift {
    background: rgba(199, 162, 78, 0.2) !important;
    color: var(--gold-soft) !important;
    border: 1px solid rgba(199, 162, 78, 0.4) !important;
}

/* Adaptación móvil */
@media (max-width: 600px) {
    .umbral-hero-gift-card {
        padding: 18px 16px;
        margin-bottom: 20px;
    }
    .umbral-hero-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .umbral-book-art {
        display: none;
    }
    .btn-umbral-hero-download {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   WIDGET FLOTANTE DE ASISTENCIA TÉCNICA INTELIGENTE (ESTILO KAIROS LUXURY)
   ========================================================================== */
.support-widget-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    font-family: inherit;
}

.support-launcher-pill {
    display: none !important;
}

.support-launcher-pill:hover {
    transform: translateY(-2px);
    background: rgba(17, 26, 28, 0.98);
    border-color: rgba(224, 149, 32, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 22px rgba(224, 149, 32, 0.3);
}

.support-launcher-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.support-unread-badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e09520;
    color: #0a0d0e;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: supportBadgePulse 1.8s infinite ease-in-out;
}

@keyframes supportBadgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(224, 149, 32, 0.7);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 0 0 7px rgba(224, 149, 32, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(224, 149, 32, 0);
    }
}

.support-chat-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 100px);
    background: rgba(10, 14, 15, 0.96);
    border: 1px solid rgba(199, 162, 78, 0.4);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(199, 162, 78, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: supportSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99995;
}

@keyframes supportSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.support-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(17, 24, 26, 0.92);
    border-bottom: 1px solid rgba(199, 162, 78, 0.25);
    user-select: none;
}

.support-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(199, 162, 78, 0.15);
    border: 1px solid rgba(199, 162, 78, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.support-header-meta {
    display: flex;
    flex-direction: column;
}

.support-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ece4d5;
    letter-spacing: 0.02em;
}

.support-header-status {
    font-size: 0.72rem;
    color: rgba(236, 228, 213, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.support-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.support-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ece4d5;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.support-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.support-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.support-messages-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.support-messages-body::-webkit-scrollbar {
    width: 5px;
}
.support-messages-body::-webkit-scrollbar-thumb {
    background: rgba(199, 162, 78, 0.25);
    border-radius: 4px;
}

.support-msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
}

.support-msg.bot {
    align-self: flex-start;
}

.support-msg.user {
    align-self: flex-end;
}

.support-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.48;
    color: #ece4d5;
    word-break: break-word;
}

.support-msg.bot .support-msg-bubble {
    background: rgba(22, 30, 32, 0.9);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-top-left-radius: 4px;
}

.support-msg.user .support-msg-bubble {
    background: rgba(224, 149, 32, 0.2);
    border: 1px solid rgba(224, 149, 32, 0.45);
    border-top-right-radius: 4px;
    color: #fff;
}

.support-msg-time {
    font-size: 0.66rem;
    color: rgba(236, 228, 213, 0.45);
    margin-top: 3px;
    padding: 0 4px;
}

.support-msg.user .support-msg-time {
    align-self: flex-end;
}

.support-typing-indicator {
    padding: 6px 16px;
    font-size: 0.74rem;
    color: rgba(199, 162, 78, 0.85);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    animation: typingBlink 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.support-wsp-card {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-wsp-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    background: #10b981;
    color: #06281e;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.support-wsp-card-btn:hover {
    background: #059669;
    color: #fff;
}

.support-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(15, 20, 22, 0.98);
    border-top: 1px solid rgba(199, 162, 78, 0.25);
}

.support-chat-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 10px;
    color: #ece4d5;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.support-chat-input:focus {
    border-color: rgba(224, 149, 32, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.btn-support-send {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e09520;
    border: none;
    color: #0a0d0e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-support-send:hover {
    background: #f59e0b;
    transform: scale(1.05);
}

.btn-support-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sidebar-help-assistant-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: rgba(199, 162, 78, 0.1);
    border: 1px solid rgba(199, 162, 78, 0.3);
    border-radius: 8px;
    color: #ece4d5;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sidebar-help-assistant-btn:hover {
    background: rgba(199, 162, 78, 0.2);
    border-color: rgba(224, 149, 32, 0.6);
    color: #fff;
}

@media (max-width: 768px) {
    .support-widget-wrapper {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        left: 16px;
        display: flex;
        justify-content: center;
        pointer-events: none;
    }
    .support-chat-card {
        width: 100%;
        max-width: 400px;
        height: min(520px, calc(100dvh - 110px));
        position: relative;
        bottom: 0;
        right: 0;
        pointer-events: auto;
    }
}

/* ==========================================================================
   REGISTRO KAIROS FINAL - NORBER EDITION (MOBILE FIRST & DESKTOP ALIGNED)
   ========================================================================== */

.preview-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Tarjeta Principal con Borde Degradado Norber */
.auth-card-norber {
    position: relative;
    background:
        linear-gradient(rgba(10, 13, 14, 0.88), rgba(10, 13, 14, 0.88)) padding-box,
        linear-gradient(160deg, #e9cf86 0%, #c7a24e 28%, #8a7a3e 48%, #1f7a6c 70%, #c7a24e 100%) border-box !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 3.5px solid transparent !important;
    border-radius: 36px !important;
    padding: 30px 24px 26px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 60px rgba(199, 162, 78, 0.22), 0 0 120px rgba(20, 86, 79, 0.18) !important;
    overflow: hidden;
}

/* Ribbon esquina */
.auth-ribbon-corner {
    position: absolute;
    top: 18px;
    right: -38px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #dfbc69 0%, #C7A24E 50%, #9e7a2b 100%);
    color: #101314;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-transform: uppercase;
    z-index: 10;
}

/* 1. WHATSAPP ARRIBA DEL TODO: Píldora interactiva */
.auth-whatsapp-top-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 20px;
    text-decoration: none;
    color: #34d399;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.auth-whatsapp-top-badge:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.auth-whatsapp-top-badge svg {
    flex-shrink: 0;
    color: #22c55e;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* 2. Pestañas Ingresar / Crear Cuenta */
.auth-tabs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(199, 162, 78, 0.18);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
}

.auth-tab-btn {
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--cream-dim, #B8B0A2);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, rgba(199, 162, 78, 0.22), rgba(199, 162, 78, 0.08));
    border-color: rgba(199, 162, 78, 0.6);
    color: var(--gold-soft, #DFBC69);
    box-shadow: 0 2px 10px rgba(199, 162, 78, 0.15);
}

/* Switcher Facturación (Mensual / Anual) */
.plan-billing-switcher {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.15fr;
    gap: 4px;
    margin-bottom: 14px;
}

.billing-switch-btn {
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--cream-dim, #B8B0A2);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.billing-switch-btn.active {
    border-color: var(--gold, #C7A24E);
    background: rgba(199, 162, 78, 0.14);
    color: var(--cream, #ECE4D5);
}

.badge-discount-pill {
    background: var(--gold, #C7A24E);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

/* Formulario Simple */
.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form-fields .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.auth-form-fields .form-group label {
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--cream, #ECE4D5);
    letter-spacing: 0.01em;
    display: flex;
    justify-content: space-between;
}

.auth-form-fields .form-group label span.req {
    color: var(--gold-soft, #DFBC69);
    font-size: 0.72rem;
    font-weight: 500;
}

.auth-form-fields .form-group input {
    width: 100%;
    padding: 13px 14px;
    background: rgba(22, 30, 31, 0.92);
    border: 1px solid rgba(199, 162, 78, 0.22);
    border-radius: 14px;
    color: var(--cream, #ECE4D5);
    font-size: 0.94rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form-fields .form-group input:focus {
    border-color: var(--gold-soft, #DFBC69);
    background: rgba(18, 23, 24, 0.95);
    box-shadow: 0 0 16px rgba(199, 162, 78, 0.28);
}

.input-password-wrapper {
    position: relative;
    width: 100%;
}

.input-password-wrapper input {
    padding-right: 44px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cream-muted, #827B70);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.btn-toggle-password:hover {
    color: var(--gold-soft, #DFBC69);
}

.field-helper {
    font-size: 0.72rem;
    color: var(--cream-muted, #827B70);
    margin-top: 2px;
}

/* 4. BOTÓN PRINCIPAL A TIRO HECHO */
.btn-submit-kairos {
    margin-top: 8px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #dfbc69 0%, #C7A24E 50%, #b08c32 100%);
    color: #0a0d0e;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(199, 162, 78, 0.4), 0 0 15px rgba(223, 188, 105, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-kairos:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(199, 162, 78, 0.55);
}

/* 5. Micro-garantía y Consentimiento Integrado */
.trust-banner {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--gold-soft, #DFBC69);
    font-weight: 700;
    text-align: center;
    background: rgba(223, 188, 105, 0.08);
    border: 1px solid rgba(223, 188, 105, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
}

.legal-notice {
    margin-top: 10px;
    font-size: 0.73rem;
    color: var(--cream-muted, #827B70);
    line-height: 1.45;
    text-align: center;
}

.legal-notice a {
    color: var(--cream-dim, #B8B0A2);
    text-decoration: underline;
}

/* Enlace discreto para testers/licencia al pie */
.tester-link-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.tester-link-row a {
    color: var(--cream-muted, #827B70);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.tester-link-row a:hover {
    color: var(--gold-soft, #DFBC69);
    text-decoration: underline;
}

/* Logo envolvente de fondo: grande, difuminado y respirando */
.kairos-aura {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kairos-aura img {
    width: min(170vw, 1100px); opacity: 0.10; filter: blur(3px) saturate(1.1);
    animation: aura-breathe 14s ease-in-out infinite;
}
.kairos-aura::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(6,8,9,0.55) 70%);
}
@keyframes aura-breathe {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.08; }
    50% { transform: scale(1.06) rotate(1.5deg); opacity: 0.13; }
}
@media (prefers-reduced-motion: reduce) { .kairos-aura img { animation: none; } }

/* Marca dentro de la tarjeta */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px 0 18px; }
.auth-brand img { width: 74px; height: 74px; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 14px rgba(199,162,78,0.35)); }
.auth-brand span { font-family: 'Playfair Display', Georgia, serif; letter-spacing: 0.32em; font-size: 0.82rem; color: var(--gold-soft, #DFBC69); padding-left: 0.32em; }
.card-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.card-aura img { width: 190%; max-width: none; opacity: 0.07; filter: blur(2px); animation: aura-breathe 14s ease-in-out infinite; }
.auth-card-norber > *:not(.card-aura):not(.auth-ribbon-corner) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .card-aura img { animation: none; } }
.auth-headline { text-align: center; margin: 0 0 18px; }
.auth-headline h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.2; color: var(--cream, #ECE4D5); }
.auth-headline h1 em { color: var(--gold-soft, #DFBC69); font-style: italic; font-weight: 500; }
.auth-headline .rule { width: 72px; height: 1px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, #C7A24E, transparent); }



/* Anti-CLS instant paint for mode=register */
html.initial-mode-register #auth-tab-register {
  color: #dfbc69 !important;
  border-bottom: 2px solid #dfbc69 !important;
}
html.initial-mode-register #auth-tab-login {
  color: rgba(236, 228, 213, 0.45) !important;
  border-bottom: 2px solid transparent !important;
}
html.initial-mode-register #plan-selector-container,
html.initial-mode-register #name-container,
html.initial-mode-register #terms-container,
html.initial-mode-register #register-trial-badge,
html.initial-mode-register #register-trial-benefits {
  display: block !important;
}

/* Spinner elegante para transicion suave de checkout */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.kairos-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(10, 13, 14, 0.25);
  border-top-color: #0a0d0e;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: middle;
}

/* Soporte de 3 botones en selector de planes */
.plan-billing-switcher {
    grid-template-columns: 1fr 1.05fr 1.15fr !important;
}
@media (max-width: 360px) {
    .billing-switch-btn {
        padding: 8px 4px !important;
        font-size: 0.74rem !important;
    }
}

/* Estilos Freemium: Contador diario, candados y modal */
.freemium-daily-badge {
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    margin: 0 auto 8px auto;
    max-width: 760px;
    width: 100%;
    background: rgba(199, 162, 78, 0.09);
    border: 1px solid rgba(199, 162, 78, 0.25);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--cream, #ece4d5);
    box-sizing: border-box;
}
.freemium-daily-badge.limit-reached {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
}
.freemium-upgrade-link {
    pointer-events: auto !important;
    color: var(--gold-soft, #dfbc69);
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}
.freemium-upgrade-link:hover {
    color: #fff;
}
.nav-module-item.is-freemium-locked {
    opacity: 0.65;
}
.nav-module-item.is-freemium-locked:hover {
    opacity: 0.9;
}

/* Bloqueo Freemium para WhatsApp y Recursos */
.sidebar-whatsapp-btn.is-freemium-locked {
    opacity: 0.55 !important;
    filter: grayscale(0.5);
    cursor: pointer;
}
.sidebar-whatsapp-btn.is-freemium-locked:hover {
    opacity: 0.85 !important;
}
.nav-umbral-gift-link.is-freemium-locked {
    opacity: 0.65;
}
.nav-umbral-gift-link.is-freemium-locked:hover {
    opacity: 0.9;
}

/* Blindaje Freemium Total para El Umbral */
body.tier-freemium .umbral-hero-gift-card,
body.tier-freemium .msg-download-card,
body.tier-freemium .nav-umbral-gift-link,
body.tier-freemium #nav-umbral-link {
    display: none !important;
}

.modal-close-btn-fixed {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(199, 162, 78, 0.28);
    color: var(--cream-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn-fixed:hover,
.modal-close-btn-fixed:active {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.umbral-viewer-card {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(199, 162, 78, 0.2);
}
