/* --- ESTILOS PARA INDEX.PHP (LOGIN/REGISTRO) --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }

body, html { 
    height: 100%; 
    width: 100%; 
    overflow: hidden; 
    background: #000; /* Fondo base negro */
    color: white; 
}

.navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    padding: 15px 50px; 
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #d84315; 
    z-index: 1000; /* Siempre al frente */
}

.brand-container { display: flex; align-items: baseline; gap: 15px; }
.brand { color: #d84315; font-weight: bold; font-size: 1.5rem; letter-spacing: 1px; }
.slogan { color: #888; font-size: 0.8rem; text-transform: uppercase; }

.nav-btn {
    background: transparent; border: 1px solid #d84315; color: #d84315;
    padding: 8px 20px; margin-left: 10px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.nav-btn:hover { background: #d84315; color: white; }

/* --- BLOQUE CORREGIDO: Carrusel de Fondo --- */
.carousel-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; /* Subimos el nivel para que no lo tape el body */
    overflow: hidden;
}

.carousel-slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 2s ease-in-out; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    /* MEJORA DE REALISMO: Ajustamos brillo y contraste */
    filter: brightness(1.1) contrast(1.1); 
}

.carousel-slide.active { 
    opacity: 1; 
}

.overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    /* AJUSTE DE LUZ: Bajamos la opacidad para que las imágenes resalten con realismo */
    background: rgba(0,0,0,0.25); 
    z-index: 2; /* Encima de las imágenes */
}

/* --- BLOQUE CORREGIDO: Contenedor de Formularios --- */
.main-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    position: relative;
    z-index: 10; /* Encima del carrusel y del overlay */
}

.form-box {
    background: rgba(0, 0, 0, 0.85); 
    border: 1px solid rgba(216, 67, 21, 0.4);
    padding: 40px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 400px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h2 { margin-bottom: 30px; color: #d84315; text-transform: uppercase; font-size: 1.3rem; }
.input-group { margin-bottom: 20px; text-align: left; position: relative; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.8rem; color: #bbb; }
.input-group input {
    width: 100%; padding: 12px 15px; border-radius: 5px; border: 1px solid #333;
    background: #111; color: white; outline: none; transition: 0.3s;
}
.input-group input:focus { border-color: #d84315; }

.btn-submit {
    width: 100%; padding: 15px; border: none; border-radius: 5px; background: #d84315;
    color: white; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase;
}

.alert { padding: 12px; border-radius: 5px; margin-bottom: 20px; font-size: 0.9rem; border: 1px solid; }
.alert-success { background: rgba(0, 255, 0, 0.1); border-color: green; color: #0f0; }
.alert-error { background: rgba(255, 0, 0, 0.1); border-color: red; color: #f00; }
.hidden { display: none; }

/* --- ESTILOS PARA EL MENÚ DE PERFIL Y AVATAR --- */
.profile-wrapper { position: relative; display: inline-block; }
.p-drop {
    position: absolute; top: 110%; right: 0; width: 250px; background: #111;
    border: 1px solid #d84315; border-radius: 8px; padding: 20px;
    display: none; flex-direction: column; align-items: center; gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8); z-index: 1100;
}
.p-drop.active { display: flex; }

.avatar-container {
    width: 100px; height: 100px; border-radius: 50%; border: 3px solid #d84315;
    overflow: hidden; position: relative; cursor: pointer; background: #222;
}
.avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay {
    position: absolute; bottom: 0; width: 100%; background: rgba(216, 67, 21, 0.8);
    color: white; font-size: 0.7rem; text-align: center; padding: 4px 0;
    opacity: 0; transition: 0.3s;
}
.avatar-container:hover .avatar-overlay { opacity: 1; }

.profile-info { text-align: center; width: 100%; }
.profile-info h3 { font-size: 1rem; color: #fff; margin-bottom: 5px; }
.profile-info p { font-size: 0.8rem; color: #888; }

.profile-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.profile-btn {
    width: 100%; padding: 10px; border: 1px solid #444; background: #222;
    color: #ccc; border-radius: 4px; cursor: pointer; transition: 0.3s; text-align: center; text-decoration: none;
}
.profile-btn:hover { border-color: #d84315; color: #d84315; }

.btn-logout { background: #d84315; color: white; border: none; }
.btn-logout:hover { background: #bf360c; color: white; }