/* static/css/style_front.css */

/* --- VARIABLES GLOBALES --- */
:root {
    --bg-primary: #0f1d2e;
    --bg-card: #162438;
    --bg-darker: #0b1622;
    --border-color: #233652;
    --accent-color: #4a90e2;
    --text-main: #ffffff;
    --text-muted: #b0b8c4;
    --font-main: 'Oxygen', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: var(--accent-color); transition: color 0.3s; }
a:hover { color: #fff; }

.text-muted {
    --bs-text-opacity: 1;
    color: var(--accent-color) !important;
}

/* --- HEADER & NAVBAR --- */
.navbar-custom {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: #fff !important;
    font-size: 1.5rem;
}
.navbar-brand span { color: var(--accent-color); }
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 400;
    margin: 0 10px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}
.btn-reserva {
    background-color: var(--accent-color);
    color: #fff !important;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
}
.btn-reserva:hover {
    background-color: #357abd;
}

/* --- BLOQUE 1: MAPA Y LISTADO --- */
.section-map-info { padding: 4rem 0; }
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 400px;
    background-color: var(--bg-card);
    position: relative;
}
.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
}

.info-list-container { padding-left: 2rem; }
.location-item {
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}
.location-item h4 {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}
.location-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- BLOQUE 2: CARRUSEL --- */
.section-gallery {
    padding: 0;
    background-color: var(--bg-darker);
}
.carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}
.carousel-caption {
    background: rgba(15, 29, 46, 0.85);
    border-radius: 12px;
    padding: 1.5rem;
    bottom: 3rem;
    border: 1px solid var(--border-color);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}
.carousel-caption h5 { color: var(--accent-color); font-weight: 700; }

/* --- BLOQUE 3: ESTADOS --- */
.section-status { padding: 4rem 0; }
.section-title {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.status-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
}
.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.date-box {
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
    min-width: 100px;
}
.date-box .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}
.date-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.info-box { padding-left: 20px; flex-grow: 1; }
.info-box h5 { font-size: 1.1rem; margin-bottom: 5px; }
.info-box h5 a { color: #fff; }
.info-box h5 a:hover { color: var(--accent-color); }
.info-box p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.info-box span.highlight { color: var(--accent-color); }

/* --- FOOTER --- */
.footer-custom {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 2rem 0;
    font-size: 0.9rem;
}
.footer-link { color: var(--text-muted); margin: 0 10px; }
.footer-link:hover { color: var(--accent-color); }

/* Correcciones para Dropdown en Dark Mode */
.bg-dark-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}
.dropdown-item { color: var(--text-muted); }
.dropdown-item:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Panel de Información del Módulo (Edificio Detalle) */
.module-info-panel {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-darker));
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);
    margin: 2rem 0;
}

.module-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.meta-item span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* Botones de Estado Dinámicos */
.btn-status {
    width: 100%;
    padding: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Estado: Libre (Verde) */
.btn-status.libre {
    background-color: #28a745;
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
.btn-status.libre:hover { background-color: #218838; transform: translateY(-2px); }

/* Estado: Ocupado (Rojo) */
.btn-status.ocupado {
    background-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Estado: Reservado (Amarillo/Naranja) */
.btn-status.reservado {
    background-color: #ffc107;
    color: #000;
    cursor: pointer; /* Cambiado de not-allowed a pointer */
    transition: all 0.3s ease;
}
.btn-status.reservado:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Estado: Bloqueado (Gris) */
.btn-status.bloqueado {
    background-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
}
/* Estado: Horas (Azul Cian/Info) - NUEVO */
.btn-status.horas {
    background-color: #0dcaf0; /* Azul tipo Info de Bootstrap */
    color: #000;
    cursor: pointer;
    font-weight: 800;
}
.btn-status.horas:hover {
    background-color: #31d2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
}

label {
    color: var(--bs-dark-bg-subtle);
}