/* ====================================================
   RESET & BASE
   ==================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Monochrome Palette */
    --color-bg: #0d0d0d;
    --color-surface: #1a1a1a;
    --color-primary: #ffffff;
    --color-accent: #b5b5b5;
    --color-muted: #888888;

    --color-shadow: rgba(0, 0, 0, .35);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Sizing */
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --radius: 6px;
    --transition: .35s cubic-bezier(.4, 0, .2, 1);

    /* Shadows */
    --shadow-elevate: 0 4px 14px var(--color-shadow);
}

/* Typography */
html { scroll-behavior: smooth; }
body {
    background: var(--color-bg);
    color: var(--color-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.25;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,.5);
}
h1 { font-size: 2.75rem; margin-bottom: var(--space-sm); }
h2 { font-size: 2rem; margin-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); }
p  { margin-bottom: var(--space-sm); color: var(--color-accent); }

/* Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.is-two-thirds { max-width: 70%; }
.text-center { text-align: center; }

/* Layout Helpers */
.section-title { margin-bottom: var(--space-md); }

/* ====================================================
   NAVIGATION
   ==================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(13, 13, 13, .85);
    backdrop-filter: blur(4px);
    z-index: 900;
    box-shadow: var(--shadow-elevate);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: var(--space-md); }
.main-nav a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: .25rem 0;
}
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--color-primary);
    transition: width var(--transition);
}
.main-nav a:hover::after { width: 100%; }
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: 0; cursor: pointer;
}
.burger span {
    width: 24px; height: 3px;
    background: var(--color-primary);
    transition: transform var(--transition), opacity var(--transition);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .main-nav { position: absolute; top: 100%; right: 0; background: var(--color-bg); width: 250px; transform: translateX(100%); transition: transform var(--transition); }
    .main-nav ul { flex-direction: column; padding: var(--space-sm); }
    .main-nav.open { transform: translateX(0); }
    .burger { display: flex; }
}

/* ====================================================
   HERO
   ==================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.05) 0%, transparent 70%);
    animation: particles 25s linear infinite;
    pointer-events: none;
}
@keyframes particles {
    from { background-position: 0 0; }
    to   { background-position: -10000px 5000px; }
}
.hero-title { color: #fff; }
.hero-subtitle { color: var(--color-accent); max-width: 650px; margin: 0 auto var(--space-md); }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn,
button,
input[type='submit'] {
    appearance: none;
    border: none;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: .75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}
.btn.primary { background: var(--color-primary); color: var(--color-bg); }
.btn:hover   { transform: translateY(-2px); }
.btn:active  { transform: translateY(0); }

/* ====================================================
   STATS
   ==================================================== */
.stats-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat-widget {
    background: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-elevate);
}
.stat-widget h3 { font-size: 2.5rem; margin-bottom: var(--space-xs); }

/* ====================================================
   CARDS (Success, Team, Media...)
   ==================================================== */
.card-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevate);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); }
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.card-content { padding: var(--space-md); }
.card-content a { color: var(--color-primary); text-decoration: underline; }

/* ====================================================
   ACCORDION
   ==================================================== */
.accordion-item + .accordion-item { margin-top: var(--space-sm); }
.accordion-header {
    width: 100%;
    background: var(--color-surface);
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.accordion-header:hover { background: #2a2a2a; }
.accordion-body {
    display: none;
    background: #222;
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ====================================================
   GALLERY
   ==================================================== */
.gallery {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gallery .image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.gallery img {
    width: 100%; height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-xs);
}

/* ====================================================
   EVENTS LIST
   ==================================================== */
.events-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.events-list li {
    background: var(--color-surface);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
}

/* ====================================================
   RESOURCES (External Links)
   ==================================================== */
.external-links {
    list-style: none;
    display: grid;
    gap: var(--space-md);
}
.external-links li {
    background: var(--color-surface);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
}
.external-links a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.external-links a:hover { text-decoration: underline; }

/* ====================================================
   CONTACT FORM
   ==================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(4px);
}
.form-group { margin-bottom: var(--space-md); }
label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}
input, textarea {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    border: none;
    background: #2a2a2a;
    color: var(--color-primary);
}
input:focus, textarea:focus { outline: 2px solid var(--color-primary); }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
    background: #111;
    padding: var(--space-lg) 0;
}
.footer-columns {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h3 { margin-bottom: var(--space-sm); }
.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
.site-footer a:hover { color: var(--color-primary); }

/* Social text links hover underline */
.site-footer ul li a:hover { text-decoration: underline; }

/* ====================================================
   PARALLAX
   ==================================================== */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ====================================================
   SUCCESS PAGE
   ==================================================== */
.success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ====================================================
   PAGES PADDING (privacy & terms)
   ==================================================== */
.page-legal { padding-top: 100px; }

/* ====================================================
   LINKS "LEER MÁS"
   ==================================================== */
.read-more {
    display: inline-block;
    margin-top: var(--space-xs);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}
.read-more::after {
    content: '→';
    margin-left: .25rem;
    transition: transform var(--transition);
}
.read-more:hover::after { transform: translateX(4px); }

/* ====================================================
   MEDIA QUERIES
   ==================================================== */
@media (max-width: 576px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .stats-grid, .card-grid, .gallery { grid-template-columns: 1fr; }
}

/* ====================================================
   PARTICLE ANIMATIONS (decorative) 
   ==================================================== */
.particle-container {
    position: absolute; inset: 0;
    overflow: hidden; pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--color-primary);
    opacity: .3;
    border-radius: 50%;
    animation: particle-float 10s linear infinite;
}
@keyframes particle-float {
    from { transform: translateY(0) translateX(0); }
    to   { transform: translateY(-800px) translateX(200px); }
}

/* ====================================================
   ACCORDION JS TOGGLE (OPEN CLASS)
   ==================================================== */
.accordion-item.open .accordion-body { display: block; }
@media (max-width: 768px) {
 nav, .burger{
     display: none;
 }

}