/* base.css - Variables y estilos globales */

:root {
    --color-primario: #003D62;
    --color-secundario: #97b834;
    --color-fondo: #f5f6fa;
    --color-texto: #1f1e1e;
    --color-blanco: #fff;
    --color-gris-claro: #f8f9fa;
    --color-gris: #1f1e1e;
    --border-radius: 12px;
    --sombra: 0 4px 16px rgba(0, 61, 98, .08);
    --sombra-hover: 0 8px 24px rgba(0, 61, 98, .15);
    --sombra-intensa: 0 12px 32px rgba(0, 61, 98, .2);
    --transicion: .3s ease-in-out;
    --transicion-lenta: .6s ease-in-out;
    /* Tipografía Fluida */
    --font-size-base: clamp(1rem, 1.5vw + 0.5rem, 1.1rem);
    --font-size-h1: clamp(2.5rem, 6vw, 4rem);
    --font-size-h2: clamp(2rem, 5vw, 2.8rem);
    --font-size-h3: clamp(1.4rem, 4vw, 1.6rem);
    --font-size-h4: clamp(1.1rem, 3vw, 1.2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--color-primario);
    font-weight: 700;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

.contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem); /* Padding lateral fluido */
}

section {
    padding: clamp(3rem, 8vw, 5rem) 0; /* Padding vertical fluido */
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secundario);
    text-decoration: none;
    transition: all var(--transicion);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animación de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones adicionales */
@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(151, 184, 52, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(151, 184, 52, 0.6)); }
}

@keyframes lineGlow {
    from { box-shadow: 0 0 5px rgba(151, 184, 52, 0.5); }
    to { box-shadow: 0 0 15px rgba(151, 184, 52, 0.8); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
