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

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


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

.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;
}


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

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

/* 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;
}

/* 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: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: 1;
}

.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);
  }
}

/* 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;
}

.header-4 {
    padding-top: 0;
}

.header-4 .header-main {
    padding-top: 0;
}

/* 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;
}
