/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    --dorado: #d4af37;
    --dorado-light: #f1e4a1;
    --negro: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(212, 175, 55, 0.15);
    --transicion: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --gold-gradient: linear-gradient(45deg, #af8e33, #f1e4a1, #d4af37, #af8e33);
}

* { 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    margin: 0; 
    padding: 0;
    background: var(--negro);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 400; 
}

/* ==========================================================================
   EFECTOS Y TEXTOS
   ========================================================================== */
.gold-text {
    background: var(--gold-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine { 
    to { background-position: 200% center; } 
}

/* Fíjate que aquí apuntamos a la carpeta images/ */
.background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/orguz-bg.webp') no-repeat center center;
    background-size: cover;
    filter: brightness(15%);
    z-index: -1;
}

/* ==========================================================================
   NAVEGACIÓN Y CABECERA (HERO)
   ========================================================================== */
nav {
    padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(0,0,0,0.8);
}

.logo-nav { height: 45px; }

.nav-links a {
    color: #fff; text-decoration: none; margin-left: 25px;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    transition: var(--transicion); opacity: 0.6;
}

.nav-links a:hover { 
    color: var(--dorado); 
    opacity: 1; 
    text-shadow: 0 0 10px rgba(212,175,55,0.3); 
}

header {
    height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}

.hero-logo { 
    width: 300px; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3)); 
}

header h1 { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: 12px; text-transform: uppercase; margin: 0; }
header p { letter-spacing: 8px; color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 0.9rem; }

section { padding: 120px 10%; }
h2 { text-align: center; font-size: 2.8rem; margin-bottom: 70px; letter-spacing: 3px; }

/* ==========================================================================
   TARJETAS GLASS-CARD
   ========================================================================== */
.glass-card {
    background: var(--glass); 
    border: 1px solid var(--border);
    padding: 30px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    height: 100%;
    position: relative; 
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    min-height: 260px;
    justify-content: center;
}

.glass-card::after {
    content: ''; 
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.7s ease;
}

.glass-card:hover::after { left: 100%; }

.glass-card:hover {
    border-color: var(--dorado); 
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); 
}

/* ==========================================================================
   GRID DE SERVICIOS
   ========================================================================== */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px;
}

.services-grid .glass-card h3 { 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    margin: 15px 0; 
    line-height: 1.3;
    color: var(--dorado);
    text-transform: uppercase;
    font-weight: 500;
}

/* ICONOS DE SERVICIOS */
.glass-card .service-icon.fa-solid { 
    font-size: 1.8rem !important; 
    color: var(--dorado) !important; 
    margin-bottom: 20px; 
    display: block !important; 
    opacity: 0.9;
    transition: all 0.4s ease;
}

.glass-card:hover .service-icon.fa-solid {
    transform: translateY(-5px);
    opacity: 1;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TESTIMONIOS, EQUIPO Y FAQ
   ========================================================================== */
.testimonial-quote { font-style: italic; font-size: 0.95rem; opacity: 0.8; margin-bottom: 20px; }
.testimonial-author { color: var(--dorado); font-family: 'Playfair Display', serif; font-size: 1.1rem; letter-spacing: 1px; }

.member-premium { background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.9) 100%); border: 1px solid var(--border); overflow: hidden; transition: var(--transicion); }
.member-premium:hover { border-color: var(--dorado); transform: translateY(-10px); }
.member-premium img { width: 100%; height: 320px; object-fit: cover; filter: grayscale(1) brightness(0.7); transition: 0.6s; object-position: top center; }
.member-premium:hover img { filter: grayscale(0) brightness(1); }

.faq-container { max-width: 900px; margin: 0 auto; }

.faq-item { 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 10px; 
    transition: var(--transicion); 
}

.faq-question { 
    padding: 25px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.2rem; 
}

.faq-item i { 
    transition: transform 0.4s ease; 
    font-size: 0.8rem; 
    opacity: 0.5; 
    color: var(--dorado); 
}

