.breadcrumb-wrapper .page-heading {
    padding: 60px 0 5px;
}

/* POWER BY TAM: tamano de letra base +2pt solo en paginas de Media */
.index-media-page,
.muestra-media-page,
.queesvalientes-media-page,
.pilaresmat-media-page,
.pilareslen-media-page,
.pilarescsociales-media-page,
.pilarescnaturales-media-page {
    font-size: 18px;
}

.section-padding-valientes {
    padding: 20px 0;
}

/* POWER BY TAM: portadas cliqueables del carrusel "Nuestras portadas" que ya
   tienen webpack real cargado en muestras.json — el <a> debe comportarse
   como bloque para no colapsar la altura de la imagen. */
.index-media-page .team-items .team-image > a {
    display: block;
}

/* POWER BY TAM: divisores ondulados propios de index.html entre secciones de distinto color.
   El background-color del divisor = color de la seccion SUPERIOR (se ve por la cresta transparente
   del SVG); el fill del SVG = color de la seccion INFERIOR. Asi la transicion es limpia. */
.media-wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.media-wave-divider img {
    display: block;
    width: 100%;
    height: 80px;
}

.media-wave-divider--hero img {
    height: 55px;
}

/* Color de la seccion superior de cada transicion */
.media-wave-divider--from-beige {
    background-color: #e7edf4;
}

.media-wave-divider--from-white {
    background-color: #ffffff;
}

.media-wave-divider--from-portadas {
    background-color: #e7edf4;
}

/* POWER BY TAM: la ola bajo el hero se superpone al banner para que la zona
   transparente de arriba muestre el degradado del hero y no una franja blanca. */
.media-wave-divider--hero-overlap {
    margin-top: -55px;
    z-index: 3;
}

@media (max-width: 767px) {
    .media-wave-divider img {
        height: 40px;
    }
    .media-wave-divider--hero img {
        height: 30px;
    }
    .media-wave-divider--hero-overlap {
        margin-top: -30px;
    }
}

/* POWER BY TAM: la franja ondulada del fondo del footer usa nuestra ola suave
   en lugar de la ola exagerada del template (solo muestra media; en index.html
   se volvio al f-bottom-shape por defecto del template, igual que en
   queesvalientes_media.html, porque el override se veia roto — 2026-07-23). */
.muestra-media-page .footer-bottom .f-bottom-shape {
    -webkit-mask: none;
    mask: none;
    background-color: transparent;
    background-image: url('assets/img/media-waves/wave-footer-bottom.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    height: 100%;
}

/* Ocultar la imagen de ola del template que venia dentro del shape. */
.muestra-media-page .footer-bottom .f-bottom-shape img {
    display: none;
}

/* POWER BY TAM: mas aire para que el texto del copyright respire dentro
   de la banda celeste ondulada del footer. */
.muestra-media-page .footer-bottom .footer-wrapper {
    padding-top: 55px;
    padding-bottom: 22px;
}

/* POWER BY TAM: mas separacion entre las 4 columnas de ejes/pilares */
.ejes-cuatro-pilares {
    row-gap: 50px;
}

.ejes-cuatro-pilares > [class*="col-"] {
    padding-left: 24px;
    padding-right: 24px;
}

.ejes-cuatro-pilares .work-process-items .content h4 {
    margin-bottom: 16px;
}

.muestra-media-tabs-section {
    padding-bottom: 100px;
}

.about-wrapper-3 .about-content .about-author .author-icon {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-wrapper-3 .about-content .about-author .author-icon .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme);
    color: var(--white);
    border-radius: 50%;
    position: relative;
    /* POWER BY TAM: Ajuste para centrar ícono */
}

.about-wrapper-3 .about-content .about-author .author-icon .icon::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--theme);
    content: "";
    transform: translate(-50%, -50%);
}

/* POWER BY TAM: Ajuste de tamaño para íconos de habilidades */
.about-wrapper-3 .about-content .about-author .author-icon .icon i {
    font-size: 26px;
}

.about-wrapper-3 .about-content .about-author .author-icon .content span {
    /* POWER BY TAM: Aumentar legibilidad en títulos cortos */
    font-size: 16px;
    font-weight: 600;
    color: var(--header);
    font-family: "Quicksand", sans-serif;
}

/* POWER BY TAM: Mejora legibilidad de párrafos descriptivos */
.about-wrapper-3 .about-content p {
    font-size: 16px;
    line-height: 1.7;
}

/* Modificadores de color para el ícono circular */
.about-wrapper-3 .about-content .about-author .author-icon--orange .icon {
    /* POWER BY TAM: Prueba color amarillo */
    background-color: var(--amarillo);
}
.about-wrapper-3 .about-content .about-author .author-icon--orange .icon::before {
    border-color: var(--amarillo);
}
.about-wrapper-3 .about-content .about-author .author-icon--blue .icon {
    /* POWER BY TAM: Prueba color celeste */
    background-color: var(--celeste);
}
.about-wrapper-3 .about-content .about-author .author-icon--blue .icon::before {
    border-color: var(--celeste);
}
.about-wrapper-3 .about-content .about-author .author-icon--teal .icon {
    /* POWER BY TAM: Prueba color morado */
    background-color: var(--morado);
}
.about-wrapper-3 .about-content .about-author .author-icon--teal .icon::before {
    border-color: var(--morado);
}

/* POWER BY TAM: Variante subtítulo educación financiera sin borde */
.about-wrapper-3 .about-content .about-author--subtitle {
    margin-top: 30px;
    border-top: none;
    padding-top: 0;
}
.about-wrapper-3 .about-content .about-author--subtitle .author-icon {
    margin-top: 0;
}

/* POWER BY TAM: En index.html y queesvalientes_media.html el color base del tema pasa a azul-media. */
.index-media-page,
.queesvalientes-media-page {
    --theme: var(--azul-media);
}

/* POWER BY TAM: Controles azul-media específicos de cabecera (slides y scroll). */
.index-media-page .array-button .array-prev,
.index-media-page .array-button .array-next,
.index-media-page .footer-bottom .scroll-icon {
    background-color: var(--azul-media);
    color: var(--white);
}

.index-media-page .array-button .array-prev:hover,
.index-media-page .array-button .array-next:hover,
.index-media-page .footer-bottom .scroll-icon:hover {
    background-color: #285e87;
    color: var(--white);
}

/* POWER BY TAM: En Portadas de media, el prev vuelve a su estado blanco original. */
.index-media-page .team-section .array-button .array-prev {
    background-color: var(--white);
    color: var(--header);
    border: 2px solid var(--white);
}

.index-media-page .team-section .array-button .array-prev:hover {
    background-color: var(--azul-media);
    color: var(--white);
}

/* POWER BY TAM: Forzar los íconos SVG del footer a azul-media. */
.index-media-page .contact-info-area .icon svg,
.index-media-page .contact-info-area .icon svg path,
.queesvalientes-media-page .contact-info-area .icon svg,
.queesvalientes-media-page .contact-info-area .icon svg path {
    fill: var(--azul-media) !important;
}

