/* Estilos para diseño boxed con fondo rojo */

body {
    background-image: url('../images/fondo3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* Preloader debe estar fuera del wrapper para cubrir toda la pantalla */
.preloader {
    position: fixed;
    z-index: 9999;
}

/* Wrapper principal para el contenido boxed */
.wrapper-boxed {
    max-width: 95%;
    width: 100%;
    margin: 50px auto;
    background-color: #ffffff;
    min-height: calc(100vh - 100px);
    position: relative;
}

/* Asegurar que el header también respete el contenedor */
.wrapper-boxed #header-part {
    max-width: 100%;
}

/* Ajustar secciones para que respeten el contenedor */
.wrapper-boxed section {
    max-width: 100%;
}

/* Footer también dentro del contenedor */
.wrapper-boxed #footer-part {
    max-width: 100%;
}

/* Asegurar que los elementos de ancho completo funcionen dentro del wrapper */
.wrapper-boxed .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Header logo: centrar verticalmente logo, teléfono y botones */
.header-logo-support .row {
    display: flex;
    align-items: center;
}
.header-logo-support .logo {
    display: flex;
    align-items: center;
}
/* Logo más grande, proporcional, sin agrandar el header */
.header-logo-support .logo .header-logo-img {
    width: 300px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.header-logo-support .support-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.header-logo-support .support-button .support {
    margin-top: 0;
    align-items: center;
}
/* Centrar mejor el bloque del teléfono (icono + texto) con los botones */
.header-logo-support .support-button .support .cont {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.header-logo-support .support-button .support .icon {
    display: flex;
    align-items: center;
}
.header-logo-support .support-button .support .icon img {
    display: block;
    vertical-align: middle;
}
.header-logo-support .support-button .button {
    display: flex;
    align-items: center;
}

/* Menú: usar todo el ancho y evitar salto de línea en los ítems */
.navigation .navbar .navbar-nav {
    flex-wrap: nowrap;
}
.navigation .navbar .navbar-nav li a {
    white-space: nowrap;
}
.navigation .navbar .navbar-nav li {
    margin-right: 24px;
}
.navigation .navbar .navbar-nav li:last-child {
    margin-right: 0;
}
/* Punto chiquito entre cada ítem del menú */
.navigation .navbar .navbar-nav > li:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    color: #2f5271;
    opacity: 0.7;
    pointer-events: none;
}

/* Modal Login Plataforma - diseño mejorado */
.plataforma-login-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.plataforma-login-modal__header {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: #fff !important;
    padding: 28px 48px 24px 24px;
    border: none;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.plataforma-login-modal__header .close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    color: #fff !important;
    opacity: 0.9;
    text-shadow: none;
    font-size: 28px;
}
.plataforma-login-modal__header .close:hover {
    opacity: 1;
    color: #fff !important;
}
.plataforma-login-modal__header .modal-title {
    width: 100%;
    text-align: center;
}
.plataforma-login-modal__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    margin: 0 auto 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    font-size: 26px;
    color: #fff;
}
.plataforma-login-modal__icon i {
    display: block;
    line-height: 1;
    text-align: center;
}
.plataforma-login-modal__header .modal-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #fff !important;
    white-space: nowrap;
}
.plataforma-login-modal__body {
    padding: 28px 24px 20px;
}
.plataforma-login-modal__block {
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    height: 100%;
    background: #fafafa;
}
.plataforma-login-modal__block-title {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}
.plataforma-login-modal__block .plataforma-login-modal__btn-submit {
    margin-top: 8px;
}
.plataforma-login-modal__block .plataforma-login-modal__hint {
    margin-top: 12px;
    margin-bottom: 0;
}
@media (max-width: 767px) {
    .plataforma-login-modal__block {
        margin-bottom: 20px;
    }
    .plataforma-login-modal__block:last-child {
        margin-bottom: 0;
    }
}
.plataforma-login-modal__field {
    margin-bottom: 20px;
}
.plataforma-login-modal__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.plataforma-login-modal__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.plataforma-login-modal__input-wrap i {
    position: absolute;
    left: 14px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}
.plataforma-login-modal__input-wrap .form-control {
    padding-left: 42px;
    padding-right: 14px;
    height: 46px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.plataforma-login-modal__input-wrap .form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
    outline: none;
}
.plataforma-login-modal__hint {
    font-size: 13px;
    color: #666;
    margin: 16px 0 0;
    padding: 0;
}
.plataforma-login-modal__footer {
    padding: 16px 24px 24px;
    border: none;
    background: #f8f9fa;
    justify-content: flex-end;
    gap: 12px;
}
.plataforma-login-modal__btn-cancel,
.plataforma-login-modal__btn-submit {
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.4;
    height: 44px;
}
.plataforma-login-modal__btn-cancel {
    font-weight: 500;
}
.plataforma-login-modal__btn-submit {
    font-weight: 600;
}

