:root {
    --bg-dark: #ffffff;
    --bg-dark-900: #f8fafc;
    --bg-card: #ffffff;
    --primary-color: #0f2c4a;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --primary-gradient: linear-gradient(135deg, #0f2c4a 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --accent-purple: #3b82f6;
    --accent-cyan: #1d4ed8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --neon-border: #e2e8f0;
    --neon-border-hover: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
}

/* Base Reset & Typography */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
}

/* Evita que textos largos sin espacios (links, urls) desborden el ancho y generen scroll horizontal */
h1, h2, h3, h4, h5, h6, p, a, span {
    overflow-wrap: break-word;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-900);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 44, 74, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Glowing Effects & Background Elements */
.ambient-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Modern Header / Floating Glass Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--neon-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.main-header .logo a {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-header .logo a em {
    font-style: normal;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.main-header .logo a span {
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(15, 44, 74, 0.06);
    color: var(--accent-cyan);
    border: 1px solid rgba(15, 44, 74, 0.15);
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.main-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin-left: 25px;
}

.main-menu li a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.main-menu li a:hover,
.main-menu li.active a {
    color: var(--text-main);
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.main-menu li a:hover::after,
.main-menu li.active a::after {
    width: 100%;
}

.highlight-nav-btn {
    background: var(--primary-gradient);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 30px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.highlight-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.highlight-nav-btn::after {
    display: none !important;
}

/* Mobile Menu Toggle */
.menu-link {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    line-height: 40px;
    flex-shrink: 0;
    margin-left: auto;
}

.main-banner {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.75) 50%, rgba(59, 130, 246, 0.08) 100%);
    z-index: 2;
}

.header-text {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
}

.caption {
    max-width: 900px;
    margin: 0 auto;
}

.caption .h6-subtitle {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.caption h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
    font-weight: 900;
}

.caption h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0.9;
}

.caption p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn-glow {
    display: inline-block;
    background: var(--primary-gradient);
    color: white !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(1);
    animation: pulse-glow 2s infinite ease-in-out;
}

.cta-btn-glow:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

/* Features Section */
.features {
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

.features-post {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--neon-border);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.features-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.features-post:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(15, 44, 74, 0.08);
}

.features-post:hover::before {
    opacity: 1;
}

.features-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.features-content a {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.features-content a:hover {
    color: var(--text-main);
}

.content-hide {
    display: none;
    margin-top: 15px;
}

/* Custom Owl Carousel Dots */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.owl-carousel .owl-dot {
    background: none;
    border: none;
    padding: 0;
    margin: 0 6px;
    outline: none;
    cursor: pointer;
}

.owl-carousel .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.owl-carousel .owl-dot.active span {
    background: var(--accent-purple);
    width: 24px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent-purple);
}

.owl-carousel .owl-dot:hover span {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.owl-carousel .owl-nav {
    display: none !important;
}

/* Contact Form Response */
#contact-response {
    border-radius: 16px;
    padding: 15px 20px;
    font-size: 0.95rem;
    backdrop-filter: var(--glass-blur);
    border: 1px solid transparent;
    margin-top: 20px;
    display: none;
}

#contact-response.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

#contact-response.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

/* Section Layout Utilities */
.section {
    padding: 100px 0;
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-heading h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-weight: 800;
    overflow-wrap: break-word;
    word-break: break-word;
}

.section-heading h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Why Us Section / Tabs */
.why-us {
    background-color: var(--bg-dark-900);
    border-top: 1px solid var(--neon-border);
    border-bottom: 1px solid var(--neon-border);
}

#tabs .nav-tabs {
    border-bottom: none;
    background: rgba(15, 44, 74, 0.05);
    padding: 8px;
    border-radius: 40px;
    display: inline-flex;
    border: 1px solid var(--neon-border);
}

#tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

#tabs .nav-link.active {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(15, 44, 74, 0.2);
}

.tab-pane {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--neon-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.5s ease;
}

.tab-pane img {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.tab-pane img:hover {
    transform: scale(1.02);
}

.tab-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tab-pane p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.tab-pane a {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
}

.tab-pane a:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

/* Modules Section (Courses Carousel) */
.courses {
    position: relative;
}

.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    display: flex;
}

.owl-carousel .item {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--neon-border);
    border-radius: 24px;
    overflow: hidden;
    margin: 15px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.owl-carousel .item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(15, 44, 74, 0.08);
}