/* POWER BY TAM: El halo del video del hero usa el amarillo del acento "Valientes". */
.index-media-page .hero-1 .hero-content .hero-button .video-btn {
    background-color: var(--hero-media-accent);
    color: #385469;
}

.index-media-page .hero-1 .hero-content .hero-button .video-btn::before {
    border-color: var(--hero-media-accent);
}

.index-media-page .hero-1 .hero-content .hero-button .video-btn.ripple::before,
.index-media-page .hero-1 .hero-content .hero-button .video-btn.ripple::after {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.6);
}

/* POWER BY TAM: El boton "Inicia la experiencia Media" usa el mismo amarillo del acento. */
.index-media-page .hero-1 .hero-content .hero-button .theme-btn--hero-accent {
    background-color: var(--hero-media-accent);
    color: #385469;
}

.index-media-page .hero-1 .hero-content .hero-button .theme-btn--hero-accent::before,
.index-media-page .hero-1 .hero-content .hero-button .theme-btn--hero-accent::after {
    background-color: #f0b93d;
}

.index-media-page .hero-1 .hero-content .hero-button .theme-btn--hero-accent:hover {
    color: #385469;
}

/* POWER BY TAM: La portada del hero en cabecera ocupa toda la franja sin deformarse. */
.index-media-page .hero-1 {
    min-height: 640px;
    overflow: hidden;
}

/* POWER BY TAM: mas aire entre los botones del hero y la ola de abajo. */
.index-media-page .hero-1 .hero-content .hero-button {
    margin-bottom: 50px;
}

/* ===== POWER BY TAM: Banner en capas del hero de cabecera ===== */

/* Contenedor de todas las capas de fondo. */
.index-media-page .hero-media-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Capa 1: area de la foto (carrusel), confinada al ~45% derecho. */
.index-media-page .hero-media-photo-area {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    overflow: hidden;
}

.index-media-page .hero-media-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.index-media-page .hero-media-slider .swiper-wrapper {
    height: 100%;
}

.index-media-page .hero-media-slider .swiper-slide {
    height: 100%;
}

.index-media-page .hero-media-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Capa 2: degradado azul-media -> morado que cubre la izquierda y se funde
   suavemente con la foto (velo) en el encuentro con el area derecha.
   POWER BY TAM: arranca en --azul-media (#2f6f9f), el mismo azul de los
   botones/footer, e interpola hacia el morado pleno original (#5b62e0 en
   44%) para que la transicion sea continua y no un salto de color. */
.index-media-page .hero-media-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg,
            #2f6f9f 0%,
            #4568c0 22%,
            #5364d4 36%,
            #5b62e0 44%,
            rgba(91, 98, 224, 0.9) 52%,
            rgba(97, 104, 227, 0.78) 60%,
            rgba(107, 114, 231, 0.6) 68%,
            rgba(123, 130, 236, 0.42) 76%,
            rgba(145, 152, 240, 0.26) 84%,
            rgba(175, 182, 245, 0.12) 92%,
            rgba(255, 255, 255, 0) 100%);
}

/* Capa 3: detalles decorativos por CSS. */
.index-media-page .hero-media-details {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Circulos punteados de distintos tamanos, agrupados. */
.index-media-page .hero-media-dots {
    position: absolute;
    border-radius: 50%;
    border: 2px dotted rgba(255, 255, 255, 0.4);
}

.index-media-page .hero-media-dots::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px dotted rgba(255, 255, 255, 0.28);
}

/* Grupo arriba (cerca del borde de la foto). */
.index-media-page .hero-media-dots--tl {
    top: -70px;
    left: 34%;
    width: 200px;
    height: 200px;
}

.index-media-page .hero-media-dots--tl::before {
    inset: 42px;
}

/* Grupo abajo a la izquierda. */
.index-media-page .hero-media-dots--bl {
    bottom: -80px;
    left: -70px;
    width: 240px;
    height: 240px;
}

.index-media-page .hero-media-dots--bl::before {
    inset: 55px;
}

/* Rombo/diamante decorativo arriba a la izquierda. */
.index-media-page .hero-media-diamond {
    position: absolute;
    top: 26%;
    left: 6%;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
}

.index-media-page .hero-media-diamond::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px solid rgba(255, 255, 255, 0.28);
}

/* Estrella/destello amarillo. Reubicada fuera del bloque de texto para que no
   quede encima del parrafo ni estorbe la lectura. */
