/* ===== MAIN.CSS ===== */
/* Variables globales, reset, tipografía */

:root {
    /* Paleta de colores - basada en logo */
    --navy: #0A2A44;        /* Azul marino profundo */
    --steel: #4A5C6E;       /* Azul metálico / acero */
    --silver: #F0F3F7;      /* Gris plata muy claro (fondo) */
    --gray-medium: #6B7A8A; /* Gris medio para textos */
    --white: #FFFFFF;       /* Blanco puro */
    --accent: #D4AF37;      /* Dorado/ámbar para destacar (solo acentos) */
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
    
    /* Sombras */
    --shadow-sm: 0 4px 20px rgba(10, 42, 68, 0.08);
    --shadow-md: 0 10px 30px rgba(10, 42, 68, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-medium);
    background-color: var(--white);
    line-height: 1.5;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--steel);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--navy);
}

/* Utilidades */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.bg-light { background-color: var(--silver); }
.bg-white { background-color: var(--white); }

/* Contenedor principal (también en layout.css pero lo dejamos aquí por jerarquía) */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header fijo */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 92, 110, 0.1);
    z-index: 1000;
    padding: 0.5rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
}

/* Navegación */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--navy);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

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

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

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Responsive básico */
@media (max-width: 1024px) {
    /* ELIMINADO: .main-nav { display: none; } - El menú se controla con JS */
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}