/*
Theme Name: Chile Aprende IA
Theme URI: https://chileaprendeia.cl
Author: Chile Aprende IA
Author URI: https://chileaprendeia.cl
Description: Tema personalizado para Chile Aprende IA - Plataforma de cursos de Inteligencia Artificial
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chile-aprende-ia
*/

/* ============================================
   FONT IMPORTS - Local Fonts
   ============================================ */

/* Museo Sans */
@font-face {
    font-family: 'Museo Sans';
    src: url('./assets/fonts/museosans-300-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo Sans';
    src: url('./assets/fonts/MuseoSans-400.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo Sans';
    src: url('./assets/fonts/MuseoSans_500.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* GobCL */
@font-face {
    font-family: 'GobCL';
    src: url('./assets/fonts/gobCL_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GobCL';
    src: url('./assets/fonts/gobCL_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GobCL';
    src: url('./assets/fonts/gobCL_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GobCL';
    src: url('./assets/fonts/gobCL_Heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-blanco: #FFF;
    --color-degrad-morado: linear-gradient(90deg, #1A1B59 34.41%, #2F1893 100%);
    --White: #FFF;
    --color-botn-PRIMARIO: #B7049A;
    --color-marengo: #40495A;
    --color-marengo-texto: #40495A;
    --color-marengo-4: #D0D4DC;
    --color-botn-SECUNDARIO: #71048C;
    --color-link-morado-claro: #B0B0FB;
    --color-marengo-5: #F7F9FC;
    --color-botn-degrad: linear-gradient(90deg, #B7049A 0%, #7F1D98 100%);
    --color-morado-2: rgba(113, 4, 140, 0.70);
    --color-gris-claro-texto: #797F89;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Museo Sans', -apple-system, Roboto, Helvetica, sans-serif;
    background: var(--color-blanco);
    color: #40495A;
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que el header sticky no se mueva */
html,
body {
    margin: 0;
    padding: 0;
}

body.admin-bar .main-header {
    top: 32px;
}

.hero-lottie {
    width: 100%;
    height: 100%;
}

.has-black-color {
    color: #40495A !important;
}

.has-small-font-size {
    font-size: 16px;
}

.desktop {
    display: flex !important;
    justify-content: space-between;
}

.mobile {
    display: none !important;
}


.main-header {
    display: flex;
    width: 100%;
    padding: 15px 30px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    margin: 0;
    background: linear-gradient(90deg, #1A1B59 34.41%, #2F1893 100%);

}

.header-container {
    display: flex;
    width: 100%;
    max-width: 1196px;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: auto;
    height: 74px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}


.filters-movile {
    display: none;
}

.filters-pc {
    display: block;
}

/* Estilos para el menú de WordPress */
.main-nav .menu-list,
.main-nav ul {
    display: flex;
    align-items: left;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a:not(.btn-primary) {
    color: var(--color-blanco);
    padding: 0 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.main-nav a:not(.btn-primary):hover {
    opacity: 0.8;
}

.nav-link {
    color: var(--color-blanco);
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle Button - Hidden by default */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-blanco);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.btn-primary {
    display: flex;
    height: 55px;
    padding: 0 16px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 3px;
    background: rgba(183, 4, 154, 1);
    color: var(--color-blanco);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    gap: 10px;
}



.btn-primary span {
    display: inline-block;
    line-height: 1;
}

.btn-primary:hover {
    background-color: #8E0378;
    box-shadow: 0 4px 12px rgba(183, 4, 154, 0.3);
}


.btn-card-programa {
    width: 150.5px;
    height: 55px;
    gap: 10px;
    angle: 0 deg;
    opacity: 1;
    padding-right: 20px;
    padding-left: 9px !important;
    border-radius: 3px;
    color: #FFFFFF;
    animation-duration: 0ms;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: right;


}

.btn-card-programa svg {
    margin-left: 10px;
    width: 4.5px;
    height: 13.580838203430176px;
    angle: 0 deg;
    opacity: 1;
    border-width: 2px;

}

.btn-card-programa text {
    width: 103px;
    height: 28px;
    angle: 0 deg;
    opacity: 1;
    font-weight: 400;
    font-style: Regular;
    font-size: 17px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: right;
    background: #FFFFFF;
}

.btn-card-programa:hover {
    background-color: #8E0378;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 104, 122, 0.3);
}

.btn-secondary {
    display: flex;
    height: 55px;
    padding: 0 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
    background: var(--color-botn-SECUNDARIO);
    color: var(--color-blanco);
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 150.5px;
}

.btn-secondary:hover {
    background-color: #450156;
    box-shadow: 0 4px 12px rgba(113, 4, 140, 0.3);
}

.hero-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-degrad-morado);
    height: 526px;
}

.hero-banner-movile {
    display: none !important;
    justify-content: center;
    align-items: center;
    background: var(--color-degrad-morado);
    height: 200px;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

.stats-section {
    display: flex;
    max-width: 1196px;
    padding: 70px 0 0;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;

}

.stat-card {
    display: flex;
    width: 345px;
    padding: 40px 26px;
    align-items: center;
    border-radius: 16px 3px;
    margin: 0px 10px 0px 10px !important;
}

.stat-card-blue {
    background: #EBEBFF;
    margin-right: auto !important;
}

.stat-card-pink {
    background: #F6E6F5;
}

.stat-card-red {
    background: #FFE2E2;
    margin-left: auto !important;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.stat-number {
    color: var(--color-marengo);
    font-family: 'GobCL', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 100px;
    font-weight: 700;
    line-height: normal;
}

.stat-label {
    color: var(--color-marengo);
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    line-height: 46px;
}

.courses-section {
    display: flex;
    width: 100%;
    padding: 50px 122px 70px;
    justify-content: center;
}

.courses-container {
    display: flex;
    width: 100%;
    max-width: 1196px;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    color: var(--color-marengo);
    text-align: center;
    font-size: 48px;
    font-weight: 400;
}

.courses-grid {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 77.5px;
    flex-wrap: wrap;
    max-width: 1196px;
}

.course-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 3px;
    border: 1px solid var(--color-marengo-4);
    background: var(--color-blanco);
    position: relative;
    padding-bottom: 35px;
}

.course-image-wrapper {
    display: flex;
    justify-content: center;
    align-self: stretch;
    border-radius: 3px 3px 0 0;
    position: relative;
    overflow: hidden;
    width: 345px;
    height: 262px;

}

.course-image {
    width: 345px;
    height: 243.42px;
    object-fit: cover;
    object-position: center;
}

span.fixed_height {
    width: 87%;
    height: 28px;
    overflow: hidden;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.course-type-badge {
    display: flex;
    height: 38px;
    padding: 0 20px;
    bottom: 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 0;
    border-radius: 0 3px 3px 0;
    background: #FF687A;
    color: var(--color-blanco);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.course-type-badge svg {
    flex-shrink: 0;
}

.featured-course-type-badge {
    display: flex;
    height: 38px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background: #FF687A;
    color: var(--color-blanco);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0 3px 3px 0;
}

.featured-course-type-badge svg {
    flex-shrink: 0;
}

.course-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    width: 345px;
    height: 312px;
    gap: 12px;
    angle: 0 deg;
    opacity: 1;
    padding-top: 24px;
    padding-right: 16px;
    padding-left: 16px;
}

.course-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    min-height: 20px;
}

.course-date,
.course-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-marengo);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.divider {
    width: 313px;
    height: 1px;
    background: var(--color-marengo-4);
}

.course-title {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: var(--color-marengo);
    width: 313px;
    min-height: 64px;
    gap: 16px;
    opacity: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

}

.course-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-marengo);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    letter-spacing: 0%;
}

.course-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.btn-full {
    flex: 1;
}

.btn-view-all {
    width: 310px;
    gap: 30px;
    margin: 0 auto;
}

.main-footer {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.archive-hero-content {
    max-width: 1196px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    width: 100%;
    height: 180px;
    padding: 30px 155px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: var(--color-degrad-morado);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 1196px;
    max-width: 1196px;
    margin: 0 auto;
}

.footer-logo-img {
    width: auto;
}

.footer-social {
    display: flex;
    width: 270px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

.social-title {
    color: var(--color-blanco);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.social-icons {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.social-icon {
    display: flex;
    width: 29.992px;
    height: 30px;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.social-icon img {
    transition: opacity 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Hover para cada red social - cambiar imagen */
.social-icon[aria-label="Twitter/X"]:hover img {
    content: url('assets/images/twitter-hover.svg');
}

.social-icon[aria-label="Facebook"]:hover img {
    content: url('assets/images/Facebook-hover.svg');
}

.social-icon[aria-label="Instagram"]:hover img {
    content: url('assets/images/Instagram-hover.svg');
}

.social-icon[aria-label="TikTok"]:hover img {
    content: url('assets/images/TikTok-hover.svg');
}

.social-icon[aria-label="YouTube"]:hover img {
    content: url('assets/images/Youtube-hover.svg');
}

.social-icon-tiktok {
    width: 30px;
    height: 30px;
    padding: 8px 7px 7px 8px;
    border-radius: 90px;
    background: var(--color-blanco);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-label {
    color: var(--color-blanco);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.contact-link {
    color: var(--color-link-morado-claro);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.8;
    color: #7A7AFF;
}

.footer-bottom {
    display: flex;
    padding: 10px 155px 30px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    background: var(--color-degrad-morado);
}

.footer-bottom-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    width: 1196px;
    margin: 0 auto;
}

.footer-copyright {
    color: var(--color-blanco);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.scroll-to-top {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
}

.scroll-to-top img {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
}

.scroll-to-top:hover img {
    content: url('assets/images/Scroll-hover.svg');
}

/* Card destacada */
.featured-course-card {
    display: flex;
    width: 1196px;
    height: 399px;
    justify-content: space-between;
    align-items: flex-start;
}

.featured-course-content {
    display: flex;
    width: 540px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
    align-self: stretch;
}

.featured-course-image {
    flex: 0 0 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0px 12px;
    min-height: 381px;
    position: relative;
}

.featured-course-image img {
    height: 381px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-course-title {
    color: #40495A;
    font-weight: 400;
    font-style: Regular;
    font-size: 38px;
    line-height: 46px;
    letter-spacing: 0%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    align-self: stretch;
    position: relative;
    padding-top: 30px;

}

.parrafo-1 {
    direction: ltr;
    grid-column: 2;
    grid-row: 1;
    word-break: break-word;
}

.parrafo-1 p {
    font-weight: 400;
    font-style: 500;
    font-size: 16px !important;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
}

.featured-course-title::before {
    content: "";
    display: block;
    height: 12px;
    width: 348px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90.04deg, #B7049A 15.87%, #EE039E 58.02%, #FF687A 99.97%);

}

.titulo-chile-aprende {
    font-weight: 400 !important;
    font-style: 500 !important;
    font-size: 38px !important;
    line-height: 46px !important;
    letter-spacing: 0% !important;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 160px;
}

.custom-select-wrapper select {
    display: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #62708A;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #40495A;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
}

.custom-select-trigger:hover {
    border-color: #62708A;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #62708A;
    box-shadow: 0 0 0 2px rgba(183, 4, 154, 0.1);
}

.custom-select-trigger svg {
    width: 12px;
    height: 8px;
    margin-left: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-trigger svg path {
    stroke: #B7049A;
}

.custom-select-wrapper.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-select-trigger.is-placeholder span {
    color: #40495A;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #40495A;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 12px 15px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #40495A;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover {
    background-color: #F5F5FF;
    color: #40495A;
}

.custom-select-option.selected {
    background-color: #F5F5FF;
    color: #40495A;
}

.custom-select-option:first-child {
    border-radius: 4px 4px 0 0;
}

.custom-select-option:last-child {
    border-radius: 0 0 4px 4px;
}

/* Fallback para navegadores sin JS */
.no-js .custom-select-wrapper select {
    display: block;
}

.no-js .custom-select-trigger,
.no-js .custom-select-options {
    display: none;
}

.course-company-website {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #40495A;
    font-size: 16px;

}

.course-company-website span {
    font-weight: 400;
    font-style: 500;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;

}



.featured-course-card::before {
    content: "";
    display: block;
    height: 12px;
    width: 348px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90.04deg, #B7049A 15.87%, #EE039E 58.02%, #FF687A 99.97%);
}


.featured-course-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #40495A;
    font-size: 13px;
    border-bottom: 1px solid #D0D4DC;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
}

.featured-course-description {
    color: #40495A;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;

    height: 64px;
    overflow: hidden;
    display: -webkit-box -webkit-line-clamp
}

.featured-course-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-course-list li {
    color: #4A4A4A;
    font-size: 13px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.featured-course-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00C853;
    font-weight: bold;
    font-size: 14px;
}

.featured-course-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 8px;
}

.featured-course-actions .btn-primary,
.featured-course-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 440px;
    height: 750px;
    border-radius: 30px;
    background: var(--color-marengo-5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chatbot-header {
    display: flex;
    width: 100%;
    height: 113px;
    padding: 35px 23px;
    justify-content: space-between;
    align-items: center;
    background: var(--color-botn-degrad);
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chatbot-icon-wrapper {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--color-blanco);
}

.chatbot-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: -5px;
}

.chatbot-title {
    color: var(--color-blanco);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

.chatbot-subtitle {
    color: var(--color-marengo-5);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.chatbot-controls {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chatbot-minimize,
.chatbot-close {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.chatbot-minimize:hover,
.chatbot-close:hover {
    opacity: 0.8;
}

.chatbot-messages {
    flex: 1;
    padding: 30px 13px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.message-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-message-group {
    align-items: flex-end;
}

.chatbot-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-avatar {
    display: flex;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--color-morado-2);
}

.message-info {
    color: var(--color-marengo);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.user-message-info {
    text-align: right;
}

.message-bubble {
    padding: 14px 22px;
    border-radius: 10px;
    max-width: 295px;
}

.bot-message {
    border: 1px solid var(--color-marengo-4);
    background: var(--color-blanco);
    color: var(--color-marengo);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    position: relative;
}

.user-message {
    border: 1px solid #994DAE;
    background: rgba(235, 235, 255, 0.60);
    color: var(--color-marengo);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.message-actions {
    display: flex;
    width: 60px;
    padding: 4px;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    border-radius: 10px;
    background: var(--color-botn-degrad);
    position: absolute;
    bottom: -24px;
    right: 10px;
}

.action-btn {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.message-status {
    color: var(--color-gris-claro-texto);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-align: right;
}

.chatbot-input {
    display: flex;
    width: 100%;
    padding: 22px;
    justify-content: space-between;
    align-items: flex-end;
    border: 1px solid #E3E3E3;
    background: var(--color-blanco);
}

.chat-input-field {
    flex: 1;
    border: none;
    outline: none;
    color: var(--color-marengo);
    font-family: 'Museo Sans', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.chat-input-field::placeholder {
    color: var(--color-marengo);
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.input-action-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.input-action-btn:hover {
    transform: scale(1.1);
}

.send-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--color-botn-PRIMARIO);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(183, 4, 154, 0.3);
}

@media (max-width: 1200px) {
    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }

    .main-header,
    .hero-banner,
    .stats-container,
    .courses-section,
    .footer-top,
    .footer-bottom {
        padding-left: 60px;
        padding-right: 60px;
    }

    .courses-grid {
        width: 100%;
        margin-top: 400px !important;
        gap: 5px !important;
    }

    .featured-course-card {
        flex-direction: column;
        width: 100%;
        height: 399px;
        justify-content: space-between;
    }

    .featured-course-content {
        width: 100%;
    }

    .featured-course-image {
        flex: 0 0 200px;
        width: 100%;
        order: -1;
    }

    .hero-lottie {
        width: 100%;
        height: 100%;
    }

    .footer-content {
        width: 100%;
    }

    .main-nav a:not(.btn-primary) {
        font-size: 14px;
    }
}

/* Botón hamburguesa - oculto en desktop */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
}

.mobile-menu-toggle.active {
    background: #71048C;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #242677;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span {
    background: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .courses-grid {
        margin-top: 0px;
    }

    .logo-container {
        z-index: 100;
    }

    .logo {
        height: 60px;
    }

    /* Mostrar botón hamburguesa en móvil */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Menú móvil */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 32.5vh;
        width: 80%;
        max-width: 300px;
        background: #F1F1FF;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1150;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav .menu-list,
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .main-nav a:not(.btn-primary) {
        width: 100%;
        text-align: left;
        color: #71048C;
    }

    .main-nav .btn-primary {
        width: 100%;
        margin-top: 20px;
    }

    /* Overlay cuando el menú está abierto */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
    }

    .stats-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }

    .stat-card {
        width: calc(33.33% - 10px);
        min-width: auto;
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 50px;
    }

    .stat-label {
        font-size: 16px;
        line-height: 24px;
    }

    .section-title {
        font-size: 36px;
        line-height: 48px;
    }

    .featured-course-card {
        flex-direction: column;
    }

    .featured-course-image {
        flex: 0 0 200px;
        order: -1;
    }

    .featured-course-content {
        padding: 20px;
    }

    .featured-course-actions {
        flex-direction: column;
    }

    .featured-course-actions .btn-primary,
    .featured-course-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .chatbot-container {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-lottie {
        width: 100%;
        height: 100%;
    }

    .main-nav .btn-primary {
        width: 100%;
        margin-top: 20px;
    }

    .btn-primary>span {
        display: inline-block;
        line-height: 1;
        padding-top: 7px;
    }
}

.archive-hero {
    padding: 20px 122px;
    background-color: #B7049A;
    color: white;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
    color: white;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: none;
    color: #B0B0FB;
}

.breadcrumb .separator {
    margin: 0 8px;
}



.archive-title {
    font-size: 36px;
    margin: 0;
    font-weight: 400;
}

.archive-courses {
    padding: 50px 122px 70px;
}

/* Botones de tipo de curso */
.course-type-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.course-type-btn {
    padding: 12px 24px;
    background: #FF687A;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
    flex: 1;
}

.course-type-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.course-type-btn:hover {
    background: #DB5A69;
}

.course-type-btn.active {
    background: #DB5A69;
}

/* Filtros */
.courses-filters {
    background: white;
    padding: 0;
    border-radius: 0;
}

.botonesfiltros {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: var(--color-marengo);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 220px;
    justify-content: space-between;
    opacity: 1;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 3px;
    border-width: 1px;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    height: 45px;

    /*Empezamos eliminando el caret de systema*/
    -moz-appearance: none;
    /*Firefox legacy*/
    -webkit-appearance: none;
    /* Chromes legacy*/
    appearance: none;
    /*Y a continuación añadimos el nuestro como background*/
    background-image: url('/wp-content/themes/minciencia/assets/images/flecha-down.svg');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;

    /*Lo posicionamos a la derecha*/
    padding-right: 24px;
    /*le damos algo de espacio para que el caret no se superponga al texto*/
}

.buscar {
    width: 470px;
    justify-content: space-between;
    opacity: 1;
    border-color: #62708A;
    padding-right: 20px;
    padding-left: 40px;
    border-radius: 3px;
    border-width: 1px;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    height: 50px;

    /*Empezamos eliminando el caret de systema*/
    -moz-appearance: none;
    /*Firefox legacy*/
    -webkit-appearance: none;
    /* Chromes legacy*/
    appearance: none;
    /*Y a continuación añadimos el nuestro como background*/
    background-image: url('/wp-content/themes/minciencia/assets/images/lupa.svg');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: 12px center;
    /*Lo posicionamos a la derecha*/
    padding-right: 24px;
    /*le damos algo de espacio para que el caret no se superponga al texto*/
}

.buscar:focus {
    border-color: #62708A;
    border-style: solid;
    outline: none;
}

.btn-filter,
.btn-clean {
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter {
    background: #B7049A;
    color: white;
    width: 220px;
    gap: 20px;
    opacity: 1;
    padding-right: 16px;
    padding-left: 70px;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;

}

.btn-filter:hover {
    background: #8E0378;
}

.btn-clean {
    background: #71048C;
    color: white;
    width: 220px;
    gap: 20px;
    opacity: 1;
    padding-right: 16px;
    padding-left: 70px;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;

}

.btn-clean:hover {
    background: #450156;
}

/* Header de cursos */
.courses-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
}

.courses-available-title {
    font-size: 38px;
    color: #40495A;
    margin: 0;
    font-weight: 400;
    line-height: 46px;
    letter-spacing: 0%;
    vertical-align: middle;
    position: relative;
    padding-top: 32px;
}

.courses-available-title:before {
    content: "";
    display: block;
    height: 12px;
    width: 348px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90.04deg, #B7049A 15.87%, #EE039E 58.02%, #FF687A 99.97%);
}

.courses-count {
    color: #40495A;
    font-weight: 400;
    font-style: 500;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;

}

.page-number {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;

}

.pagination a,
.pagination span {
    width: 48px;
    height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 100px;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.pagination a:hover {
    background: var(--color-botn-PRIMARIO);
    color: white;
    border-color: var(--color-botn-PRIMARIO);
}

.pagination .current {
    background: var(--color-botn-PRIMARIO);
    color: white;
    border-color: var(--color-botn-PRIMARIO);
}

.no-courses-found {
    text-align: center;
    gap: 20px;
    opacity: 1;
    padding-right: 16px;
    padding-left: 70px;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;

}

.btn-filter:hover {
    background: #8E0378;
}

.btn-clean {
    background: #71048C;
    color: white;
    width: 220px;
    gap: 20px;
    opacity: 1;
    padding-right: 16px;
    padding-left: 70px;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;

}

.btn-clean:hover {
    background: #450156;
}

/* Header de cursos */
.courses-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.courses-available-title {
    font-size: 38px;
    color: #40495A;
    margin: 0;
    font-weight: 400;
    line-height: 46px;
    letter-spacing: 0%;
    vertical-align: middle;
    position: relative;
    padding-top: 32px;
}

.courses-available-title:before {
    content: "";
    display: block;
    height: 12px;
    width: 348px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90.04deg, #B7049A 15.87%, #EE039E 58.02%, #FF687A 99.97%);
}

.courses-count {
    color: #40495A;
    font-weight: 400;
    font-style: 500;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;

}

.page-number {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;

}

.pagination a,
.pagination span {
    width: 48px;
    height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 100px;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.pagination a:hover {
    background: var(--color-botn-PRIMARIO);
    color: white;
    border-color: var(--color-botn-PRIMARIO);
}

.pagination .current {
    background: var(--color-botn-PRIMARIO);
    color: white;
    border-color: var(--color-botn-PRIMARIO);
}

.no-courses-found {
    text-align: center;
    font-size: 20px;
    padding: 60px 20px;
    color: var(--color-marengo);
}

@media (max-width: 768px) {
    .archive-courses {
        padding: 40px 20px;
    }

    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }

    .archive-title {
        font-size: 32px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .buscar {
        width: 100%;
    }

    .botonesfiltros {
        flex-wrap: nowrap;
        gap: 10px;
        flex-direction: row;
        margin-top: 40px;
    }

    .botonesfiltros .btn-filter,
    .botonesfiltros .btn-clean {
        flex: 1;
        padding: 12px 10px;
        min-width: 0;
    }

    .courses-header {
        flex-direction: column;
        gap: 15px;
    }

    .courses-header>* {
        width: 100%;
    }

    .courses-available-title {
        font-weight: 400;
        font-size: 30px;
        line-height: 46px;
        letter-spacing: 0%;
        vertical-align: middle;
    }

    .courses-available-title:before {
        width: 100%;
    }
}

/* Centrar botones Filtrar y Limpiar */
.courses-filters form .filter-form:last-child {
    justify-content: center;
}

/* Estilos para SVG en paginación */
.pagination a,
.pagination span {
    color: #B7049A;
}

.pagination a:hover,
.pagination .current {
    color: white;
}

.pagination a svg,
.pagination span svg {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - HOME PAGE
   ============================================ */

/* Tablet to Laptop (769px - 1422px) */
@media (min-width: 769px) and (max-width: 1422px) {
    .courses-grid {
        gap: 30px;
        margin-top: 0px;
    }

    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }

    .main-nav a:not(.btn-primary) {
        font-size: 14px;
    }

    .featured-course-card {
        display: flex;
        max-width: 1196px;
        height: 399px;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }

    .footer-content {
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
        width: 100%;
        max-width: 1196px;
        margin: 0 auto;
    }


}

/* Mantener 3 columnas (996px - 1422px) */
@media (min-width: 996px) and (max-width: 1422px) {
    .courses-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 0px;
    }

    .course-card {
        width: 100%;
        flex: none;
    }

    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }
}

/* Tablet Landscape (992px) */
@media (max-width: 992px) {
    .main-header {
        padding: 20px 40px;
    }

    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }

    .hero-banner {
        height: 400px;
    }

    .hero-lottie {
        width: 100%;
        height: 100%;
    }

    .stats-section {
        padding: 50px 30px 0;
    }

    .stats-container {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .stat-card {
        width: calc(33.33% - 15px);
        min-width: auto;
        padding: 26px 6px;
    }

    .stat-number {
        font-size: 60px;
    }

    .stat-label {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .courses-section {
        padding: 30px 30px 50px;
        gap: 40px;
    }

    .courses-container {
        gap: 25px;
    }

    .section-title {
        font-size: 40px;
    }

    .featured-course-card {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .featured-course-image {
        flex: none;
        width: 100%;
        min-height: 408px;
        order: -1;
    }

    .featured-course-image img {
        width: 100%;
        height: 100%;
    }

    .featured-course-content {
        width: 100%;
        padding: 70px 0;
    }

    .courses-grid {
        gap: 40px;
        margin-top: 0px !important;
    }

    .course-card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

    .course-image-wrapper,
    .course-image {
        width: 100%;
    }

    .course-content {
        width: 100%;
    }

    .footer-top {
        padding: 30px 40px;
    }

    .footer-content {
        width: 100%;
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-bottom {
        padding: 10px 40px 30px;
    }

    .footer-bottom-content {
        width: 100%;
    }

    .main-nav a:not(.btn-primary) {
        font-size: 14px;
    }

    /* Mobile Menu Styles */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 55.5vh;
        width: 80%;
        max-width: 400px;
        background: #F1F1FF;
        flex-direction: column;
        justify-content: flex-start;
        padding: 96px 14px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1150;
        overflow-y: auto;
        display: block;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        padding: 94px 16px;
        gap: 30px;
        height: 371px;
    }

    .main-nav .menu-list,
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-top: 20px;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a:not(.btn-primary) {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;

        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px;

    }

    .main-nav a:not(.btn-primary):last-of-type {
        border-bottom: none;
    }

    .main-nav .btn-primary {
        display: flex;
        height: 55px;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        gap: 20px;
        align-self: stretch;
        border-radius: 3px;
        font-size: 18px !important;
        font-style: normal;
        font-weight: 400;
        line-height: 28px;
    }

    .info-content .container {
        padding: 10px;
    }

    .faq-tabs {
        gap: 10px !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        font-family: Museo Sans !important;
        font-weight: 400 !important;
        font-style: 500 !important;
        font-size: 16px !important;
        line-height: 28px !important;
        letter-spacing: 0%;
    }

    .faq-tab {
        padding: 12px 0px !important;
    }

    .faq-tab-title {
        padding: 0px 0px 30px !important;
        display: inline-block !important;
    }

    .faq-tab.active {
        border-left: none !important;
        border-bottom: 1px solid #b7049a !important;
    }

    .faq-question-title {
        padding-bottom: 10px;
    }

    .info-bg2 {
        flex-direction: column;
        padding: 30px 30px 0 30px !important;
        min-height: auto;
        align-items: flex-start;
        max-width: 428px;
        margin: 0 auto;
        width: 100%;
    }

    .info-bg2-text {
        font-weight: 400 !important;
        font-size: 30px !important;
        line-height: 42px !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 0;
    }

    /* Ocultar imagen desktop en mobile */
    .info-bg2-trama--desktop {
        display: none !important;
    }

    /* Mostrar imagen mobile */
    .info-bg2-trama--mobile {
        display: block !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 428px !important;
        /*height: 150px !important;*/
        object-fit: cover !important;
        object-position: center top !important;
        margin-top: 20px !important;
    }

    .archive-title {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .mobile-menu-toggle {
        background-color: #EBEBFF;
        padding: 5px;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        flex-shrink: 0;
        background: #242677;
    }

    .mobile-menu-toggle.active span {
        background: #EBEBFF !important;
    }

}

/* Tablet Portrait (768px) - Extending existing */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
    }

    .hero-banner-movile {
        display: none !important;
    }

    .hero-lottie {
        width: 100%;
        height: 100%;
    }

    .filters-pc {
        display: block !important;
    }

    .filters-movil {
        display: none !important;
    }

    .stat-card {
        width: calc(33.33% - 8px);
        padding: 15px 8px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 14px;
        line-height: 20px;
    }

    .courses-section {
        padding: 30px 20px 50px;
    }

    .section-title {
        font-size: 32px;
        line-height: 42px;
    }

    .featured-course-title {
        font-size: 28px;
        line-height: 36px;
    }

    .featured-course-description {
        font-size: 18px;
        line-height: 26px;
    }

    .course-card {
        width: 100%;
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .course-image-wrapper {
        height: 220px;
    }

    .course-image {
        height: 220px;
    }

    .course-content {
        height: auto;
        padding: 20px 16px;
    }

    .course-title {
        width: 100%;
        min-height: auto;
        font-size: 20px;
        line-height: 28px;
    }

    .detail-item {
        width: 100%;
    }

    .btn-view-all {
        width: 100%;
        max-width: 300px;
    }

    .archive-hero {
        padding: 30px 20px;
    }

    .footer-top {
        height: auto;
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        width: 100%;
        align-items: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .btn-primary {
        display: flex;
        height: 55px;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        gap: 20px;
        align-self: stretch;
        box-sizing: border-box;
        border-radius: 3px;
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
    }

    .btn-primary>span {
        display: inline-block;
        line-height: 1;
    }

    .btn-primary svg {
        display: block;
    }

}

/* Mobile Large (576px) */
@media (max-width: 576px) {
    .main-header {
        padding: 15px 30px;
    }

    .logo {
        height: 74px;
    }

    .info-bg2 {
        min-height: auto;
    }

    .single-course-section {
        padding: 50px 30px !important;
    }

    .btn-view-all {
        width: 100% !important;
    }

    .course-main-content {
        padding: 0 !important;
    }

    .div-margin-right-detail {
        margin-bottom: 21px;
    }

    .info-faq {
        margin-bottom: 0px !important;
        padding: 30px 30px 50px !important;
    }

    .filters-movile {
        display: flex;
        padding: 30px 0px 0px 30px;
        align-items: flex-start;
        gap: 16px;
        align-self: stretch;
    }

    .filters-movile .course-type-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 0px;
        margin: 0 0px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .filters-pc {
        display: none !important;
    }

    .course-details-sidebar h3 {
        font-size: 28px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 46px !important;
    }

    .course-details-sidebar h3::before {
        width: 100% !important;
    }

    .hero-banner {
        display: none !important;
    }

    .hero-banner-movile {
        display: block !important;
        height: 264px;
    }

    .hero-lottie {
        width: 100%;
        height: 100%;
    }

    .stats-section {
        padding: 50px 30px 0;
    }

    .stat-card {
        padding: 26px 6px;
        margin: 0 !important;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .courses-section {
        padding: 30px 30px 50px;
        gap: 40px;
    }

    .section-title {
        font-size: 28px;
        line-height: 36px;
    }

    .featured-course-content {
        padding: 70px 0 0;
    }

    .featured-course-title {
        font-size: 24px;
        line-height: 32px;
        padding-top: 25px;
    }

    .featured-course-image {
        min-height: 408px;
    }


    .featured-course-image img {
        height: 100%;
    }

    .featured-course-title::before {
        width: 200px;
        height: 8px;
    }

    .featured-course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: auto;
    }

    .featured-course-description {
        font-size: 16px;
        line-height: 24px;
        height: auto;
    }

    .featured-course-actions {
        margin-top: 15px;
    }

    .course-card {
        max-width: 100%;
        padding-bottom: 0;
    }

    .course-image-wrapper {
        height: 220px;

    }

    .course-image {
        height: 200px;
    }

    .course-content {
        padding: 15px;
    }

    .courses-grid {
        gap: 50px !important;
    }

    .course-title {
        font-size: 18px;
        line-height: 26px;
    }

    .btn-primary,
    .btn-secondary {
        height: 48px;
        font-size: 15px;
        padding: 0 15px;

    }

    .archive-hero {
        padding: 20px 30px;
    }

    .archive-title {
        font-size: 24px !important;
    }

    .breadcrumb {
        font-size: 16px;
    }

    .course-type-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 10px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .course-type-filters::-webkit-scrollbar {
        display: none;
    }

    .course-type-filters {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .course-type-btn {
        display: flex;
        width: 220px;
        height: 50px;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 3px;
    }

    .pagination a,
    .pagination span {
        width: 40px;
        height: 40px;
        font-size: 14px;

        display: flex;
        justify-content: center;
        gap: 16px;
    }

    .btn-primary,
    .btn-secondary {
        display: flex;
        height: 55px;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        gap: 20px;
        align-self: stretch;
        border-radius: 3px;
    }


    .faq-question-title {
        padding-bottom: 40px;
    }

    .botonesfiltros .btn-filter,
    .botonesfiltros .btn-clean {
        display: flex;
        height: 50px;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex: 1 0 0;
    }


    .faq-item {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .faq-question {
        display: flex !important;
        /* ARREGLO */
        justify-content: space-between !important;
        /* ARREGLO */
        align-items: center !important;
        /* ARREGLO */
        height: 80px !important;
        /* ARREGLO */
        padding: 0 30px !important;
        /* ARREGLO */
        align-self: stretch !important;
        /* ARREGLO */
        background: #F7F7F7 !important;
        /* ARREGLO */
        width: 100% !important;
        border: none !important;
        cursor: pointer !important;
        gap: 16px !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        line-height: 24px !important;
        letter-spacing: 0 !important;
        color: #40495A !important;
        text-align: left !important;
        transition: color .2s ease !important;
    }

    .faq-question__label {
        flex: 1;
        /* ARREGLO: empuja el ícono a la derecha */
        margin-right: 16px !important;
        overflow: hidden !important;
        /* evita desborde */
        display: -webkit-box !important;
        /* clamping opcional */
        -webkit-line-clamp: 2 !important;
        /* máx 2 líneas dentro de 80px */
        -webkit-box-orient: vertical !important;
    }

    .faq-question svg {
        flex-shrink: 0 !important;
        color: #B7049A !important;
        transition: transform .2s ease !important;
    }

    .courses-filters {
        background: white;
        padding: 0;
        border-radius: 0;
        margin-bottom: 15px;
    }

    .faq-tabs {
        display: flex !important;
        height: 49px !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        flex-shrink: 0 !important;
        align-self: stretch !important;

    }

    .faq-tab {
        width: 115px !important;
        height: 60px !important;
    }

    .faq-tab.active {
        width: 115px !important;
        border-bottom: 4px solid #B7049A !important;
        height: 60px !important;
    }

    .desktop {
        display: none !important;
    }

    .mobile {
        display: flex !important;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .hero-banner {
        display: none !important;
    }

    .hero-banner-movile {
        display: block !important;
    }

    .wp-block-media-text.is-stacked-on-mobile {
        display: contents !important;
    }

    .wp-block-media-text>.wp-block-media-text__media {
        width: 100% !important;
    }

    .wp-block-media-text__content {
        width: 100% !important;
    }

    .hero-lottie {
        width: 100%;
        height: 100%;
    }

    .stat-number {
        font-size: 50px;
    }

    .stat-label {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .section-title {
        font-weight: 400;
        font-size: 40px;
        line-height: 50px;
    }

    .featured-course-title {
        font-size: 20px;
        line-height: 28px;
    }

    .featured-course-image img {
        height: 100%;
    }

    .course-title {
        font-size: 16px;
        line-height: 24px;
    }

    .detail-item {
        font-size: 14px;
        line-height: 22px;
    }

    .btn-primary,
    .btn-secondary {
        height: 55px;
        font-size: 16px;
        padding: 0 16px;
        justify-content: center;
        gap: 10px;
        border-radius: 3px;
    }


    .course-type-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .desktop {
        display: none !important;
    }

    .mobile {
        display: flex !important;
    }

    .course-type-btn {
        display: flex;
        width: 220px;
        height: 50px;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 3px;
    }

    .course-actions {
        gap: 5px;
    }


}