/* CPO | VISITAS Y FOOTER | DISEÑO APROBADO V1 */

/* Normalización de contenedores WPBakery */
body.home .cpo-visit-faq-row,
body.home .cpo-visit-faq-row > .vc_column_container,
body.home .cpo-visit-faq-row .vc_column-inner,
body.home .cpo-visit-faq-row .wpb_wrapper,
body.home .cpo-visit-faq-row .wpb_text_column {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.home .cpo-visit-faq-row > .vc_column_container > .vc_column-inner {
    padding: 0 !important;
}

/* Sección fotográfica */
body.home .cpo-visit-faq {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    min-height: 590px;
    padding: 155px 35px 135px !important;
    background-image:
        linear-gradient(
            180deg,
            rgba(234,245,255,.77) 0%,
            rgba(240,247,255,.39) 42%,
            rgba(224,239,255,.83) 100%
        ),
        url("https://www.cpo.edu.do/wp-content/uploads/2026/04/WhatsApp-Image-2026-04-16-at-11.19.46-PM.jpeg") !important;
    background-size: cover !important;
    background-position: center 20% !important;
    background-repeat: no-repeat !important;
}

/* Ondas superiores discretas */
body.home .cpo-visit-faq::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -1px;
    left: 0;
    width: 100%;
    height: 145px;
    background:
        radial-gradient(
            ellipse 58% 70% at 15% -12%,
            rgba(255,255,255,.97) 65%,
            transparent 66%
        ),
        radial-gradient(
            ellipse 62% 75% at 76% -10%,
            rgba(255,255,255,.83) 65%,
            transparent 66%
        );
    pointer-events: none;
}

/* Tarjetas */
body.home .cpo-visit-faq-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: clamp(30px,7vw,115px) !important;
    align-items: stretch;
}

body.home .cpo-visit-faq-item {
    position: relative;
    min-width: 0;
    padding: 43px 30px 36px !important;
    background: rgba(255,255,255,.87) !important;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 35px !important;
    box-shadow: 0 22px 48px rgba(18,71,138,.14);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Iconos */
body.home .cpo-visit-faq-icon {
    display: grid !important;
    place-items: center;
    width: 102px;
    height: 102px;
    margin: -95px auto 22px !important;
    border-radius: 27px;
    background: linear-gradient(145deg,#fff,#c9e5ff);
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 12px 25px rgba(17,70,139,.13);
    font-size: 56px !important;
    line-height: 1 !important;
}

/* Títulos */
body.home .cpo-visit-faq-item h2 {
    max-width: 510px !important;
    min-height: 0 !important;
    margin: 0 0 25px !important;
    font-size: clamp(25px,2.4vw,37px) !important;
    line-height: 1.16 !important;
    font-weight: 800 !important;
    letter-spacing: -.7px;
    color: #0b3278 !important;
    text-shadow: none !important;
}

/* Botones */
body.home .cpo-visit-faq-item a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 54px !important;
    padding: 12px 30px !important;
    background: linear-gradient(180deg,#f00035,#c90029) !important;
    border-radius: 40px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(167,0,42,.18);
    transition: transform .2s ease,box-shadow .2s ease;
}

body.home .cpo-visit-faq-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(167,0,42,.23);
}

/* Footer institucional */
body.home .cpo-premium-footer-row {
    position: relative !important;
    margin-top: 0 !important;
}

body.home .cpo-premium-footer {
    position: relative !important;
    background: linear-gradient(
        115deg,
        #092d70 0%,
        #123f88 60%,
        #082c70 100%
    ) !important;
}

/* Ondas inferiores: forman la entrada al footer */
body.home .cpo-premium-footer::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: -75px;
    height: 76px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(16,91,195,.08) 100%
    );
    clip-path: polygon(
        0 42%, 10% 30%, 24% 58%,
        42% 85%, 58% 94%, 76% 72%,
        90% 34%, 100% 38%,
        100% 100%, 0 100%
    );
}