.index-media-page .hero-media-star {
    position: absolute;
    top: 8%;
    left: 44%;
    width: 30px;
    height: 30px;
    background-color: var(--hero-media-accent, #ffd166);
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}

.index-media-page .hero-1 .container {
    position: relative;
    z-index: 2;
}

/* POWER BY TAM: Texto exclusivo del hero de cabecera para ganar contraste
   sin afectar otros banners del sitio. */
.index-media-page .hero-media-banner .hero-content {
    --hero-media-text: #f7fbff;
    --hero-media-text-soft: rgba(247, 251, 255, 0.92);
    --hero-media-accent: #ffd166;
    margin-top: clamp(0px, 8vw, 90px);
}

.index-media-page .hero-media-banner .hero-content h5,
.index-media-page .hero-media-banner .hero-content h1,
.index-media-page .hero-media-banner .hero-content p {
    text-shadow: 0 2px 14px rgba(12, 29, 48, 0.28);
}

.index-media-page .hero-media-banner .hero-content h5,
.index-media-page .hero-media-banner .hero-content h1,
.index-media-page .hero-media-banner .hero-content h1 span,
.index-media-page .hero-media-banner .hero-content p {
    color: var(--hero-media-text);
}

.index-media-page .hero-media-banner .hero-content p {
    color: var(--hero-media-text-soft);
}

.index-media-page .hero-media-banner .hero-content .hero-title-accent {
    color: var(--hero-media-accent);
}

/* POWER BY TAM: "Valientes" queda grande en su propia linea; "Una vida por
   explorar" baja de tamano para caber en una sola linea sin partirse en dos. */
.index-media-page .hero-media-banner .hero-content h1 {
    font-size: clamp(34px, 4.2vw, 60px);
}

.index-media-page .hero-media-banner .hero-content h1 .hero-subtitle {
    display: block;
    font-size: clamp(22px, 2.4vw, 34px);
    white-space: nowrap;
}

/* POWER BY TAM: "Ver Video" en blanco, ya que el azul por defecto no contrasta
   sobre el fondo morado del banner. Se fuerza una sola linea y se amplia el
   ancho de la columna de texto para que el boton tenga espacio al achicarse. */
.index-media-page .hero-media-banner .hero-content .hero-button .button-text span {
    color: var(--hero-media-text);
}

.index-media-page .hero-media-banner .hero-content .hero-button .button-text {
    white-space: nowrap;
}

@media (min-width: 992px) {
    .index-media-page .hero-1 .row > [class*="col-lg-"] {
        flex: 0 0 auto;
        width: 58%;
    }
}

/* POWER BY TAM: El divisor del footer también se homologa a azul-media en esta página. */
.index-media-page .section-with-media-divider .media-divider::before {
    background:
        linear-gradient(90deg, rgba(56, 84, 105, 0) 0%, rgba(56, 84, 105, 0.24) 18%, rgba(56, 84, 105, 0.24) 82%, rgba(56, 84, 105, 0) 100%) top center / 100% 1px no-repeat,
        linear-gradient(90deg, rgba(112, 166, 177, 0) 0%, rgba(112, 166, 177, 0.42) 12%, rgba(112, 166, 177, 0.42) 88%, rgba(112, 166, 177, 0) 100%) center / 100% 2px no-repeat,
        linear-gradient(90deg, rgba(47, 111, 159, 0) 0%, rgba(47, 111, 159, 0.18) 20%, rgba(47, 111, 159, 0.18) 80%, rgba(47, 111, 159, 0) 100%) bottom center / 100% 1px no-repeat;
}

/* POWER BY TAM: Media usa su propia capa visual en azul-media sin tocar otras páginas. */
.muestra-media-page {
    --theme: var(--azul-media);
}

/* muestras-media.html: Inicio/Proyecto/Pilares se ocultan del menú; solo "Muestra Media" es navegable. */
.muestra-media-page .main-menu .menu-disabled {
    display: none !important;
}

/* muestras-media.html: el tab de una asignatura sin ningún webpack real cargado queda deshabilitado. */
.muestra-media-page .nav-link.nav-link--disabled,
.muestra-media-page .nav-link.nav-link--disabled.active {
    background-color: var(--white) !important;
    color: #b6b6b6 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.6;
}

.muestra-media-page .theme-btn,
.muestra-media-page .theme-btn--blue-media,
.pilaresmat-media-page .theme-btn,
.pilaresmat-media-page .theme-btn--blue-media,
.pilareslen-media-page .theme-btn,
.pilareslen-media-page .theme-btn--blue-media,
.pilarescsociales-media-page .theme-btn,
.pilarescsociales-media-page .theme-btn--blue-media,
.pilarescnaturales-media-page .theme-btn,
.pilarescnaturales-media-page .theme-btn--blue-media,
.queesvalientes-media-page .theme-btn,
.queesvalientes-media-page .theme-btn--blue-media {
    background-color: var(--azul-media);
    color: var(--white);
}

.muestra-media-page .theme-btn::before,
.muestra-media-page .theme-btn::after,
.muestra-media-page .theme-btn--blue-media::before,
.muestra-media-page .theme-btn--blue-media::after,
.pilaresmat-media-page .theme-btn::before,
.pilaresmat-media-page .theme-btn::after,
.pilaresmat-media-page .theme-btn--blue-media::before,
.pilaresmat-media-page .theme-btn--blue-media::after,
.pilareslen-media-page .theme-btn::before,
.pilareslen-media-page .theme-btn::after,
.pilareslen-media-page .theme-btn--blue-media::before,
.pilareslen-media-page .theme-btn--blue-media::after,
.pilarescsociales-media-page .theme-btn::before,
.pilarescsociales-media-page .theme-btn::after,
.pilarescsociales-media-page .theme-btn--blue-media::before,
.pilarescsociales-media-page .theme-btn--blue-media::after,
.pilarescnaturales-media-page .theme-btn::before,
.pilarescnaturales-media-page .theme-btn::after,
.pilarescnaturales-media-page .theme-btn--blue-media::before,
.pilarescnaturales-media-page .theme-btn--blue-media::after,
.queesvalientes-media-page .theme-btn::before,
.queesvalientes-media-page .theme-btn::after,
.queesvalientes-media-page .theme-btn--blue-media::before,
.queesvalientes-media-page .theme-btn--blue-media::after {
    background-color: #25597d;
}

.muestra-media-page .theme-btn:hover,
.muestra-media-page .theme-btn--blue-media:hover,
.pilaresmat-media-page .theme-btn:hover,
.pilaresmat-media-page .theme-btn--blue-media:hover,
.pilareslen-media-page .theme-btn:hover,
.pilareslen-media-page .theme-btn--blue-media:hover,
.pilarescsociales-media-page .theme-btn:hover,
.pilarescsociales-media-page .theme-btn--blue-media:hover,
.pilarescnaturales-media-page .theme-btn:hover,
.pilarescnaturales-media-page .theme-btn--blue-media:hover,
.queesvalientes-media-page .theme-btn:hover,
.queesvalientes-media-page .theme-btn--blue-media:hover {
    color: var(--white);
}

.muestra-media-page .array-button .array-prev,
.muestra-media-page .array-button .array-next,
.muestra-media-page .footer-bottom .scroll-icon {
    background-color: var(--azul-media);
    color: var(--white);
}

.muestra-media-page .array-button .array-prev:hover,
.muestra-media-page .array-button .array-next:hover,
.muestra-media-page .footer-bottom .scroll-icon:hover {
    background-color: #285e87;
    color: var(--white);
}

.muestra-media-page .breadcrumb-wrapper .page-heading h1,
.muestra-media-page .breadcrumb-wrapper .page-heading .breadcrumb-items,
.muestra-media-page .breadcrumb-wrapper .page-heading .breadcrumb-items a,
.muestra-media-page .breadcrumb-wrapper .page-heading .breadcrumb-items i,
.muestra-media-page .breadcrumb-wrapper .page-heading .breadcrumb-items li {
    color: var(--azul-media) !important;
}

.muestra-media-page .contact-info-area .icon svg,
.muestra-media-page .contact-info-area .icon svg path {
    fill: var(--azul-media) !important;
}

.muestra-media-page .section-title--media {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.muestra-media-page .section-title--media span,
.muestra-media-page .section-title--media h3 {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.muestra-media-page .section-title--media h3 {
    margin-top: -12px;
}

/* POWER BY TAM: Separador visual a ancho completo entre la propuesta base y la sección siguiente. */
.about-section .media-divider--full,
.media-divider--full {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    height: 42px;
    margin: 34px 0 86px;
    transform: translateX(-50%);
    pointer-events: none;
}

.about-section .media-divider--full::before,
.media-divider--full::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(56, 84, 105, 0) 0%, rgba(56, 84, 105, 0.24) 18%, rgba(56, 84, 105, 0.24) 82%, rgba(56, 84, 105, 0) 100%) top center / 100% 1px no-repeat,
        linear-gradient(90deg, rgba(112, 166, 177, 0) 0%, rgba(112, 166, 177, 0.42) 12%, rgba(112, 166, 177, 0.42) 88%, rgba(112, 166, 177, 0) 100%) center / 100% 2px no-repeat,
        linear-gradient(90deg, rgba(47, 111, 159, 0) 0%, rgba(47, 111, 159, 0.18) 20%, rgba(47, 111, 159, 0.18) 80%, rgba(47, 111, 159, 0) 100%) bottom center / 100% 1px no-repeat;
}

.hero-button {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.hero-section.hero-2 {
    position: relative;
    overflow: hidden;
}

.hero-section.hero-2 .circle-shape {
    top: var(--circle-top, 30%);
    right: var(--circle-right, 15%);
    bottom: var(--circle-bottom, auto);
    left: var(--circle-left, auto);
}

.queesvalientes-page .hero-section.hero-2 {
    background-color: #385469;
    color: #f7f4f0;
}

.queesvalientes-page .hero-section.hero-2 .hero-content h5,
.queesvalientes-page .hero-section.hero-2 .hero-content h1,
.queesvalientes-page .hero-section.hero-2 .hero-content p {
    color: #f7f4f0;
}

.queesvalientes-page .hero-section.hero-2 .hero-content h1 span {
    color: #f7c768;
}

.queesvalientes-page .hero-section.hero-2 .hero-button .button-text .d-line {
    color: #f7f4f0;
}

.queesvalientes-page .hero-section.hero-2 .hero-image {
    position: relative;
}

.queesvalientes-page .hero-section.hero-2 .hero-image::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 40%, #ffd298 0%, rgba(250, 130, 76, 0.95) 55%, rgba(242, 75, 106, 0.9) 100%);
    border-radius: 50%;
    z-index: -1;
}

.right-shape img.shape-size-control {
    width: var(--right-shape-width, auto);
    max-width: var(--right-shape-max-width, 100%);
    height: var(--right-shape-height, auto);
}

.section-bg-valientes-beige{
    background-color: var(--bg);
}

#parvulo .team-section-4 .row {
    justify-content: center;
}

