/* common css */
:root{
    --primary-color:#01184b;
    --secondary-color:#ff7b00;
    --bg-light:#f8f8f8;
    --text-dark:#222;
    --text-light:#7c7878;
    --gradient:linear-gradient(349deg,#01184b,#b1a5f8);
}
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: 243px;
}
body{
    color: var(--text-dark);
    overflow-x: hidden;
}
body::-webkit-scrollbar{widows:10px;}
body::-webkit-scrollbar-thumb{
    background: var(--primary-color);
    border-radius: 10px;
}
.commonBtn, 
.commonBtp, 
.btn-inscribirme,
.commonBtnI,
.commonBtnR{
    padding: 15px 30px;
    font-size: 16px;
    background: var(--gradient);
    border-radius: 23px;
    color: white;
    letter-spacing: 1px;
    font-weight: 600;
    filter: drop-shadow(2px 5px 8px #b1a5f8);
    border: none;
    transition: 0.4s ease-in-out;
    text-decoration: none;
    width: auto;
}
.commonBtnR:hover,
.commonBtnI:hover,
.commonBtn:hover,
.commonBtp:hover,
.btn-inscribirme:hover{
    
    box-shadow: 0 30px 40px -5px rgba(0, 0, 0, 0.3);
}
.logo{
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.logo h1{
    color:#01184b;
}
.logo img{
    width: 60%;
    height: 60%;
}
/*header*/
header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
#mainHeader.fixed{
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.9);
    width: 100%;
    z-index: 9999;
    padding: 10px 100px;
}
#mainHeader{transition: all 0.3s ease;}
nav ul{
    display: flex;
    gap:20px;
    list-style: none;
}
nav ul li a:not(.commonBtnR):not(.commonBtnI):not(.commonBtp){
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px 12px;
}
/* línea oculta inicialmente */
nav ul li a:not(.commonBtnR):not(.commonBtnI):not(.commonBtp)::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
/*cuando pase el cursor*/
nav ul li a:not(.commonBtnR):not(.commonBtnI):not(.commonBtp):hover::after{
    width: 100%;
}
/*cambio de color*/
nav ul li a:not(.commonBtnR):not(.commonBtnI):not(.commonBtp):hover{
    color:var(--primary-color);
}
.menu-toggle{
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span{
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 4px 0;
}
/*heading*/
.heading{
    font-size:42px;
    font-weight:900;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}
.hero-text p{font-size: 20px;}
.hero-text{max-width: 600px;}
.heroHeading{font-size:4rem;}
.heading span{color:var(--secondary-color);}
.hero-image{
    max-width: 400px;
    position: relative;
}
.userImage{
    z-index:99;
    position:relative;
    width: 100%;
    display: block;
}
@keyframes slideDown {
    from{left:0px;}
    to{left:20px;}
}
@keyframes slideRight {
    from{right:-20px;}
    to{right: 0px;}
}
@keyframes breathe {
    0%, 100%{
        transform: scale(1);
        opacity: 0.9;
    }
    50%{
        transform: scale(1.1);
        opacity: 0.9;
    }   
}
/* Generico Modal */
/* ============================================================
   MODALES UNIFICADOS Y RESPONSIVE
   ============================================================ */

/* 1. Base del Overlay (Fondo oscuro) */
.modal-overlayT, 
.modal-overlayCP, 
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    padding: 15px; /* Espacio para que no toque los bordes en móvil */
    z-index: 10000;
    backdrop-filter: blur(6px);
}

/* 2. Clase Activa (La que activa el JS) */
.modal-overlayT.active, 
.modal-overlayCP.active, 
.modal-overlay.active {
    display: flex !important;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 3. Contenedor del Modal */
.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh; /* Ocupa máximo el 90% del alto de pantalla */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* 4. Cuerpo con Scroll interno (Vital para Responsive) */
.modal-body {
    padding: 20px;
    overflow-y: auto; /* Permite scroll si hay muchas clases */
    flex: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f0f0f0; /* Un fondo sutil circular */
    border: none;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e0e0e0;
    color: var(--secondary-color);
    transform: rotate(90deg); /* Efecto visual divertido al pasar el mouse */
}
/* 5. ACORDEÓN (Lógica Limpia) */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    border: none;
    background: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f0f1f2;
}

.accordion-content {
    display: none; /* JS controla esto */
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.accordion-content.active {
    display: block !important;
}
.accordion-content.open {
  display: block;
}

/* 6. Ajustes de Lecciones */
.lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #fafafa;
    font-size: 14px;
}

