/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --primary: #0a1a2f; 
    --primary-light: #152a47;
    --gold: #c5a059;
    --gold-dark: #a3813f;
    --white: #ffffff;
    --grey: #f8f9fa;
    --text: #333;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Lato', sans-serif; 
    color: var(--text); 
    line-height: 1.6;
    overflow-x: hidden; 
    background-color: var(--white);
}

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

/* =========================================
   NAVEGACIÓN (Menú Superior)
   ========================================= */
nav { 
    background: var(--primary); 
    padding: 0 8%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    z-index: 2000;
    border-bottom: 1px solid var(--gold);
    height: 90px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-nav { height: 60px; width: auto; }

.brand-name {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtext {
    color: var(--white);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 30px; }
.nav-links a { 
    color: var(--white); 
    text-decoration: none; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }

/* =========================================
   HERO SECTION (CORREGIDO PARA INDEX)
   ========================================= */
.hero { 
    /* Esta es la clave: degradado oscuro + imagen */
    background: linear-gradient(rgba(10, 26, 47, 0.7), rgba(10, 26, 47, 0.7)), 
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&q=80&w=1500'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    height: 100vh;
}

.hero-interna { height: 50vh !important; padding-top: 90px; }

.hero-box { 
    padding: 50px 40px; 
    background: rgba(255, 255, 255, 0.05); /* Efecto cristal */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    max-width: 850px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero h1 { 
    font-size: 4rem; 
    color: var(--gold); 
    margin-bottom: 15px; 
    font-weight: 700;
}

.hero-subtitle { 
    color: var(--gold); 
    letter-spacing: 7px; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    margin-bottom: 10px;
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
    opacity: 0.9;
}

/* =========================================
   SECCIONES Y TÍTULOS
   ========================================= */
section { padding: 100px 10%; width: 100%; clear: both; }
.bg-grey { background-color: var(--grey); }

.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; color: var(--primary); }
.section-title span { 
    display: block; font-size: 0.9rem; color: var(--gold); 
    text-transform: uppercase; letter-spacing: 4px; margin-bottom: 10px; 
}

/* =========================================
   ESTILOS PÁGINA NOSOTROS Y LAYOUT FLEX
   ========================================= */
.container-flex { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
    justify-content: space-between;
}

.text-side { flex: 1.2; }
.text-side p { margin-bottom: 25px; font-size: 1.1rem; color: #444; }

.image-side { flex: 1; position: relative; }
.image-border { border: 2px solid var(--gold); padding: 15px; background: white; }
.image-border img { width: 100%; height: auto; display: block; }

.floating-badge {
    position: absolute; bottom: -20px; right: -20px; 
    background: var(--primary); color: var(--gold); 
    padding: 20px; border: 1px solid var(--gold); 
    font-family: 'Playfair Display'; font-size: 1.1rem;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
}

/* Grid de Socios */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; 
    margin-top: 50px; 
}

.team-card { 
    background: white; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    text-align: center;
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-10px); }
.team-img img { width: 100%; height: 480px; object-fit: cover; display: block; }
.team-info { padding: 30px; }
.team-info h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 5px; }
.team-role { color: var(--gold); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 15px; }
.team-bio { font-style: italic; color: #666; font-size: 0.95rem; }
.team-divider { width: 50px; height: 2px; background: var(--gold); margin: 15px auto; }

/* =========================================
   ESTILOS PÁGINA CONTACTO
   ========================================= */
.contact-detail-list {
    list-style: none;
    margin-top: 30px;
}
.contact-detail-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.contact-detail-list i { color: var(--gold); font-size: 1.4rem; margin-top: 5px; }
.contact-detail-list strong { color: var(--primary); font-size: 1rem; }

.contact-form {
    background: white;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }

/* =========================================
   REUTILIZABLES (AREAS Y FEATURES)
   ========================================= */
.grid-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.area-item { 
    background: white; padding: 50px 30px; text-align: center; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: var(--transition);
    border-top: 3px solid transparent;
}
.area-item:hover { transform: translateY(-10px); border-top-color: var(--gold); }
.area-item i { font-size: 3rem; color: var(--gold); margin-bottom: 25px; display: block; }

.features { display: flex; flex-wrap: wrap; padding: 0; background: var(--primary); }
.features-img { flex: 1; min-width: 300px; min-height: 450px; background-size: cover; background-position: center; }
.features-content { flex: 1; padding: 80px 8%; color: white; }
.features-title { color: var(--gold); font-size: 2.5rem; margin-bottom: 40px; }
.feature-row { display: flex; gap: 20px; margin-bottom: 30px; }
.feature-row i { color: var(--gold); font-size: 1.5rem; }

/* =========================================
   FOOTER (FIX FINAL)
   ========================================= */
footer { 
    background: #050d18; 
    color: white; 
    padding: 80px 10% 30px; 
    border-top: 2px solid var(--gold); 
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 60px; }
.footer-brand { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.footer-logo-img { height: 70px !important; width: auto; }
.footer-brand-text { display: flex; flex-direction: column; text-align: left; }
.f-name { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.f-sub { color: var(--white); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; }
.footer-description { font-size: 0.9rem; opacity: 0.7; margin-top: 15px; line-height: 1.6; }
.footer-column h4 { color: var(--gold); margin-bottom: 25px; text-transform: uppercase; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 15px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.footer-contact i { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; opacity: 0.5; }

/* =========================================
   BOTONES Y EXTRAS
   ========================================= */
.wsp-btn { 
    position: fixed; bottom: 30px; right: 30px; background: #25d366; 
    width: 60px; height: 60px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: white; font-size: 30px; z-index: 3000; text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-gold {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: var(--transition);
    text-transform: uppercase;
}
.btn-gold:hover { background: var(--gold); color: var(--primary); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .container-flex { flex-direction: column; text-align: center; }
    .image-side { margin-bottom: 40px; }
    .hero h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    nav { height: 80px; padding: 0 5%; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .form-group { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}