/*
 * FEC Dark Theme — Design System 2026
 * Federación Económica de Catamarca
 * Premium dark blue (#172F66) base with gold institutional accents
 * v3.1.0
 */

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════ */

:root {
    /* —— Backgrounds (Dark Blue #172F66 Foundation) —— */
    --fec-bg-abyss: #0B1633;
    --fec-bg-deep: #172F66;
    --fec-bg-card: #0F214A;
    --fec-bg-elevated: #1D3878;
    --fec-bg-surface: #22428B;

    /* —— Institutional —— */
    --fec-navy: #172F66;
    --fec-navy-dark: #0F214A;
    --fec-navy-light: #2A4FA3;

    /* —— Gold Accent —— */
    --fec-gold: #C9A84C;
    --fec-gold-light: #E8D5A0;
    --fec-gold-dark: #A68A3A;
    --fec-gold-glow: rgba(201, 168, 76, 0.18);
    --fec-gold-border: rgba(201, 168, 76, 0.3);

    /* —— Text —— */
    --fec-white: #FFFFFF;
    --fec-text-primary: #FFFFFF;
    --fec-text-secondary: rgba(255, 255, 255, 0.75);
    --fec-text-muted: rgba(255, 255, 255, 0.5);

    /* —— Borders —— */
    --fec-border: rgba(255, 255, 255, 0.1);
    --fec-border-light: rgba(255, 255, 255, 0.15);

    /* —— Typography —— */
    --font-heading: "Montserrat", "Inter", -apple-system, sans-serif;
    --font-body: "Inter", -apple-system, sans-serif;

    /* —— Spacing —— */
    --fec-section-padding: 100px 0;
    --fec-container-max: 1320px;
    --fec-container-padding: 0 30px;

    /* —— Transitions —— */
    --fec-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fec-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ═══════════════════════════════════════════
   2. GLOBAL RESETS (scoped to FEC)
   ═══════════════════════════════════════════ */

.fec-navbar,
.fec-hero,
.fec-quienes-somos,
.fec-eventos,
.fec-contacto,
.fec-footer,
.fec-socios-federacion,
.fec-socios-section,
.fec-presupuesto {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* ═══════════════════════════════════════════
   3. SHARED COMPONENTS
   ═══════════════════════════════════════════ */

/* Container */
.fec-container {
    max-width: var(--fec-container-max);
    margin: 0 auto;
    padding: var(--fec-container-padding);
}

/* Section Badge */
.fec-section-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    padding: 16px 42px !important;
    background: rgba(201, 168, 76, 0.12) !important;
    border: 1px solid var(--fec-gold-border) !important;
    border-radius: 60px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--fec-gold) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.8px !important;
    margin-bottom: 28px !important;
    backdrop-filter: blur(8px) !important;
    line-height: 1.5 !important;
}

.fec-section-badge i {
    font-size: 0.9rem !important;
    color: var(--fec-gold) !important;
}


/* ═══════════════════════════════════════════
   4. SHARED TYPOGRAPHY & CENTERING
   ═══════════════════════════════════════════ */

.section-title,
.fec-section-title,
.fec-contacto-title,
.fec-socios-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--fec-white);
    margin-bottom: 18px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-title .highlight,
.fec-section-title .highlight,
.fec-contacto-title .highlight,
.fec-socios-title .highlight {
    color: var(--fec-gold);
    border-bottom: 3px solid var(--fec-gold-border);
    display: inline;
}

