
/* La plantilla pinta un degradado azul detrás del logo (.navbar-brand en
   style.css); aquí se anula para que el logo quede sin fondo */
.navbar-brand {
  background: none !important;
  filter: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ftco-navbar-light .navbar-brand {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
}

.ftco-navbar-light .navbar-toggler {
    color: #011d4f !important;
}

/* ===== CINTILLO DE PROMOCIÓN (BAJO EL MENÚ) ===== */
.cintillo-promo {
    /* Anclado justo debajo del nav en todos los tamaños:
       sigue la altura del menú, abierto o cerrado */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #F0B429;
    color: #fff;
    text-align: center;
    padding: 7px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
}

/* Móvil: letra más pequeña para que el mensaje quepa completo */
@media (max-width: 575.98px) {
    .cintillo-promo {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
        padding: 6px 10px;
    }
}

/* Menú móvil/tablet: fondo blanco */
@media (max-width: 991.98px) {
    .ftco-navbar-light {
        background: #fff !important;
        position: relative;
        top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
        color: #011d4f;
    }

    .ftco-navbar-light .navbar-nav > .nav-item.active > a {
        color: #e30613 !important;
    }

    .ftco-navbar-light .navbar-nav > .nav-item.nav-cta-inscribete {
        margin-top: 12px;
    }
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:focus {
    color: #e30613 !important;
}

/* El botón ¡INSCRÍBETE YA! mantiene el texto blanco sobre su fondo rojo,
   tanto en reposo como al pasar el mouse */
.ftco-navbar-light .navbar-nav > .nav-item.nav-cta-inscribete > .nav-link,
.ftco-navbar-light .navbar-nav > .nav-item.nav-cta-inscribete > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item.nav-cta-inscribete > .nav-link:focus,
.ftco-navbar-light.scrolled .nav-item.nav-cta-inscribete .nav-link,
.ftco-navbar-light.scrolled .nav-item.nav-cta-inscribete .nav-link:hover,
.ftco-navbar-light.scrolled .nav-item.nav-cta-inscribete .nav-link:focus {
    color: #ffffff !important;
}

/* ===== NAVBAR SIEMPRE FIJO Y VISIBLE ===== */
/* La plantilla esconde el navbar entre 150px y 350px de scroll y solo lo
   devuelve pegado arriba después de eso. Aquí se mantiene fijo arriba y
   visible en todo momento, en escritorio y móvil */
.ftco-navbar-light,
.ftco-navbar-light.scrolled,
.ftco-navbar-light.scrolled.awake,
.ftco-navbar-light.scrolled.sleep {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0 !important;
    transition: none !important;
}

/* Menú escritorio: fondo blanco desde el inicio, antes de hacer scroll */
@media (min-width: 992px) {
    .ftco-navbar-light,
    .ftco-navbar-light.scrolled,
    .ftco-navbar-light.scrolled.awake,
    .ftco-navbar-light.scrolled.sleep {
        background: #ffffff !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
        /* La plantilla quita el padding con .scrolled (style.css) y el navbar
           "salta" al hacer scroll; se fija el mismo padding en todos los estados */
        padding: 0.5rem 1rem !important;
    }

    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link,
    .ftco-navbar-light.scrolled .nav-link {
        color: #011d4f !important;
    }

    .ftco-navbar-light .navbar-nav > .nav-item.active > a,
    .ftco-navbar-light.scrolled .nav-item.active > a {
        color: #e30613 !important;
    }

    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:focus {
        color: #e30613 !important;
    }

    /* Separación del botón ¡INSCRÍBETE YA! del resto de opciones */
    .ftco-navbar-light .navbar-nav > .nav-item.nav-cta-inscribete {
        margin-left: 22px;
    }
}


/* Efecto hover para las tarjetas */
.services-section .services {
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.services-section .services:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Icono */
.services-section .services .icon {
    transition: all 0.3s ease;
}

.services-section .services:hover .icon {
    transform: scale(1.08);
}

/* Título */
.services-section .services h3 {
    transition: color 0.3s ease;
}

.services-section .services:hover h3 {
    color: #007bff;
}


.hero-title {
    line-height: 1.25;
    margin: 0;
}

/* Texto 1 */
.title-blue {
    position: relative;
    display: inline-block;
    color: #003b7a;
    font-size: 2.4rem;
    font-weight: 700;
    padding: 8px 25px;
    margin-right: -3px;
    z-index: 2;
}

/* Texto 2 */
.title-red {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 900;
    padding: 10px 32px;
    z-index: 1;
}

/* Fondo azul */
.title-blue::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: #c9edff;

    transform: rotate(-2deg) skewX(-4deg);
}

/* Fondo rojo */
.title-red::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: #e30613;

    transform: rotate(-2deg) skewX(-4deg);
}

/* Título del hero más pequeño en móvil para que quepa completo */
@media (max-width: 767.98px) {
    .title-blue {
        font-size: 1.5rem;
        padding: 6px 14px;
    }

    .title-red {
        font-size: 2rem;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .title-blue {
        font-size: 1.25rem;
        padding: 5px 10px;
    }

    .title-red {
        font-size: 1.65rem;
        padding: 6px 14px;
    }
}

.hero-description {
    display: block;

    /* Que no llegue hasta el formulario */
    width: 100%;
    max-width: 650px;

    padding: 14px 22px;

    margin: 18px 0 16px;

    color: #ffffff;

    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;

    /* Azul Vexton */
    background: rgba(0, 43, 92, 0.82);

    /* Detalle rojo */
    border-left: 5px solid #e30613;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);
}

#section-counter .block-18 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#section-counter .icon {
    margin-bottom: 12px;
}

#section-counter .icon span {
    font-size: 48px;
    color: #ffffff;
}