.faq-item.active i { 
    transform: rotate(180deg); 
    opacity: 1; 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    padding: 0 25px; 
    color: rgba(255,255,255,0.6); 
    font-size: 0.95rem; 
}

.faq-item.active .faq-answer { 
    max-height: 500px; 
    padding-bottom: 25px; 
}

.btn-elite { padding: 15px 35px; border: 1px solid var(--dorado); color: var(--dorado); text-transform: uppercase; letter-spacing: 3px; font-size: 0.75rem; text-decoration: none; transition: 0.4s; display: inline-block; margin-top: 20px; }
.btn-elite:hover { background: var(--dorado); color: #000; box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

/* ==========================================================================
   BOTÓN WHATSAPP DINÁMICO
   ========================================================================== */
.whatsapp-premium {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--dorado);
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.whatsapp-premium i {
    color: var(--dorado);
    font-size: 2rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.whatsapp-premium span {
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    padding-right: 25px;
}

.whatsapp-premium:hover {
    width: 300px;
    background: var(--dorado);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.whatsapp-premium:hover i { color: #000; }
.whatsapp-premium:hover span { opacity: 1; }

@media (max-width: 768px) {
    .whatsapp-premium { width: 60px !important; }
    .whatsapp-premium span { display: none; }
}

/* ==========================================================================
   VENTANAS MODALES LEGALES
   ========================================================================== */
.modal-legal {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
}

.modal-content {
    background: #0a0a0a;
    margin: 5% auto;
    padding: 60px;
    border: 1px solid var(--dorado);
    outline: 15px solid #0a0a0a;
    box-shadow: 0 0 0 16px var(--dorado);
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: #a0a0a0;
}

.modal-text h2 {
    color: var(--dorado);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-text h3 {
    color: var(--dorado);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-top: 35px;
    margin-bottom: 10px;
}

.modal-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.close-modal {
    color: var(--dorado);
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    transform: scale(1.2);
    filter: brightness(1.5);
}

/* ==========================================================================
   FOOTER Y COMPONENTES ADICIONALES
   ========================================================================== */
.footer-pro { background: #000; padding: 100px 10% 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; }
.footer-col h4 { color: var(--dorado); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; font-size: 0.85rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--dorado); padding-left: 5px; }

.stat-item { min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.stat-item h3 { font-size: 3rem; margin: 0; min-width: 110px; }

/* COMPORTAMIENTO NATIVO DE JOOMLA */
.main-content-holder {
    padding: 60px 10%;
    background: rgba(0,0,0,0.3);
}

/* ==========================================================================
   AJUSTES RESPONSIVOS GLOBALES
   ========================================================================== */
@media (max-width: 1200px) { 
    .services-grid { grid-template-columns: repeat(2, 1fr); } 
}

/* ==========================================================================
   CONFIGURACIÓN DEL MENÚ (ESCRITORIO / PC)
   ========================================================================== */
/* Ocultamos el botón de hamburguesa por defecto en PC */
.menu-toggle {
    display: none !important; /* Forzamos a que no se vea en computadora */
    color: var(--dorado);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transicion);
    z-index: 2000;
}

/* Aseguramos que los enlaces se vean en línea horizontal en PC */
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    background: transparent;
    height: auto;
    width: auto;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 1200px) { 
    .services-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) {
    section { padding: 80px 5%; }
    .services-grid { grid-template-columns: 1fr; }
    .modal-content { width: 95%; padding: 30px; }
    .main-content-holder { padding: 40px 5%; }
    
    /* 1. Mostramos el botón hamburguesa SOLO en móviles */
    .menu-toggle { 
        display: block !important; 
    }
    
    /* 2. Convertimos el menú en un panel lateral oscuro (Móviles) */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(5, 5, 5, 0.98) !important;
        backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        transition: left 0.4s ease-in-out !important;
        z-index: 1500 !important; /* Lo pone por encima de la página */
    }
    
    /* 3. La clase que lo hace aparecer en pantalla */
    .nav-links.active {
        left: 0 !important; /* Fuerza a que se coloque en el centro */
    }
    
    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
}