/* CSS Custom Properties */
:root {
    --primary: #3759E1;
    --primary-dark: #2a47b8;
    --secondary: #EDF0FC;
    --accent: #48c78e;
    --text-dark: #1a2b5f;
    --text-body: #4a5568;
    --white: #ffffff;
    --gray-100: #f7f8fc;
    --gray-200: #e8ecf4;
    --gray-300: #d1d5db;
    --footer-bg: #10226B;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}


.btn-large {
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover {
    background-color: #45a879;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
    transition: var(--transition);
}

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

.navbar-logo img {
    height: 35px;
    width: auto;
}

.navbar-logo .logo-full {
    display: block;
}

.navbar-logo .logo-iso {
    display: none;
}

.navbar-cta .btn {
    padding: 7px 14px;
    font-size: 0.875rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: block;
}

.hero-content {
    max-width: 550px;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
}

.hero-subtitle svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero-image {
    position: absolute;
    right: -5%;
    bottom: -60%;
    width: 55%;
    max-width: 750px;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ==================== BENEFITS SECTION ==================== */
.benefits {
    padding: 40px 0;
    background-color: var(--secondary);
}

.benefits-carousel {
    position: relative;
    overflow: hidden;
}

.benefits-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    transition: transform 0.4s ease;
}

.benefits-nav {
    display: none;
}

.benefit-card {
    text-align: center;
    padding: 10px;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-body);
    font-size: 0.9375rem;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}


.step-number-image {
    width: 64px;
}

.step-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-content p {
    color: var(--text-body);
    font-size: 0.9375rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--gray-100);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.how-it-works-cta {
    text-align: center;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    padding: 80px 0;
    background-color: var(--secondary);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.swipe {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 40px;
    transition: transform 0.4s ease;
}

.swipe-enabled {
    overflow: hidden;
    position: relative;
    visibility: visible;
}

.swipe-enabled .swipe-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.swipe-enabled .swipe-wrap > * {
    float: left;
    width: 100%;
    position: relative;
    flex: 0 0 100%;
}

.swipe-enabled .swipe-wrap::after {
    content: '';
    display: block;
    clear: both;
}

.testimonial-card {
    flex: 0 0 calc((100% - 80px) / 3);
    padding: 10px;
}

.testimonial-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
}

.testimonial-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-author {
    display: block;  
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary);
}

.carousel-dot:hover {
    background-color: var(--primary-dark);
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.pricing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.pricing-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.pricing h2 {
    color: var(--text-dark);
}

.pricing-carousel {
    position: relative;
    overflow: hidden;
}

.pricing-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    padding: 5px;
}

.pricing-nav {
    display: none;
}

.pricing-card {
    flex: 0 0 calc((100% - 60px) / 3);
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    order: 0;
}

/* Desktop order: Trimestral, Semestral, Anual */
.pricing-card[data-order="0"] { order: 0; }
.pricing-card[data-order="1"] { order: 1; }
.pricing-card[data-order="2"] { order: 2; }

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

.pricing-card.featured {
    border-color: var(--accent);
    position: relative;
    border-width: 2px;
}

.pricing-badge {
    font-size: 0.875rem;
    font-weight: 600;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.pricing-badge.orange {
    color: #f59e0b;
}

.pricing-badge.blue {
    color: var(--primary);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-name {
    color: var(--accent);
}

.pricing-label {
    font-size: 0.875rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.pricing-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    list-style-type: none;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    font-size: 0.9375rem;
    color: var(--text-body);
}

.pricing-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 80px 0;
    background-color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-content p {
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.cta-banner p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 80px 0 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: var(--white);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--gray-100);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-body);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-body);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--footer-bg);
    padding: 16px 0;
    color: var(--white);
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-subtitle svg {
        display: none;
    }

    .hero-image {
        display: none;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }

    .navbar-logo .logo-full {
        display: none;
    }

    .navbar-logo .logo-iso {
        display: block;
        height: 36px;
    }

    .navbar-cta .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    /* Benefits carousel - mobile: 1 at a time */
    .benefits-track {
        display: flex;
        gap: 20px;
    }

    .benefit-card {
        flex: 0 0 100%;
    }

    .benefits-nav {
        display: flex;
        margin-top: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    /* Testimonials carousel - mobile: 1 at a time */
    .testimonial-card {
        flex: 0 0 100%;
    }

    .testimonial-icon {
        width: 80px;
        height: 80px;
    }

    .carousel-track {
        gap: 20px;
    }

    /* Pricing carousel - mobile: 1 at a time, Semestral first */
    .pricing-card{
        border-radius: 0 !important;
        border: none !important
    }

    .pricing-carousel {
        padding: 0 12px;
    }

    .pricing-track {
        gap: 20px;
        padding: 0;
    }

    .pricing-card {
        flex: 0 0 calc(100%);
        width: calc(100%);
    }

    /* Mobile order: Semestral first, then Trimestral, then Anual */
    .pricing-card[data-order="1"] { order: 0; }
    .pricing-card[data-order="0"] { order: 1; }
    .pricing-card[data-order="2"] { order: 2; }

    .pricing-nav {
        display: flex;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h2 {
        margin-bottom: 2rem;
    }

    .benefits, .how-it-works, .testimonials, .pricing, .features, .faq {
        padding: 60px 0;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .testimonial-icon {
        width: 70px;
        height: 70px;
    }
}

/* Parallax effect for hero */
@supports (background-attachment: fixed) {
    .hero-background {
        background-attachment: fixed;
    }
}
