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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #222222;
    background-color: #F4F6F8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #222222;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.05rem;
}

/* =======================
   THEME VARIABLES
   ======================= */
:root {
    /* ----- Tetradic Palette ----- */
    --clr-primary: #FF6B6B;         /* Coral Red */
    --clr-primary-dark: #E55454;
    --clr-secondary: #FFD93D;       /* Amber Yellow */
    --clr-secondary-dark: #E0BF35;
    --clr-accent1: #1DD3B0;         /* Aqua Green */
    --clr-accent1-dark: #16A98A;
    --clr-accent2: #4D4AE8;         /* Indigo Blue */
    --clr-accent2-dark: #3B38C1;

    /* ----- Neumorphism Shadow ----- */
    --shadow-light: rgba(255, 255, 255, 0.7);
    --shadow-dark: rgba(0, 0, 0, 0.15);

    /* ----- Radius & Transition ----- */
    --radius-lg: 22px;
    --radius-md: 12px;
    --transition: all 0.3s ease-in-out;
}

/* =======================
   GLOBAL UTILS
   ======================= */
.section {
    padding: 4rem 1.2rem;
}

.alt-bg {
    background: linear-gradient(145deg, #F7F9FA, #ECEFF1);
}

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 66%;
    margin: 0 auto;
}

/* =======================
   NAVBAR
   ======================= */
.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a.title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.1rem;
}

.nav-links a {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: var(--clr-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #222222;
    border-radius: 3px;
}

/* =======================
   HERO
   ======================= */
.hero-section {
    color: #FFFFFF;                /* MUST be white */
    background-attachment: fixed;  /* Simple parallax */
    background-size: cover !important;
    background-repeat: no-repeat !important;
    text-align: center;
    padding: 7rem 1rem 6rem;
    position: relative;
}

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

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

/* =======================
   BUTTONS (Global)
   ======================= */
.btn-primary,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--clr-primary);
    color: #FFFFFF;
    padding: 0.75rem 1.8rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--clr-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* link estilo 'Leer más' */
.read-more {
    color: var(--clr-accent2);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}
.read-more:hover {
    color: var(--clr-accent2-dark);
}

/* =======================
   CARDS & NEUMORPHISM
   ======================= */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;                 /* CENTER content */
    text-align: center;
    padding: 1.5rem;
    background: #ECEFF1;
    border-radius: var(--radius-lg);
    box-shadow: -10px -10px 20px var(--shadow-light),
                 10px 10px 20px var(--shadow-dark);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: -12px -12px 24px var(--shadow-light),
                 12px 12px 24px var(--shadow-dark);
}

.card-image {
    width: 100%;
    height: 250px;                        /* FIXED HEIGHT */
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;                    /* NO OFF-CENTER */
    display: block;
    margin: 0 auto;
}

.card-content h3 {
    margin-bottom: 0.6rem;
    color: var(--clr-accent2-dark);
}

.card-content p {
    margin-bottom: 0.4rem;
}

/* =======================
   TIMELINE
   ======================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--clr-accent1);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    background: var(--clr-secondary);
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 4px var(--clr-accent1-dark);
}

.timeline-content {
    background: #FFFFFF;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

/* =======================
   ACCORDION (Workshops)
   ======================= */
.accordion {
    width: 100%;
    background: #FFFFFF;
    color: #333333;
    cursor: pointer;
    padding: 1rem 1.2rem;
    border: none;
    text-align: left;
    outline: none;
    transition: var(--transition);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--shadow-dark);
    margin-bottom: 1rem;
}

.accordion.active,
.accordion:hover {
    background: var(--clr-secondary);
    color: #222222;
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    padding: 0 1rem;
}

/* =======================
   PARTNERS GRID
   ======================= */
.partner-grid .card-image {
    height: 100px;
}

/* =======================
   CONTACT FORM
   ======================= */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: -10px -10px 20px var(--shadow-light),
                 10px 10px 20px var(--shadow-dark);
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--clr-accent2-dark);
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    background: #ECEFF1;
    box-shadow: inset -4px -4px 8px var(--shadow-light),
                inset 4px 4px 8px var(--shadow-dark);
    font-family: inherit;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--clr-primary);
}

/* =======================
   FOOTER
   ======================= */
.footer {
    background: #222831;
    color: #F1F1F1;
    text-align: center;
    padding: 2rem 1rem;
}

.footer-links a,
.social-links a {
    color: var(--clr-accent1);
    margin: 0 0.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--clr-accent1-dark);
    text-decoration: underline;
}

/* =======================
   PARALLAX EFFECT (simple)
   ======================= */
.parallax {
    background-attachment: fixed;
}

/* =======================
   SUCCESS PAGE
   ======================= */
.success-wrapper {
    min-height: 100vh;             /* REQUIRED */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent2) 100%);
    color: #FFFFFF;
    text-align: center;
}

/* =======================
   PRIVACY / TERMS PAGES
   ======================= */
.legal-page {
    padding-top: 100px;            /* Avoid header overlap */
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* =======================
   MEDIA QUERIES
   ======================= */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* =======================
   UTILITY CLASSES
   ======================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* =======================
   SOCIAL ICON PLACEHOLDER (text-only)
   ======================= */
.social-links {
    font-weight: 600;
}

.social-links a::before {
    content: '→ ';
    color: var(--clr-secondary);
}

/* =======================
   END OF FILE
   ======================= */