.section-subtitle,
.fec-contacto-subtitle {
    font-size: 1.1rem;
    color: var(--fec-text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: center;
}


/* ═══════════════════════════════════════════
   5. SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */

.fec-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fec-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fec-reveal-delay-1 { transition-delay: 0.1s; }
.fec-reveal-delay-2 { transition-delay: 0.2s; }
.fec-reveal-delay-3 { transition-delay: 0.3s; }
.fec-reveal-delay-4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════
   6. SHARED CARD STYLES
   ═══════════════════════════════════════════ */

.fec-dark-card {
    background: var(--fec-bg-card);
    border: 1px solid var(--fec-border);
    border-radius: 16px;
    transition: all var(--fec-transition);
}

.fec-dark-card:hover {
    border-color: var(--fec-gold-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(201, 168, 76, 0.15);
    transform: translateY(-4px);
}


/* ═══════════════════════════════════════════
   7. SHARED BUTTON STYLES
   ═══════════════════════════════════════════ */

.fec-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 46px;
    background: linear-gradient(135deg, var(--fec-gold) 0%, var(--fec-gold-dark) 100%);
    color: #0F214A;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.4;
    transition: all var(--fec-transition);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.fec-btn-gold:hover {
    background: linear-gradient(135deg, var(--fec-gold-light) 0%, var(--fec-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
    color: #0F214A;
}

.fec-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 46px;
    background: transparent;
    color: var(--fec-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.4;
    transition: all var(--fec-transition);
}

.fec-btn-outline:hover {
    border-color: var(--fec-gold);
    color: var(--fec-gold);
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════
   8. DECORATIVE BACKGROUND PATTERNS & GLOW
   ═══════════════════════════════════════════ */

/* Patrón 1: Grid Financiero & Nodos Dorados (Red Empresaria / Crecimiento) */
.fec-pattern-grid {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(201, 168, 76, 0.15) 1.5px, transparent 0),
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 40px 40px;
}

/* Patrón 2: Lattice Geométrico Basado en Isotipo FEC (Solidez Institucional) */
.fec-pattern-lattice {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201, 168, 76, 0.035)' stroke-width='1.2'/%3E%3Cpath d='M30 10L50 30L30 50L10 30Z' fill='none' stroke='rgba(255, 255, 255, 0.015)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='2.5' fill='rgba(201, 168, 76, 0.08)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Patrón 3: Ondas y Elevación Topográfica (Catamarca & Desarrollo) */
.fec-pattern-waves {
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12 Q 30 0 60 12 T 120 12' fill='none' stroke='rgba(201, 168, 76, 0.03)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 120px 24px;
}

/* Orbs de Luz Ambiental Glassmorphism */
.fec-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
}

.fec-glow-gold {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0) 70%);
}

.fec-glow-blue {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(42, 79, 163, 0.22) 0%, rgba(23, 47, 102, 0) 70%);
}


/* ═══════════════════════════════════════════
   10. SECTION BACKGROUNDS & FALLBACK PLACEHOLDERS
   ═══════════════════════════════════════════ */

.fec-section-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.fec-section-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.88;
    filter: none;
    pointer-events: none;
}

.fec-section-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(23, 47, 102, 0.40) 0%,
        rgba(15, 33, 74, 0.48) 50%,
        rgba(11, 22, 51, 0.60) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.fec-section-bg-grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Decorative orbs */
.fec-section-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
}

.fec-section-orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(201, 168, 76, 0.08);
    top: -10%;
    right: -5%;
}

.fec-section-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(42, 79, 163, 0.2);
    bottom: 10%;
    left: -8%;
}

/* Fallback solid background placeholders & container layering */
.fec-novedades-section {
    position: relative;
    overflow: hidden;
    background-color: #172F66 !important;
    background: #172F66 !important;
}

.fec-noticias-archive {
    position: relative;
    overflow: hidden;
    background-color: #172F66 !important;
    background: #172F66 !important;
}

.fec-single-post-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #172F66 !important;
    background: #172F66 !important;
}

.fec-eventos {
    position: relative;
    overflow: hidden;
    background-color: #172F66 !important;
    background: #172F66 !important;
}

.fec-contacto {
    position: relative;
    overflow: hidden;
    background-color: #172F66 !important;
    background: #172F66 !important;
}

.fec-footer {
    position: relative;
    overflow: hidden;
    background-color: #0B1633 !important;
    background: #0B1633 !important;
}

.fec-hero .fec-container,
.fec-novedades-section .fec-container,
.fec-noticias-archive .fec-container,
.fec-single-post-wrapper .fec-container,
.fec-eventos .fec-container,
.fec-contacto .fec-container,
.fec-footer .fec-container {
    position: relative;
    z-index: 4;
}

/* ═══════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --fec-section-padding: 70px 0;
        --fec-container-padding: 0 20px;
    }
}


