/*========================================
0. GENERICOS
========================================*/

/* 1. Importación de la fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* 2. Aplicación global a todo el sitio */
body, h3, h4, h5, h6, p, a, li, span, div {
    font-family: 'Inter', sans-serif !important;
}

body {
   background: #fff;
}

.material-icons {
    font-family: 'Material Icons' !important;
}

.col .responsive-img,
.video-responsive {
    border-radius: 24px;
}

.header img,
.footer img,
.icons img {
    border-radius: 0 !important;
}

.dynamicform:has(> .header) {
   min-width: 100%;
}

.row:has(> div > .margin-block) {
  overflow: hidden;
  padding: 24px;
}

.row:has(> div > .vertical-center-trigger) > div {
    display: flex;
    align-items: center;
}

/*-----RESPONSIVE---------*/
@media only screen and (max-width: 992px) {
    .row:has(> div > .vertical-center-trigger) > div {
       flex-wrap: wrap;
    }
    .dynamicform:has(> .reverse) {
      display: flex;
      flex-direction: column-reverse;
    }
}

span.blue-text {
    color: #1a3e77 !important;
}

.row:has(> div > .gradient-blue) {
    background: linear-gradient(
        to top,
        #C2D3E7 0%,
        #D8E3F0 45%,
        #FFFFFF 100%
    ) !important;
}


/*================================   
1. TIPOGRAFÍA
================================*/

body h1,
body h1 * {
    display: block;
    width: 100%;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.2;
    font-weight: 700;
    word-wrap: normal;
    margin-top: 50px;
    font-family: 'Outfit', sans-serif !important;
}

@media (max-width: 768px) {
    h1, 
    .white-text {
        margin-top: 48px !important;
    }
}

body h2,
body h2 * { 
    font-size: clamp(1.875rem, 4vw, 2.5rem) !important;
    line-height: 1.3 !important;
    margin-top: 86px;
    font-family: 'Outfit', sans-serif !important;
}

@media (max-width: 768px) {
 h2{
  margin-top: 12px!important;
   }
}


h3 { 
    color: #1C1D1F; 
    font-size: 28px; 
}

p { 
    font-size: 17px; 
    color: #1C1D1F; 
}

.p-medium p {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem) !important;
    line-height: 1.45 !important;
}

.p-large p {
    font-size: clamp(1.375rem, 3vw, 1.75rem) !important;
    line-height: 1.3 !important;
} 

.row:has(> div > .vertical-center) > div {
    display: flex;
    align-items: center;
}



/*===================================
FONDO AZUL CON BORDES REDONDEADOS
====================================*/

.row:has(> .dynamicform > .border-radius-top) {
    border-radius: 24px 24px 0 0;
    margin: 0 24px;
}

.row:has(> .dynamicform > .border-radius-center) {
    margin: 0 24px;
}

.row:has(> .dynamicform > .border-radius-bottom) {
    border-radius: 0 0 24px 24px;
    margin: 0 24px;
}


/*=======================
FONDO DIFUMINADO 
======================*/

.row:has(> div > .header-prensa) {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #edf0f6 40%,
        #cfd7e8 90%,
        #cfd7e8 100%
    ) !important;

    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

.row:has(> div > .header-prensa) > div,
.header-prensa,
.header-prensa > div,
.header-prensa > div > .row,
.header-prensa > div > .row > .col {
    background: transparent !important;
}


/*===========================================
TARJETA BLANCA
============================================*/

