/*
* File: style.css
* Description: Stylesheet for ElectroCarga Argentina website.
*/

/* 1. ROOT VARIABLES & GLOBAL STYLES
-------------------------------------------------- */
:root {
    --primary-color: #4A00E0;
    --secondary-color: #8E2DE2;
    --accent-color: #00B4DB;
    --accent-color-dark: #0083B0;

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

    --background-color-light: #FDFEFE;
    --background-color-medium: #F4F6F7;
    --text-color-dark: #212121;
    --text-color-medium: #555555;
    --text-color-light: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
    --volumetric-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --volumetric-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --volumetric-shadow-pressed: 0 2px 3px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--background-color-light);
    overflow-x: hidden;
}

/* 2. LAYOUT & HELPERS
-------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color-dark);
}

.section-gradient {
    background: var(--gradient-primary);
    color: var(--text-color-light);
}

.section-light {
    background-color: var(--background-color-medium);
}

.columns {
    display: flex;
    justify-content: center;
}

.column.is-two-thirds {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

/* 3. TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; color: var(--text-color-medium); }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--accent-color-dark); }
ul { list-style: none; }

/* 4. HEADER & NAVIGATION
-------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: top 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-out;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color-dark);
}

/* 5. GLOBAL COMPONENTS
-------------------------------------------------- */
/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

.volumetric-button {
    box-shadow: var(--volumetric-shadow);
    transform: translateY(0);
}

.volumetric-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.volumetric-button:active {
    transform: translateY(1px);
    box-shadow: var(--volumetric-shadow-pressed);
}

.primary-button {
    background: var(--gradient-primary);
    color: var(--text-color-light);
}

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

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

.card {
    background: var(--text-color-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--body-font);
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--background-color-light);
    transition: border-color 0.3s ease;
    box-shadow: var(--volumetric-shadow-inset);
}

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

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color-medium);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--background-color-light);
    padding: 0 0.5rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* 6. SECTION-SPECIFIC STYLES
-------------------------------------------------- */
/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 4rem 1rem;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    color: var(--text-color-light); /* Enforced white color */
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--text-color-light); /* Enforced white color */
}

/* Mission Section */
#mission .content-text {
    text-align: justify;
    font-size: 1.1rem;
}

/* Pricing Section */
.pricing-card {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.pricing-card.featured-card {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}
.pricing-card .price {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}
.pricing-card .price span {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.progress-bar-container {
    margin-top: auto;
    padding-top: 1rem;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--background-color-medium);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.progress-indicator {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 5px;
}

/* Customer Stories */
.testimonial-card {
    background: var(--background-color-medium);
    align-items: center;
    padding: 2rem;
}

.customer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--text-color-light);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}

/* Team/Instructors */
.team-card {
    align-items: center;
}
.team-card .card-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-top: 2rem;
    border: 5px solid var(--text-color-light);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.team-role {
    color: var(--secondary-color);
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

/* Webinars (Accordion) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color-light);
}
.animated-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}
.accordion-header.active .animated-icon {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
    background: rgba(0, 0, 0, 0.1);
}
.accordion-content p {
    padding: 1.5rem;
    color: var(--text-color-light);
    margin: 0;
}

/* External Resources */
#resources ul {
    list-style: none;
    padding-left: 0;
}
#resources li {
    background: var(--background-color-medium);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border-left: 5px solid var(--accent-color);
}
#resources li:hover {
    transform: translateX(10px);
    box-shadow: var(--card-shadow);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--background-color-medium);
    padding: 3rem;
    border-radius: var(--border-radius);
}
.contact-info p {
    margin-bottom: 1.5rem;
}

/* 7. FOOTER
-------------------------------------------------- */
.main-footer {
    background-color: #1a1a1a;
    color: #a9a9a9;
    padding: 4rem 0 2rem;
}

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

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

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

.footer-column ul a {
    color: #a9a9a9;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--text-color-light);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* 8. OTHER PAGES (SUCCESS, PRIVACY, TERMS)
-------------------------------------------------- */
.success-page, .legal-page {
    display: flex;
    flex-direction: column;
}

.success-page main, .legal-page main {
    flex-grow: 1;
}

.success-container {
    min-height: calc(100vh - 160px); /* Adjust for header/footer height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-content {
    background: var(--background-color-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 600px;
}
.success-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-content {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 5rem;
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }

/* 9. ANIMATIONS & TRANSITIONS
-------------------------------------------------- */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--gradient-primary);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

body.loaded #page-transition-overlay {
    opacity: 0;
}

/* 10. RESPONSIVE DESIGN (MEDIA QUERIES)
-------------------------------------------------- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--background-color-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        padding: 1.5rem 1rem;
        display: block;
        width: 100%;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 2rem; }
    .section { padding: 4rem 0; }
    .column.is-two-thirds {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .footer-grid {
        text-align: center;
    }
}