﻿/* ──────────────────────────────────────────────────────────────────────────────
   AUDITORIO OAR — estilos propios (Bootstrap 5 ya cubre layout y componentes)
   Aquí solo lo que BS no tiene: hero, galería, lightbox, tokens de color OAR
────────────────────────────────────────────────────────────────────────────────*/

/* ── Variables de marca ──────────────────────────────────────────────────────*/
:root {
    --oar-navy: #1a2744;
    --oar-blue: #243a6e;
    --oar-gold: #c89a2e;
    --oar-gold-lt: #f0c84a;
}

/* ── Utilidades de color propias ─────────────────────────────────────────────*/
.text-navy {
    color: var(--oar-navy) !important;
}

.bg-navy {
    background-color: var(--oar-navy) !important;
}

.btn-navy {
    background-color: var(--oar-navy);
    color: #fff;
    border: none;
}

    .btn-navy:hover {
        background-color: var(--oar-blue);
        color: #fff;
    }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
nav {
    background: var(--oar-navy);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center; /* ← quitar justify-content: space-between */
    padding: 0 2rem;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

    .nav-brand .badge-oar {
        background: var(--oar-gold);
        color: var(--oar-navy);
        font-size: .7rem;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 4px;
    }

.nav-links {
    display: flex;
    gap: 1.5rem;
}

    .nav-links a {
        color: rgba(255,255,255,.8);
        text-decoration: none;
        font-size: .9rem;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: var(--oar-gold-lt);
        }

.nav-menu-toggle {
    display: none; /* ← oculto por defecto (desktop) */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 640px) {
    .nav-menu-toggle {
        display: block;
    }
    /* ← visible solo en móvil */

    .nav-links {
        display: none;
    }

        .nav-links.open {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 60px;
            left: 0;
            right: 0;
            background: var(--oar-navy);
            padding: 1rem 2rem;
            gap: 1rem;
            box-shadow: 0 4px 12px rgba(0,0,0,.3);
        }
}
/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 92vh;
}

.hero-slideshow {
    z-index: 0;
}

    .hero-slideshow .slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.2s ease-in-out;
        background-color: var(--oar-navy);
    }

        .hero-slideshow .slide.active {
            opacity: 1;
        }

.hero-overlay {
    z-index: 1;
    background: linear-gradient(to bottom, rgba(10,18,40,.55) 0%, rgba(10,18,40,.45) 50%, rgba(10,18,40,.72) 100%);
}

.hero-content {
    z-index: 2;
}

.hero-eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--oar-gold-lt);
    margin-bottom: .5rem;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--oar-gold-lt);
}

.hero-stat-lbl {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.65);
}

.slide-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: background .3s, transform .3s;
}

    .slide-dots .dot.active {
        background: var(--oar-gold-lt);
        transform: scale(1.3);
    }

/* ── SECCIONES ────────────────────────────────────────────────────────────── */
.oar-divider {
    width: 48px;
    height: 4px;
    background: var(--oar-gold);
    border-radius: 2px;
    margin-bottom: .75rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--oar-navy);
    margin-bottom: .25rem;
}

/* ── TARJETA CAPACIDADES ─────────────────────────────────────────────────── */
.cap-card {
    transition: box-shadow .2s;
}

    .cap-card:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
    }

.cap-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: #f4f6fb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── GALERÍA ──────────────────────────────────────────────────────────────── */
.gallery-card {
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}

    .gallery-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    }

.gallery-img {
    height: 210px;
    position: relative;
    overflow: hidden;
    background: #111;
}

    .gallery-img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

.gallery-card:hover .gallery-img img {
    transform: scale(1.06);
}

.gallery-img .fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
/* fallback fondos por categoría */
.gallery-img.grado .fallback {
    background: linear-gradient(135deg,#1e3a5f,#2d5986);
}

.gallery-img.cine .fallback {
    background: linear-gradient(135deg,#1a1a2e,#16213e);
}

.gallery-img.conf .fallback {
    background: linear-gradient(135deg,#1b4332,#2d6a4f);
}

.gallery-img.ddhh .fallback {
    background: linear-gradient(135deg,#7f1d1d,#991b1b);
}

.gallery-img.teatro .fallback {
    background: linear-gradient(135deg,#4c1d95,#6d28d9);
}

.gallery-img.musica .fallback {
    background: linear-gradient(135deg,#1a1a1a,#2d2d2d);
}

/* ── LIGHTBOX ─────────────────────────────────────────────────────────────── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.93);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    cursor: zoom-out;
}

    #lightbox.open {
        display: flex;
    }

    #lightbox img {
        max-width: 90vw;
        max-height: 80vh;
        border-radius: 6px;
    }

#lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    filter: invert(1);
    opacity: .85;
    cursor: pointer;
}

/* ── CALENDARIO: punto leyenda ───────────────────────────────────────────── */
.legend-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
}

/* ── FORMULARIO: separador de sección ────────────────────────────────────── */
.form-section-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .4rem;
    margin-bottom: .25rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
    background: var(--oar-navy);
    color: rgba(255,255,255,.65);
    text-align: center;
    padding: 2rem;
    font-size: .85rem;
    line-height: 1.8;
}

    footer strong {
        color: #fff;
    }

/* ── RESPONSIVE NAV ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

        .nav-links.open {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 60px;
            left: 0;
            right: 0;
            background: var(--oar-navy);
            padding: 1rem 2rem;
            gap: 1rem;
            box-shadow: 0 4px 12px rgba(0,0,0,.3);
        }

    .nav-menu-btn {
        display: block;
    }
}