body.home .cpo-premium-footer::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: -19px;
    height: 20px;
    background: #e40035;
    pointer-events: none;
    clip-path: polygon(
        0 55%, 15% 75%, 35% 95%,
        60% 90%, 80% 45%, 94% 0,
        100% 15%, 100% 42%,
        94% 25%, 80% 65%,
        60% 100%, 35% 100%,
        15% 95%, 0 75%
    );
}

/* Adaptación a tablet */
@media (max-width: 900px) {
    body.home .cpo-visit-faq {
        padding: 145px 24px 110px !important;
    }

    body.home .cpo-visit-faq-inner {
        gap: 25px !important;
    }

    body.home .cpo-visit-faq-item {
        padding: 38px 22px 30px !important;
    }
}

/* Adaptación a móviles */
@media (max-width: 767px) {
    body.home .cpo-visit-faq {
        min-height: 0;
        padding: 125px 20px 100px !important;
        background-position: center 20% !important;
    }

    body.home .cpo-visit-faq-inner {
        grid-template-columns: 1fr !important;
        gap: 105px !important;
        max-width: 500px !important;
    }

    body.home .cpo-visit-faq-item {
        border-radius: 26px !important;
    }

    body.home .cpo-visit-faq-item h2 {
        font-size: 25px !important;
    }

    body.home .cpo-visit-faq-icon {
        width: 88px;
        height: 88px;
        margin-top: -83px !important;
        font-size: 46px !important;
    }
}

/* END CPO VISIT FOOTER V1 */


/* CPO | ICONOS INSTITUCIONALES V1 */
body.home .cpo-visit-faq-icon {
    font-size: 0 !important;
    color: #0c397f !important;
}

body.home .cpo-visit-faq-icon::before {
    content: "";
    display: block;
    width: 57px;
    height: 57px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

body.home .cpo-visit-faq-item:first-child
.cpo-visit-faq-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%230b397e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='14' width='46' height='42' rx='5'/%3E%3Cpath d='M9 26h46M21 8v12M43 8v12M20 36h5M32 36h5M44 36h1M20 46h5M32 46h5'/%3E%3C/svg%3E");
}

body.home .cpo-visit-faq-item:nth-child(2)
.cpo-visit-faq-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%230b397e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M52 44a24 24 0 1 0-19 11 25 25 0 0 0 10-2l13 4-4-13Z'/%3E%3Cpath d='M25 25a8 8 0 1 1 13 6c-4 3-6 4-6 9M32 47h.1'/%3E%3C/svg%3E");
}

body.home .cpo-visit-faq-item::before {
    content: "";
    position: absolute;
    top: -110px;
    right: 26%;
    width: 8px;
    height: 22px;
    border-radius: 5px;
    background: #ec0034;
    transform: rotate(25deg);
    pointer-events: none;
}

body.home .cpo-visit-faq-item::after {
    content: "";
    position: absolute;
    top: -107px;
    right: 21%;
    width: 8px;
    height: 20px;
    border-radius: 5px;
    background: #ec0034;
    transform: rotate(58deg);
    pointer-events: none;
}

/* END ICONOS INSTITUCIONALES V1 */

/* ============================================
   CPO | TRANSICION NOTICIAS - VISITAS V2
   ============================================ */

/* Eliminar antigua franja azul y roja de noticias */
body.home .cpo-news-v1-bottomwave {
    display: none !important;
}

/* Eliminar espacios de las filas WPBakery */
body.home #latest-news,
body.home .cpo-visit-faq-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Evitar espacios entre los contenedores */
body.home #latest-news + .cpo-visit-faq-row {
    margin-top: 0 !important;
}

/* Transición suave entre las secciones */
body.home .cpo-visit-faq {
    margin-top: 0 !important;
}

/* END TRANSICION V2 */


/* CPO | TRANSICION DEFINITIVA PASO 226 */

/* Eliminar la onda azul y roja generada por news-decor.css */
body.home .cpo-news-v1::after {
    content: none !important;
    display: none !important;
}

