@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

/* ============================================================
   TOKENS — KV "Awaken New Horizons"
   ============================================================ */
:root {
    /* Paleta */
    --coral:        #F25C4B;
    --coral-dark:   #D94535;
    --lime:         #A8E032;
    --lime-dark:    #8AC428;
    --yellow:       #FFC72C;
    --purple:       #8B5CF6;
    --dark:         #1A1918;
    --white:        #FFFFFF;

    /* Tema claro (preguntar) */
    --bg:           #EDECE7;
    --surface:      #FFFFFF;
    --border:       #D5D3CB;
    --text:         #1A1918;
    --muted:        #7A7870;
    --muted-light:  #B0AEA6;

    /* Tipografía */
    --font:         'Space Grotesk', system-ui, sans-serif;
    --radius:       14px;
    --radius-sm:    8px;
}

/* ============================================================
   ORIENT LOCK — overlay "girá el teléfono" en landscape mobile
   Solo activo en preguntar.php (page-preguntar) y vistas mobile.
   ============================================================ */
.orient-lock { display: none; }

@media (orientation: landscape) and (max-width: 900px) {
    .page-preguntar .orient-lock {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(13, 15, 20, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        color: #fff;
        text-align: center;
        padding: 2rem;
        font-family: var(--font);
    }
    .orient-lock-icon {
        font-size: 4rem;
        line-height: 1;
        margin-bottom: 1.25rem;
        animation: orient-rotate 2s ease-in-out infinite;
        display: inline-block;
    }
    .orient-lock-msg {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: -.02em;
        margin-bottom: .35rem;
        max-width: 360px;
    }
    .orient-lock-sub {
        font-size: .9rem;
        color: rgba(255, 255, 255, .65);
        font-weight: 500;
    }
    @keyframes orient-rotate {
        0%, 100% { transform: rotate(0deg); }
        50%      { transform: rotate(-90deg); }
    }
}

/* ============================================================
   BASE — tipografía global para todas las vistas públicas
   ============================================================ */
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   UTILITARIOS
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   PREGUNTAR — Mobile-first, tema claro KV
   ============================================================ */
.page-preguntar {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
}

/* Contenedor */
.page-preguntar .container {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.25rem 2rem;
}

/* Secciones */
.form-section     { margin-bottom: 2.5rem; }
.approved-section { margin-bottom: 5rem; /* espacio para el footer */ }

.approved-section h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Campos */
.field { margin-bottom: 1rem; }
.field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: .45rem;
}
.char-count {
    font-size: .75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-light);
}
.char-count.near-limit { color: var(--coral); }
.field-optional {
    font-size: .7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-light);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .05rem .45rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: .8rem 1rem;
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 500;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--dark);
    box-shadow: 0 0 0 4px rgba(26,25,24,.08);
}
textarea {
    resize: none;
    min-height: 110px;
    border-radius: var(--radius);
    line-height: 1.55;
}
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7870' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* Botones */
.btn {
    display: block;
    width: 100%;
    padding: .9rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: -.01em;
    text-align: center;
    text-decoration: none;
    transition: transform .12s, background .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(242,92,75,.3);
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    margin-top: .75rem;
}
.btn-secondary:hover { border-color: var(--dark); }