#section-counter .text strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 991px) {
    #section-counter .text strong {
        font-size: 18px;
        white-space: normal;
    }
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
    }

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

.btn-pulsing {
    animation: btnPulse 1.8s infinite;
    font-weight: 800 !important;
    border: 2px solid #fff !important;
    /* Tamaño aumentado y mayor espacio interno */
    font-size: 1.25rem !important;
    padding: 14px 28px !important;
}

.badge-native {
    background-color: #ffc107;
    color: #000;
    font-weight: 800;
    /* Badge más grande */
    padding: 8px 18px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 1px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.ftco-about .heading-section h2 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}

.ftco-about .heading-section p {
    font-size: 17px;
    line-height: 1.8;
}

.ftco-about .heading-section .lead {
    font-size: 18px;
    line-height: 1.75;
}

.ftco-about .subheading {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.ftco-about .about-wrap {
    min-height: 500px;
}

/* La plantilla no define background-size en el panel grande (.img) y la
   imagen se mostraba a tamaño nativo, ampliada por el navegador en pantallas
   de alta densidad: se veía borrosa. Aquí se escala igual que .img-2 */
.ftco-about .img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
    #section-counter .col-md-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* TABLET */
@media (max-width: 991.98px) {
    #section-counter .col-md-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* MÓVIL */
@media (max-width: 767.98px) {
    #section-counter .col-md-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
    #section-counter .col-md-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #section-counter .block-18 {
        width: 100%;
    }

    #section-counter .text strong {
        font-size: 14px;
    }
}

/* ===== PÁGINA DE CURSOS ===== */
.project-wrap.curso-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-wrap.curso-card .text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-wrap.curso-card .text .btn {
    margin-top: auto;
}

