/* -------------------------------------- */
/* --- 1. VARIABLES GLOBALES DE DISEÑO --- */
/* -------------------------------------- */
:root {
    /* Paleta de Colores Futurista Oscura */
    --color-fondo: #121215;           /* Fondo principal, muy oscuro */
    --color-contenedor: #1f2427;      /* Fondo de tarjetas/contenedores */
    --color-primario: #fcd535;        /* Amarillo/Oro (para resaltar, botones, selección) */
    --color-secundario: #00bcd4;      /* Turquesa/Cian (para acciones/crypto) */
    --color-texto-claro: #f0f4f7;     /* Texto principal claro */
    --color-texto-gris: #a9acaf;      /* Texto secundario/etiquetas */
    --color-borde: #373e43;           /* Bordes sutiles entre elementos */
    --color-sombra: rgba(0, 0, 0, 0.5); /* Sombra estándar */
}

/* -------------------------------------- */
/* --- 2. RESET Y REGLAS BASE RESPONSIVE --- */
/* -------------------------------------- */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto-claro);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-secundario);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primario);
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--color-texto-claro);
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--color-primario);
    padding-bottom: 10px;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--color-secundario);
    padding-bottom: 10px;
}

.main-container {
    max-width: 1200px; /* Limita el ancho máximo en pantallas grandes */
    margin: 0 auto; /* Centra el contenido */
    padding: 20px;
}

/* -------------------------------------- */
/* --- 3. ESTILOS DE FORMULARIOS/BOTONES/MENSAJES --- */
/* -------------------------------------- */

/* Inputs y Selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid var(--color-borde);
    background-color: #2c333a;
    color: var(--color-texto-claro);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    border-color: var(--color-primario);
    outline: none;
    box-shadow: 0 0 5px var(--color-primario);
}

/* Botones */
.btn-primary {
    background-color: var(--color-primario);
    color: var(--color-fondo);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-primary:hover {
    background-color: #ffd847; /* Un poco más claro */
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-secundario);
    color: var(--color-fondo);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-secondary:hover {
    background-color: #00e5ff;
    transform: translateY(-1px);
}

/* Mensajes */
.mensaje-error, .mensaje-exito {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
    border-left: 5px solid;
}

.mensaje-error {
    background-color: #4b2326;
    color: #ff8a8a;
    border-color: #ff3333;
}

.mensaje-exito {
    background-color: #214d2e;
    color: #92e6a7;
    border-color: #4CAF50;
}

/* -------------------------------------- */
/* --- 4. ESTILOS DE LOGIN/REGISTRO/DASHBOARD --- */
/* -------------------------------------- */

.login-container, .registro-container, .confirmacion-container {
    background: var(--color-contenedor);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--color-sombra); 
    width: 450px; 
    border: 1px solid var(--color-borde);
    margin: 50px auto; /* Centrado en pantallas grandes */
}

.dashboard-card {
    background: var(--color-contenedor);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-borde);
    transition: box-shadow 0.3s;
}

.dashboard-card:hover {
    box-shadow: 0 0 10px var(--color-secundario);
}

.dashboard-grid, .asesores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* --- HORARIO GRID --- */
.horario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.horario-slot {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    background-color: #2c333a; /* Color por defecto (disponible) */
    transition: background-color 0.2s, border 0.2s;
    border: 1px solid #2c333a;
    color: var(--color-texto-claro); /* Asegura que el texto se vea */
}

.horario-slot:hover {
    background-color: #3b4249;
}



/* -------------------------------------- */
/* --- 5. ESTILOS DE LANDING PAGE Y COMPONENTES --- */
/* -------------------------------------- */

/* Estilos para Preguntas Frecuentes (FAQ) */
.faq-item {
    background-color: #1f2427; 
    border: 1px solid var(--color-borde);
    border-radius: 6px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: var(--color-secundario);
}
summary {
    display: block; 
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-primario);
    user-select: none;
    list-style: none;
    position: relative;
}
summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}
details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}
.faq-item p {
    padding: 15px;
    padding-top: 0;
    border-top: 1px dashed var(--color-borde);
    color: var(--color-texto-gris);
    margin: 0;
}

/* Estilo para imágenes de Asesores (Contacto) */
.asesor-img {
    width: 150px; 
    height: 150px;
    object-fit: cover; 
    border-radius: 50%; 
    border: 3px solid var(--color-primario); 
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(252, 213, 53, 0.5); 
}

/* Estilos para Imágenes en Secciones de Contenido */
.content-media {
    display: flex;
    gap: 30px; 
    align-items: flex-start; 
}

.section-image {
    width: 300px; 
    max-width: 100%; 
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 0 15px var(--color-secundario); 
    float: left; 
    margin-right: 25px; 
    margin-bottom: 15px;
    border: 1px solid var(--color-secundario);
}


/* -------------------------------------- */
/* --- 6. MEDIA QUERIES (RESPONSIVE) --- */
/* -------------------------------------- */

@media (max-width: 768px) {
    
    /* Global */
    .main-container {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
        text-align: center;
    }
    h2 {
        font-size: 1.6em;
    }

    /* Menú */
    .menu {
        flex-direction: column; 
        padding: 15px;
        text-align: center;
    }
    
    .menu-links {
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }
    
    .menu-links a {
        margin: 5px 10px;
        font-size: 0.9em;
    }

    .menu-links .btn-primary {
        flex-basis: 100%; 
        margin-top: 10px;
    }

    /* Login/Registro/Confirmación */
    .login-container, .registro-container, .confirmacion-container {
        width: 90% !important; 
        padding: 20px;
        box-sizing: border-box; 
        margin: 20px auto;
    }

    /* Dashboard/Reservar/Grids */
    .dashboard-grid, .asesores-grid, .horario-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    /* Contacto/Asesores */
    .contacto-grid {
        flex-direction: column;
        gap: 20px; 
    }

    .contacto-card {
        width: 100%; 
        margin: 0;
    }

    /* Contenido con Imagenes */
    .content-media {
        flex-direction: column; 
    }
    
    .section-image {
        float: none; 
        display: block; 
        width: 100%; 
        margin: 0 0 20px 0; 
    }
}