:root {
    --gold: #b28422;
    --orange: #df6434;
    --blue-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.cuerpo { 
    background-color: var(--blue-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(30, 60, 114, 0.5) 0%, rgba(15, 23, 42, 1) 90%);
    color: white; 
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- ENCABEZADO --- */
.encabezado {
    padding: 20px 5%;
    background: rgba(15, 23, 42, 0.8);
    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; }
.menu a:hover { color: var(--orange); text-shadow: 0 0 10px var(--orange); }

/* --- CONTENIDO PRINCIPAL --- */
.contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.log1 {
    height: 120px;
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease;
}
.log1.visible {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(223, 100, 52, 0.4));
}

/* --- EL FORMULARIO MÁGICO --- */
.contenedor-formulario {
    width: 100%;
    max-width: 500px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contenedor-formulario.mostrar {
    opacity: 1;
    transform: translateY(0);
}

#texttitulo {
    font-family: 'Rubik Doodle Shadow', cursive;
    font-size: 2rem;
    text-align: center;
    color: white;
    background: linear-gradient(90deg, #fff, var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ANIMACIÓN EN LOS INPUTS --- */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    transition: 0.3s;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

/* Efecto de enfoque (Focus) - ESTA ES LA ANIMACIÓN PADRE */
input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(223, 100, 52, 0.4), inset 0 0 10px rgba(223, 100, 52, 0.2);
    transform: translateY(-2px);
}

/* Cambia el color del label cuando el input está activo */
input:focus + label, textarea:focus + label {
    color: white;
}

/* --- BOTÓN ANIMADO --- */
.boton {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--orange), #b24a22);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(223, 100, 52, 0.3);
}

.boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(223, 100, 52, 0.5);
    letter-spacing: 1px;
}

.boton:active {
    transform: scale(0.98);
}

/* --- FOOTER --- */
.pie {
    margin-top: auto;
    padding: 40px 5%;
    background: #0a0f1d;
    text-align: center;
}

.t1pie { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.t1pie a { text-decoration: none; color: #94a3b8; font-size: 0.8rem; }
.t2pie h1 { font-size: 0.9rem; color: #475569; margin-top: 10px; }
.logopie { height: 50px; opacity: 0.6; }