/* POWER BY TAM: CENTRA LAS GRILLAS DE CIENCIAS NATURALES Y SOCIALES PARA ALINEAR CON PÁRVULO. */
#cnaturales .team-section-4 .row,
#csociales .team-section-4 .row {
    justify-content: center;
}

/* POWER BY TAM: REPLICA EL ESTILO DEL H3 PRINCIPAL PARA LOS MENSAJES DE ESTADO VACÍOS. */
.status-message h3 {
    font-size: 30px;
    color: #0888b7;
    margin: 0;
}

#parvulo .section-title {
    text-align: center;
}
#matematica .section-title {
    text-align: center;
}
#lenguaje .section-title {
    text-align: center;
}
#cnaturales .section-title {
    text-align: center;
}
#csociales .section-title {
    text-align: center;
}
#nsciences .section-title {
    text-align: center;
}
#ssciences .section-title {
    text-align: center;
}


.section-padding {
    padding: 90px 0;
}

.section-bg-2 {
    background-color: #f4eee5;
}

.personajes-gradient {
    background: linear-gradient(180deg, #53c9f4 0%, #ffffff 50%);
}

/* Fix shapes borde a borde en section */
.program-section { position: relative; overflow: hidden; }

.program-section .top-shape,
.program-section .bottom-shape {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: 1;
}

.program-section .top-shape { top: 0; }
.program-section .bottom-shape { bottom: 0; }

.program-section .top-shape img,
.program-section .bottom-shape img {
  display: block;
  width: 100%;
  height: auto;
}

/* POWER BY TAM: Colores diferenciados para “Ser valientes…” y “Ejes del proyecto”. */
.section-brave {
    position: relative;
    background-color: #edf3f4;
}

.section-brave .bottom-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.section-brave .bottom-shape img {
    position: relative;
    display: block;
    width: 100%;
    top: var(--brave-bottom-shape-top, -70px);
}

.section-brave .bottom-shape img.bottom-shape-img--brave {
    top: -70px;
}

.section-axis {
    background-color: color-mix(in srgb, #dadffd 40%, #ffffff);
    position: relative;
    overflow: visible;
    padding-top: 60px;
}

.section-axis .top-shape {
    left: 0;
    transform: none;
    width: 100%;
}

/* POWER BY TAM: Base de nuestra propuesta en tres columnas, alineada con la maqueta. */
.base-propuesta-section .section-title {
    max-width: 980px;
    margin: 0 auto 30px;
}

.base-propuesta-section .section-title p {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.base-propuesta-section {
    position: relative;
    overflow: hidden;
    background-color: #e7edf4;
    padding-bottom: 70px;
}

.base-propuesta-section .process-work-wrapper {
    padding-top: 45px;
}

.base-propuesta-section .base-propuesta-item .icon {
    width: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.base-propuesta-section .base-propuesta-item .icon img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.base-propuesta-section .base-propuesta-item .content h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.base-propuesta-section .base-propuesta-item .content p {
    max-width: 380px;
    margin: 0 auto;
}

/* POWER BY TAM: Ajuste visual puntual para las imágenes de la cabecera.
   Las imagenes ya traen su marco decorativo, por eso NO se recortan (contain). */
.cabecera-media-image {
    width: 100%;
    max-width: 560px;
}

.cabecera-media-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* POWER BY TAM: Más aire entre Base de nuestra propuesta y los bloques informativos. */
.cabecera-info-section {
    position: relative;
    overflow: visible;
    margin-top: 50px;
    padding-top: 20px;
}

.cabecera-info-section--reverse {
    margin-top: 24px;
}

/* POWER BY TAM: Ajuste de legibilidad y caja de texto en estudiante/docente. */
.cabecera-info-section .about-content {
    max-width: 560px;
}

.cabecera-info-section .about-content .section-title h2 {
    font-size: 54px;
}

.cabecera-info-section .about-content p {
    font-size: 19px;
    line-height: 1.8;
}

/* POWER BY TAM: Forzamos ancho consistente en los íconos de los ejes del proyecto. */
.service-wrapper .service-right .icon-items .icon {
    flex: 0 0 90px;
    min-width: 90px;
    max-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* micro-fix para evitar línea blanca a la derecha */
@media (min-width: 0px) {
  .program-section .top-shape,
  .program-section .bottom-shape {
    width: calc(100vw + 2px);
  }
}

/* Fix shape borde a borde en footer */
.footer-section { position: relative; overflow: hidden; }

.top-shape {
  position: absolute;
  top: var(--top-shape-top, 0);
  left: 50%;
  transform: translateX(-50%);
  width: var(--top-shape-width, 100vw);
  pointer-events: none;
  z-index: 1;
}

.top-shape img {
  width: 100%;
  height: auto;
  display: block;
}

.top-shape img {
  display: block;
  width: 100%;
  height: auto;
}

/* micro-fix para evitar línea blanca a la derecha */
@media (min-width: 0px) {
  .top-shape {
    width: calc(100vw + 2px);
  }
}

/* power by tam | estilos personajes */
/* power by tam | Fija la forma inferior justo al final del bloque naranja. */
.characters-hero {
    position: relative;
    color: #fff;
    overflow-x: visible;
    overflow-y: visible;
}
.characters-hero .clases-shape {
    pointer-events: none;
    z-index: 0;
}
.characters-hero .clases-shape .wave {
    z-index: 0;
}
.characters-hero .bottom-shape {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100vw + 2px);
    pointer-events: none;
    z-index: 1;
}
.characters-hero .bottom-shape img {
    display: block;
    width: 100%;
    height: auto;
}
.personajes-hero.section-padding {
    padding-top: clamp(100px, 15vw, 190px);
    padding-bottom: clamp(110px, 16vw, 170px);
}
.personajes-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    margin-top: -100px;
    margin-bottom: 65px;
    color: inherit;
}
.personajes-hero__label {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0.9;
}
.personajes-hero__title {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.18;
    font-weight: 700;
    margin: 0;
    color: inherit;
    text-shadow: 0 16px 48px rgba(162, 82, 25, 0.28);
}
.personajes-hero__art {
    margin: clamp(42px, 6vw, 72px) auto 0;
    max-width: 940px;
}
.personajes-hero__art img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* power by tam | top shape wrapper personajes */
.personajes-levels__wrap {
    position: relative;
    padding-top: clamp(60px, 8vw, 120px);
}
.personajes-levels__topshape {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    pointer-events: none;
}
.personajes-levels__topshape img {
    width: 100%;
    display: block;
}

/* power by tam | carrusel personajes */
.characters-carousel {
    position: relative;
    overflow: visible;
}
.characters-swiper {
    padding: 24px 8px 16px;
    box-shadow: none;
    background: transparent;
}
.characters-swiper .swiper-wrapper {
    align-items: stretch;
}
.characters-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-shadow: none;
}
.characters-swiper .swiper-slide > * {
    width: 100%;
}
.characters-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    transform: translateY(-50%);
    pointer-events: none;
    gap: 12px;
    z-index: 3;
}
.characters-nav.is-hidden {
    display: none;
}
.characters-nav-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--theme);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 18px 35px rgba(8, 136, 183, 0.28);
    pointer-events: auto;
}
.characters-nav-btn:hover,
.characters-nav-btn:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(8, 136, 183, 0.36);
}
.characters-nav-btn:disabled {
    opacity: 0.45;
    transform: none;
    box-shadow: none;
    cursor: default;
}

