:root {
    --gold: #b28422;
    --orange: #df6434;
    --blue-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.cuerpo {
    background-color: var(--blue-dark);
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

/* --- ENCABEZADO --- */
.encabezado {
    padding: 15px 5%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}
.menu { display: flex; list-style: none; gap: 20px; justify-content: center; }
.menu a { text-decoration: none; color: white; font-weight: 600; transition: 0.3s; font-size: 0.9rem; }
.menu a:hover { color: var(--orange); }

/* --- CONTENEDOR PRINCIPAL --- */
.contenedorCuerpo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 5%;
}

/* --- FORMULARIO GLASS --- */
.contenedor-formulario {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.contenedor-formulario.mostrar {
    opacity: 1;
    transform: translateX(0);
}

/* Animación de los labels e inputs */
.areamensaje label {
    display: block;
    margin: 15px 0 5px;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

.areamensaje input, .areamensaje select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

/* EFECTO WOW EN LOS INPUTS */
.areamensaje input:focus, .areamensaje select:focus {
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(223, 100, 52, 0.3);
    transform: scale(1.01);
}

/* --- BOTÓN DE ACCIÓN --- */
#boton1 {
    width: 100%;
    margin-top: 25px;
    padding: 18px;
    background: linear-gradient(135deg, var(--orange), #b24a22);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(223, 100, 52, 0.3);
}

#boton1:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(223, 100, 52, 0.5);
    filter: brightness(1.1);
}

/* --- PANEL DE IMAGEN DINÁMICA --- */
#contenedor-imagen {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

#imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease, filter 0.5s ease;
}

/* Efecto cuando la imagen cambia */
#imagen.cambio {
    filter: blur(10px) brightness(0.5);
    transform: scale(1.1);
}

/* --- MODAL TERMINOS --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e293b;
    width: 95%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 25px;
    padding: 40px;
    overflow-y: auto;
    border: 1px solid var(--orange);
    position: relative;
}

.modal-content p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 10px; color: #cbd5e1; }

#abrirTerminos {
    color: var(--orange);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}

/* --- WHATSAPP --- */
.whatsnum {
    width: 55px;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    transition: 0.3s;
}
.whatsnum:hover { transform: scale(1.2) rotate(10deg); }

/* --- RESPONSIVIDAD --- */
@media (max-width: 850px) {
    .contenedorCuerpo { flex-direction: column; align-items: center; }
    #contenedor-imagen { height: 350px; order: -1; } /* Imagen arriba en celular */
    .contenedor-formulario { width: 100%; }
}