/* CPO | Noticias Premium | Decoración institucional 1.0 */

.cpo-news-v1 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 55%, #ffffff 0%, #f4f9ff 47%, #e3efff 100%);
}

/* Mantener las noticias por encima de las decoraciones */
.cpo-news-v1 .cpo-news-v1-inner {
    position: relative;
    z-index: 5;
}

/* Ondas superiores */
.cpo-news-v1::before {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 105px;
    background:
        linear-gradient(174deg,
            #0754a5 0%,
            #0754a5 30%,
            #ffffff 30.5%,
            #ffffff 34%,
            #ed0734 34.5%,
            #ed0734 38%,
            transparent 38.5%);
    clip-path: ellipse(115% 100% at 50% 0%);
    opacity: .95;
}

/* Ondas inferiores */
.cpo-news-v1::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
    left: -5%;
    bottom: -115px;
    width: 110%;
    height: 190px;
    border-top: 15px solid #ed0734;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(120deg, #003b89, #075db8);
    transform: rotate(-1deg);
}

/* Sustituir formas antiguas por composición unificada */
.cpo-news-v1 .cpo-news-v1-topwave,
.cpo-news-v1 .cpo-news-v1-bottomwave {
    display: none !important;
}

/* Huellas discretas */
.cpo-news-v1 .cpo-news-v1-paw {
    position: absolute;
    z-index: 1;
    top: 125px;
    right: 7%;
    font-size: 105px;
    line-height: 1;
    opacity: .12;
    filter: grayscale(1);
    pointer-events: none;
}

/* Patrón de puntos */
.cpo-news-v1 .cpo-news-decor-dots {
    position: absolute;
    top: 170px;
    left: 6%;
    width: 170px;
    height: 95px;
    background-image: radial-gradient(circle, #a6c9fa 4px, transparent 4.5px);
    background-size: 25px 25px;
    opacity: .45;
    pointer-events: none;
    z-index: 1;
}

/* Ilustraciones laterales */
.cpo-news-v1 .cpo-news-decor-paper,
.cpo-news-v1 .cpo-news-decor-plane {
    position: absolute;
    z-index: 2;
    width: 125px;
    height: 125px;
    color: #0754a5;
    pointer-events: none;
}

.cpo-news-v1 .cpo-news-decor-paper {
    left: 3%;
    top: 52%;
    transform: rotate(-13deg);
}

.cpo-news-v1 .cpo-news-decor-plane {
    right: 3%;
    top: 52%;
    transform: rotate(-13deg);
}

.cpo-news-v1 .cpo-news-decor-paper svg,
.cpo-news-v1 .cpo-news-decor-plane svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Trayectorias punteadas */
.cpo-news-v1 .cpo-news-decor-trail {
    position: absolute;
    z-index: 1;
    top: 64%;
    width: 155px;
    height: 65px;
    border-bottom: 2px dashed #2167c2;
    border-radius: 0 0 50% 50%;
    opacity: .7;
    pointer-events: none;
}

.cpo-news-v1 .cpo-news-decor-trail-left {
    left: 6%;
    transform: rotate(14deg);
}

.cpo-news-v1 .cpo-news-decor-trail-right {
    right: 6%;
    transform: rotate(-14deg);
}

/* Tarjetas con profundidad */
.cpo-news-v1 .cpo-news-v1-card {
    box-shadow: 0 15px 35px rgba(17, 57, 116, .13);
}

.cpo-news-v1 .cpo-news-v1-card:hover {
    box-shadow: 0 22px 45px rgba(17, 57, 116, .20);
}

/* Mantener visible el contenido del anuncio de admisiones */
.cpo-news-v1 .cpo-news-v1-card:first-child .cpo-news-v1-image img {
    object-fit: contain;
    background: #fff;
}

/* Adaptación a tabletas */
@media (max-width: 1199px) {
    .cpo-news-v1 .cpo-news-decor-paper,
    .cpo-news-v1 .cpo-news-decor-plane,
    .cpo-news-v1 .cpo-news-decor-trail {
        opacity: .25;
    }
}

/* Adaptación a móviles */
@media (max-width: 767px) {
    .cpo-news-v1::before {
        height: 60px;
    }

    .cpo-news-v1::after {
        height: 100px;
        bottom: -70px;
        border-top-width: 9px;
    }

    .cpo-news-v1 .cpo-news-decor-paper,
    .cpo-news-v1 .cpo-news-decor-plane,
    .cpo-news-v1 .cpo-news-decor-trail,
    .cpo-news-v1 .cpo-news-decor-dots {
        display: none;
    }

    .cpo-news-v1 .cpo-news-v1-paw {
        font-size: 65px;
        right: 3%;
        top: 100px;
    }
}