/* Estados del formulario */
.form-error {
    color: var(--coral);
    font-size: .88rem;
    font-weight: 500;
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.success-msg {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 2px solid var(--lime);
}
.success-msg p {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.success-msg p::before {
    content: '✓ ';
    color: var(--lime-dark);
}

.loading-msg { color: var(--muted); font-size: .9rem; }

/* Tarjetas de preguntas aprobadas */
.questions-list { display: flex; flex-direction: column; gap: .75rem; }

.q-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: border-color .15s;
}
.q-card:hover { border-color: #C0BEB6; }

.q-card-text { font-size: .95rem; font-weight: 500; line-height: 1.45; color: var(--text); }

.q-card-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.q-card-author { font-size: .78rem; color: var(--muted); font-weight: 500; }

.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-panelist { background: #EDE9FF; color: #6D3EE8; }

.votes-remaining-badge {
    font-size: .75rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: .15rem .65rem;
    color: var(--muted);
    font-weight: 600;
    margin-left: .3rem;
}

.btn-vote {
    margin-left: auto;
    padding: .3rem .85rem;
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 999px;
    background: transparent;
    border: 2px solid var(--lime-dark);
    color: var(--lime-dark);
    cursor: pointer;
    transition: background .12s, color .12s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn-vote:hover  { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.btn-vote.voted  { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.btn-vote:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: transparent;
    border-color: var(--border);
    color: var(--muted-light);
}

/* Footer del evento */
.event-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .72rem;
    color: var(--muted-light);
    font-weight: 500;
    z-index: 10;
}
.event-footer-brand { display: inline-flex; align-items: center; color: var(--muted); }
.event-footer-name { font-weight: 700; color: var(--muted); }
.event-footer-sep  { color: var(--border); }
.event-footer-credit { color: var(--muted); }
.event-footer-credit a { color: var(--coral); text-decoration: none; font-weight: 600; }
.event-footer-credit a:hover { text-decoration: underline; }
.event-footer-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
}

/* ============================================================
   PIZARRA — Tema oscuro con acentos KV
   ============================================================ */
.page-pizarra {
    --p-bg:       #0D0F14;
    --p-surface:  #13161F;
    --p-border:   #1E2130;
    --p-text:     #F0EEE8;
    --p-muted:    #525670;

    overflow: hidden;
    height: 100vh;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: var(--font);
    /* Barra de acento coral en el top */
    border-top: 3px solid var(--coral);
}

.pizarra-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: 1fr 152px;
    grid-template-areas:
        "zona-a zona-b"
        "zona-c zona-b";
    height: calc(100vh - 3px); /* compensar barra top */
}

/* --- Zona A --- */
.zona-a {
    grid-area: zona-a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 4rem;
    border-right: 1px solid var(--p-border);
    border-bottom: 1px solid var(--p-border);
}

/* Blobs decorativos — flotan lentamente */
.zona-a::before,
.zona-a::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.zona-a::before {
    width: 520px; height: 520px;
    background: var(--coral);
    opacity: .04;
    top: -160px; right: -160px;
    animation: blobDrift1 14s ease-in-out infinite;
}
.zona-a::after {
    width: 380px; height: 380px;
    background: var(--lime);
    opacity: .03;
    bottom: -120px; left: -80px;
    animation: blobDrift2 18s ease-in-out infinite;
}

/* Estado vacío */
.zona-a-empty {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nombre del evento — respira */
.waiting-event {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--p-text);
    line-height: 1.2;
    margin-bottom: .6rem;
    animation: textBreath 4s ease-in-out infinite;
}
.waiting-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--p-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* Pregunta activa */
.zona-a-question {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Label "EN RESPUESTA" con dot pulsante */
.za-status-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--coral);
    margin-bottom: 1.5rem;
}
.za-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.za-panelist-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.4rem;
}
.za-panelist-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--p-muted);
}
.za-panelist-badge {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    border-radius: 999px;
    padding: .3rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.za-text {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.03em;
    color: var(--p-text);
    margin-bottom: 1.3rem;
    /* Sin border-left — el texto habla solo */
}

.za-author {
    font-size: 1rem;
    font-weight: 500;
    color: var(--p-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.za-author::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--p-muted);
    border-radius: 2px;
    flex-shrink: 0;
}

/* --- Animaciones --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes statBump {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes blobDrift1 {
    0%, 100% { transform: translate(0,    0);   }
    40%       { transform: translate(-50px, 35px); }
    70%       { transform: translate(30px, -20px); }
}
@keyframes blobDrift2 {
    0%, 100% { transform: translate(0,    0);   }
    35%       { transform: translate(40px, -30px); }
    65%       { transform: translate(-25px, 20px); }
}
@keyframes textBreath {
    0%, 100% { opacity: .22; }
    50%       { opacity: .42; }
}
.anim-enter { animation: slideIn .4s cubic-bezier(.22,.68,0,1.15) forwards; }
.stat-bump  { animation: statBump .35s ease forwards; }

/* --- Zona B --- */
.zona-b {
    grid-area: zona-b;
    background: var(--p-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--p-border);
}

.zona-b-block {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.zona-b-answered {
    border-top: 1px solid var(--p-border);
    background: rgba(0,0,0,.18);
}

.zona-b-label {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .75rem;
    flex-shrink: 0;
}
.zona-b-label--pending { color: var(--coral); }
.zona-b-label--answered { color: var(--p-muted); }

.queue-list,
.answered-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--p-border) transparent;
}

