/* Base Styles */
:root {
    --dark-blue: #0a1249;    /* Fondo oscuro para secciones impares */
    --white: #FFFFFF;        /* Fondo claro para secciones pares */
    --primary: #6033F5;      /* Color para detalles y títulos en fondo blanco */
    --accent: #FF6B6B;       /* Color para botones */
    --gray-light: #F5F5F5;
    --gray: #D1D1D1;
    --gray-dark: #707070;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #4d29c7;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Sección oscura (impar) */
.dark-section {
    background-color: var(--dark-blue);
    color: var(--white);
    position: relative;
}

/* Sección clara (par) */
.light-section {
    background-color: var(--white);
    color: #333; /* Texto oscuro en fondo claro */
    position: relative;
}

/* Títulos en secciones claras usan el color primario */
.light-section .section-title h2 {
    color: var(--primary);
}

/* Títulos en secciones oscuras son blancos */
.dark-section .section-title h2 {
    color: var(--white);
}

.divider {
    height: 4px;
    width: 80px;
    /* background: var(--accent); */
    margin: 20px auto;
    border-radius: 2px;
}

/* Wave dividers */
.wave-divider{
    display: none;
}
/* .wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
} */

/* Navbar */
.navbar {
    padding: 15px 0;
    background-color: var(--dark-blue);
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
}

.brand-text {
    color: var(--white);
    font-weight: 800;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    padding: 10px 15px;
    font-weight: 500;
    position: relative;
    font-size:15px;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover:after {
    width: 70%;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent);
}

/* Buttons - TODOS en color #FF6B6B */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

/* Botón principal en color accent (#FF6B6B) */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-accent:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

/* Botón outline - Borde en color accent, relleno al hover */
.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
    background-color: transparent;
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

/* Botón outline-primary (para secciones claras) */
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(96, 51, 245, 0.2);
}

/* Asegurar que todos los botones en el sitio usen el color accent o primary */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #5028e4;
    border-color: #5028e4;
}

/* Hero Section - Sección oscura (1) */
#hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: var(--dark-blue);
    color: var(--white);
}

#hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/landing/img/grid-pattern.svg');
    opacity: 0.05;
    z-index: -1;
}

.hero-text h1 {
    margin-bottom: 20px;
    line-height: 1.3;
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-img-container {
    position: relative;
    z-index: 1;
}

.hero-img-container:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(96, 51, 245, 0.3), rgba(255, 107, 107, 0.3));
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

.hero-img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Materias - Sección clara (2) */
#materias {
    background-color: var(--white);
    color: #333;
}

#materias .section-title h2 {
    color: var(--primary);
}

/* Por Qué Elegirnos - Sección oscura (3) */
#por-que {
    background-color: var(--dark-blue);
    color: var(--white);
}

#por-que .section-title h2 {
    color: var(--white);
}

/* Cómo Funciona - Sección clara (4) */
#como-funciona {
    background-color: var(--white);
    color: #333;
}

#como-funciona .section-title h2 {
    color: var(--primary);
}

/* FAQ - Sección oscura (5) */
#faq {
    background-color: var(--dark-blue);
    color: var(--white);
}

#faq .section-title h2 {
    color: var(--white);
}

/* Contacto - Sección clara (6) */
#contacto {
    background-color: var(--white);
    color: #333;
}

#contacto .section-title h2 {
    color: var(--primary);
}

/* Footer - Sección oscura (7) */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2:before,
.section-title h2:after {
    content: '';
    position: absolute;
    height: 10px;
    border-radius: 5px;
    background: var(--accent);
    opacity: 0.3;
}

.section-title h2:before {
    width: 30px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-100%) translateX(-10px);
}

.section-title h2:after {
    width: 60px;
    bottom: -5px;
    left: 50%;
    transform: translateX(10px);
}

/* Course Cards */
.course-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
    z-index: 1;
}

.course-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(96, 51, 245, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover:before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-card .card-body {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.card-ribbon {
    position: absolute;
    top: 0;
    right: 30px;
    width: 40px;
    height: 60px;
    background-color: var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
    z-index: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #9068FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(96, 51, 245, 0.2);
}

.card-icon i {
    font-size: 28px;
    color: var(--white);
}

.course-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.course-card h3:after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background: var(--accent);
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.course-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

/* Feature Cards (sección oscura) */
.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: translateY(-5px);
    transition: var(--transition);
}

.feature-card:hover:before {
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, #FF8E8E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.icon-circle:before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icon-circle i {
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--white);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Steps (sección clara) */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.steps-container:before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 0;
    opacity: 0.3;
}

.step-card {
    flex: 1;
    min-width: 200px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px 30px;
    position: relative;
    border: 1px solid #eee;
    transition: var(--transition);
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--accent);  /* Usando el color de botones #FF6B6B */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    z-index: 2;
}

.step-card h3 {
    color: var(--primary);  /* Color para títulos en fondo blanco #6033F5 */
    margin-bottom: 15px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--gray-dark);
}

/* Accordion (sección oscura) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: transparent;
    border: none;
    margin-bottom: 15px;
}

.accordion-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 10px !important;
    padding: 20px 30px;
    font-weight: 500;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff6b6b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-collapse {
    border: 0;
}

.accordion-body {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 10px 10px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

/* Contact Form (sección clara) */
.contact-form .form-control {
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    transition: var(--transition);
    background-color: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(96, 51, 245, 0.25);
}

.contact-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
}

.contact-method {
    margin-bottom: 20px;
}

.contact-button {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
    width: 100%;
}

.contact-button i {
    font-size: 24px;
    margin-right: 15px;
}

.email-button {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(96, 51, 245, 0.2);
}

.email-button:hover {
    background-color: #4d29c7;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(96, 51, 245, 0.3);
}

.whatsapp-button {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-button:hover {
    background-color: #20BD5C;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);  /* Color botones #FF6B6B */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    #hero {
        padding: 140px 0 80px;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .steps-container:before {
        display: none;
    }
    
    .contact-info {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .course-card, .feature-card {
        margin-bottom: 20px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* Animation for AOS (Animate on Scroll) */
[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

/* Particle animations */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Cursor blink animation */
.cursor-blink {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    #btn-login{
        margin-bottom: 10px;
        width: 100%;
    }

    .d-flex{
        flex-direction: column;
    }
}