:root {
    --bosque: #072b1e;
    --bosque-profundo: #041b12;
    --lima: #bff264;
    --lima-presionado: #aae94a;
    --papel: #f5f8f4;
    --tinta: #071f17;
    --texto: #33453b;
    --tenue: #5c6f64;
    --borde: #e1e8de;
    --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
    --fuente: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: var(--fuente);
    background:
        radial-gradient(900px 600px at 8% 100%, rgba(191, 242, 100, 0.12), transparent 60%),
        var(--bosque-profundo);
    color: var(--papel);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.acceso-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
    width: min(1180px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 0;
}

/* ── Columna de marca ─────────────────────────────────────── */

.acceso-marca {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-height: 540px;
    justify-content: space-between;
}

.acceso-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--papel);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.acceso-logo-icono {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--lima);
    color: var(--bosque);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.acceso-eyebrow {
    margin: 0 0 18px;
    color: var(--lima);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.acceso-discurso h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: var(--papel);
    text-wrap: balance;
}

.acceso-lead {
    margin: 22px 0 0;
    max-width: 46ch;
    color: rgba(245, 248, 244, 0.64);
    font-size: 16px;
    line-height: 1.7;
}

.acceso-lista {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.acceso-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(245, 248, 244, 0.78);
    font-size: 14px;
    line-height: 1.5;
}

.acceso-lista li::before {
    content: "✓";
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(191, 242, 100, 0.14);
    box-shadow: inset 0 0 0 1px rgba(191, 242, 100, 0.3);
    color: var(--lima);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.acceso-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(245, 248, 244, 0.45);
    font-size: 12px;
}

.acceso-pie a {
    color: rgba(245, 248, 244, 0.78);
    text-decoration: none;
}

.acceso-pie a:hover { color: var(--lima); }

/* ── Panel del formulario ─────────────────────────────────── */

.acceso-panel {
    padding: clamp(26px, 3vw, 38px);
    border-radius: 26px;
    background: #ffffff;
    color: var(--texto);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
}

.acceso-movil { display: none; }

.acceso-cabecera { margin-bottom: 26px; }

.acceso-cabecera p {
    margin: 0 0 8px;
    color: var(--tenue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.acceso-cabecera h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--tinta);
}

.acceso-cabecera span {
    display: block;
    margin-top: 10px;
    color: var(--tenue);
    font-size: 14px;
    line-height: 1.6;
}

.acceso-form {
    display: grid;
    gap: 16px;
}

.acceso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.acceso-campo {
    display: grid;
    gap: 7px;
}

.acceso-campo label {
    color: var(--tenue);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.acceso-campo input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    background: #ffffff;
    color: var(--tinta);
    font: inherit;
    font-size: 14.5px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.acceso-campo input::placeholder { color: #9aa79f; }

.acceso-campo input:focus {
    outline: none;
    border-color: var(--bosque);
    box-shadow: 0 0 0 4px rgba(11, 59, 42, 0.12);
}

.acceso-error {
    margin: 0;
    color: #a33b38;
    font-size: 12px;
    line-height: 1.4;
}

.acceso-aviso {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.acceso-aviso--ok {
    background: #e8f3ec;
    color: #1f5a40;
}

.acceso-aviso--error {
    background: #fbedec;
    color: #8f3331;
}

.acceso-aviso--info {
    background: #f6f8f4;
    color: var(--texto);
    border: 1px solid var(--borde);
}

.acceso-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tenue);
    font-size: 12.5px;
    line-height: 1.5;
}

.acceso-check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--bosque);
}

.acceso-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--lima);
    color: #08231a;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

.acceso-boton:hover {
    background: var(--lima-presionado);
    transform: translateY(-1px);
}

.acceso-boton:focus-visible {
    outline: 2px solid var(--bosque);
    outline-offset: 3px;
}

.acceso-boton--oscuro {
    background: var(--bosque);
    color: #ffffff;
}

.acceso-boton--oscuro:hover {
    background: var(--bosque-profundo);
    color: #ffffff;
}

.acceso-pie-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--borde);
    color: var(--tenue);
    font-size: 13px;
    text-align: center;
}

.acceso-pie-form a {
    color: var(--bosque);
    font-weight: 600;
    text-decoration: none;
}

.acceso-pie-form a:hover { text-decoration: underline; }

.acceso-enlace-tenue {
    display: inline-flex;
    margin-top: 14px;
    color: var(--tenue);
    font-size: 12.5px;
    text-decoration: none;
}

.acceso-enlace-tenue:hover { color: var(--bosque); }

.acceso-icono-grande {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #f1f5ee;
    color: var(--bosque);
}

.acceso-dev {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px dashed #cbd8cf;
    border-radius: 12px;
    background: #fafbf8;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.acceso-dev a { color: var(--bosque); font-weight: 600; }

.acceso-dev code {
    display: block;
    margin-top: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    color: var(--tenue);
}

@media (max-width: 980px) {
    .acceso-shell {
        grid-template-columns: 1fr;
        gap: 26px;
        width: min(560px, calc(100% - 32px));
        min-height: auto;
        padding: 26px 0 48px;
    }

    .acceso-marca {
        min-height: 0;
        gap: 0;
    }

    .acceso-discurso,
    .acceso-pie {
        display: none;
    }

    .acceso-panel {
        padding: 26px 22px;
    }

    .acceso-movil {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 22px;
        color: var(--tinta);
        font-family: var(--display);
        font-size: 17px;
        letter-spacing: -0.03em;
    }

    .acceso-movil .acceso-logo-icono {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .acceso-grid { grid-template-columns: 1fr; }
    .acceso-cabecera h2 { font-size: 26px; }
}

/* Estado de carga del botón de registro */
.acceso-boton:disabled,
.acceso-boton.is-loading {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.acceso-boton.is-loading:hover {
    background: var(--lima);
    transform: none;
}

.acceso-boton--oscuro.is-loading:hover {
    background: var(--bosque);
}

.acceso-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: acceso-spinner 0.65s linear infinite;
}

@keyframes acceso-spinner {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .acceso-spinner {
        animation-duration: 1.4s;
    }
}