.row > div > .col.noticia-prensa {
    float: none !important;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 52px 72px 56px !important;
    box-sizing: border-box;

    background: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

/* Limpiar espacios interiores del CMS */
.noticia-prensa > div,
.noticia-prensa > div > .row,
.noticia-prensa > div > .row > .col,
.noticia-prensa > div > .row > .col > div {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.noticia-prensa > div > .row::before,
.noticia-prensa > div > .row::after {
    content: none !important;
    display: none !important;
}

/*===========================================
HIJO 1 · FECHA Y TITULAR
============================================*/

.noticia-prensa > div:nth-child(1) p {
    margin: 0 0 16px !important;
    padding: 0 !important;

    color: #555 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.noticia-prensa > div:nth-child(1) h3 {
    margin: 0 !important;
    padding: 0 !important;

    color: #000 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

/*===========================================
HIJO 2 · DESCRIPCIÓN
============================================*/

.noticia-prensa > div:nth-child(2) {
    margin-top: 42px !important;
}

.noticia-prensa > div:nth-child(2) p {
    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

/* Respetar los tamaños del CSS frente a los del editor */
.noticia-prensa > div:nth-child(1) p *,
.noticia-prensa > div:nth-child(1) h3 *,
.noticia-prensa > div:nth-child(2) p * {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/*===========================================
HIJO 3 · IMAGEN
============================================*/

.noticia-prensa > div:nth-child(3) {
    margin-top: 44px !important;
}

.noticia-prensa > div:nth-child(3) img.responsive-img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

/*===========================================
HIJO 4 · BOTÓN
============================================*/

.noticia-prensa > div:nth-child(4) {
    margin-top: 40px !important;
}

.noticia-prensa > div:nth-child(4) .center-align {
    text-align: center !important;
}

.noticia-prensa > div:nth-child(4) a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 264px !important;
    max-width: 100% !important;
    min-height: 56px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 12px 24px !important;
    box-sizing: border-box;

    background: #fff !important;
    border: 1px solid #222 !important;
    border-radius: 14px !important;
    box-shadow: none !important;

    color: #000 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.noticia-prensa > div:nth-child(4) a.btn:hover {
    background: #f1f4f8 !important;
}

/*===========================================
TABLET
============================================*/

@media (max-width: 992px) {
    .row > div > .col.noticia-prensa {
        padding: 40px !important;
    }
}

/*===========================================
MÓVIL
============================================*/

@media (max-width: 600px) {
    .row:has(> div > .noticia-prensa) {
        padding: 24px 16px 32px !important;
    }

    .row > div > .col.noticia-prensa {
        padding: 28px 22px !important;
        border-radius: 18px !important;
    }

    .noticia-prensa > div:nth-child(1) p {
        font-size: 13px !important;
    }

    .noticia-prensa > div:nth-child(1) h3 {
        font-size: 24px !important;
    }

    .noticia-prensa > div:nth-child(2),
    .noticia-prensa > div:nth-child(3),
    .noticia-prensa > div:nth-child(4) {
        margin-top: 28px !important;
    }

    .noticia-prensa > div:nth-child(2) p {
        font-size: 16px !important;
    }

    .noticia-prensa > div:nth-child(3) img.responsive-img {
        border-radius: 14px !important;
    }

    .noticia-prensa > div:nth-child(4) a.btn {
        min-height: 52px !important;
        font-size: 18px !important;
    }
}



/* Fondo y espacio exterior */
.row:has(> div > .noticia-prensa) {
    background: #cfd7e8 !important;
    padding: 40px 48px 56px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Contenedor centrado */
.row:has(> div > .noticia-prensa) > div {
    display: block !important;
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Tarjeta */
.row > div > .col.noticia-prensa {
    float: none !important;
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 52px 64px !important;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 992px) {
    .row:has(> div > .noticia-prensa) {
        padding: 32px 28px 40px !important;
    }

    .row > div > .col.noticia-prensa {
        padding: 36px !important;
    }
}

/* Móvil */
@media (max-width: 600px) {
    .row:has(> div > .noticia-prensa) {
        padding: 24px 16px 32px !important;
    }

    .row > div > .col.noticia-prensa {
        padding: 28px 22px !important;
    }
}



.row:has(> div > .noticia-prensa) {
    background: #cfd7e8 !important;

    /* Extender el fondo por los lados */
    box-shadow: 0 0 0 100vmax #cfd7e8 !important;

    /* Limitar la extensión a la altura de esta sección */
    clip-path: inset(0 -100vmax);
}