/* ==========================================================================
   1. TOKENS Y VARIABLES CSS (SISTEMA DE DISEÑO)
   ========================================================================== */
:root {
    --bg-base: #050505;
    --bg-surface: #121212;
    --bg-surface-alt: #1a1a1a;
    --accent: #C5A059;
    --accent-hover: #D4B271;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-w: 1280px;
    --section-padding: 120px 0;
    --section-padding-mobile: 80px 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE GLOBALES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
button { font-family: var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 90%; max-width: var(--container-w); margin: 0 auto; }
.section { padding: var(--section-padding); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animaciones on Scroll Globales */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. COMPONENTES GLOBALES (Botones y Cards)
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; font-family: var(--font-display); font-weight: 600;
    font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; border-radius: var(--radius-sm);
    transition: var(--transition-smooth); border: 1px solid transparent;
}
.btn-primary { background-color: var(--accent); color: var(--bg-base); }
.btn-primary:hover {
    background-color: var(--accent-hover); transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.15);
}
.btn-outline { background-color: transparent; border-color: var(--text-primary); color: var(--text-primary); }
.btn-outline:hover { background-color: var(--text-primary); color: var(--bg-base); transform: translateY(-2px); }
.btn-text { color: var(--accent); padding: 0; font-weight: 500; border-bottom: 1px solid transparent; border-radius: 0; }
.btn-text:hover { border-color: var(--accent); }

/* ==========================================================================
   4. HEADER Y NAVEGACIÓN GLOBAL
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header.scrolled {
  background-color: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   5. FOOTER GLOBAL
   ========================================================================== */
.footer {
    background-color: var(--bg-surface); padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin-top: 1.5rem; font-size: 0.9rem; max-width: 300px; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.footer-bottom {
    padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem;
}

/* ==========================================================================
   6. REPRODUCTOR FLOTANTE (MODAL MEDIA)
   ========================================================================== */
   
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: #121212; width: 90%; max-width: 600px;
    border-radius: 12px; padding: 10px; position: relative;
    transform: translateY(30px); transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: -50px; right: 0; background: rgba(255,255,255,0.1); border: none;
    color: #FFFFFF; cursor: pointer; transition: all 0.3s ease;
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #C5A059; color: #000; transform: scale(1.05); }