/* Footer: mapa más lindo */
.footer-map-iframe {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
}
.footer-map-iframe iframe {
    display: block;
    border-radius: 12px;
}

/* Niveles y Propuestas Académicas (category): iconos Font Awesome acorde al tema */
#category-part .category-icon-wrap .icon i {
    font-size: 42px;
    color: #fff;
    display: block;
}

/* Quiénes Somos: espacio título-texto, más espacio texto-botón */
.about-singel-items h4 {
    padding-bottom: 18px;
}
.about-singel-items .about-item-text {
    margin-bottom: 0;
}
.about-singel-items .btn-ver-mas {
    margin-top: 40px;
}

/* Cambridge (about-page-2): sin padding bottom */
#about-page-2 {
    padding-bottom: 0 !important;
}

/* Oxford (003.jpg): imagen alineada a la derecha, ancho 450px */
#about-page-3 .about-image--right {
    text-align: right;
}
#about-page-3 .about-image--right img {
    width: 450px;
    max-width: 100%;
}

/* About-part: margin-bottom 220px */
#about-part {
    margin-bottom: 220px !important;
}

/* Niveles y Propuestas Académicas: margin-bottom 40px */
#niveles-part {
    margin-bottom: 40px !important;
}

/* Quitar la línea roja del título en niveles-part */
#niveles-part .section-title h5::before {
    display: none;
}

/* Niveles y Propuestas Académicas - tarjetas */
.nivel-card {
    padding: 28px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.nivel-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}
.nivel-card__icon {
    width: 56px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6fc;
    color: #0066cc;
    font-size: 24px;
    border-radius: 50%;
}
.nivel-card__title {
    font-size: 18px;
    color: #1d2025;
    font-weight: 600;
}
.nivel-card__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #505050;
}
.nivel-card__list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}
.nivel-card__list li:last-child {
    margin-bottom: 0;
}
.nivel-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* WhatsApp flotante: abajo derecha (donde estaba el botón subir) */
.whatsapp-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: #25d366;
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    text-align: center;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    text-decoration: none;
}
.whatsapp-flotante:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Columna izquierda (foto + texto) fija al hacer scroll en página de nivel (kinder/children) */
#corses-singel .row {
    align-items: flex-start;
}
#corses-singel .col-lg-8 {
    position: sticky;
    top: 100px;
}
@media (max-width: 991px) {
    #corses-singel .col-lg-8 {
        position: static;
    }
}

/* Solo la foto sin padding: anula el padding de .corses-singel-left solo para esta imagen */
.corses-singel-left .corses-singel-image--no-padding {
    margin-left: -50px;
    margin-right: -50px;
    margin-top: -45px;
    margin-bottom: 1rem;
    width: calc(100% + 100px);
    padding: 0;
}
/* Ítem "El aprendizaje se da a través de" en cuadro Información (kinder.php) */
.course-features .sidebar-aprendizaje-item {
    display: block;
    line-height: 1.5;
    overflow: visible;
    padding: 12px 0 16px 0;
    border-bottom: none;
    margin-bottom: 0;
}
.course-features .sidebar-aprendizaje-item > i {
    color: #dc3545;
    margin-right: 8px;
    vertical-align: middle;
}
.course-features .sidebar-aprendizaje-item .sidebar-aprendizaje-list {
    margin-left: 0;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 0;
    list-style: none;
    border: none;
}
.course-features .sidebar-aprendizaje-list li {
    position: relative;
    padding-left: 18px;
    border-bottom: none;
    line-height: 1.55;
    padding: 3px 0 3px 18px;
    margin: 0;
}
.course-features .sidebar-aprendizaje-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}
/* Título + ojo en Otros niveles (kinder/children) */
.You-makelike .singel-makelike .cont .cont-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.You-makelike .singel-makelike .cont .cont-title-wrap h4 {
    margin: 0;
    flex: 1;
}
.You-makelike .singel-makelike .cont .cont-link-ojo {
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}
.You-makelike .singel-makelike .cont .cont-link-ojo:hover {
    color: #fff;
    opacity: 1;
}
/* "Nivel actual" en Otros niveles (texto sobre overlay) */
.You-makelike .singel-makelike .cont ul li span {
    font-size: 14px;
    color: #fff;
}