@media (max-width: 991px) {
    .characters-nav {
        padding: 0 6px;
    }
}

@media (max-width: 767px) {
    .characters-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 18px;
        pointer-events: auto;
    }
}

.characters-levels {
    /* power by tam | fondo beige personajes */
    background-color: var(--bg);
}
.characters-level {
    margin-bottom: 4.5rem;
}
.characters-level:last-of-type {
    margin-bottom: 0;
}
.characters-level-header h3 {
    font-size: 30px;
    margin-bottom: 0.75rem;
    color: var(--header);
}
.characters-level-header p {
    font-size: 18px;
    color: var(--header);
    margin-bottom: 0;
}
/* power by tam | tarjetas personajes estilo portada */
.character-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 26px;
    border: 4px solid #ffffff;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.character-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}
.character-thumb img {
    width: calc(100% - 32px);
    height: 260px;
    object-fit: cover;
    margin: 24px auto 20px;
    border-radius: 26px;
    border: 4px solid rgba(117, 93, 167, 0.35);
    box-shadow: 0 18px 40px rgba(117, 93, 167, 0.18);
    display: block;
    background-color: #fff;
}
.character-card h4 {
    font-size: 29px;
    color: var(--header);
    margin: 0 1.75rem 0.85rem;
    font-weight: 700;
    position: relative;
    text-align: center;
}
.character-card h4::after {
    /* power by tam | separador punteado personaje */
    content: "";
    display: block;
    margin: 14px auto 18px;
    width: 72%;
    border-bottom: 2px dotted rgba(117, 93, 167, 0.55);
}
.character-card p {
    font-size: 19px;
    color: var(--header);
    margin: 0 1.75rem;
    line-height: 1.6;
    text-align: center;
}
@media (max-width: 767px) {
    .personajes-hero.section-padding {
        padding-top: 110px;
        padding-bottom: 110px;
    }
    .characters-levels {
        background-color: #fff9f3;
    }
}
@media (max-width: 575px) {
    .personajes-hero__label {
        font-size: 13px;
        letter-spacing: 0.08em;
    }
    .personajes-hero__title {
        font-size: 30px;
    }
}

/* POWER BY TAM: Bloque introductorio de principios claves */
.principios-section .principios-highlight {
    justify-content: center;
}

.principios-section .principios-item {
    max-width: 360px;
    margin: 0 auto;
    padding: 20px 10px;
}

.principios-section .principios-item h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--header);
    margin-bottom: 20px;
}

.principios-section .principios-arrow {
    font-size: 28px;
    color: var(--header);
    margin-bottom: 16px;
}

.principios-section .principios-item p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* POWER BY TAM: Variante para Ciencias Sociales */
.principios-section--csociales .principios-highlight {
    justify-content: center;
    text-align: left;
}

.principios-section--csociales .principios-item {
    max-width: 520px;
    padding: 0 10px;
}

.principios-section--csociales .principios-arrow {
    text-align: center;
    font-size: 28px;
    color: var(--header);
    margin-bottom: 18px;
}

.about-author--csociales {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.about-author--csociales .author-icon {
    gap: 24px;
}

.about-author--csociales .author-icon--orange .icon {
    background-color: var(--amarillo) !important;
    color: var(--white) !important;
}

.about-author--csociales .author-icon--orange .icon::before {
    border-color: var(--amarillo) !important;
}

.about-author--csociales .author-icon--blue .icon {
    background-color: var(--celeste) !important;
    color: var(--white) !important;
}

.about-author--csociales .author-icon--blue .icon::before {
    border-color: var(--celeste) !important;
}

.about-author--csociales .author-icon .icon {
    color: var(--white) !important;
}

.author-icon--cs-description .content span {
    display: inline-block;
    max-width: 240px;
    line-height: 1.4;
}

/* POWER BY TAM: Ajuste vertical para personajes flotantes en pilares ciencias naturales */
.about-section .plane-shape--raised {
    top: -40px !important;
}

.principios-section--csociales .principios-item p {
    margin-bottom: 18px;
}

.principios-section--csociales .principios-item p:last-child {
    margin-bottom: 0;
}

.principios-section--csociales .principios-title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 18px;
    text-transform: uppercase;
    padding: 0;
    background: none;
}

.principios-title--historia,
.principios-title--csociales {
    background: none;
}

/* POWER BY TAM: Leyenda de emociones para sección Peluche */
.peluche-emotions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    justify-content: center;
    margin-bottom: 24px;
}

.peluche-emotions__column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 150px;
}

.peluche-emotions__item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.peluche-emotions__dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 6px var(--peluche-dot-shadow, transparent);
}

.peluche-emotions__dot--alegria {
    background-color: #ffe600;
    --peluche-dot-shadow: rgba(255, 230, 0, 0.25);
}

.peluche-emotions__dot--tristeza {
    background-color: #5ac4f3;
    --peluche-dot-shadow: rgba(90, 196, 243, 0.25);
}

.peluche-emotions__dot--enojo {
    background-color: #ff1c1c;
    --peluche-dot-shadow: rgba(255, 28, 28, 0.25);
}

.peluche-emotions__dot--miedo {
    background-color: #585858;
    --peluche-dot-shadow: rgba(88, 88, 88, 0.25);
}

.peluche-emotions__dot--sorpresa {
    background-color: #ef7a2f;
    --peluche-dot-shadow: rgba(239, 122, 47, 0.25);
}

.peluche-emotions__dot--amor {
    background-color: #f3c4ee;
    --peluche-dot-shadow: rgba(243, 196, 238, 0.25);
}

.peluche-emotions__label {
    font-size: 18px;
    font-weight: 600;
    color: var(--header);
    text-transform: lowercase;
}

