/*========================================
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;
}







/* Header: blanco → azul exacto #D0DAEA */
.row:has(> div > .header-brand) {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f0f3f8 35%,
        #e0e6f1 65%,
        #d0daea 90%,
        #d0daea 100%
    ) !important;

    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* Fondos interiores transparentes */
.row:has(> div > .header-brand) > div,
.row:has(> div > .header-brand) > div > .col,
.header-brand > div,
.header-brand > div > .row,
.header-brand > div > .row > .col,
.header-brand > div > .row > .col > div {
    background: transparent !important;
}


/*================
 TARJETA 
===============*/
.col.tarjeta-evento {
    background: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 18px !important;

    width: calc(50% - 32px) !important;
    margin: 16px !important;
    padding: 44px 40px 32px !important;
    box-sizing: border-box;

    color: #111;
    box-shadow: none !important;
}

/* CONTENEDORES INTERIORES */
.tarjeta-evento > div,
.tarjeta-evento > div > .row,
.tarjeta-evento > div > .row > .col,
.tarjeta-evento > 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;
}

.tarjeta-evento > div > .row::before,
.tarjeta-evento > div > .row::after {
    content: none !important;
    display: none !important;
}

/* HIJO 1 · FECHA */
.tarjeta-evento > div:nth-child(1) p {
    margin: 0 0 14px !important;
    padding: 0 !important;

    color: #555 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* HIJO 1 · TÍTULO */
.tarjeta-evento > div:nth-child(1) h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: #000 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

.tarjeta-evento > div:nth-child(1) h2 * {
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* HIJO 2 · IMAGEN */
.tarjeta-evento > div:nth-child(2) {
    margin-top: 28px !important;
}

.tarjeta-evento > div:nth-child(2) img.responsive-img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 2.4 / 1;

    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    object-position: center;

    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

/* HIJO 3 · DESCRIPCIÓN */
.tarjeta-evento > div:nth-child(3) {
    margin-top: 28px !important;
}

.tarjeta-evento > div:nth-child(3) p {
    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

.tarjeta-evento > div:nth-child(3) p + p {
    margin-top: 18px !important;
}

/* HIJO 4 · BOTÓN, SI LO AÑADES */
.tarjeta-evento > div:nth-child(4) {
    margin-top: 28px !important;
}

.tarjeta-evento a.btn {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    min-height: 46px;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    box-sizing: border-box;

    background: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 12px !important;
    box-shadow: none !important;

    color: #111 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: normal !important;
}

/* MÓVIL */
@media (max-width: 600px) {
    .col.tarjeta-evento {
        width: calc(100% - 32px) !important;
        margin: 16px !important;
        padding: 32px 24px !important;
    }

    .tarjeta-evento > div:nth-child(1) h2 {
        font-size: 22px !important;
    }
}

/* CONTENEDOR DE LAS TARJETAS */
div:has(> .col.tarjeta-evento) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 32px;

    padding: 16px !important;
    box-sizing: border-box;
    margin-bottom: 50px;
}

/* Evitar elementos adicionales en la cuadrícula */
div:has(> .col.tarjeta-evento)::before,
div:has(> .col.tarjeta-evento)::after {
    content: none !important;
    display: none !important;
}

/* TARJETAS CON LA MISMA ALTURA */
div > .col.tarjeta-evento {
    display: flex !important;
    flex-direction: column;

    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;

    align-self: stretch;
}

/* Botón al pie, si existe */
.tarjeta-evento > div:nth-child(4) {
    margin-top: auto !important;
    padding-top: 28px !important;
}

/* MÓVIL */
@media (max-width: 600px) {
    div:has(> .col.tarjeta-evento) {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 24px;
    }

    div > .col.tarjeta-evento {
        width: 100% !important;
        margin: 0 !important;
    }
}