:root {
    --azul-oscuro: #152a3f;
    --azul-fondo: #273445;
    --naranja: #fa7b03;
    --amarillo: #d89229;
    --celeste: #aad8e8;
    --blanco: #ffffff;
    --gris-texto: #b8c4d0;
    --gris-suave: #3d4f63;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a2d42;
    color: var(--blanco);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* ── Panel izquierdo ── */
.panel-info {
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: var(--azul-oscuro);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: drift 12s ease-in-out infinite alternate;
}

.bg-glow--naranja {
    width: 420px;
    height: 420px;
    background: rgba(237, 129, 29, 0.35);
    top: -100px;
    right: -80px;
}

.bg-glow--celeste {
    width: 300px;
    height: 300px;
    background: rgba(170, 216, 232, 0.2);
    bottom: 10%;
    left: -60px;
    animation-delay: -6s;
}

.bg-glow--amarillo {
    width: 200px;
    height: 200px;
    background: rgba(241, 181, 30, 0.15);
    bottom: -40px;
    right: 30%;
    animation-delay: -3s;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.1); }
}

.route-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
}

.route-deco path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.route-deco .r1 { stroke: var(--naranja); stroke-dasharray: 8 6; animation: dash 20s linear infinite; }
.route-deco .r2 { stroke: var(--celeste); stroke-dasharray: 6 8; animation: dash 15s linear infinite reverse; }
.route-deco .r3 { stroke: var(--amarillo); stroke-width: 1.5; opacity: 0.6; }

@keyframes dash {
    to { stroke-dashoffset: -200; }
}

.logo {
    width: 120px;
    height: 120px;
    position: absolute;
    top: clamp(1.5rem, 3vw, 2.5rem);
    left: clamp(1.5rem, 3vw, 2.5rem);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 32rem;
    margin: auto 0;
    padding: 2.5rem 0;
    margin-top: 5rem;
}

.etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amarillo);
    background: rgba(241, 181, 30, 0.12);
    border: 1px solid rgba(241, 181, 30, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.etiqueta::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--amarillo);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-copy h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-copy h1 .highlight {
    display: inline;
    background: linear-gradient(90deg, var(--naranja), var(--amarillo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-copy > p {
    font-size: 1.1rem;
    color: var(--gris-texto);
    margin-bottom: 2.5rem;
    max-width: 28rem;
}

.beneficios {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.beneficios li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--gris-texto);
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.beneficios li:hover {
    border-color: rgba(237, 129, 29, 0.4);
    background: rgba(237, 129, 29, 0.06);
    transform: translateX(4px);
}

.beneficios .icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.beneficios li:nth-child(1) .icon { color: var(--naranja); }
.beneficios li:nth-child(2) .icon { color: var(--amarillo); }
.beneficios li:nth-child(3) .icon { color: var(--celeste); }

.beneficios strong {
    display: block;
    color: var(--blanco);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.pie-info {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: rgba(184, 196, 208, 0.5);
}

.legal-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: var(--celeste);
    text-decoration: none;
    font-weight: 600;
}

.legal-link:hover {
    color: var(--amarillo);
    text-decoration: underline;
}

/* ── Panel formulario ── */
.panel-form {
    background: var(--azul-fondo);
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-left: 3px solid var(--naranja);
}

.panel-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--naranja), var(--amarillo), var(--celeste));
    box-shadow: 0 0 20px rgba(237, 129, 29, 0.6);
}

.form-card {
    width: 100%;
    max-width: 24rem;
    background: rgba(29, 56, 85, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow:
        0 0 0 1px rgba(237, 129, 29, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--naranja), var(--amarillo));
}

.form-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.form-card .subtitulo {
    font-size: 0.9rem;
    color: var(--gris-texto);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--celeste);
    margin-bottom: 0.35rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--gris-suave);
    border-radius: 8px;
    background: rgba(39, 52, 69, 0.8);
    color: var(--blanco);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: rgba(184, 196, 208, 0.35);
}

.form-group input:focus {
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(237, 129, 29, 0.2);
}

.form-group input.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.os-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.os-btn {
    padding: 0.7rem;
    border: 1.5px solid var(--gris-suave);
    border-radius: 8px;
    background: rgba(39, 52, 69, 0.6);
    color: var(--gris-texto);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.os-btn:hover {
    border-color: var(--celeste);
    color: var(--blanco);
}

.os-btn.active {
    border-color: var(--naranja);
    background: rgba(237, 129, 29, 0.15);
    color: var(--blanco);
    box-shadow: 0 0 12px rgba(237, 129, 29, 0.25);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, var(--naranja) 0%, #f5a623 100%);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(237, 129, 29, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(237, 129, 29, 0.55);
}

.submit-btn:active {
    transform: translateY(0);
}

.nota-form {
    margin-top: 1rem;
    font-size: 0.72rem;
    color: rgba(184, 196, 208, 0.45);
    text-align: center;
    line-height: 1.45;
}

/* ── Éxito ── */
#success-message {
    display: none;
    text-align: center;
}

#success-message .check {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--naranja), var(--amarillo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(237, 129, 29, 0.4);
}

#success-message h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

#success-message p {
    color: var(--gris-texto);
    font-size: 0.95rem;
}

#success-message .gracias {
    margin-top: 1.25rem;
    color: var(--amarillo);
    font-weight: 600;
}

@media (max-width: 860px) {
    .page {
        grid-template-columns: 1fr;
    }

    .panel-form {
        border-left: none;
        border-top: 3px solid var(--naranja);
    }

    .panel-form::before {
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--naranja), var(--amarillo), var(--celeste));
    }

    .hero-copy {
        padding: 1.5rem 0 0.5rem;
    }

    .pie-info {
        margin-top: 2rem;
    }
}

.page-legal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-fondo));
}

.legal-shell {
    width: min(900px, 100%);
}

.legal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--celeste);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.back-link:hover {
    color: var(--amarillo);
}

.legal-card h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin-bottom: 1rem;
}

.legal-card p {
    color: var(--gris-texto);
    margin-bottom: 1rem;
}

.document-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.document-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--naranja), var(--amarillo));
    color: var(--blanco);
    padding: 0.8rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.document-btn:hover {
    transform: translateY(-2px);
}

.document-placeholder {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(170, 216, 232, 0.08);
    border: 1px dashed rgba(170, 216, 232, 0.25);
}