/* PORTADA EN ESCALA DE GRISES

/* Siempre en blanco y negro */
.img-bn {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.pronto {
  /* POWER BY TAM: Ubica el badge "Pronto" en la esquina para no tapar la portada. */
  position: absolute;
  top: 74px;
  left: 12px;
  display: inline-block;
  padding: 16px 70px;
  border-radius: 18px;
  background: #d3d1cb;
  color: #2a2e45;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid #ffffff;
  box-shadow: 0 12px 24px rgba(241, 196, 15, 0.2);
}

/* POWER BY TAM: Ajusta el header para que arranque al tope sin mostrar el fondo beige. */
.header-top-section {
    background-color: var(--white);
}

/* POWER BY TAM: Asegura que las nubes del hero se mantengan a ancho completo. */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .top-shape,
.hero-section .bottom-shape {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw + 2px);
    pointer-events: none;
    z-index: 1;
}

.hero-section .top-shape { top: 0; }
.hero-section .bottom-shape { bottom: 0; }

.hero-section .top-shape img,
.hero-section .bottom-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* POWER BY TAM: Replica la corrección de borde a borde para la sección de personajes. */
.team-section {
    position: relative;
    overflow: hidden;
}

.team-section .top-shape {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw + 2px);
    pointer-events: none;
    z-index: 1;
}

.team-section .top-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* POWER BY TAM: Ajuste fluido de las figuras laterales en las pestañas. */
.pricing-section .tab-content {
    position: relative;
    overflow: visible;
}

.pricing-section .tab-content .girl-shape {
    position: absolute;
    right: clamp(-12rem, -10vw, -5rem);
    bottom: clamp(-4rem, -3vw, -1rem);
    max-width: clamp(10rem, 18vw, 13.75rem);
    pointer-events: none;
}

.pricing-section .tab-content .girl2-shape-alt {
    position: absolute;
    left: clamp(-12rem, -10vw, -4rem);
    top: auto;
    bottom: clamp(-18rem, -16vw, -9rem);
    transform: scaleX(-1);
    max-width: clamp(9rem, 16vw, 12.5rem);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 992px) {
    .pricing-section .tab-content .girl-shape,
    .pricing-section .tab-content .girl2-shape-alt {
        display: none;
    }
}

.component-section {
    margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.component-card {
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: stretch;
    background-color: #ffffff;
    border-radius: 24px;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border: 1px solid rgba(8, 136, 183, 0.08);
    box-shadow: 0 18px 40px rgba(8, 136, 183, 0.08);
    height: 100%;
    width: 100%;
}

.component-card__cover {
    position: relative;
    flex: 0 0 clamp(12.6rem, 25.2vw, 16.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-card__cover-trigger {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.component-card__cover img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(8, 136, 183, 0.18);
}

.component-card__options {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.8vw, 1.2rem);
    justify-content: flex-start;
    max-width: 360px;
    align-items: stretch;
}

/* POWER BY TAM: Badge superior opcional para destacar el área dentro de la tarjeta. */
.component-card__badge {
    position: absolute;
    top: -12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #2a2e45;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    box-shadow: 0 12px 24px rgba(8, 136, 183, 0.18);
}

.component-card--soon {
    border-style: dashed;
    border-color: rgba(8, 136, 183, 0.35);
    background: rgba(239, 245, 246, 0.65);
}

.component-card--soon .component-card__option--disabled {
    background-color: rgba(238, 241, 248, 0.9);
    color: #7e8599;
}

.component-card__option {
    display: block;
    width: 100%;
    border: 1px solid #d7dbe8;
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    background-color: #ffffff;
    color: #47516b;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 200ms ease;
}

.component-card__option:not([disabled]):hover,
.component-card__option:not([disabled]):focus-visible {
    border-color: #7267ff;
    color: #2a2e45;
    box-shadow: 0 12px 24px rgba(114, 103, 255, 0.15);
}

.component-card__option--primary {
    /* POWER BY TAM: Usa el azul header (#385469) para empatar con los botones principales. */
    background-color: var(--header);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(56, 84, 105, 0.25);
}

.component-card__option--primary:not([disabled]):hover,
.component-card__option--primary:not([disabled]):focus-visible {
    color: #ffffff;
    border-color: transparent;
}

.component-card__option--disabled,
.component-card__option:disabled {
    background-color: rgba(238, 241, 248, 0.75);
    color: #9aa2b5;
    border-color: #dfe3ee;
    cursor: not-allowed;
    box-shadow: none;
}

.component-card__option:focus-visible,
.component-card__cover-trigger:focus-visible {
    outline: 2px solid #7267ff;
    outline-offset: 3px;
}

/* POWER BY TAM: Ajusta el respiro superior del footer para que quede más próximo al contenido principal. */
footer.footer-section .contact-info-area {
    padding-top: clamp(120px, 18vw, 160px);
}

@media (max-width: 1199px) {
    .component-card__cover {
        flex-basis: clamp(11.2rem, 36vw, 15rem);
    }
}

@media (max-width: 991px) {
    .component-card {
        flex-direction: column;
        text-align: center;
        padding: clamp(1.2rem, 5vw, 1.8rem);
    }

    .component-card__cover {
        flex-basis: auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .component-card__badge {
        position: static;
        margin-bottom: 0.75rem;
    }

    .component-card__options {
        max-width: none;
        width: 100%;
    }
}

/* POWER BY TAM: Devuelve Matemática a una sola columna centrada. */
#matematica .component-section .row {
    justify-content: center;
}

#matematica .component-section .row > div {
    flex: 0 0 100%;
    max-width: 640px;
}
.personajes-levels__wrap {
    position: relative;
    padding-top: clamp(80px, 12vw, 150px);
}
.personajes-levels__topshape {
    position: absolute;
    top: calc(-1 * clamp(95px, 14vw, 165px));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: min(100%, 1280px);
    pointer-events: none;
    z-index: 1;
}
.personajes-levels__topshape img {
    width: 100%;
    display: block;
}
.personajes-intro {
    margin-bottom: clamp(40px, 8vw, 90px);
    text-align: center;
}
.personajes-intro__image,
.personajes-intro__text {
    max-width: clamp(320px, 78vw, 880px);
    margin-left: auto;
    margin-right: auto;
}
.personajes-intro__image img {
    width: 100%;
    border-radius: 38px;
    object-fit: cover;
}
.personajes-intro__text {
    margin-top: clamp(24px, 5vw, 40px);
}
.personajes-intro__text h3 {
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 18px;
    color: #243f60;
}
.personajes-intro__text p {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.7;
    color: #47416b;
    text-align: justify;
}
.personajes-intro__video {
    margin-top: clamp(20px, 4vw, 32px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-left: 600px;
    margin-right: auto;
}
.personajes-intro__video .video-btn {
    background-color: var(--theme);
    color: var(--white);
    display: inline-block;
    font-size: 16px;
    height: 54px;
    width: 54px;
    line-height: 54px;
    border-radius: 50%;
    text-align: center;
    position: relative;
}
.personajes-intro__video .video-btn::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid var(--theme);
    content: "";
    transform: translate(-50%, -50%);
}
.personajes-intro__video span {
    font-size: 18px;
    color: #243f60;
    font-weight: 700;
}
.personajes-intro__text strong {
    color: #36267a;
}
.personajes-intro__eyebrow {
    display: inline-flex;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f05e56;
    margin-bottom: 12px;
}

/* ===== POWER BY TAM: queesvalientes_media.html rediseño (2026-07-22) ===== */

/* Hero "Media": mismo hero-2 del template, solo tipografia del titulo. */
.qm-hero .hero-content .qm-hero__title {
    font-size: clamp(48px, 6vw, 72px);
    color: var(--azul-media);
    margin-bottom: 18px;
}

.qm-hero .hero-content p {
    color: var(--azul-media);
}

/* Fondo blanco liso (el template trae --bg beige por defecto en .hero-2). */
.qm-hero.hero-section.hero-2 {
    background-color: #ffffff;
}

/* Puntos e iconos decorativos mas chicos y discretos, como en la referencia. */
.qm-hero .circle-shape {
    width: 90px;
}

.qm-hero .circle-shape img {
    width: 100%;
    height: auto;
    display: block;
}

.qm-hero .right-shape {
    --right-shape-width: 90px;
}

/* star-shape ahora aloja line.png (ilustracion de linea punteada), mas grande que una estrellita. */
.qm-hero .star-shape {
    width: 200px;
}

.qm-hero .star-shape img {
    width: 100%;
    height: auto;
    display: block;
}

/* Circulo detras de la foto: color solido en vez del naranjo del template. */
.qm-hero .hero-image::before {
    background: #dadffd;
}

/* Hero con slider de banners full-width (2026-07-24), misma idea que index.html:
   el banner (1340x450, fondo blanco con doodles + portadas a la derecha) va como
   capa de fondo y el texto "Media" queda encima, sobre la zona blanca izquierda. */
.qm-hero.qm-hero--banner {
    min-height: clamp(380px, 33vw, 540px);
    display: flex;
    align-items: center;
}

.qm-hero--banner .qm-hero-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.qm-hero--banner .qm-hero-banner-bg .swiper,
.qm-hero--banner .qm-hero-banner-bg .swiper-wrapper,
.qm-hero--banner .qm-hero-banner-bg .swiper-slide {
    height: 100%;
}

.qm-hero--banner .qm-hero-banner-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

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

/* Mini carrusel del hero: alterna la chica (PNG transparente) y la portada (JPG en blob). */
.qm-hero .hero-image .qm-hero-swiper {
    position: relative;
    z-index: 1;
}

.qm-hero .hero-image .qm-hero-swiper .swiper-slide img {
    width: 100%;
    height: auto;
}

/* Portada rectangular (JPG) recortada en blob para integrarse al hero. */
.qm-hero .hero-image .qm-hero-cover {
    border-radius: 58% 42% 45% 55% / 52% 48% 55% 45%;
    object-fit: cover;
}

/* circle.png: capa extra centrada sobre el mismo circulo con degrade (550x540, top:10px, left:-25px). */
.qm-hero .qm-hero-circle {
    position: absolute;
    top: 40px;
    left: 10px;
    width: 480px;
    z-index: -1;
}

.qm-hero .qm-hero-circle img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1199px) {
    .qm-hero .qm-hero-circle {
        display: none;
    }
}