.lesson:last-child { border: none; }
.lesson.locked { color: #999; }

/* 7. Footer del Modal */
.modal-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.modal-header {
    position: relative; /* Esto permite que la 'X' se ubique respecto al header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
}

/* ============================================================
   AJUSTES RESPONSIVE ADICIONALES
   ============================================================ */

@media (max-width: 480px) {
    .modal-container {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-header h2 { font-size: 1.2rem; }
    
    .commonBtn, .commonBtp, .btn-inscribirme {
        padding: 12px 20px;
        font-size: 14px;
    }

    .heroHeading { font-size: 1.8rem; }
}

/* LESSONS */
.lesson{
  padding:8px 0;
  font-size:14px;
}

.lesson.locked{
  color:#999;
}

.lesson.free{
  color:#16a34a;
  font-weight:600;
}

/* FOOTER */
.modal-footer{
  padding:20px;
  border-top:1px solid #eee;
  text-align:center;
}

/*.btn-inscribirme{
  padding:14px 28px;
  border:none;
  border-radius:14px;
  font-weight:600;
  cursor:pointer;
  width:100%;
}
*/
/* RESPONSIVE */
@media (max-width:500px){
  .modal-container{
    border-radius:16px;
  }
}
/* course category */
.courseSection{
    max-width: 1200px;
    margin: auto;
}
/*.courses{
    display: flex;
    justify-content: space-between;
    margin: 40px 0px;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}*/
.courseicon{
    background: linear-gradient(45deg, #ed88aa,#e76e94);
    padding: 25px;
    border-radius: 25px;
    text-align: left;
    color: white;
    filter: drop-shadow(5px 4px 10px #ed88aa);
    transition: 0.4s ease-in-out;
    max-width: 100%;
    margin: 20px;
}
.courseicon:hover{transform:scale(1.05);}
.courseicon i{
    font-size: 3.2rem;
    display: block;
    margin-bottom: 30px;
    text-align: center;
}
.courseicon span{
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
}
.courseicon hr{
    margin-top: 10px;
    border: none;
    height: 1px;
    background: #ffffff75;
}
.courseicon:hover{
    transform: translateY(-8px) scale(1.03);
    transition: 0.3s;
}
.courseicon:nth-child(1){
    background: linear-gradient(45deg, #22c55e, #16a34a);
    filter: drop-shadow(5px 4px 10px #22c55e);
}
.courseicon:nth-child(2){
    background: linear-gradient(45deg, #a855f7, #7e22ce);
	filter: drop-shadow(5px 4px 10px #a855f7);
}
.courseicon:nth-child(3){
    background: linear-gradient(45deg, #2563eb, #1e40af);
    filter: drop-shadow(5px 4px 10px #2563eb);
}
.courseicon:nth-child(4){
    background: linear-gradient(45deg, #eab308, #ca8a04);
    filter: drop-shadow(5px 4px 10px #eab308);
}
.courseicon:nth-child(5){
    background: linear-gradient(45deg, #7c3aed, #5b21b6);
    filter: drop-shadow(5px 4px 10px #7c3aed);
}
.courseicon:nth-child(6){
    background: linear-gradient(45deg, #f97316, #ea580c);
    filter: drop-shadow(5px 4px 10px #f97316);
}
.courseicon:nth-child(7){
    background: linear-gradient(45deg, #f97316, #ea580c);
    filter: drop-shadow(5px 4px 10px #f97316);
}
.browseAll{margin-top: 10px;}

/*about section*/
.aboutSection{
    display: flex;
    justify-content: space-around;
    gap: 100px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 100px auto;
}
.image-box{
    flex: 1 1 500px;
    position: relative;
}
.image-box img{
    width: 100%;
    border-radius: 10px;
    display: block;
}
.purple-corner{
    width: 100px;
    height: 100px;
    background: var(--gradient);
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: -1;
    border-radius: 10px;
}
.purple-corner2{
    width: 100px;
    height: 100px;
    background: var(--gradient);
    position: absolute;
    top: -20px;
    left: -20px;
    z-index: -1;
    border-radius: 10px;
}
.purple-corner3{
    width: 100px;
    height: 100px;
    background: var(--gradient);
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: -1;
    border-radius: 10px;
}
.purple-corner4{
    width: 100px;
    height: 100px;
    background: var(--gradient);
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: -1;
    border-radius: 10px;
}
.text-box{flex: 1 1 500px;}
small{
    color:var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
}
.text-box p{
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-break: 1.6;
}
/*course card section*/
.courses-section{
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.desc{
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0 30px;
}
.courses{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1100px;
    margin: auto;
}
.course-card{
    background: white;
    border-radius: 10px;
    margin-top:20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 350px;
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: 0.4s ease-in-out;
    height: 100%;
}
.course-card:hover{transform: scale(1.05);}
.course-card img{width: 100%; border: 10px;}
.lesson{
    font-size: 12px;
    color: var(--secondary-color);
    margin: 10px 0 5px;
}
.course-card h2{
    font-size: 16px;
    margin: 5px 0 10px;
}
.course-card h3{
    font-size: 12px;
    margin: 5px 0 10px;
}
.price{margin-top: 5px 0; }
.price .new{
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 5px;
}
.price .old{
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 15px;
}
.rating{
    font-size: 14px;
    color: #fbbf24;
    margin: 5px 0;
}
.bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}
#backToTop{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary-color);
    color: white;
    border: 3px solid var(--primary-color);
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
#backToTop:hover{
    background: white;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
}
/*cta section*/
.cta-section{
    background: url('../images/pattern.png'),var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.cta-text{flex: 1 1 300px;}
.cta-text h2{
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}
.cta-text p{
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
}
.cta-button{
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.cta-button:hover{
    background: var(--secondary-color);
    color: white;
}
.lesson{
    font-size: 15px;
    color: var(--secondary-color);
    margin: 10px 0 5px;
}
/*Boton de Whatsapp*/
.btn-wsp{
    position:fixed;
    width: 55px;
    height:55px;
    line-height: 55px;
    bottom:30px;
    right:30px;
    background:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:35px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.3);
    z-index:100;
    transition: all 300ms ease;
}
.btn-wsp:hover{
    background: #fff/*#20ba5a*/;
    color: #20ba5a;
}
footer{
    background: var(--primary-color);
    /*padding: 60px 20px 30px;*/
    text-align: center;
    color: var(--primary-color);
}
.newsletter{
    max-width: 800px;
    margin: 0 auto 40px;
}
.newsletter h2{
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}
.newsletter p{
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}
.form-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.form-container input{
    padding: 15px 20px;
    border-radius: 40px;
    border: none;
    outline: none;
    width: 500px;
    font-size: 16px;
}
.footer-bottom{
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: white;
}
.footer-logo i{
    color: var(--secondary-color);
}
.footer-links{
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}
.footer-links a{
    color: white;
    text-decoration: none;
    font-size: 14px;
}
.footer-links a:hover{
    color: var(--secondary-color);
}
.social-icons{
    display: flex;
    gap: 15px;
}
.social-icons a{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    background: white;
    font-size: 16px;
    transition: background 0.3s;
}
.copyright{
    margin-top: 20px;
    font-size: 13px;
    color: #bbb;
    padding-bottom: 20px;
}
/* responsive screen */
@media(max-width:768px){
    html,body{
        overflow-x: hidden;
    }
    #mainHeader.fixed{padding: 10px 22px;}
    nav{position: relative;}
    nav ul{
        display: none;
        flex-direction: column;
        gap: 35px;
        background: white;
        position: absolute;
        top: 60px;
        width: 200px;
        right: 0;
        background: #fff;
        padding: 16px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        border-radius: 8px;
    }
    nav ul li{padding:0;}
    nav ul.active{display:flex;z-index: 9999;}
    
    .menu-toggle{display: flex;flex-direction: column;cursor:pointer;gap:0.1px;}
    .hero{flex-direction: column-reverse;text-align: center;}
    .heroHeading{font-size: 2rem;}
    .hero-image{overflow: hidden;}
    .courseSection{padding: 20px;}
    .stats{flex-direction: column;}
    .circle-container{display: none;}
    .course-card:hover{
        transform: none;
    }
    .course-card{
        width: 100%;
        max-width: 350px;
    }
    .courseicon{
        width: 100%;
        max-width: 320px;
        padding: 30px 20px;
        margin: 20px;
        text-align: center;
    }
    .courseSection{
        padding: 0 15px;
    }
    .courseicon i{
        text-align: center;
        font-size: 2.5rem;
    }

    .courseicon span{
        font-size: 1.1rem;
        text-align: center;
    }
    .courses{
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        align-items: center;
    }
    .course{width: 100%;}
    .aboutSection{padding: 20px;}
    .cta-section{flex-direction: column;align-items: flex-start;padding: 30px 20px;}
    .cta-text{flex: auto;}
    .priceSection .container{flex-direction: column;}
    .pricing-card{
    width: 100%;
    max-width: 360px;
  }
    .testimonialSection{padding: 20px;}
    .testimonial{flex: 0 0 calc(100% - 20px);}
    .quote-icon1{display: none;}
    .instructor-content{flex-direction: column; text-align: center;}
    .instructor-image img{width: 100%;max-width: 300px;}
    .footer-bottom{flex-direction: column; text-align: center;gap: 20px;}
    .form-container{padding: 20px; flex: 1 1 343px;flex-direction: column;align-items: center;}
    .form-container input,
    .form-container button{
        width: 100%;max-width: 350px;
    }
    .text-box{
    max-width: 100%;
    text-align: center;
  }
  .text-box small{
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
}