* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
}

.contenedor-principal {
    flex: 1; 
    display: flex;
    width: 100%;
    min-height: 600px; 
}

/* --- PANEL IZQUIERDO --- */
.panel-izquierdo {
    width: 40%;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    z-index: 10;
}

.contenido-login {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Contenedor del logo */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Imagen del logo principal */
.img-logo-main {
    display: block;
    margin: 0 auto;
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Clase para la IMAGEN del logo del footer */
.img-logo-footer {
    height: 24px;
    width: auto;
    display: block;
    margin-right: 8px;
}

/* ------------------------------------- */

.bienvenida {
    font-weight: 300;
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 30px;
}

.caja-blanca-input {
    background: white;
    padding: 20px 20px 5px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

.grupo-input {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.grupo-input input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    margin-left: 10px;
    color: #333;
}

.olvido-pass {
    text-align: right;
    padding: 10px 0;
}

.olvido-pass a {
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
}

/* === AQUÍ ESTÁ LA MAGIA DE LOS BOTONES === */

/* 1. Estado Inicial (Gris y Bloqueado) */
.btn-continuar {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    
    /* IMPORTANTE: Esto lo fuerza a ser gris al inicio */
    background-color: #cccccc !important; 
    color: #888 !important;
    pointer-events: none; /* No click */
    cursor: default;
}

/* 2. Estado Activo (Amarillo y Clickable) */
/* El JavaScript agrega esta clase cuando escribes */
.btn-continuar.activo {
    background-color: #ffcc00 !important; /* Amarillo Bam */
    color: #000000 !important; /* Negro */
    pointer-events: auto !important; /* Sí click */
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

/* ========================================= */

.separador {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
    width: 100%;
}

.registro p {
    font-size: 0.9rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.btn-registro {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: 1px solid #333;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- PANEL DERECHO (CARRUSEL) --- */
.panel-derecho {
    width: 60%;
    background-color: #eaeaea;
    position: relative;
    overflow: hidden;
    padding: 0; 
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Flechas del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #333;
    border: none;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    z-index: 20;
    transition: color 0.3s;
}

.carousel-btn:hover {
    color: #000;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.btn-prev { left: 10px; }
.btn-next { right: 10px; }

/* --- FOOTER --- */
.pie-pagina {
    background-color: #f9f9f9;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: #555;
    z-index: 50;
}

.footer-izq {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.marca-grupo {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.footer-der ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-der a {
    text-decoration: none;
    color: #555;
}

.footer-der a:hover {
    text-decoration: underline;
}

.punto {
    font-size: 0.5rem;
    color: #999;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .pie-pagina {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    .footer-der ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .contenedor-principal {
        flex-direction: column;
    }
    .panel-izquierdo, .panel-derecho {
        width: 100%;
    }
    .panel-derecho {
        height: 400px;
    }
}