/* ==========================================
   BASE - Variables y Estilos Globales
   ========================================== */

:root {
    /* Colores Corporativos */
    --azul-oscuro: #004A98;
    --azul-medio: #0066CC;
    --oro: #C8A35F;
    --oro-claro: #D4B574;
    --blanco: #FFFFFF;
    --gris-ultra-claro: #F8FAFC;
    --gris-claro: #E2E8F0;
    --gris-medio: #64748B;
    --gris-oscuro: #1E293B;
    --negro: #0F172A;
    
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Espaciado */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 1.5rem;
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    --gap-2xl: 4rem;
    --gap-3xl: 6rem;
    
    /* Layout */
    --header-h: 80px;
    --max-w: 1400px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gris-oscuro);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   ANIMACIONES DE SCROLL
   ========================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.scroll-animate-fade.visible {
    opacity: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap-lg);
}

.section {
    padding: var(--gap-3xl) 0;
}

.section--no-top {
    padding-top: 0;
}

.section--no-bottom {
    padding-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--gap-3xl);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--azul-oscuro);
    font-weight: 700;
    margin-bottom: var(--gap-md);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--gris-medio);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-gold {
    color: var(--oro);
}

.text-highlight {
    color: var(--azul-oscuro);
    font-weight: 700;
}

/* ===== SEPARADORES CURVOS ===== */
.wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-separator--blue {
    background: var(--blanco);
    margin-top: -1px;
}

.wave-separator--blue svg {
    height: 100px;
}

.wave-separator--bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
}

.wave-separator--bottom svg {
    height: 80px;
}

.wave-separator--top-white {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.wave-separator--top-white svg {
    height: 100px;
    transform: rotate(180deg);
}

.wave-separator--footer {
    background: #1a1a2e;
    margin-top: -1px;
}

.wave-separator--footer svg {
    height: 80px;
}

.wave-separator--to-white {
    background: var(--blanco);
    margin-top: -1px;
}

.wave-separator--to-white svg {
    height: 100px;
}

.wave-separator--dark {
    background: var(--blanco);
    margin-top: -1px;
}

.wave-separator--dark svg {
    height: 100px;
}

.wave-separator--to-gray {
    background: var(--blanco);
    margin-top: -1px;
}

.wave-separator--to-gray svg {
    height: 100px;
}

.wave-separator--to-blue {
    background: var(--gris-ultra-claro);
    margin-top: -1px;
}

.wave-separator--to-blue svg {
    height: 100px;
}
