style
/* 1. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    background-image: 
        url('https://www.transparenttextures.com/patterns/stardust.png'),
        radial-gradient(ellipse at 0% 10%, rgba(0, 255, 120, 0.2) 0%, transparent 60%),
        linear-gradient(150deg, transparent 10%, rgba(0, 150, 70, 0.15) 20%, rgba(0, 255, 150, 0.25) 25%, transparent 35%),
        linear-gradient(110deg, transparent 35%, rgba(197, 160, 89, 0.2) 45%, rgba(249, 226, 175, 0.4) 50%, rgba(197, 160, 89, 0.2) 55%, transparent 65%),
        linear-gradient(100deg, transparent 60%, rgba(197, 160, 89, 0.15) 75%, rgba(249, 226, 175, 0.3) 80%, transparent 90%),
        radial-gradient(circle at 40% 45%, rgba(255, 255, 255, 0.2) 0%, transparent 2%),
        radial-gradient(circle at 70% 85%, rgba(255, 255, 255, 0.2) 0%, transparent 2%);
    background-attachment: fixed;
    background-size: auto, cover, cover, cover, cover, cover, cover;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden !important;
}

/* 2. COMPONENTES GLOBALES */
.gold-text { color: #c5a059 !important; }

h2 {
    color: #c5a059;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
    font-weight: bold;
    text-align: center;
}

/* 3. NAVEGACIÓN */
.navbar-solid {
    background-color: rgba(15, 15, 15, 0.95) !important;
    padding: 10px 0;
    border-bottom: 1px solid #c5a059;
    backdrop-filter: blur(10px);
}

.navbar-transparent {
    background-color: transparent !important;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.img-logo-nav {
    height: 60px;
    width: auto;
    transition: 0.3s;
}

.nombre-despacho {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c5a059;
    max-width: 250px;
    line-height: 1.2;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    color: #c5a059 !important;
    margin: 0 10px;
}

.nav-link:hover {
    color: #f9e2af !important;
    text-decoration: underline;
}

/* 4. HERO SECTION */
header.hero-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 90vh !important; /* Aumentamos un poco la altura total */
    padding-top: 100px !important; /* ESTO EMPUJA EL TEXTO HACIA ABAJO DE LA NAV */
    
    /* Ajuste de Imagen de Fondo */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("fondo.png") !important;
    background-size: cover !important;
    background-position: center 20% !important; /* Baja un poco la imagen de fondo */
    background-attachment: fixed !important;
    position: relative !important;
}

.hero-section .container {
    z-index: 2;
    position: relative;
}

/* Si tu barra de navegación es 'fixed-top', el Hero necesita aire */
.hero-section {
    margin-top: 0;
}

/* Mejora el contraste del texto para que no se pierda nunca */
.hero-section h1 {
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* 5. SERVICIOS (Alineación uniforme) */
.service-card {
    background: rgba(15, 15, 15, 0.85) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Mismo alto para todas */
}

.service-card h3 {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .mt-auto {
    margin-top: auto !important; /* Empuja el botón al fondo */
    padding-top: 15px;
}

.icon-box {
    font-size: 3.5rem !important;
    color: #c5a059;
    margin-bottom: 15px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #c5a059 !important;
}

/* 6. SOCIOS (Estética mejorada) */
.socio-card {
    background: rgba(20, 20, 20, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    color: #e0e0e0 !important;
    border-radius: 15px;
    transition: transform 0.3s;
    padding: 20px;
    height: 100%;
}

.socio-card h5 { color: #c5a059; font-weight: bold; }

/* 7. SEDES */
.sede-card {
    background: rgba(15, 15, 15, 0.9) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

/* 8. FAQ (Estética restaurada) */
.custom-faq .accordion-item {
    background-color: rgba(15, 15, 15, 0.7) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.custom-faq .accordion-button {
    color: #f9e2af !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.custom-faq .accordion-button:not(.collapsed) {
    color: #c5a059 !important;
    background-color: rgba(197, 160, 89, 0.1) !important;
}

.custom-faq .accordion-body {
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

/* 9. CONTACTO (Modo oscuro) */
#contacto .form-label {
    color: #c5a059 !important;
    font-weight: 600;
}

#contacto .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    color: white !important;
}

#contacto .form-control:focus {
    border-color: #c5a059 !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* 10. BARRA LATERAL (Solo iconos) */
.side-contact-bar {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
}

.contact-item {
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: 1px solid #c5a059;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    border-radius: 8px 0 0 8px;
    transition: 0.3s;
}

.contact-item .sede-label {
    display: none !important; /* Quita el texto que se salía */
}

.contact-item:hover {
    background: #c5a059;
    color: #111;
    transform: translateX(-5px);
}

/* 11. RESPONSIVE */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid #c5a059;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
    .hero-section h1 { font-size: 2.2rem; }
}

/* --- BOTONES DE ORO (Hero, Sedes y General) --- */
.btn-gold, .btn-gold-sm {
    background: #c5a059 !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border: 1px solid #f9e2af !important;
    padding: 12px 24px !important; /* Un poco más de cuerpo */
    border-radius: 8px !important;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4) !important;
}

.btn-gold:hover, .btn-gold-sm:hover {
    background: #f9e2af !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.6) !important;
    color: #000 !important;
}

/* --- BARRA LATERAL CON PULSO TOTAL --- */
.side-contact-bar {
    position: fixed !important;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.contact-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 8px 0 0 8px;
    color: white !important;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

/* Colores específicos y Pulso */
.contact-item.facebook { 
    background-color: #1877F2 !important; 
    animation: pulse-blue 2s infinite;
}

.contact-item.whatsapp-sede { 
    background-color: #25D366 !important; 
    animation: pulse-green 2s infinite;
}

/* Keyframes para los pulsos */
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(24, 119, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- CALENDARIO (FONDO OSCURO) --- */
.calendar-wrapper {
    background-color: #1a1a1a !important; 
    border: 2px solid #c5a059;
    padding: 10px;
    border-radius: 12px;
}

.calendar-iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(1.1);
    background: white;
}
/* --- OPTIMIZACIÓN DE BARRA LATERAL PARA MÓVILES --- */

/* 1. Esconder la barra cuando un modal está abierto */
/* Bootstrap añade la clase .modal-open al body automáticamente */
body.modal-open .side-contact-bar {
    display: none !important;
}

/* 2. Ajustes para celulares (menos de 768px) */
@media (max-width: 767px) {
    .side-contact-bar {
        right: -10px; /* La replegamos un poco hacia afuera */
        transition: right 0.3s ease;
    }

    /* Se muestra completa solo cuando el usuario interactúa cerca */
    .side-contact-bar:hover, .side-contact-bar:active {
        right: 0;
    }

    .contact-item {
        width: 42px; /* Un poco más pequeña en móvil */
        height: 42px;
        margin-bottom: 4px;
        opacity: 0.9;
    }
}

/* 3. Asegurar que no tape el botón de cerrar de los modales */
.modal-header .btn-close {
    z-index: 1100;
}

/* --- BOTÓN CÓMO LLEGAR (Más delgado y elegante) --- */
.btn-gold-sm {
    background: #c5a059 !important;
    color: #000 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important; /* Texto un poco más pequeño */
    padding: 6px 12px !important; /* Menos grosor */
    border-radius: 4px !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-gold-sm:hover {
    background: #f9e2af !important;
    transform: translateY(-2px);
}

/* --- BOTÓN CONTACTAR SEDE (Oscuro con letras doradas) --- */
.btn-outline-gold-sm {
    background: rgba(15, 15, 15, 0.8) !important; /* Fondo oscuro */
    color: #c5a059 !important; /* Letras doradas */
    border: 1px solid rgba(197, 160, 89, 0.5) !important; /* Borde sutil */
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
}

.btn-outline-gold-sm:hover {
    background: #c5a059 !important; /* Invierte a dorado al pasar el mouse */
    color: #000 !important; /* Letras negras al hacer hover */
    border-color: #c5a059 !important;
}

/* --- HILO DE LUZ (Efecto Energía) --- */
.hilo-luz {
    height: 3px; /* Grosor sutil pero visible */
    width: 100%;
    /* Degradado de energía: Transparente -> Oro -> Plata -> Oro -> Transparente */
    background: linear-gradient(to right, 
        transparent 10%, 
        rgba(197, 160, 89, 0.6) 30%, 
        rgba(249, 226, 175, 0.9) 50%, 
        rgba(197, 160, 89, 0.6) 70%, 
        transparent 90%
    );
    /* Resplandor suave (Glow) */
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
    margin: 60px 0; /* Espaciado generoso entre secciones */
    position: relative;
    overflow: hidden;
}

/* Efecto de "corriente" de energía */
.hilo-luz::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: energia-flujo 3s infinite linear;
}

/* Animación del flujo de energía */
@keyframes energia-flujo {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Ajuste para móviles */
@media (max-width: 767px) {
    .hilo-luz {
        height: 2px;
        margin: 40px 0;
    }
}
/* --- ESTILO UNIFICADO PARA TODOS LOS MODALES --- */
.modal-content {
    background-color: rgba(15, 15, 15, 0.98) !important; /* Fondo casi negro */
    backdrop-filter: blur(10px); /* Efecto de cristal */
    border: 1px solid #c5a059 !important; /* Borde dorado */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
}

.modal-title {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forzar que el texto del cuerpo sea legible sobre el fondo oscuro */
.modal-body {
    color: #e0e0e0 !important;
}

/* Estilo para los acordeones dentro de los modales */
.modal-body .accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1) !important;
}

.modal-body .accordion-button {
    background-color: transparent !important;
    color: #f9e2af !important; /* Dorado claro */
    font-weight: 600;
    box-shadow: none !important;
}

.modal-body .accordion-button:not(.collapsed) {
    color: #c5a059 !important; /* Dorado fuerte al abrir */
    background-color: rgba(197, 160, 89, 0.05) !important;
}

.modal-body .accordion-body {
    color: rgba(255, 255, 255, 0.7) !important; /* Texto de respuesta en gris claro/blanco */
}