@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Color Palette - León Group */
    --bg-base: #0B0B0B;
    --bg-soft: #121212;
    --primary-gold: #F5C542;
    --accent-bronze: #8C6A2A;
    --text-main: #FFFFFF;
    --text-secondary: #E5E5E5;
    --text-muted: #B3B3B3;
    --border-color: #2A2A2A;
    --error-red: #EA1F30;
    --tech-blue: #3FA9F5;

    /* Spacing & Sizing */
    --section-padding: 160px 20px;
    --border-radius: 12px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-base);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Base Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--bg-base);
}

.btn-primary:hover {
    background-color: var(--accent-bronze);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 197, 66, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Glassmorphism Classes */
.glass {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 120px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(11, 11, 11, 0.95);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Open state for hamburger */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary-gold);
    font-weight: 400;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    z-index: 5;
    background-color: #000;
    /* Fondo negro sólido para que no se vean las partículas detrás */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(11, 11, 11, 0.4) 0%, rgba(11, 11, 11, 0.8) 100%);
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Opacidad equilibrada */
    filter: brightness(0.7) contrast(1.2);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content.centered .hero-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.hero-content.centered .hero-btns {
    justify-content: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary-gold);
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-bronze));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: var(--transition-slow);
}

.hero-visual:hover .hero-image {
    transform: scale(1);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(245, 197, 66, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* Trust Bar */
.trust-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.trust-text {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.logos-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.logos-track:hover {
    opacity: 1;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-item img {
    height: 35px;
    width: auto;
    filter: grayscale(1) brightness(1.5);
    transition: var(--transition-fast);
}

.logo-item:hover img {
    filter: grayscale(0) brightness(1);
    transform: translateY(-5px);
}

.logo-item span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: left;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.bg-soft {
    background-color: var(--bg-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 197, 66, 0.1);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Framework Visual */
.framework-visual {
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
}

.step-item.active {
    background: rgba(245, 197, 66, 0.05);
    border-color: rgba(245, 197, 66, 0.2);
    position: relative;
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-gold);
    background: rgba(245, 197, 66, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.pulsating-dot {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(245, 197, 66, 0.4);
    animation: pulse 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item.active .pulsating-dot {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(245, 197, 66, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 197, 66, 0);
    }
}

/* Stats Refined */
.stat-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(245, 197, 66, 0.03);
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Academy Banner */
.academy-banner {
    margin-top: 100px;
    padding: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(11, 11, 11, 0.9));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.academy-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 197, 66, 0.08) 0%, transparent 70%);
}

.academy-content {
    flex: 1;
}

.academy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section {
    padding: var(--section-padding);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s var(--transition-slow) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
.academy-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.academy-icon-box {
    width: 150px;
    height: 150px;
    background: var(--primary-gold);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(10deg);
    box-shadow: 0 20px 40px rgba(245, 197, 66, 0.3);
}

/* CTA Section */
.cta-box {
    padding: 80px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.cta-form input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .hero-text p,
    .about-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns,
    .stats {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-base);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        border-left: 1px solid var(--border-color);
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition: 0.5s ease forwards;
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
        /* Hide standard CTA on mobile if menu is open, or keep it */
    }

    /* Show CTA inside menu on mobile or keep separate */
    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .academy-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .academy-visual {
        order: -1;
    }
}

@media (max-width: 600px) {
    .cta-form {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: var(--text-dim);
    line-height: 1.6;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-card, #121212);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.testimonial-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-info {
    padding: 20px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--primary-gold);
}