.course-features .sidebar-aprendizaje-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.corses-singel-image--no-padding img {
    display: block;
    width: 100%;
    margin: 0;
    vertical-align: top;
}
@media (max-width: 991px) {
    .corses-singel-left .corses-singel-image--no-padding {
        margin-left: -40px;
        margin-right: -40px;
        width: calc(100% + 80px);
    }
}
@media (max-width: 767px) {
    .corses-singel-left .corses-singel-image--no-padding {
        margin-left: -30px;
        margin-right: -30px;
        width: calc(100% + 60px);
    }
}

/* Botón subir: abajo izquierda */
.back-to-top {
    right: auto;
    left: 20px;
}

/* Página Exámenes: contenido y lista */
.examenes-content p { color: #505050; line-height: 1.8; }
.examenes-list { padding-left: 1.5rem; color: #505050; line-height: 1.9; }
.examenes-list li { margin-bottom: 0.5rem; }
.examenes-links a { color: #0066cc; }
.examenes-links a:hover { text-decoration: underline; }

/* Logos de partners arriba del footer: fondo blanco y que ocupen todo el ancho */
#patnar-logo {
    background-color: #fff !important;
}
#patnar-logo .singel-patnar {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}
#patnar-logo .singel-patnar img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}
#patnar-logo .patnar-slied .slick-slide > div {
    height: 100%;
}
#patnar-logo .patnar-slied .singel-patnar {
    height: 100%;
}

/* Galería: filtros con más separación entre botones */
.gallery-filters .gallery-filter {
    margin: 6px 10px;
}

/* Galería: 5 columnas + overlay */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay i {
    font-size: 28px;
    color: #fff;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Lightbox galería: flechas y controles bien visibles */
.mfp-gallery .mfp-arrow {
    opacity: 1;
    width: 70px;
    height: 100px;
    margin-top: -50px;
    background: rgba(0, 0, 0, 0.65);
}
.mfp-gallery .mfp-arrow:hover,
.mfp-gallery .mfp-arrow:focus {
    opacity: 1;
    background: rgba(220, 53, 69, 0.9);
}
.mfp-gallery .mfp-arrow-left:after,
.mfp-gallery .mfp-arrow-right:after {
    border-color: #fff !important;
}
.mfp-gallery .mfp-arrow-left:before,
.mfp-gallery .mfp-arrow-right:before {
    border-color: #fff !important;
}
.mfp-gallery .mfp-counter {
    font-size: 15px;
    color: #fff;
}
.mfp-gallery .mfp-close {
    color: #fff !important;
    font-size: 42px;
    opacity: 0.95;
}
.mfp-gallery .mfp-close:hover {
    color: #fff !important;
    opacity: 1;
}

/* Página Calendario */
.calendar-wrap .fc {
    font-family: inherit;
}
.calendar-wrap .fc-toolbar-title {
    font-size: 1.5rem;
}
.calendar-wrap .fc-button-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}
.calendar-wrap .fc-button-primary:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}
.calendar-wrap .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #dc3545;
    border-color: #dc3545;
}
.calendar-legend .fa-circle { opacity: 0.9; }

/* Celdas del calendario: padding */
.calendar-wrap .fc-liquid-hack td,
.calendar-wrap .fc-liquid-hack th {
    padding: 0 10px;
}
/* Eventos del calendario: salto de línea y texto centrado */
.calendar-wrap .fc-event {
    text-align: center;
}
.calendar-wrap .fc-event-title {
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* Carrusel de cursos en index: espacio entre slides */
.course-slied .slick-list {
    margin: 0 -10px;
}
.course-slied .slick-slide {
    margin: 0 10px;
}

/* Enlace de la imagen del curso ocupa todo el espacio */
.singel-course .thum .image a {
    display: block;
}

/* Título del curso en listado: sin padding inferior */
.singel-course .cont h4 {
    padding-bottom: 0;
}

/* Texto introductorio debajo del section-title (cursos, etc.) */
.section-title .section-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #505050;
}
.section-title .section-intro p {
    margin-bottom: 1em;
}
.section-title .section-intro p:last-child {
    margin-bottom: 0;
}

/* Descripción corta en listado de cursos */
.singel-course .cont .course-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Sección Certificaciones: fondo con imagen parallax y overlay suave */
#certificaciones.certificaciones-bg {
    position: relative;
    background-image: url('../images/cambr001.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
#certificaciones.certificaciones-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    opacity: 0.78;
    z-index: 1;
}
#certificaciones.certificaciones-bg .container {
    position: relative;
    z-index: 2;
}

/* Parallax en fondos con imagen (Sobre nosotros: page-banner y respaldo académico) */
.parallax-bg {
    background-attachment: fixed;
    background-position: center center;
}