.project-wrap.curso-card .curso-caracteristicas {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.project-wrap.curso-card .curso-caracteristicas li {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.project-wrap.curso-card .curso-caracteristicas li .fa {
    color: #28a745;
    margin-right: 6px;
}

/* Opciones de horario (solo se elige una) */
.project-wrap.curso-card .curso-caracteristicas li.curso-horarios {
    display: block;
}

.project-wrap.curso-card .curso-caracteristicas .horarios-nota {
    font-size: 12.5px;
    color: #e30613;
    font-style: italic;
    margin-left: 2px;
}

.project-wrap.curso-card .horario-opciones {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
    margin-left: 20px;
}

.project-wrap.curso-card .horario-opcion {
    display: block;
    background: #eaf2fb;
    border: 1px solid #bcd6ee;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #011d4f;
    text-align: center;
}

.project-wrap.curso-card .text p {
    font-size: 15px;
    line-height: 1.7;
}

.project-wrap.curso-card .curso-precio {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: #eaf2fb;
    border-left: 5px solid #e30613;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 18px;
}

.project-wrap.curso-card .curso-precio .precio-label {
    font-size: 14px;
    font-weight: 700;
    color: #011d4f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-wrap.curso-card .curso-precio .precio-valor {
    font-size: 26px;
    font-weight: 800;
    color: #011d4f;
}

.project-wrap.curso-card .curso-precio .precio-valor small {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-left: 2px;
}

/* ===== BANNER REDUCIDO DE LA PÁGINA DE CURSOS ===== */
.hero-wrap.hero-wrap-2.hero-cursos {
    background-image: url('../images/banner1.jpg');
    height: 340px;
}

.hero-wrap.hero-wrap-2.hero-cursos .slider-text {
    height: 340px;
}

/* En móvil/tablet el banner de cursos usa otra imagen de fondo */
@media (max-width: 991.98px) {
    .hero-wrap.hero-wrap-2.hero-cursos {
        background-image: url('../images/img6.jpg');
    }
}

@media (max-width: 767.98px) {
    .hero-wrap.hero-wrap-2.hero-cursos,
    .hero-wrap.hero-wrap-2.hero-cursos .slider-text {
        height: 190px;
    }

    .hero-wrap.hero-wrap-2.hero-cursos .slider-text .breadcrumbs {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .hero-wrap.hero-wrap-2.hero-cursos .slider-text h1 {
        font-size: 26px;
    }
}

/* CTA clase muestra: imagen de fondo con overlay y texto blanco */
.curso-cta {
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.curso-cta h2 {
    color: #ffffff;
    font-weight: 800;
    font-size: 34px;
}

.curso-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.curso-cta .btn-pulsing {
    margin-top: 5px;
}

/* Botón rojo de clase muestra en la página de cursos */
@keyframes btnPulseRojo {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 18px rgba(227, 6, 19, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

.curso-cta .btn-rojo {
    background: #e30613 !important;
    color: #ffffff !important;
    border: 2px solid #e30613 !important;
    animation: btnPulseRojo 1.8s infinite;
}

.curso-cta .btn-rojo:hover,
.curso-cta .btn-rojo:focus {
    background: #c00511 !important;
    border-color: #c00511 !important;
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .curso-cta {
        background-attachment: scroll;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .curso-cta h2 {
        font-size: 26px;
    }

    .curso-cta p {
        font-size: 15px;
    }

    .curso-cta .btn-pulsing {
        font-size: 1rem !important;
        padding: 12px 18px !important;
    }
}

/* ===== MODAL CLASE MUESTRA ===== */
#modalClaseMuestra .cm-subtitle {
    text-align: center;
    font-weight: 700;
    color: #011d4f;
    margin-bottom: 14px;
}

#modalClaseMuestra .cm-cal-header strong {
    color: #011d4f;
}

#modalClaseMuestra .cm-btn-nav {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 20px;
    line-height: 1;
    color: #011d4f;
}

#modalClaseMuestra .cm-btn-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#modalClaseMuestra .cm-dias-semana,
#modalClaseMuestra .cm-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

#modalClaseMuestra .cm-dias-semana span {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #011d4f;
    padding: 4px 0;
}

#modalClaseMuestra .cm-dia {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 14px;
    text-align: center;
}

#modalClaseMuestra .cm-dia-disponible {
    background: #eaf2fb;
    color: #011d4f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

#modalClaseMuestra .cm-dia-disponible:hover {
    background: #011d4f;
    color: #fff;
}

#modalClaseMuestra .cm-dia-seleccionado {
    background: #011d4f !important;
    color: #fff !important;
}

#modalClaseMuestra .cm-dia-inhabilitado {
    color: #ccc;
    cursor: not-allowed;
}

#modalClaseMuestra .cm-fecha-elegida {
    color: #e30613;
    font-weight: 800;
}

#modalClaseMuestra .cm-horario {
    border: 2px solid #011d4f;
    background: #fff;
    color: #011d4f;
    font-weight: 700;
    border-radius: 30px;
    padding: 10px 22px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#modalClaseMuestra .cm-horario:hover {
    background: #011d4f;
    color: #fff;
}

#modalClaseMuestra .cm-resumen,
#modalSolicitudCurso .cm-resumen {
    background: #eaf2fb;
    border-left: 5px solid #e30613;
    border-radius: 6px;
    color: #011d4f;
    font-weight: 700;
    padding: 12px 16px;
    margin-bottom: 18px;
}

#modalClaseMuestra .cm-icono-exito,
#modalExitoSolicitud .cm-icono-exito,
#modalSolicitudCurso .cm-icono-exito,
#modalInscripcion .cm-icono-exito {
    font-size: 64px;
    color: #28a745;
    display: block;
    margin-bottom: 14px;
}