.owl-carousel .item img {
    border-bottom: 1px solid var(--neon-border);
    height: 200px;
    object-fit: cover;
}

.down-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.down-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.down-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.text-button-pay {
    margin-top: auto;
}

.text-button-pay a {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.text-button-pay a:hover {
    color: var(--accent-purple);
}

/* Pricing Section */
.video {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.08) 0%, var(--bg-dark-900) 70%);
}

.pricing-header h1 {
    font-size: 3.2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.plan-box {
    background: #ffffff !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--neon-border);
    border-radius: 28px !important;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04) !important;
    height: 100%;
}

.plan-box:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 45px rgba(15, 44, 74, 0.08) !important;
}

/* Individual Card Accents */
.col-lg-4:nth-child(1) .plan-box {
    border-top: 5px solid #10b981;
}
.col-lg-4:nth-child(2) .plan-box {
    border-top: 5px solid #f5a425;
    background: #ffffff !important;
    box-shadow: 0 15px 40px rgba(15, 44, 74, 0.1) !important;
}
.col-lg-4:nth-child(3) .plan-box {
    border-top: 5px solid var(--primary-color);
}

.plan-box h4 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.col-lg-4:nth-child(1) .plan-box h4 { color: #10b981; }
.col-lg-4:nth-child(2) .plan-box h4 { color: #f5a425; }
.col-lg-4:nth-child(3) .plan-box h4 { color: #6366f1; }

.plan-box p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.plan-box p strong {
    color: var(--text-main);
}

.plan-box .btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    width: 100%;
    margin-top: 25px !important;
    border: none;
    transition: all 0.3s ease;
}

.plan-box .btn-warning {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.plan-box .btn-warning:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.plan-box .btn-primary {
    background: rgba(15, 44, 74, 0.05);
    color: var(--primary-color) !important;
    border: 1px solid rgba(15, 44, 74, 0.2);
}

.plan-box .btn-primary:hover {
    background: var(--primary-color);
    color: white !important;
}

.plan-box .btn-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-box .btn-success:hover {
    background: #10b981;
    color: white !important;
}

.border-first-button a {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent-cyan);
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-cyan);
    padding-bottom: 3px;
}

.border-first-button a:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Contact Section */
.contact {
    background: var(--bg-dark-900);
    border-top: 1px solid rgba(255,255,255,0.03);
}

form#contact {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--neon-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

form#contact input,
form#contact textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--text-main);
    padding: 15px 20px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

form#contact input:focus,
form#contact textarea:focus {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
    outline: none;
}

form#contact button {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    padding: 14px 35px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

form#contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

#map {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--neon-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 50px 0;
    text-align: center;
}

footer p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

footer p i {
    color: var(--accent-purple);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 10px 35px rgba(168, 85, 247, 0.7); }
}

/* Responsive */
@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
    /* El header queda fijo y solapa el contenido del hero: se agrega espacio superior */
    .main-banner .header-text {
        padding-top: 80px;
    }
    .menu-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-left: auto;
        float: none;
    }
    .main-nav {
        display: none;
        width: 100%;
        flex-basis: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: var(--glass-blur);
        position: absolute;
        top: 100%;
        left: 0;
        border-bottom: 1px solid var(--neon-border);
        padding: 20px;
    }
    .main-nav.active {
        display: block;
    }
    .main-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-menu li {
        margin: 10px 0;
        width: 100%;
    }
    .main-menu li a {
        display: block;
        width: 100%;
    }
    .caption h1 {
        font-size: 2.5rem;
    }
    .caption h2 {
        font-size: 1.4rem;
    }
    .features {
        margin-top: 40px;
    }
    .features .col-12 {
        margin-bottom: 20px;
    }
    .tab-pane {
        padding: 25px;
    }
    .tab-pane img {
        margin-bottom: 25px;
    }
}

.text-gradient-white {
    background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-cyan {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Mobile specific adjustments to avoid horizontal page stretching */
@media (max-width: 480px) {
    .caption h1 {
        font-size: 1.8rem !important;
    }
    .caption h2 {
        font-size: 1.1rem !important;
    }
    .cta-btn-glow {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
    }
    .main-header .logo a {
        font-size: 1.25rem;
    }
    .main-header .logo a span {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}
