/* ==================================================
   CPSA - HERO INSTITUCIONAL PREMIUM
================================================== */

.cpsa-hero {
    position: relative;
    width: 100%;
    height: clamp(520px, 48vw, 680px);
    overflow: hidden;
    background: #0b3927;
}

.cpsa-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition:
        opacity .9s ease,
        visibility .9s ease,
        transform 6.5s ease;
}

.cpsa-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.cpsa-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 31, 20, .88) 0%,
            rgba(5, 39, 25, .68) 38%,
            rgba(0, 0, 0, .25) 68%,
            rgba(0, 0, 0, .18) 100%
        );
}

.cpsa-hero__container {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.cpsa-hero__content {
    width: min(680px, 62%);
    color: #fff;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s ease .25s,
        transform .7s ease .25s;
}

.cpsa-hero__slide.is-active .cpsa-hero__content {
    opacity: 1;
    transform: translateY(0);
}

.cpsa-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cpsa-hero h1,
.cpsa-hero h2 {
    max-width: 680px;
    margin: 0 0 20px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.04;
    text-shadow: 0 5px 24px rgba(0, 0, 0, .28);
}

.cpsa-hero p {
    max-width: 610px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    line-height: 1.65;
}

.cpsa-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 26px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #0d6b43;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 9px 25px rgba(0, 0, 0, .18);
    transition:
        background-color .22s ease,
        color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.cpsa-hero__button:hover {
    background: #fff;
    color: #0d6b43 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.cpsa-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 22px;
    transform: translateY(-50%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.cpsa-hero__arrow:hover {
    background: #0d6b43;
    transform: translateY(-50%) scale(1.05);
}

.cpsa-hero__arrow--prev {
    left: 24px;
}

.cpsa-hero__arrow--next {
    right: 24px;
}

.cpsa-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 6;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.cpsa-hero__dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    transition:
        width .25s ease,
        background-color .25s ease;
}

.cpsa-hero__dots button.is-active {
    width: 30px;
    background: #fff;
}

/* Tablet */

@media (max-width: 1024px) {

    .cpsa-hero {
        height: 560px;
    }

    .cpsa-hero__container {
        width: min(100% - 40px, 900px);
    }

    .cpsa-hero__content {
        width: 72%;
    }

    .cpsa-hero h1,
    .cpsa-hero h2 {
        font-size: clamp(38px, 6vw, 56px);
    }
}

/* Móvil */

@media (max-width: 767px) {

    .cpsa-hero {
        height: 560px;
        min-height: 560px;
    }

    .cpsa-hero__slide {
        align-items: flex-end;
        background-position: center center;
    }

    .cpsa-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, .08) 0%,
                rgba(4, 31, 20, .42) 42%,
                rgba(4, 31, 20, .94) 100%
            );
    }

    .cpsa-hero__container {
        width: calc(100% - 36px);
        margin-bottom: 76px;
    }

    .cpsa-hero__content {
        width: 100%;
    }

    .cpsa-hero__eyebrow {
        margin-bottom: 13px;
        padding: 8px 12px;
        font-size: 10px;
    }

    .cpsa-hero h1,
    .cpsa-hero h2 {
        margin-bottom: 14px;
        font-size: clamp(32px, 10vw, 44px);
        line-height: 1.06;
    }

    .cpsa-hero p {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.5;
    }

    .cpsa-hero__button {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 13px;
    }

    .cpsa-hero__arrow {
        display: none;
    }

    .cpsa-hero__dots {
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cpsa-hero__slide,
    .cpsa-hero__content,
    .cpsa-hero__button {
        transition: none;
    }
}
/* Hero a pantalla completa dentro de Elementor */
.elementor-widget-html:has(.cpsa-hero),
.elementor-widget-html:has(.cpsa-hero) .elementor-widget-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cpsa-hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* =========================================
   CPSA - ACCESOS RÁPIDOS
========================================= */

.cpsa-accesos-home {
  padding: 70px 22px;
  background: #f5f8f6;
}

.cpsa-accesos-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.cpsa-accesos-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.cpsa-accesos-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: #0d6b43;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cpsa-accesos-heading h2 {
  margin: 0;
  color: #123d2b;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.cpsa-accesos-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.cpsa-acceso-card {
  min-height: 150px;
  padding: 24px 20px;
  border: 1px solid rgba(13, 107, 67, .12);
  border-radius: 18px;
  background: #fff;
  color: #123d2b;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(19, 61, 43, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

button.cpsa-acceso-card {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.cpsa-acceso-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 107, 67, .30);
  box-shadow: 0 20px 42px rgba(19, 61, 43, .14);
}

.cpsa-acceso-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0d6b43;
  font-size: 18px;
  line-height: 1.25;
}

.cpsa-acceso-card small {
  display: block;
  color: #647068;
  font-size: 14px;
  line-height: 1.5;
}

