/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #e3265d; /* Pink for Inicio */
    --text-color: #000000;
    --bg-color: #ffffff;
    --nav-font: 'Oswald', sans-serif;
    --body-font: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 80px; /* Adjust based on actual logo size */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--nav-font);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.nav-link.active {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
}



.nav-link:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   Mobile Menu (Hamburger)
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    left: 0;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Nav Active State */
.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--primary-color);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 150px; /* Offset for fixed header */
    padding-bottom: 50px;
    background-color: #ffffff;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    position: relative;
}

.hero-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    padding-right: 40px;
}

.hero-content {
    margin-top: auto;
    margin-bottom: 60px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 12px;
    line-height: 1.3;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 850px; /* Increased size to make the hero image bigger */
    object-fit: contain;
    object-position: bottom; /* Keep image aligned to the bottom */
}

/* ==========================================================================
   Courses Intro
   ========================================================================== */
.courses-intro {
    padding: 0 0 15px 0; /* Add a little bottom padding so it perfectly aligns with the image's bottom visual bound */
    text-align: center;
    background-color: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title .highlight {
    color: var(--primary-color);
}

/* ==========================================================================
   Courses List
   ========================================================================== */
.courses-list {
    background-color: #ffffff;
    padding: 60px 0;
}

.courses-container {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.course-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 30px;
    border-left: 10px solid var(--primary-color); /* Matches background, looks invisible */
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    background-color: #f0f0f0;
    color: var(--text-color);
    border-left: 10px solid var(--primary-color); /* Now visible against grey */
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-code {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.course-desc {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

.course-card:hover .course-desc {
    color: #444; /* Darker text for description on grey background */
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
}

/* Timer Box */
.timer-box {
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    background-color: #ffffff;
    flex: 1;
    min-width: 450px;
}

.timer-title {
    font-family: 'Lora', serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.timer-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-digits {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.digit-box {
    background-color: #fce4ec; /* Light pink background */
    border-radius: 8px;
    width: 60px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.digit-box span {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.time-separator {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 5px;
    line-height: 85px; /* Align with center of digit boxes */
}

.time-label {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--text-color);
}

/* Countdown Text */
.countdown-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 450px;
}

.session-title {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: -15px; /* Pull GRATUITA text up */
    position: relative;
    z-index: 2;
}

.free-text {
    font-family: 'Oswald', sans-serif;
    font-size: 7rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.secure-spot {
    background-color: #5e2a84; /* Purple background */
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 15px 30px;
    text-align: center;
    line-height: 1.3;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.experience-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #ffffff;
}

.experience-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
}

.experience-text {
    flex: 1;
    min-width: 300px;
}

.experience-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: none;
}

.experience-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
}

.experience-text p strong {
    display: block;
    margin-top: 15px;
    font-size: 2rem;
    font-weight: 800;
}

.experience-video {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.experience-video video {
    max-height: 600px; /* Constrain height for vertical video */
    max-width: 100%;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Registration Section
   ========================================================================== */
.registration-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.sub-heading {
    display: block;
    font-family: 'Oswald', sans-serif;
    color: #888888;
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 700;
}

.main-heading {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 20px;
    line-height: 1;
}

.heading-line {
    width: 150px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.registration-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 40px;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.required {
    color: var(--primary-color);
    margin-left: 3px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #555555;
    background-color: #ffffff;
}

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

.textarea-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.textarea-group textarea {
    flex: 1;
    resize: vertical;
    min-height: 200px;
}

.submit-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c01b4c;
}

.whatsapp-cta {
    margin-top: auto;
    padding-top: 20px;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #111111;
    transition: transform 0.3s ease;
}

.wa-link:hover {
    transform: translateY(-3px);
}

.wa-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: #ffffff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo-col {
    display: flex;
    justify-content: flex-start;
}

.footer-logo {
    max-width: 280px;
    height: auto;
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.footer-social-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }
    
    .nav-link.active {
        font-size: 1.6rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-top: 40px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 4rem;
    }
    
    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-height: 400px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .countdown-container {
        gap: 40px;
        flex-wrap: wrap;
    }

    .timer-box, .countdown-text {
        min-width: 100%;
        flex: 1 1 100%;
        box-sizing: border-box;
    }

    .timer-box {
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timer-display {
        gap: 5px;
    }

    .digit-box {
        width: 35px;
        height: 55px;
    }

    .digit-box span {
        font-size: 2.2rem;
    }

    .time-separator {
        font-size: 2rem;
        margin: 0 2px;
        line-height: 55px;
    }

    .free-text {
        font-size: 5rem;
    }

    .experience-container {
        flex-wrap: wrap;
        text-align: center;
        flex-direction: column;
    }

    .experience-text h2 {
        font-size: 4rem;
    }

    .experience-text p {
        font-size: 1.3rem;
    }

    .experience-text p strong {
        font-size: 1.6rem;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .textarea-group textarea {
        min-height: 150px;
    }

    .main-heading {
        font-size: 2.8rem;
    }

    .submit-wrapper {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .footer-logo-col, .footer-contact-col, .footer-social-col {
        align-items: center;
        justify-content: center;
    }
    
    .footer-contact-list {
        align-items: center;
    }
}