#modalClaseMuestra .cm-mensaje-exito,
#modalExitoSolicitud .cm-mensaje-exito,
#modalSolicitudCurso .cm-mensaje-exito,
#modalInscripcion .cm-mensaje-exito {
    font-size: 18px;
    font-weight: 700;
    color: #011d4f;
    margin-bottom: 20px;
}

/* ===== MODAL DE INSCRIPCIÓN (OFERTA) ===== */
#modalInscripcion .inscripcion-header {
    background: #e30613;
    color: #ffffff;
    border-radius: calc(0.3rem - 1px) calc(0.3rem - 1px) 0 0;
    position: relative;
    display: block;
    padding: 1rem 3rem 1rem 1rem;
}

#modalInscripcion .inscripcion-oferta {
    display: inline-block;
    background: #ffffff;
    color: #e30613;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 6px;
}

#modalInscripcion .modal-title {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

#modalInscripcion .modal-title strong {
    font-weight: 800;
}

/* X de cerrar en la esquina superior derecha */
#modalInscripcion .close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    margin: 0;
    opacity: 1;
    text-shadow: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 480px) {
    #modalInscripcion .modal-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #modalClaseMuestra .cm-dia {
        padding: 8px 0;
        font-size: 13px;
    }

    #modalClaseMuestra .cm-horario {
        padding: 9px 16px;
        font-size: 14px;
    }
}

/* ===== DESPLAZAMIENTO FLUIDO ===== */
/* Los fondos grandes (hero y contador) acompañan el scroll en lugar de
   quedarse fijos, para que el desplazamiento se sienta fluido igual que
   en la pantalla de cursos */
.hero-wrap,
#section-counter {
    background-attachment: scroll;
}

/* Desplazamiento suave para saltos dentro de la página (anclas) */
html {
    scroll-behavior: smooth;
}

/* Altura completa del hero del inicio con CSS (sin JS):
   evita saltos bruscos al redimensionar la ventana, p. ej. cuando la
   barra de direcciones se oculta/muestra en el móvil */
.hero-fullheight {
    height: 100vh;
    height: 100dvh;
}

/* Banner del inicio: banner1.jpg en escritorio, img13.jpg en móvil/tablet */
.hero-wrap.hero-fullheight.hero-inicio {
    background-image: url('../images/banner1.jpg');
}

@media (max-width: 991.98px) {
    .hero-wrap.hero-fullheight.hero-inicio {
        background-image: url('../images/img16.jpg');
    }
}

/* ===== MENÚ MÓVIL SIEMPRE VISIBLE ===== */
/* En la plantilla, el navbar móvil se oculta entre 150px y 350px de scroll
   (margin-top: -130px) y salta al pasar de relative a fixed.
   Aquí se mantiene fijo arriba, blanco y visible todo el tiempo, igual que en
   escritorio, para un desplazamiento fluido */
@media (max-width: 991.98px) {
    .ftco-navbar-light,
    .ftco-navbar-light.scrolled,
    .ftco-navbar-light.scrolled.awake,
    .ftco-navbar-light.scrolled.sleep {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
        transition: none !important;
        /* La plantilla quita el padding lateral con .scrolled (style.css) y el
           logo se desplaza al hacer scroll; se fija el mismo padding siempre */
        padding: 0 1rem !important;
    }

    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link,
    .ftco-navbar-light.scrolled .nav-link {
        color: #011d4f !important;
    }

    .ftco-navbar-light .navbar-nav > .nav-item.active > a,
    .ftco-navbar-light.scrolled .nav-item.active > a {
        color: #e30613 !important;
    }

    .ftco-navbar-light .navbar-brand,
    .ftco-navbar-light.scrolled .navbar-brand {
        color: #011d4f !important;
    }

    .ftco-navbar-light .navbar-toggler,
    .ftco-navbar-light.scrolled .navbar-toggler {
        color: #011d4f !important;
        border-color: transparent !important;
    }

    /* El navbar pasa a estar fijo: se reserva su altura para que el
       contenido quede igual que antes (logo 70px, sin padding vertical) */
    body {
        padding-top: 70px;
    }
}

/* ===== ESPACIADO DEL FOOTER ===== */
/* La plantilla reserva 7em (~112px) de padding inferior en el footer y
   márgenes grandes entre las columnas y el copyright; se reducen */
.ftco-footer {
    padding-bottom: 2.5em !important;
}

.ftco-footer .row.mb-5 {
    margin-bottom: 1.5rem !important;
}