:root {
    --cream: #f9f7f2;
    --gold: #b38e5d;
    --dark: #1a1a1a;
    --gray: #666;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--white);
    color: var(--dark);
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.line-loader {
    width: 150px;
    height: 1px;
    background: #ddd;
    position: relative;
    overflow: hidden;
}

.line-loader::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: load 1.5s infinite;
}

@keyframes load {
    100% {
        left: 100%;
    }
}

/* Layout Principal Split */
.main-split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .main-split-container {
        flex-direction: row;
        height: 100vh;
    }

    .identity-column {
        width: 45%;
        height: 100vh;
        position: sticky;
        top: 0;
        background-color: var(--cream);
        border-right: 1px solid #e5d5c0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 60px;
    }

    .form-column {
        width: 55%;
        height: 100vh;
        overflow-y: auto;
        padding: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Elementos Identidad (Izquierda) */
.header-v2 {
    width: 100%;
}

.header-inner-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-v2 {
    height: 150px;
    width: auto;
    margin: 30px 0;
    align-self: flex-start;
}

.btn-back {
    text-align: left;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-lang {
    text-align: right;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hero-art-v2 h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-art-v2 h1 span {
    color: var(--gold);
    font-style: italic;
    text-transform: lowercase;
}

.hero-divider-v2 {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 60px 0 30px 0;
}

.hero-art-v2 p {
    font-size: 2.3rem;
    line-height: 1.5;
    color: var(--gray);
    max-width: 650px;
}

.footer-v2 {
    text-align: left;
}

.footer-line-v2 {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 30px 0;
}

.footer-v2 p {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #999;
}

/* Formulario (Derecha) */
.form-card-v2 {
    width: 100%;
    max-width: 600px;
}

.form-card-v2 h2 {
    font-size: 4.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.field-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

label {
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--gold);
    font-weight: 700;
}

input,
textarea {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    font-weight: 600;
    background: transparent;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

textarea {
    border: 1px solid #ddd;
    padding: 20px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.field-hint {
    font-size: 1.5rem;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

.status-box {
    padding: 15px;
    margin-top: 20px;
    display: none;
    text-align: center;
    border-radius: 2px;
}

.status-box.active {
    display: block;
}

.status-box.success {
    background: #f0f9f0;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-box.error {
    background: #fff5f5;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Botón */
.button-wrapper {
    margin-top: 30px;
    text-align: left;
}

.btn-submit-art {
    background: none;
    border: none;
    font-family: 'Crimson Text', serif;
    font-size: 2.3rem;
    cursor: pointer;
    padding-bottom: 5px;
}

.btn-line {
    width: 100%;
    height: 1px;
    background: var(--dark);
    transition: 0.5s;
    scale: 0.2 1;
    transform-origin: left;
}

.btn-submit-art:hover .btn-line {
    scale: 1 1;
    background: var(--gold);
}

/* Responsive móvil corregido */
@media (max-width: 1023px) {

    /* Contenedor general */
    .main-split-container {
        display: block;
        /* Permite scroll natural */
    }

    /* Columna de Identidad (Arriba) */
    .identity-column {
        padding: 60px 20px 40px;
        /* Más espacio arriba y abajo */
        background-color: var(--cream);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centra todo el contenido */
    }

    .header-v2 {
        margin-bottom: 50px;
        /* Más espacio abajo del header */
    }

    .logo-v2 {
        height: 100px;
        margin: 0 auto 30px;
        /* Centrado horizontal */
        align-self: center;
    }

    .hero-art-v2 h1 {
        font-size: 3.5rem;
        text-align: center;
    }

    .hero-divider-v2 {
        margin: 30px auto;
        /* Divider centrado */
    }

    .hero-art-v2 p {
        font-size: 1.4rem;
        margin: 0 auto;
        text-align: center;
    }

    .footer-v2 {
        text-align: center;
        margin-top: 40px;
    }

    .footer-line-v2 {
        margin: 0 auto 20px;
        /* Línea de footer centrada */
    }

    /* Columna de Formulario (Abajo) */
    .form-column {
        padding: 50px 20px;
        background-color: var(--white);
    }

    .form-card-v2 h2 {
        font-size: 3rem;
        text-align: center;
    }

    /* Inputs y Labels: Se mantienen a la izquierda */
    .field-container {
        text-align: left;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    label {
        font-size: 1.2rem;
        /* Tamaño más real para móvil */
    }

    input,
    textarea {
        font-size: 1.4rem;
    }

    /* Botón de Submit: Centrado en móvil */
    .button-wrapper {
        text-align: center;
        margin-top: 40px;
    }

    .btn-submit-art {
        font-size: 1.8rem;
    }

    .btn-line {
        scale: 0.4 1;
        transform-origin: center;
        /* Animación desde el centro */
    }

    .btn-submit-art:hover .btn-line {
        scale: 1 1;
    }
}