/* Mancha lila de fondo (hero-5.png), como en la referencia. */
.qm-hero .qm-hero-blob {
    position: absolute;
    z-index: 0;
}

.qm-hero .qm-hero-blob img {
    width: 100%;
    height: auto;
    display: block;
}

.qm-hero .qm-hero-blob--bl {
    bottom: 0;
    left: 0;
    width: 380px;
}

@media (max-width: 1199px) {
    .qm-hero .qm-hero-blob {
        display: none;
    }
}

/* Lapiz: reutiliza la posicion de .roket-shape (arriba-izquierda) con su propia proporcion. */
.qm-hero .qm-hero-pencil {
    width: 46px;
}

.qm-hero .qm-hero-pencil img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1199px) {
    .qm-hero .qm-hero-pencil {
        display: none;
    }
}

/* Mochila: elemento nuevo, sin equivalente en el template original. */
.qm-hero .qm-hero-backpack {
    position: absolute;
    left: 20%;
    bottom: 8%;
    width: 36px;
    z-index: 9;
}

.qm-hero .qm-hero-backpack img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1199px) {
    .qm-hero .qm-hero-backpack {
        display: none;
    }
}

/* Tarjetas "Ejes del proyecto": borde suave + icono en circulo degradado por eje. */
.qm-eje-card {
    height: 100%;
    padding: 36px 28px;
    border: 1px solid color-mix(in srgb, var(--eje-color) 18%, transparent);
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--eje-color) 8%, #ffffff), #ffffff 55%);
    display: flex;
    flex-direction: column;
}

.qm-eje-card .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.qm-eje-card__icon {
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    background: var(--eje-color);
    color: #ffffff;
    font-size: 34px;
}

.qm-eje-card .content h4 {
    color: var(--eje-color);
    font-weight: 700;
}

.qm-eje-card--ciudadania {
    --eje-color: #7a3e9d;
}

.qm-eje-card--diversificacion {
    --eje-color: #3a3fb0;
}

.qm-eje-card--evaluacion {
    --eje-color: #4d9b8f;
}

.qm-eje-card--comunicacion {
    --eje-color: #6a9e3f;
}

.qm-eje-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: none;
    padding: 0;
    margin-top: auto;
    padding-top: 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--eje-color);
    cursor: pointer;
}

.qm-eje-card__more:hover {
    text-decoration: underline;
}

/* Ola invertida: crestas hacia abajo en vez de hacia arriba. */
.qm-hero-wave--flip img {
    transform: scaleY(-1);
}

/* Fondo propio de esta pagina para el divisor: identico al fondo de .section-axis
   para que la transicion sea blanco -> lila sin franja intermedia. */
.qm-hero-wave--from-white-lila {
    background-color: color-mix(in srgb, #dadffd 40%, #ffffff);
}

/* Seccion "Ciudadania global en Educacion Media" (2026-07-23) */
.qm-ciudadania {
    background-color: #ffffff;
}

.qm-ciudadania__row {
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 56px;
    align-items: center;
}

.qm-ciudadania__photo {
    position: relative;
}

.qm-ciudadania__photo::before {
    content: "";
    position: absolute;
    left: -22px;
    bottom: -22px;
    width: 70%;
    height: 70%;
    background-color: #cfc3f2;
    border-radius: 62% 38% 55% 45% / 55% 45% 60% 40%;
    z-index: 0;
}

.qm-ciudadania__photo::after {
    content: "";
    position: absolute;
    top: 12%;
    right: -30px;
    width: 130px;
    height: 130px;
    border: 2px dashed #b9a8ec;
    border-radius: 50%;
    z-index: 0;
}

.qm-ciudadania__photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 58% 42% 45% 55% / 52% 48% 55% 45%;
    object-fit: cover;
}

.qm-ciudadania__text h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    margin-bottom: 18px;
}

.qm-ciudadania__text p {
    margin-bottom: 28px;
}

.qm-ciudadania__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    background-color: #6f42c1;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 28px;
    cursor: pointer;
}

.qm-ciudadania__btn:hover {
    background-color: #5a339f;
    color: #ffffff;
}

