/* 
   Style Elite 2026 - Master Corporate Design System
   Grupo Astral / Valgo Institutional Redesign
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@500;700;800&display=swap');

:root {
    /* Color Palette - Premium Corporate */
    --primary: #00468c; /* Astral Deep Blue */
    --primary-light: #0066cc;
    --accent: #d4af37; /* Metallic Gold */
    --bg-dark: #0a0e14;
    --bg-light: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

.text-gold { color: var(--accent); }

/* Layout Components */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Modern Mega Menu */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.menu-link {
    text-decoration: none;
    color: white; /* Color claro para secciones hero oscuras */
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

header.scrolled .menu-link {
    color: var(--text-main); /* Cambia a oscuro cuando el fondo se vuelve claro */
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.menu-link:hover::after {
    width: 100%;
}

/* Hero Section Styles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-dark);
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 20px;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s forwards 0.4s;
}

/* Page Section Base */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* Card Elite - Glassmorphism */
.card-elite {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-elite:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15);
}

/* Footer Elite */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

/* Animations */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    opacity: 0;
    animation: fadeUp 1s forwards;
}

/* Responsive */
/* Lightbox Elite 2026 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--accent);
    transform: rotate(90deg);
}


/* Catálogo de Marcas - Doble Columna Elite */
.brands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos imágenes por fila fijas */
    gap: 30px;
    margin-top: 40px;
}

.brand-card {
    background: white;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    min-height: 250px; /* Soporta banners institucionales */
    overflow: hidden;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Evita que se corten los banners */
    transition: var(--transition);
}

@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: 1fr; /* Una columna en celulares para legibilidad */
    }
}
