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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark-900);
    background: var(--color-light-100);
    overflow-x: hidden;
}

/* ==========================================================================
   THEME VARIABLES : COMPLEMENTARY SCHEME
   ========================================================================== */
:root {
    --color-primary-500: #0059B3;     /* Azul corporativo */
    --color-primary-600: #004d99;
    --color-primary-700: #003d7a;

    --color-secondary-500: #FFB300;   /* Amarillo vibrante */
    --color-secondary-600: #E69E00;
    --color-secondary-700: #CC8A00;

    --color-accent-500: #EE4266;      /* Rosa intenso */
    --color-accent-600: #D53B5A;

    --color-light-100: #F9FBFF;
    --color-light-200: #EEF3FC;
    --color-dark-700: #222831;
    --color-dark-800: #1B2027;
    --color-dark-900: #11151C;

    --shadow-elevation: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-base: 8px;

    --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-500) 100%);
}

/* ==========================================================================
   GLOBAL ELEMENTS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo Black', Impact, sans-serif;
    font-weight: 700;
    color: var(--color-dark-900);
    line-height: 1.2;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary-500);
    text-decoration: none;
    transition: color .25s ease;
}

a:hover,
a:focus {
    color: var(--color-secondary-500);
}

.section-title {
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
button,
input[type='submit'] {
    display: inline-block;
    padding: 0.85em 2em;
    border-radius: var(--radius-base);
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary:hover,
button:hover,
input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevation);
}

.btn-primary:active,
button:active,
input[type='submit']:active {
    transform: translateY(0);
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid,
.stats-grid,
.workshop-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    z-index: 99;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-500);
}

#burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: .5rem;
    cursor: pointer;
}

#burger span {
    width: 24px;
    height: 3px;
    background: var(--color-dark-900);
    transition: 0.3s;
}

.navigation {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 70%;
    background: var(--color-light-100);
    padding: 4rem 2rem;
    transition: right .4s ease;
}

.navigation.open {
    right: 0;
}

.navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.navigation a {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (min-width: 992px) {
    #burger {
        display: none;
    }

    .navigation {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
    }

    .navigation ul {
        flex-direction: row;
        gap: 2rem;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 5rem;
    color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   FEATURES / CARD STYLES
   ========================================================================== */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-elevation);
    overflow: hidden;
    transition: transform .35s ease;
}

.card:hover {
    transform: translateY(-6px);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: .75rem;
}

/* ==========================================================================
   STATISTICS
   ========================================================================== */
.stat-widget {
    background: var(--color-primary-500);
    border-radius: var(--radius-base);
    padding: 2rem 1rem;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-elevation);
    transition: transform .3s ease;
}

.stat-widget:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Archivo Black', sans-serif;
    display: block;
    margin-bottom: .25rem;
}

.stat-label {
    font-size: .9rem;
}

/* ==========================================================================
   METHODOLOGY / AWARDS
   ========================================================================== */
.methodology-section,
.awards-section {
    background: var(--color-light-200);
    padding: 4rem 0 3.5rem;
}

.award-list {
    list-style: disc;
    padding-left: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.award-list li {
    margin-bottom: .65rem;
    font-weight: 500;
}

/* ==========================================================================
   WORKSHOPS
   ========================================================================== */
.workshop {
    background: #fff;
    border-left: 6px solid var(--color-secondary-500);
    padding: 1.5rem;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-elevation);
    transition: border-color .25s ease;
}

.workshop:hover {
    border-color: var(--color-accent-500);
}

.workshop h3 {
    margin-bottom: .5rem;
}

.workshop time {
    font-size: .85rem;
    color: var(--color-dark-700);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section {
    padding: 4rem 0 3.5rem;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: .5rem;
}

.form-group input,
.form-group textarea {
    padding: .75rem 1rem;
    border: 2px solid var(--color-light-200);
    border-radius: var(--radius-base);
    font-size: .95rem;
    background: #fff;
    transition: border-color .25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary-500);
    outline: none;
}

/* ==========================================================================
   RESOURCES
   ========================================================================== */
.resource-list {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
}

.resource-list li {
    margin-bottom: .9rem;
    padding-left: 1.25rem;
    position: relative;
}

.resource-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--color-accent-500);
    font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    background: var(--color-dark-800);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-section p {
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}

.footer-nav a,
.social-links a {
    color: var(--color-secondary-500);
    font-weight: 500;
    transition: color .25s ease;
}

.footer-nav a:hover,
.social-links a:hover {
    color: var(--color-accent-500);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

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

/* ==========================================================================
   PRIVACY & TERMS PAGES
   ========================================================================== */
.legal-page {
    padding-top: 100px;
    padding-bottom: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   GLASSMORPHISM UTILITIES
   ========================================================================== */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   MICRO ANIMATIONS
   ========================================================================== */
@keyframes float-y {
    from { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    to   { transform: translateY(0); }
}

.btn-primary,
button,
input[type='submit'],
.card,
.stat-widget {
    will-change: transform;
}

/* ==========================================================================
   READ MORE LINKS
   ========================================================================== */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-accent-500);
    position: relative;
    padding-right: 1.2rem;
    transition: color .25s ease;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform .25s ease;
}

.read-more:hover {
    color: var(--color-secondary-500);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (min-width: 768px) {
    .footer-nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}