.qm-ciudadania__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
}

.qm-ciudadania__feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qm-ciudadania__feature-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--item-color) 12%, #ffffff);
    color: var(--item-color);
    font-size: 20px;
}

.qm-ciudadania__feature p {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.35;
    color: #1c2b45;
}

@media (max-width: 1399px) {
    .qm-ciudadania__row {
        grid-template-columns: 460px 1fr;
    }
}

@media (max-width: 991px) {
    .qm-ciudadania__row {
        grid-template-columns: 1fr;
    }

    .qm-ciudadania__photo {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .qm-ciudadania__features {
        grid-template-columns: 1fr;
    }
}

/* Tabla comparativa "Desde Basica" / Eje / "En Media" */
.qm-compare-table {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(20, 30, 60, 0.08);
    margin-bottom: 48px;
}

.qm-compare-row {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px) 1fr;
}

.qm-compare-row + .qm-compare-row {
    border-top: 1px solid rgba(20, 30, 60, 0.06);
}

.qm-compare-row--head {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 20px;
    text-align: center;
    justify-content: center;
}

.qm-compare-row--head .qm-compare-cell--basica {
    background-color: var(--azul-media);
    color: #ffffff;
}

.qm-compare-row--head .qm-compare-cell--eje {
    background-color: #1c2b45;
    color: #ffffff;
    justify-content: center;
    text-align: center;
}

.qm-compare-row--head .qm-compare-cell--media {
    background-color: color-mix(in srgb, var(--azul-media) 70%, #1c2b45);
    color: #ffffff;
}

.qm-compare-cell {
    padding: 22px 26px;
    font-size: 17px;
    line-height: 1.55;
}

.qm-compare-cell--eje {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    text-align: left;
    font-weight: 700;
    font-size: 18px;
    color: var(--eje-color, #1c2b45);
}

.qm-compare-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--eje-color, #1c2b45) 16%, #ffffff);
    color: var(--eje-color, #1c2b45);
    font-size: 24px;
}

.qm-compare-row:not(.qm-compare-row--head) .qm-compare-cell--basica {
    background-color: color-mix(in srgb, var(--eje-color, #7a3e9d) 14%, #ffffff);
    color: var(--eje-color, #7a3e9d);
}

.qm-compare-row:not(.qm-compare-row--head) .qm-compare-cell--eje {
    background-color: color-mix(in srgb, var(--eje-color, #1c2b45) 8%, #ffffff);
}

.qm-compare-row:not(.qm-compare-row--head) .qm-compare-cell--media {
    background-color: color-mix(in srgb, var(--eje-color, #1c2b45) 14%, #ffffff);
    color: var(--eje-color, #1c2b45);
}

.qm-compare-cell--media p {
    margin-bottom: 12px;
}

.qm-compare-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    padding: 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--azul-media);
    cursor: pointer;
}

.qm-compare-more:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .qm-compare-row {
        grid-template-columns: 1fr;
    }

    .qm-compare-row--head {
        display: none;
    }

    .qm-compare-cell--eje {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

/* Banner de cierre bajo la tabla comparativa */
.qm-compare-closing {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: #0e5abf;
    color: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    overflow: hidden;
}

.qm-compare-closing__bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 42%;
    max-width: 380px;
    opacity: 0.55;
    pointer-events: none;
}

.qm-compare-closing__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.qm-compare-closing__icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.qm-compare-closing__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qm-compare-closing__text {
    position: relative;
    z-index: 1;
}

.qm-compare-closing__title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.qm-compare-closing__subtitle {
    margin-bottom: 0;
    opacity: 0.9;
}

@media (max-width: 575px) {
    .qm-compare-closing {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer de esta pagina con fondo blanco (el template trae .section-bg de color). */
.queesvalientes-media-page .footer-section.section-bg {
    background-color: #ffffff;
}

/* Modales de detalle por eje ("En basica" / "En media") — rediseño 2026-07-23:
   header con icono + subtitulo, dos columnas con flecha, items con icono,
   footer con navegacion Anterior/Siguiente y puntos. */
.qm-eje-modal .modal-content {
    border: none;
    border-radius: 22px;
}

.qm-eje-modal .modal-header {
    border-bottom: none;
    padding: 28px 32px 12px;
    align-items: flex-start;
    gap: 18px;
}

.qm-eje-modal__header-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--eje-color) 14%, #ffffff);
    color: var(--eje-color);
    font-size: 26px;
}

.qm-eje-modal__header-text {
    flex-grow: 1;
}

.qm-eje-modal .modal-title {
    color: var(--eje-color);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 4px;
}

.qm-eje-modal__header-sub {
    margin-bottom: 0;
    color: #5a6072;
    font-size: 16px;
}

.qm-eje-modal .modal-body {
    padding: 20px 32px 28px;
}

.qm-eje-modal__columns {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: stretch;
}

.qm-eje-modal__arrow {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(20, 30, 60, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eje-color);
    font-size: 16px;
    z-index: 2;
}

.qm-eje-modal__col {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background-color: color-mix(in srgb, var(--eje-color) 4%, #ffffff);
    overflow: hidden;
}

.qm-eje-modal__col-head {
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--eje-color);
    background-color: color-mix(in srgb, var(--eje-color) 14%, #ffffff);
}

.qm-eje-modal__col-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: #4a4f63;
}

.qm-eje-modal__col-body strong {
    color: var(--eje-color);
}

.qm-eje-modal__col-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.qm-eje-modal__col-body li + li {
    margin-top: 8px;
}

.qm-eje-modal__illustration {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.qm-eje-modal__illustration img {
    max-width: 260px;
    width: 70%;
    height: auto;
}

.qm-eje-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: #ffffff;
    border: 1px solid color-mix(in srgb, var(--eje-color) 12%, transparent);
    border-radius: 14px;
    padding: 14px 16px;
}

.qm-eje-modal__item + .qm-eje-modal__item {
    margin-top: 12px;
}

.qm-eje-modal__item-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--eje-color) 14%, #ffffff);
    color: var(--eje-color);
    font-size: 18px;
    overflow: hidden;
}

.qm-eje-modal__item-icon img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.qm-eje-modal__item h6 {
    color: var(--eje-color);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.qm-eje-modal__item p {
    margin-bottom: 0;
    font-size: 15px;
}

.qm-eje-modal .modal-footer {
    border-top: 1px solid rgba(20, 30, 60, 0.08);
    padding: 16px 32px;
    justify-content: space-between;
    align-items: center;
}

.qm-eje-modal__nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--eje-color);
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--eje-color);
    font-weight: 700;
    padding: 10px 22px;
    cursor: pointer;
}

.qm-eje-modal__nav:hover {
    background-color: color-mix(in srgb, var(--eje-color) 8%, #ffffff);
}

.qm-eje-modal__dots {
    display: flex;
    gap: 8px;
}

.qm-eje-modal__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d9d7e4;
}

.qm-eje-modal__dots span.is-active {
    background-color: var(--eje-color);
}

@media (max-width: 991px) {
    .qm-eje-modal__columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .qm-eje-modal__arrow {
        display: none;
    }
}