.queue-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--p-border);
    border-radius: var(--radius-sm);
    padding: .65rem .85rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 58px;
    justify-content: space-between;
    transition: background .2s;
}
.queue-card-para {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.queue-para-label {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--p-muted);
}
.queue-card-text { font-size: .85rem; font-weight: 500; line-height: 1.4; color: var(--p-text); }
.queue-author { font-style: italic; color: var(--p-muted); }
.queue-card-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    min-height: 18px;
}
.queue-votes {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--coral);
    margin-left: auto;
    white-space: nowrap;
    background: rgba(242,92,75,.1);
    border-radius: 999px;
    padding: .1rem .5rem;
}

.answered-card {
    border-radius: var(--radius-sm);
    padding: .45rem .75rem;
    flex-shrink: 0;
    opacity: .55;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-height: 40px;
    justify-content: center;
}
.answered-text { font-size: .76rem; font-weight: 400; line-height: 1.35; color: var(--p-muted); }
.answered-meta { display: flex; align-items: center; gap: .4rem; font-size: .68rem; color: #353850; flex-wrap: wrap; }

.badge          { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 700; }
.badge-panelist { background: rgba(139,92,246,.18); color: #A78BFA; }
.empty-msg      { color: var(--p-muted); font-size: .8rem; font-weight: 400; }

/* --- Zona C --- */
.zona-c {
    grid-area: zona-c;
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--p-border);
    padding: .8rem 1.5rem .8rem 2rem;
    background: var(--p-bg);
}

.zona-c-metrics {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius-sm);
    padding: .45rem .9rem;
    min-width: 66px;
    border: 1px solid transparent;
}
.metric-card:nth-child(1) { background: rgba(242,92,75,.1);  border-color: rgba(242,92,75,.18); }
.metric-card:nth-child(2) { background: rgba(168,224,50,.08); border-color: rgba(168,224,50,.16); }
.metric-card:nth-child(3) { background: rgba(255,199,44,.08); border-color: rgba(255,199,44,.16); }
.metric-card:nth-child(4) { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.18); }

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    display: block;
    letter-spacing: -.02em;
}
.metric-card:nth-child(1) .metric-value { color: var(--coral); }
.metric-card:nth-child(2) .metric-value { color: var(--lime); }
.metric-card:nth-child(3) .metric-value { color: var(--yellow); }
.metric-card:nth-child(4) .metric-value { color: var(--purple); }

.metric-label {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .18rem;
    white-space: nowrap;
    color: var(--p-muted);
}

/* Nombre del evento entre métricas y QR */
.zona-c-event {
    padding: 0 1.2rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: flex-start;
    justify-content: center;
}
.zona-c-event-brand {
    display: inline-flex;
    align-items: center;
    color: var(--p-muted);
    opacity: .8;
}
.zona-c-event-name {
    font-size: .72rem;
    font-weight: 700;
    color: var(--p-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    writing-mode: horizontal-tb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: block;
}

.zona-c-qr {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--p-border);
}
#qr-container { line-height: 0; }
#qr-container table { border-spacing: 0; border-collapse: collapse; }
#qr-container canvas,
#qr-container img,
#qr-container table { display: block; border-radius: 6px; overflow: hidden; }

