/* =========================================
   1. VARIABLES Y SISTEMA DE DISEÑO (El Alma)
   ========================================= */
:root {
    --ciruela-900: #4A154B; 
    --ciruela-600: #7A287B; 
    --ciruela-100: #F3E8F4; 
    --blanco-puro: #FFFFFF;
    --fondo-sitio: #F8F9FA; 
    --texto-principal: #1F2937; 
    --texto-secundario: #4B5563; 
    --radio-bordes: 12px; 
    --transicion-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fuente-principal: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--fuente-principal);
    background-color: var(--fondo-sitio);
    color: var(--texto-principal);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

input, button, select {
    font-family: inherit;
}

/* =========================================
   2. EL ESQUELETO (Estructura Flexbox)
   ========================================= */
.contenido-principal {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--texto-principal);
    line-height: 1.1;
    letter-spacing: -0.02em; 
    margin-bottom: 1rem;
    max-width: 800px;
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--texto-secundario);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* =========================================
   3. LA MAGIA (Componentes e Interacciones)
   ========================================= */
form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 550px; 
}

input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--radio-bordes);
    font-size: 1rem;
    color: var(--texto-principal);
    background-color: var(--blanco-puro);
    outline: none;
    transition: var(--transicion-suave);
}

input[type="email"]:focus {
    border-color: var(--ciruela-600);
    box-shadow: 0 0 0 4px var(--ciruela-100);
}

button {
    padding: 1rem 1.75rem;
    background-color: var(--ciruela-900); 
    color: var(--blanco-puro);
    border: none;
    border-radius: var(--radio-bordes);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion-suave);
    white-space: nowrap; 
}

button:hover {
    background-color: var(--ciruela-600);
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(122, 40, 123, 0.2);
}

#feedback-message {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.5rem;
}

.success { color: #059669; }
.error { color: #DC2626; }
.info { color: #2563EB; } /* Nuevo azul informativo */

/* =========================================
   4. DISEÑO EMOCIONAL (Fondo y Detalles)
   ========================================= */
.aura-fondo {
    position: fixed;
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    min-width: 400px;
    min-height: 400px;
    background: radial-gradient(circle, rgba(122, 40, 123, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1; 
    pointer-events: none; 
}

.icono-amigable {
    background-color: var(--blanco-puro);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(122, 40, 123, 0.1); 
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Estilos del Footer Corporativo */
.footer-corporativo {
    margin-top: auto; 
    padding: 2rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
    width: 100%;
}

.footer-contenido {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-enlaces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-enlaces a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-enlaces a:hover {
    color: var(--ciruela-600);
}

.footer-idioma {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.selector-idioma {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.selector-idioma:hover {
    color: var(--ciruela-600);
}

@media (min-width: 600px) {
    .footer-contenido {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    form {
        flex-direction: column;
    }
    button {
        width: 100%;
    }
}
