/* 
 * Majestic Lime International - Fintech Futurist Theme (Responsive Version)
 * Author: Antigravity
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #84cc16;
    --primary-hover: #65a30d;
    --primary-glow: rgba(132, 204, 22, 0.4);
    --secondary-color: #10b981;
    --dark-accent: #0f172a;

    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(15, 23, 42, 0.8);

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;

    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 16px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-accent);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-light {
    background: rgba(255, 255, 255, 0.8);
}

.section-gradient-bg {
    background: linear-gradient(to bottom, #fff, #f8fafc);
}

.section-gradient-bg-alt {
    background: linear-gradient(to top, #fff, #f8fafc);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #000;
}

.section-subtitle {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-actions {
    text-align: center;
    margin-top: 40px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--dark-accent) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uppercase {
    text-transform: uppercase;
}

/* Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Background Canvas */
#ai-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-green-gradient {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.btn-green-gradient:hover {
    transform: scale(1.05);
}

.btn-pill {
    border-radius: 50px;
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo-container {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 20;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 80px auto 0;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-text {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-text-bottom {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(15, 23, 42, 0.8);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video Background Section */
.video-sections-wrapper {
    position: relative;
}

.section-pain-points,
.section-personas {
    position: relative;
    background: transparent !important;
    color: #fff;
    overflow: hidden;
}

/* Desktop: Shared video background */
.video-bg-container-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: #0f172a;
}

/* Desktop: Hide individual section videos */
.section-pain-points .video-bg-container,
.section-personas .video-bg-container {
    display: none;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.8) 0%,
            rgba(15, 23, 42, 0.3) 50%,
            rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

/* Mobile: Hide desktop wrapper, show individual videos */
@media (max-width: 768px) {
    .video-bg-container-desktop {
        display: none !important;
    }

    .section-pain-points .video-bg-container,
    .section-personas .video-bg-container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        background: #0f172a;
    }

    .video-bg-mobile {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
        filter: brightness(0.6);
    }

    .section-pain-points .video-overlay,
    .section-personas .video-overlay {
        background: linear-gradient(to bottom,
                rgba(15, 23, 42, 0.6) 0%,
                rgba(15, 23, 42, 0.3) 50%,
                rgba(15, 23, 42, 0.6) 100%);
    }
}

.text-gradient-light {
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.glass-card h3 {
    color: var(--primary-color) !important;
}

.glass-card p {
    color: #cbd5e1 !important;
}

/* Grids */
.pain-points-grid,
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pain-card,
.persona-card {
    background: #f1f2f3;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

.section-pain-points .pain-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.section-pain-points .pain-card h3 {
    color: var(--primary-color);
}

.section-pain-points .pain-card p {
    color: #cbd5e1;
}

.section-pain-points .pain-points-footer p {
    color: #e2e8f0;
}

.pain-card:hover,
.persona-card:hover {
    transform: translateY(-5px);
}

.pain-points-footer {
    text-align: center;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.pain-points-footer p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.persona-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 25px;
}

/* Video Containers */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid #fff;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-center-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Layout Utilities */
.section-content-narrow {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.image-center-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.responsive-banner {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-banner {
    text-align: center;
}

.cta-text {
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.4;
    text-transform: uppercase;
}

.row-buttons-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Vision Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.vision-card,
.mission-card {
    padding: 30px;
    border-radius: 20px;
}

.vision-card h3 {
    color: var(--primary-color);
}

.mission-card h3 {
    color: var(--secondary-color);
}

/* Programs Grid */
.programs-inner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.program-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

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

.accordion-item {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 30px;
}

/* Contact Form */
.section-contact {
    background: linear-gradient(to bottom, transparent, rgba(236, 252, 203, 0.3));
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
}

/* Footer */
footer {
    background: var(--dark-accent);
    color: white;
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show-modal {
    display: flex;
}

.video-wrapper {
    aspect-ratio: 16/9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-whatsapp i {
    font-size: 35px;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Alinea el contenido hacia arriba */
        position: relative;
        overflow: hidden;
        background: #000;
        padding: 0 0 50px;
        /* Quitamos el padding superior excesivo */
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        /* Imagen pegada al borde superior */
        justify-content: center;
    }

    .hero-bg img {
        width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: top center !important;
        display: block !important;
        opacity: 0.9;
        /* Imagen casi totalmente visible */
    }

    .hero-logo-container {
        top: 15px;
        left: 20px;
        z-index: 20;
    }

    .hero-logo {
        height: 60px;
    }

    .hero-content {
        position: relative;
        z-index: 10;
        margin-top: 100px;
        /* Espacio para que el logo no tape el texto */
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
        color: #ffffff;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }

    .hero-text {
        display: block !important;
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
        padding: 0 20px;
    }

    .hero-buttons {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-text-bottom {
        display: block !important;
        font-size: 1.05rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        background: rgba(15, 23, 42, 0.7);
        /* Ligeramente más transparente */
        padding: 25px;
        border-radius: 16px;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0 20px;
        text-align: left;
    }

    .btn {
        width: 100%;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .pain-points-grid,
    .personas-grid,
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

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

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

    .hero-logo {
        height: 60px;
    }

    .hero-text-bottom {
        padding: 15px;
        font-size: 1rem;
    }
}

/* New Capitalization Section Styles */
.section-light-alt {
    background: linear-gradient(135deg, rgba(236, 252, 203, 0.4) 0%, rgba(167, 243, 208, 0.4) 100%);
    padding: 80px 0;
}

.highlight-card {
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.btn-box-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}

@media (max-width: 768px) {
    .highlight-card {
        padding: 40px 20px;
    }
}