/* Popup */

body.cpsa-modal-open {
  overflow: hidden;
}

.cpsa-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cpsa-modal.is-open {
  display: flex;
}

.cpsa-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(4px);
}

.cpsa-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.cpsa-modal__dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.cpsa-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .cpsa-accesos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cpsa-accesos-home {
    padding: 48px 16px;
  }

  .cpsa-accesos-grid {
    grid-template-columns: 1fr;
  }

  .cpsa-acceso-card {
    min-height: 120px;
  }

  .cpsa-modal {
    padding: 12px;
  }
}
/* =========================================
   CPSA - RADIO HOME COMPACTA
========================================= */

.cpsa-radio-home {
    position: relative;
    min-height: 0px;
    padding: 46px 20px 50px !important;
    overflow: hidden;

    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Oscurecer suavemente el fondo */
.cpsa-radio-home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(5, 45, 29, .18),
            rgba(255, 255, 255, .06),
            rgba(5, 45, 29, .18)
        );
}

/* Mantener el contenido arriba del fondo */
.cpsa-radio-home > .elementor-container,
.cpsa-radio-home > .e-con-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}

/* Título */
.cpsa-radio-title {
    margin-bottom: 8px !important;
}

.cpsa-radio-title .elementor-heading-title {
    margin: 0 !important;
    color: #0d5f3d !important;
    font-size: clamp(32px, 3.4vw, 46px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
}

/* Etiqueta superior */
.cpsa-radio-title::before {
    content: "RADIO ESCOLAR";
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0d6b43;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* Subtítulo */
.cpsa-radio-subtitle {
    margin-bottom: 26px !important;
}

.cpsa-radio-subtitle p {
    max-width: 650px;
    margin: 0 !important;
    color: #4f6258 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

/* Columnas */
.cpsa-radio-col {
    padding: 8px !important;
}

/* Tarjetas de imágenes */
.cpsa-radio-card {
    overflow: hidden;
    border: 2px solid rgba(13, 107, 67, .20);
    border-radius: 18px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.cpsa-radio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 107, 67, .48);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .25);
}

/* Reducir altura de las imágenes */
.cpsa-radio-card img {
    display: block;
    width: 100%;
    height: 330px !important;
    max-height: 330px !important;
    object-fit: contain !important;
    background: rgba(255, 255, 255, .92);
    transition: transform .3s ease;
}

.cpsa-radio-card:hover img {
    transform: scale(1.02);
}

.cpsa-radio-card a,
.cpsa-radio-card .elementor-widget-container {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .cpsa-radio-home {
        min-height: auto;
        padding: 42px 16px 46px !important;
    }

    .cpsa-radio-card img {
        height: 300px !important;
        max-height: 300px !important;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .cpsa-radio-home {
        padding: 38px 14px 42px !important;
    }

    .cpsa-radio-title .elementor-heading-title {
        font-size: 32px !important;
    }

    .cpsa-radio-subtitle p {
        font-size: 15px !important;
    }

    .cpsa-radio-col {
        padding: 7px 0 !important;
    }

    .cpsa-radio-card img {
        height: auto !important;
        max-height: none !important;
    }
}
/* Ajuste final de separación en Radio */
.cpsa-radio-home {
    padding-bottom: 18px !important;
}

.cpsa-radio-subtitle {
    margin-bottom: 14px !important;
}
/* =========================================
   CPSA - PÁGINA DESCARGAS ID 2239
========================================= */

/* Ocultar cabecera, breadcrumb y ondas de Talemy */
body.page-id-2239 .page-title,
body.page-id-2239 .page-title-section,
body.page-id-2239 .page-header,
body.page-id-2239 .page-header-wrapper,
body.page-id-2239 .page-banner,
body.page-id-2239 .breadcrumb,
body.page-id-2239 .breadcrumbs,
body.page-id-2239 .breadcrumb-area {
    display: none !important;
}

/* Ocultar sidebar */
body.page-id-2239 #secondary,
body.page-id-2239 .sidebar,
body.page-id-2239 .widget-area,
body.page-id-2239 .sidebar-wrapper {
    display: none !important;
}

/* Contenido al 100% */
body.page-id-2239 #primary,
body.page-id-2239 .content-area,
body.page-id-2239 .site-main,
body.page-id-2239 .main-content,
body.page-id-2239 .content-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Eliminar límites del contenedor del tema */
body.page-id-2239 .site-content > .container,
body.page-id-2239 .site-content .container,
body.page-id-2239 .main-content-wrapper > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Elementor sin espacios laterales */
body.page-id-2239 .elementor,
body.page-id-2239 .elementor-section,
body.page-id-2239 .elementor-container,
body.page-id-2239 .elementor-widget-wrap,
body.page-id-2239 .elementor-widget-html,
body.page-id-2239 .elementor-widget-container {
    max-width: none !important;
}