.qr-info { display: flex; flex-direction: column; gap: .25rem; }
.qr-invite { font-size: .88rem; font-weight: 700; color: var(--p-text); line-height: 1.2; }
.qr-url    { font-size: .66rem; color: var(--p-muted); font-weight: 400; }

/* ============================================================
   BREAKPOINT MEDIO — 1125px
   ============================================================ */
@media (max-width: 1125px) {
    .pizarra-layout { grid-template-columns: 1fr 300px; }

    .zona-a              { padding: 2.5rem; }
    .za-text             { font-size: clamp(1.5rem, 3vw, 2.2rem); }
    .za-author           { font-size: .88rem; }
    .za-panelist-badge   { font-size: .76rem; padding: .25rem .8rem; }
    .za-panelist-wrap    { margin-bottom: 1rem; gap: .3rem; }
    .za-status-label     { font-size: .62rem; margin-bottom: 1.1rem; }
    .waiting-event       { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

    .zona-b-label        { font-size: .58rem; }
    .queue-card-text     { font-size: .8rem; }
    .queue-votes         { font-size: .68rem; }
    .answered-text       { font-size: .72rem; }

    .metric-value        { font-size: 1.2rem; }
    .metric-label        { font-size: .56rem; }
    .metric-card         { padding: .38rem .72rem; min-width: 56px; }
    .zona-c-metrics      { gap: .55rem; }
    .zona-c-event-name   { font-size: .62rem; max-width: 120px; }
    .qr-invite           { font-size: .78rem; }
    .qr-url              { font-size: .6rem; }
}

/* ============================================================
   LANDING
   ============================================================ */
.page-landing {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Logo SVG reutilizable. Hereda color vía currentColor. --- */
.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    line-height: 1;
    color: var(--coral);
}
.logo-brand svg { display: block; width: auto; }
.logo-brand--sm svg { height: 20px; }
.logo-brand--md svg { height: 28px; }
.logo-brand--lg svg { height: 44px; }
.logo-brand--xl svg { height: 72px; }
.logo-brand-tagline {
    font-size: .78rem;
    font-weight: 500;
    opacity: .7;
    letter-spacing: -.01em;
}

/* --- Nav --- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background .25s ease, backdrop-filter .25s ease;
}
.landing-nav.is-scrolled {
    background: rgba(237,236,231,.35);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.landing-logo-link {
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
}
/* Logo gigante solo en la landing (scoped) */
.landing-logo-link .logo-brand svg { height: 100px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    font-size: .92rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -.01em;
    padding: .55rem 1.3rem;
    border: 1.5px solid var(--dark);
    border-radius: 999px;
    background: transparent;
    transition: background .15s, color .15s;
}
.nav-links a:hover {
    background: var(--dark);
    color: var(--bg);
}

.landing-login-btn { grid-column: 3; justify-self: end; }

/* Hamburguesa — oculta en desktop */
.nav-burger {
    display: none;
    background: none;
    border: 0;
    padding: .4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: .35rem;
    box-shadow: 0 8px 24px rgba(26,25,24,.08);
}
.nav-mobile-menu[data-open="true"] { display: flex; }
.nav-mobile-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: .75rem .25rem;
    border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:last-child { border-bottom: 0; }
.nav-mobile-menu .nav-mobile-cta {
    margin-top: .75rem;
    background: var(--coral);
    color: #fff;
    border-radius: var(--radius);
    padding: .85rem 1rem;
    text-align: center;
    border-bottom: 0;
}
.landing-login-btn {
    font-size: .92rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--coral);
    text-decoration: none;
    border: 1.5px solid var(--coral);
    border-radius: 999px;
    padding: .55rem 1.3rem;
    transition: background .15s, border-color .15s;
}
.landing-login-btn:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
}

