/* ========================================================================== */
/* SISTEMA DE ESTILOS - INDEX (LOGIN / REGISTRO MVP)                          */
/* ========================================================================== */

/* 🛠️ SOLUCIÓN APLICADA: min-height: 100vh en lugar de height: 100vh */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f6f9; display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.contenedor-layout { padding: 0 20px 20px 20px; flex: 1; display: flex; flex-direction: column; box-sizing: border-box; }
.contenedor-bloques-inferiores { display: flex; width: 100%; justify-content: space-between; gap: 15px; flex: 1; }

.espacio-publicidad { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.contenedor-anuncios-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.ad-300x250 { width: 300px; height: 250px; background-color: #e0e0e0; border: 2px dashed #999; display: flex; align-items: center; justify-content: center; color: #666; font-weight: bold; font-size: 16px; border-radius: 8px; }
.ad-300x600 { width: 300px; height: 600px; background-color: #e0e0e0; border: 2px dashed #999; display: flex; align-items: center; justify-content: center; color: #666; font-weight: bold; font-size: 16px; border-radius: 8px; }

/* 🛠️ SOLUCIÓN APLICADA: Se quitó el height: 100% que asfixiaba el contenido */
.seccion-central { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* NAVBAR CON ALTURA PERFECTA: 154px EXACTOS */
.barra-superior-index { 
    background-color: #111111; 
    background-image: url('../images/banner-misfijas.webp'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
    z-index: 1000; 
    margin-bottom: 15px; 
    flex-shrink: 0; 
    height: 154px; 
    box-sizing: border-box;
}
.zona-centro-marca { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.texto-marca { font-size: 34px; margin: 0; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; color: #ffffff; text-decoration: none; -webkit-text-stroke: 1px #ffffff; }

.texto-subtitulo { font-size: 26px; color: #ffffff; margin: 0; font-weight: bold; letter-spacing: 1px; }

.redes-sociales-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; justify-content: center; }
.redes-sociales-nav li a { display: flex; align-items: center; justify-content: center; background-color: #e50914; color: white; border-radius: 50%; width: 26px; height: 26px; text-decoration: none; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; position: relative; font-size: 13px;}
.redes-sociales-nav li a:hover { background-color: #ffffff; color: #e50914; box-shadow: 0 0 10px rgba(229,9,20,0.8); }

/* CONTENEDOR AUTH */
.contenedor-principal-auth { width: 100%; display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; padding-bottom: 50px;}
.tarjeta-auth { background-color: white; width: 100%; max-width: 450px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; margin-bottom: 30px;}

.pestanas-auth { display: flex; width: 100%; border-bottom: 2px solid #eee; }
.pestanas-auth button { flex: 1; background: none; border: none; padding: 20px 0; font-size: 16px; font-weight: bold; color: #888; cursor: pointer; transition: all 0.3s ease; position: relative; }
.pestanas-auth button:hover { color: #330066; background-color: #f9f9f9; }
.pestanas-auth button.activo { color: #e50914; }
.pestanas-auth button.activo::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background-color: #e50914; border-top-left-radius: 3px; border-top-right-radius: 3px; }

.formulario { padding: 35px 30px; display: none; flex-direction: column; gap: 15px; }
.formulario.activo { display: flex; animation: fadeEntrada 0.4s ease; }
@keyframes fadeEntrada { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.bloque-campo { display: flex; flex-direction: column; gap: 5px; }

.btn-google { background-color: #ffffff; color: #444; border: 1px solid #ccc; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.btn-google img { width: 20px; height: 20px; }
.btn-google:hover { background-color: #f9f9f9; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transform: translateY(-1px); }

.separador-o { display: flex; align-items: center; text-align: center; color: #999; font-size: 12px; margin: 5px 0; }
.separador-o::before, .separador-o::after { content: ''; flex: 1; border-bottom: 1px solid #eee; }
.separador-o span { padding: 0 10px; font-weight: bold; }

.grupo-input { position: relative; display: flex; align-items: center; background-color: #f4f6f9; border: 2px solid #e0e0e0; border-radius: 6px; transition: all 0.3s ease; }
.grupo-input:focus-within { border-color: #330066; background-color: #ffffff; box-shadow: 0 0 8px rgba(51, 0, 102, 0.1); }
.grupo-input i.fa-user, .grupo-input i.fa-lock, .grupo-input i.fa-envelope { padding: 0 15px; color: #666; font-size: 18px; }
.grupo-input input { flex: 1; border: none; background: transparent; padding: 15px 15px 15px 0; font-size: 16px; color: #333; outline: none; width: 100%; box-sizing: border-box;}

.descripcion-campo { font-size: 12px; color: #666; margin: 0 0 0 5px; line-height: 1.4; }

.btn-toggle-pass { position: absolute; right: 10px; background: none; border: none; color: #999; cursor: pointer; font-size: 16px; display: flex; justify-content: center; align-items: center; padding: 5px; }
.btn-toggle-pass:hover { color: #330066; }

.olvide-pass { text-align: right; margin-top: 2px; }
.olvide-pass a { color: #666; font-size: 13px; text-decoration: underline; transition: color 0.2s; font-weight: bold; }
.olvide-pass a:hover { color: #e50914; text-decoration: underline; }

.btn-accion-auth { background-color: #e50914; color: white; border: none; padding: 14px; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s; margin-top: 5px; }
.btn-accion-auth:hover { background-color: #b80710; transform: translateY(-2px); box-shadow: 0 5px 10px rgba(229, 9, 20, 0.3); }

.mensaje-error { color: #e50914; font-size: 14px; margin: 0; text-align: center; font-weight: bold; }
.mensaje-exito { color: #2e7d32; font-size: 14px; margin: 0; text-align: center; font-weight: bold; background-color: rgba(95,208,95,0.15); padding: 10px; border-radius: 6px;}
.oculto { display: none !important; }

/* REQUISITOS CONTRASEÑA */
.validador-pass { background-color: #f9f9f9; padding: 15px; border-radius: 6px; border: 1px solid #eee; margin-top: 5px;}
.barra-fuerza { height: 6px; background-color: #e0e0e0; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.fuerza { height: 100%; width: 0%; transition: all 0.3s ease; }
.lista-requisitos-pass { list-style: none; padding: 0; margin: 0; font-size: 12px; color: #666; font-weight: bold;}
.lista-requisitos-pass li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; transition: color 0.3s ease; }
.lista-requisitos-pass li.valido { color: #5fd05f; }
.lista-requisitos-pass li.invalido { color: #f65b5b; }

@media (max-width: 1100px) { .espacio-publicidad { display: none; } }
@media (max-width: 900px) { 
    body { display: flex; flex-direction: column; min-height: 100vh; } 
    .contenedor-layout { display: flex; flex: 1; flex-direction: column; padding: 0 10px 10px 10px; } 
    .contenedor-bloques-inferiores { display: flex; flex: 1; flex-direction: column; } 
    .seccion-central { display: flex; flex: 1; flex-direction: column; }
    .barra-superior-index { min-height: auto; height: auto; padding: 15px 0;}
    
    .zona-centro-marca { margin-bottom: 0; width: 100%; align-items: center; text-align: center; }
    .texto-marca { font-size: 28px; text-align: center; line-height: 1.2; padding: 0 10px;} 
    .texto-subtitulo { text-align: center; }
}

/* ========================================================================== */
/* ESTILOS DEL NUEVO MODAL DE RECUPERACIÓN                                    */
/* ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 2000; }
.modal-overlay.oculto { display: none !important; }
.modal-alerta { background-color: #f4f6f9; border: 3px solid #e50914; border-radius: 10px; padding: 30px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 0 25px rgba(229,9,20,0.5); animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.icono-alerta { color: #e50914; font-size: 50px; margin-bottom: 10px; }
.titulo-alerta { color: #e50914; font-size: 22px; margin: 0 0 10px 0; font-weight: bold; }
.texto-alerta { color: #000; font-size: 15px; }
.input-modal { width: 100%; padding: 12px; border: 2px solid #ccc; border-radius: 6px; font-size: 16px; margin-bottom: 20px; box-sizing: border-box; outline: none; transition: border-color 0.3s; }
.input-modal:focus { border-color: #e50914; box-shadow: 0 0 5px rgba(229,9,20,0.2); }

.botones-modal { display: flex; justify-content: center; gap: 15px; }
.btn-cancelar { background-color: #ccc; color: #333; border: none; padding: 12px 20px; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; transition: background 0.3s; width: 120px;}
.btn-cancelar:hover { background-color: #bbb; }
.btn-accion-roja { background-color: #e50914; color: white; border: none; padding: 12px 20px; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.3s; flex: 1; }
.btn-accion-roja:hover { background-color: #b80710; transform: translateY(-2px); }

/* ========================================================================== */
/* ESTILOS DEL FOOTER LEGAL                                                   */
/* ========================================================================== */
.footer-legal { background-color: #111111; color: #888; text-align: center; padding: 25px 10px; font-size: 13px; margin-top: auto; border-top: 3px solid #e50914; width: 100%; box-sizing: border-box;}
.contenido-footer { max-width: 800px; margin: 0 auto; }
.contenido-footer p { margin: 0 0 12px 0; color: #ccc; font-weight: bold;}
.enlaces-footer { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.enlaces-footer a { color: #888; text-decoration: none; transition: color 0.3s; font-weight: bold; }
.enlaces-footer a:hover { color: #ffffff; text-decoration: underline; }