/* Mantener ocultas las antiguas ondas inferiores */
body.home .cpo-news-v1 .cpo-news-v1-bottomwave {
    display: none !important;
}

/* Ajustar el espacio inferior de noticias */
body.home .cpo-news-v1 {
    padding-bottom: 55px !important;
}

/* Normalizar la unión entre filas WPBakery */
body.home #latest-news,
body.home .cpo-visit-faq-row {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Eliminar separación interna de la fila de visitas */
body.home .cpo-visit-faq-row > .vc_column_container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.home .cpo-visit-faq-row
> .vc_column_container > .vc_column-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Mantener las ondas blancas y celestes de visitas */
body.home .cpo-visit-faq {
    margin-top: 0 !important;
}

/* Adaptación móvil */
@media (max-width: 767px) {
    body.home .cpo-news-v1 {
        padding-bottom: 40px !important;
    }
}

/* FIN PASO 226 */


/* CPO | AJUSTE DE UNION PASO 228 */

/* Eliminar la onda blanca superior de visitas */
body.home .cpo-visit-faq::before {
    content: none !important;
    display: none !important;
}

/* Eliminar espacios de la fila de noticias */
body.home #latest-news {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminar márgenes y espacios de la fila de visitas */
body.home .cpo-visit-faq-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Neutralizar separación de contenedores WPBakery */
body.home .cpo-visit-faq-row .vc_column-inner,
body.home .cpo-visit-faq-row .wpb_wrapper,
body.home .cpo-visit-faq-row .wpb_text_column {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Unión directa entre noticias y visitas */
body.home .cpo-visit-faq {
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* FIN PASO 228 */


/* CPO | UNION NOTICIAS VISITAS PASO 230 */

/* Eliminar saltos y espacios de las filas contenedoras */
body.home .cpo-news-premium,
body.home .cpo-visit-faq-row {
    font-size: 0 !important;
    line-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Neutralizar saltos de línea generados por WPBakery */
body.home .cpo-news-premium > br,
body.home .cpo-visit-faq-row > br,
body.home .cpo-news-premium .wpb_wrapper > br,
body.home .cpo-visit-faq-row .wpb_wrapper > br {
    display: none !important;
}

/* Restablecer tipografía dentro de las secciones */
body.home .cpo-news-v1,
body.home .cpo-visit-faq {
    font-size: 16px !important;
    line-height: normal !important;
}

/* Evitar separación inferior en noticias */
body.home .cpo-news-premium .vc_column-inner,
body.home .cpo-news-premium .wpb_wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminar espacios entre las filas de WPBakery */
body.home .cpo-news-premium + .vc_row-full-width,
body.home .cpo-visit-faq-row + .vc_row-full-width {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Conservar la fotografía desde el inicio de visitas */
body.home .cpo-visit-faq {
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* FIN PASO 230 */


/* CPO | CORRECCION CONTENEDOR PASO 234 */

/* Quitar padding inferior del contenedor de noticias */
body.home .vc_row.cpo-news-premium {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Mantener intacto el contenido de noticias */
body.home .cpo-news-premium .cpo-news-v1 {
    margin-bottom: 0 !important;
}

/* FIN PASO 234 */


/* CPO | UNION NOTICIAS VISITAS PASO 237 */

/* Eliminar saltos HTML insertados por WordPress */
body.home .cpo-news-premium > br,
body.home .cpo-news-premium > .vc_column_container + br,
body.home .cpo-news-premium .wpb_wrapper > br:last-child {
    display: none !important;
}

/* Eliminar salto posterior a noticias */
body.home .cpo-news-premium + .vc_row-full-width + br {
    display: none !important;
}

/* Separador estructural de WPBakery sin altura */
body.home .cpo-news-premium + .vc_row-full-width {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Eliminar espacios residuales entre filas */
body.home .cpo-news-premium,
body.home .cpo-visit-faq-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Mantener la fotografía unida a noticias */
body.home .cpo-visit-faq-row {
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* FIN PASO 237 */