/* --- Hero --- */
.landing-hero {
    position: relative;
    padding: 8rem 2rem 7rem;
    text-align: center;
}
.landing-hero::before {
    content: '';
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: var(--coral);
    filter: blur(100px);
    opacity: .28;
    top: -340px;
    left: -180px;
    pointer-events: none;
    animation: blobDrift1 14s ease-in-out infinite;
    z-index: 0;
}
.landing-hero::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: var(--lime);
    filter: blur(100px);
    opacity: .26;
    bottom: 0;
    right: -140px;
    pointer-events: none;
    animation: blobDrift2 18s ease-in-out infinite;
    z-index: 0;
}
.landing-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}
.landing-eyebrow {
    display: inline-block;
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .3rem 1rem;
    margin-bottom: 1.75rem;
}
.landing-headline {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.05em;
    color: var(--dark);
    margin-bottom: 1.5rem;
}
.landing-headline-accent { color: var(--coral); }
.landing-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 500;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.75rem;
}
.landing-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--coral);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: -.01em;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(242,92,75,.35);
    transition: transform .12s, background .15s, box-shadow .15s;
}
.landing-cta-btn:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242,92,75,.4);
}
.landing-cta-btn:active { transform: scale(.97); }

/* --- Sections --- */
.landing-section         { padding: 5.5rem 2rem; scroll-margin-top: 140px; }
.landing-section--surface { background: var(--surface); }
.landing-section--dark   { background: var(--dark); color: var(--white); }
.landing-container {
    max-width: 1100px;
    margin: 0 auto;
}
.landing-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
    color: var(--dark);
    margin-bottom: 3rem;
    text-align: center;
}
.landing-section-title--light {
    color: var(--white);
    text-align: left;
    margin-bottom: 1.25rem;
}
.landing-section-sub {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    max-width: 540px;
    margin: -2.25rem auto 3rem;
    line-height: 1.55;
}
.landing-container--narrow { max-width: 780px; }

/* --- Precios --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.pricing-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.pricing-card--featured {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.pricing-card--soon { opacity: .85; }
.pricing-card-head { display: flex; flex-direction: column; gap: .4rem; }
.pricing-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--lime);
    color: var(--dark);
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .28rem .65rem;
    border-radius: 999px;
    margin-bottom: .5rem;
}
.pricing-badge--soon { background: var(--yellow); }
.pricing-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
}
.pricing-price { display: flex; align-items: baseline; gap: .4rem; margin: 0; }
.pricing-amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}
.pricing-card--soon .pricing-amount { font-size: 1.35rem; opacity: .7; }
.pricing-period {
    font-size: .88rem;
    opacity: .65;
    font-weight: 500;
}
.pricing-desc {
    font-size: .92rem;
    opacity: .75;
    margin: 0;
    line-height: 1.5;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .62rem;
    flex: 1;
}
.pricing-features li {
    font-size: .92rem;
    line-height: 1.4;
    padding-left: 1.4rem;
    position: relative;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--coral);
    font-weight: 800;
}
.pricing-card--featured .pricing-features li::before { color: var(--lime); }
.pricing-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    padding: .95rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--coral);
    color: var(--white);
    border: 2px solid var(--coral);
    transition: background .15s, border-color .15s;
}
.pricing-cta:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.pricing-cta.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.pricing-cta.btn-secondary:hover { border-color: var(--dark); background: transparent; }
.pricing-card--featured .pricing-cta.btn-secondary { color: var(--white); border-color: rgba(255,255,255,.25); }
.pricing-card--featured .pricing-cta.btn-secondary:hover { border-color: var(--white); }

/* --- Contacto --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.contact-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    color: var(--coral);
    margin-bottom: .55rem;
}
.contact-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}
.contact-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--dark);
}

/* --- Steps --- */
.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.step-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.4rem;
}
.step-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.05em;
    color: var(--coral);
    opacity: .55;
    line-height: 1;
    margin-bottom: 1rem;
}
.step-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--dark);
    margin-bottom: .55rem;
}
.step-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* --- Screenshots --- */
.landing-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.screenshot-frame {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.screenshot-frame img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--muted-light);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 1.5px dashed var(--border);
}
.screenshot-phone .screenshot-placeholder  { min-height: 360px; }
.screenshot-screen .screenshot-placeholder { min-height: 240px; }
.screenshot-frame figcaption {
    padding: .7rem 1.1rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* --- Roles --- */
.landing-roles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.role-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.role-icon {
    width: 46px;
    height: 46px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}
.role-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--dark);
}
.role-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}
.role-pills {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.role-pills li {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
}
.role-pills li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 900;
}

