/*
* style.css
* File for the 'InvertirARG' website
* Design System: Minimalist with Dynamic Color Transitions
* Color Scheme: Bright
* Animation Style: Micro-animations
*/

/* ---------------------------------- */
/*          1. CSS VARIABLES          */
/* ---------------------------------- */
:root {
    /* Colors */
    --color-primary: #4F46E5; /* Indigo */
    --color-secondary: #8B5CF6; /* Violet */
    --color-accent: #10B981;  /* Emerald */
    --color-text-dark: #222222;
    --color-text-light: #555555;
    --color-background-light: #F8F9FA;
    --color-background-dark: #111827;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-section: linear-gradient(180deg, var(--color-white) 0%, #F5F3FF 100%);
    --overlay-dark: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --container-width: 1200px;
    --container-padding: 1rem;
    --section-padding: 6rem 0;
    --section-padding-small: 3rem 0;

    /* Effects */
    --box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    --box-shadow-hover: 0 12px 32px rgba(17, 24, 39, 0.12);
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.4s ease-in-out;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ---------------------------------- */
/*      3. LAYOUT & HELPERS           */
/* ---------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: var(--section-padding);
}

.section-padding-small {
    padding: var(--section-padding-small);
}

.section-gradient {
    background: var(--gradient-section);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text-dark);
}

.section-subtitle {
    text-align: center;
    margin-top: -3rem;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.column-half {
    flex: 1 1 45%;
    min-width: 300px;
}

.column-two-thirds {
    flex: 2 1 60%;
}

.column-third {
    flex: 1 1 30%;
}

.link-styled {
    display: inline-block;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.link-styled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.link-styled:hover::after {
    width: 100%;
}

/* ---------------------------------- */
/*       4. GLOBAL COMPONENTS         */
/* ---------------------------------- */

/* --- Buttons --- */
.cta-button, .button-secondary, .button-register {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-slow);
    transform: translateY(0);
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(112, 85, 237, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(112, 85, 237, 0.6);
    color: var(--color-white);
    text-decoration: none;
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

.button-register {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.button-register:hover {
    background-color: #059669;
    color: var(--color-white);
    transform: scale(1.05);
    text-decoration: none;
}

/* --- Forms --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* --- Cards --- */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card .card-image {
    width: 100%;
    height: 200px; /* Fixed height for image container */
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .card-content h3 {
    margin-top: 0;
}

/* ---------------------------------- */
/*       5. SECTION-SPECIFIC          */
/* ---------------------------------- */

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: var(--transition-slow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.site-header .logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    position: relative;
    text-decoration: none;
}

.main-nav a:not(.nav-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:not(.nav-button):hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-button {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.nav-button:hover {
    transform: scale(1.05);
    color: var(--color-white);
    text-decoration: none;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-widget .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-widget .stat-label {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* --- Workshops / Slider --- */
.slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- Webinars --- */
.webinar-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.webinar-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-slow);
}

.webinar-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.webinar-info {
    flex: 1 1 60%;
}

.webinar-info p {
    margin-bottom: 0.5rem;
}

.webinar-date {
    font-weight: 500;
    color: var(--color-primary);
}

/* --- Resources Section --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.resource-card h4 {
    color: var(--color-primary);
}

.resource-card p {
    flex-grow: 1;
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    margin: 0;
}

/* --- About Page --- */
.page-header {
    background: var(--gradient-section);
    text-align: center;
    padding: calc(var(--header-height) + 4rem) 0 4rem 0;
}

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

.team-card .team-title {
    font-weight: 500;
    color: var(--color-primary);
    margin-top: -0.5rem;
}

.legal-content {
    padding-top: var(--header-height);
}

/* --- Contact Page --- */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-info-block {
    background: var(--gradient-section);
    padding: 2rem;
    border-radius: var(--border-radius);
}
.contact-info-block ul li {
    margin-bottom: 1rem;
}
.contact-info-block ul li strong {
    color: var(--color-text-dark);
}

/* --- Success Page --- */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-section);
    text-align: center;
}
.success-container {
    background: var(--color-white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
}
.success-icon {
    margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-background-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column p, .footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*    6. ANIMATIONS & TRANSITIONS     */
/* ---------------------------------- */

/* --- Scroll Animations (for JS) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Barba.js Page Transitions --- */
.barba-leave-active,
.barba-enter-active {
    transition: opacity 0.5s;
}
.barba-leave-to,
.barba-enter-from {
    opacity: 0;
}


/* ---------------------------------- */
/*          7. MEDIA QUERIES          */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .columns-container {
        flex-direction: column;
    }
    
    /* Mobile Menu */
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-button {
        display: block;
        width: calc(100% - 2rem);
        margin: 1rem auto 0 auto;
    }

    .burger-menu {
        display: block;
    }
    
    .burger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .webinar-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .button-register {
        width: 100%;
    }
}