/* --- Features --- */
.landing-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.landing-features-sub {
    font-size: .95rem;
    color: rgba(255,255,255,.5);
    line-height: 1.65;
}
.landing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.landing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    font-size: .95rem;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
}
.feat-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    margin-top: .42rem;
}

/* --- Footer --- */
.landing-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.landing-footer-brand { display: inline-flex; align-items: center; color: var(--dark); }
.landing-footer-sep   { color: var(--muted-light); }
.landing-footer a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
}
.landing-footer a:hover { text-decoration: underline; }

/* --- Register --- */
.page-register {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
.register-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 2rem;
    gap: 2rem;
}
.register-logo {
    display: flex;
    color: var(--dark);
    text-decoration: none;
}
.register-logo .logo-brand svg { height: 100px; }

.register-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    max-width: 860px;
    width: 100%;
}
.register-box {
    flex: 1;
    max-width: 440px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 14px rgba(26,25,24,.06);
}
.register-header { margin-bottom: 1.75rem; }
.register-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--dark);
    margin-bottom: .3rem;
}
.register-sub {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 500;
}
.register-footer-note {
    margin-top: 1.25rem;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
}
.register-footer-note a { color: var(--coral); font-weight: 600; text-decoration: none; }
.register-footer-note a:hover { text-decoration: underline; }
.register-submit { width: 100%; margin-top: 1rem; }
.register-submit:disabled,
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: saturate(.6);
}

.register-plan-info {
    width: 220px;
    padding-top: 2.5rem;
}
.register-plan-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 1rem;
}
.register-plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.register-plan-list li {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}
.register-plan-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lime-dark);
    font-weight: 800;
    font-size: .8rem;
}

@media (max-width: 720px) {
    .register-wrap        { padding: 2rem 1.25rem; gap: 1.5rem; }
    .register-logo .logo-brand svg { height: 72px; }
    .register-content     { flex-direction: column; align-items: center; gap: 1.5rem; }
    .register-plan-info   { width: 100%; padding-top: 0; }
    .register-box         { width: 100%; max-width: 100%; padding: 1.75rem 1.5rem; }
}

/* --- Honeypot (oculto a humanos, atrayente para bots) --- */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* --- Password input + toggle de visibilidad --- */
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 2.75rem; }
.password-toggle {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    padding: .4rem .55rem;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: 6px;
}
.password-toggle:hover { color: var(--text); background: rgba(0,0,0,0.04); }

/* --- Medidor de fortaleza de contraseña --- */
.password-strength { margin-top: .55rem; }
.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0;
    transition: width .25s, background .25s;
}
.strength-fill.strength-weak   { width: 33%;  background: #DC2626; }
.strength-fill.strength-medium { width: 66%;  background: #F59E0B; }
.strength-fill.strength-strong { width: 100%; background: var(--lime-dark); }
.strength-label {
    margin-top: .35rem;
    font-size: .75rem;
    font-weight: 600;
}
.strength-label-weak   { color: #DC2626; }
.strength-label-medium { color: #B45309; }
.strength-label-strong { color: var(--lime-dark); }

/* --- Validación inline de campos --- */
.field-error {
    margin-top: .35rem;
    font-size: .78rem;
    color: #DC2626;
    font-weight: 500;
}
input.field-invalid { border-color: #DC2626 !important; }

/* --- Checkbox de aceptación (terms) --- */
.field-checkbox { margin-top: .25rem; }
.field-checkbox .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
.field-checkbox input[type="checkbox"] {
    margin-top: .15rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--coral);
    cursor: pointer;
    flex-shrink: 0;
}
.field-checkbox .checkbox-row a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
}
.field-checkbox .checkbox-row a:hover { text-decoration: underline; }

/* --- Form error general --- */
.form-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #B91C1C;
    border-radius: 10px;
    padding: .7rem .95rem;
    font-size: .87rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.form-error a { color: #B91C1C; font-weight: 700; text-decoration: underline; }

/* ============================================================
   PAGE LEGAL — Términos + Política de Privacidad
   ============================================================ */
.page-legal {
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
}
.legal-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.legal-header { margin-bottom: 2rem; }
.legal-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--dark);
    margin-bottom: .35rem;
}
.legal-meta {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.legal-toc {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
}
.legal-toc a {
    color: var(--coral);
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
}
.legal-toc a:hover { text-decoration: underline; }

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}
.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.legal-section p {
    line-height: 1.65;
    margin-bottom: .75rem;
    color: var(--text);
}
.legal-section ul {
    margin-bottom: .75rem;
    padding-left: 1.25rem;
}
.legal-section li {
    line-height: 1.65;
    margin-bottom: .35rem;
}
.legal-section a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
}
.legal-section a:hover { text-decoration: underline; }
.legal-section code {
    background: rgba(0,0,0,0.05);
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Responsive Landing --- */
@media (max-width: 1024px) {
    .landing-steps { grid-template-columns: repeat(2, 1fr); }
    .landing-roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .landing-hero           { padding: 5.5rem 1.5rem 4.5rem; }
    .landing-section        { padding: 3.5rem 1.5rem; }
    .landing-nav            { padding: .9rem 1.25rem; }
    .landing-steps          { grid-template-columns: 1fr; }
    .landing-roles          { grid-template-columns: 1fr; }
    .landing-screenshots    { grid-template-columns: 1fr; }
    .landing-features-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
    .landing-section-title--light { text-align: center; }
    .screenshot-phone .screenshot-placeholder  { min-height: 260px; }
}

/* ============================================================
   BREAKPOINT MOBILE — 900px
   ============================================================ */
@media (max-width: 900px) {
    .page-pizarra        { border-top-width: 2px; }
    .pizarra-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto auto;
        grid-template-areas: "zona-a" "zona-b" "zona-c";
        height: calc(100vh - 2px);
    }
    .zona-a              { border-right: none; padding: 2rem 1.5rem; }
    .zona-b              { max-height: 260px; flex-direction: row; border-left: none; border-top: 1px solid var(--p-border); }
    .zona-b-block        { flex: 1; }
    .zona-c              { flex-wrap: wrap; gap: .8rem; padding: .8rem 1rem; }
    .zona-c-metrics      { gap: .55rem; }
    .zona-c-event        { display: none; }
}

/* Nav mobile — colapso a hamburguesa */
@media (max-width: 960px) {
    .landing-nav {
        position: sticky;
        grid-template-columns: auto 1fr auto;
        padding: .7rem 1.1rem;
        gap: .75rem;
    }
    .nav-burger { display: flex; grid-column: 1; }
    .nav-center { grid-column: 2; justify-content: center; }
    .nav-links--left,
    .nav-links--right { display: none; }
    .landing-login-btn { display: none; }
    .landing-logo-link .logo-brand svg { height: 44px; }
}
