/* 1. Importación de la fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* 2. Aplicación global a todo el sitio */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div {
    font-family: 'Inter', sans-serif !important;
}

.material-icons {
    font-family: 'Material Icons' !important;
}

/* ==========================================================================
   1. ESTILOS BASE Y TIPOGRAFÍA
========================================================================== */
body {
    background-color: #fff;
}

h1 {
    display: block !important;
    width: 100% !important;
    font-size: clamp(1.5rem, 5vw + 2rem, 4.5rem);
    font-weight: 700 !important;
    line-height: 1 !important;
    word-wrap: normal !important;
}

h2 { 
    font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem); 
    line-height: 1.1;
    margin-top: 120px;
}

h3 { 
    color: #1C1D1F; 
    font-size: clamp(1.4rem, 4vw + 1rem, 1.75rem); 
    line-height: 1.2;
}

p { 
    font-size: 17px; 
    color: #1C1D1F; 
}


/* -------------------------------------------------------
   HERO 
--------------------------------------------------------*/
.row:has(> .dynamicform > .gradient-sunset) {
    border-bottom: 30px solid;
    border-image-source: linear-gradient(
        90deg,
        #063f7b 0%,
        #063f7b 10%,
        #d3dcec 45%,
        #d3dcec 55%,
        #063f7b 90%,
        #063f7b 100%
    );
    border-image-slice: 1;
}

}
/* -------------------------------------------------------
   SAVE THE DATE
--------------------------------------------------------*/

/* Contenedor exacto de las 3 fechas */
.save-date div:has(> p):not(:has(> div)) 
.logos {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    margin: 48px auto 0;
}

/* Cada bloque de fecha */
.save-date div:has(> p):not(:has(> div)) > p {
    background-color: #333;
    color: white;
    border-radius: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    flex: 0 0 auto !important;

    width: 125px;
    min-width: 125px;
    max-width: 125px;

    margin: 0 !important;
    padding: 26px 36px;

    font-size: 26px;
    font-weight: 800;
    line-height: 0.8;
}

/* Día: JUE, VIE, SÁB */
.save-date p::first-line {
    font-size: 46px;
    font-weight: bold;
    line-height: 1;
}

/* Contenedor de las 3 fechas */
.save-date div:has(> p) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    justify-content: center !important;
    align-items: center !important;

    gap: 10px;
    width: 100% !important;
    margin: 48px auto 0 !important;
}

/* Tarjetas */
.save-date div:has(> p) > p {
    flex: 0 0 auto !important;
    margin: 0 !important;
}


/*==============
LOGOS
==============*/
.logos {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px;
    margin-top: 45px;
}

.logos > div {
    flex: 0 0 auto !important;
    width: auto !important;
}






/* ==========================================================================
   4. SOLUTIONS DARK (OVERLAY EFFECTS)
   ========================================================================== */
.col.solutions-dark {
    position: relative;
    border-radius: 30px;
    overflow: hidden; 
}

.col.solutions-dark img,
.col.solutions-dark div:nth-of-type(1) {
    position: relative;
    z-index: 1;
    height: 100%;
    transition: filter 0.45s ease;
    border-radius: 32px;
}

.col.solutions-dark img {
    transition: filter 0.45s ease, transform 0.45s ease;
    will-change: transform, filter;
}

.col.solutions-dark div:nth-of-type(2) {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 30px;
    background: rgba(0,0,0,0);
    transition: background 0.45s ease;
    padding: 3rem;
    box-sizing: border-box;
}

.col.solutions-dark div:nth-of-type(2) h3,
.col.solutions-dark div:nth-of-type(2) p {
    color: #fff;
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    margin: 0;
    will-change: transform, opacity;
}

.col.solutions-dark div:nth-of-type(2) p {
    background-color: #eeeeeee6;
    display: inline;
    overflow: inherit;
    right: auto;
    color: #1C1D1F;
    border-radius: 20px;
    padding: 3px 26px;
}

.col.solutions-dark div:nth-of-type(2) h3 {
    bottom: 0;
    top: 0;
   /* padding-top: 55%;*/
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.45s ease, opacity 0.35s ease; 
    z-index: 5;
    align-self: end;
    font-size: 42px;
}


.col.solutions-dark div:nth-of-type(2) h3 a::after {
    content: "";
    position: absolute;
    inset: 0;      
    z-index: 10;  
    cursor: pointer;
}


.col.solutions-dark:hover img { 
    filter: brightness(40%); 
    transform: scale(1.02);
}

.col.solutions-dark:hover div:nth-of-type(2) h3 { 
transform: translateY(-24px); }

.dynamicform .solutions-dark:hover::after {
    opacity: 0;
    visibility: hidden; 
}


.dynamicform:has(> .invitation) {
   margin-top: 120px;
}

 .invitation{
   padding-bottom: 80px!important;
}


/* -------------------------------------
STAND
---------------------------------------*/
.dynamicform:has(> .stand) {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px;              
}

.dynamicform:has(> .contact-form) {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #EEEEEE;
    border-radius: 32px;
    padding: 62px;
    margin-bottom: 120px;
}


/* =====================================================
   PONENCIAS
===================================================== */

.dynamicform:has(> .tarjeta-ponencia) {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    overflow: visible;
    position: relative;
    min-height: 400px;
    margin-bottom: 120px;
}


/* =====================================================
   COLUMNAS PRINCIPALES
===================================================== */

.tarjeta-ponencia {
    position: relative;
    min-height: 400px;
}


/* Columna oscura */
.tarjeta-ponencia:nth-of-type(2) {
    border-image: none !important;

    /* Franja inferior */
    border-bottom: 30px solid transparent;

    background-image:
        linear-gradient(#333, #333),
        linear-gradient(
            90deg,
            #063f7b 0%,
            #d3dcec 50%,
            #063f7b 100%
        );

    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-repeat: no-repeat;

    border-radius: 20px 0 0 20px;
}


/* =====================================================
   CONTENIDO INTERIOR
===================================================== */

.tarjeta-ponencia .col.s12 > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: flex-start;

    column-gap: 16px;
    row-gap: 16px;

    padding: 45px 72px;

    box-sizing: border-box;

    width: 100%;
}


/* =====================================================
   ÁREA DE FORMACIÓN
===================================================== */

.tarjeta-ponencia p:nth-child(1) {
    flex: 0 0 100%;
    width: 100%;

    margin: 0 0 25px 0 !important;

    line-height: 1.5rem;
}


.tarjeta-ponencia .blue-grey-text {
    color: #969696 !important;
}


/* =====================================================
   TÍTULO
===================================================== */

.tarjeta-ponencia p:nth-child(2) {
    flex: 0 0 100%;
    width: 100%;

    margin: 0 0 20px 0 !important;

    line-height: 1.5rem;
}


/* =====================================================
   DESCRIPCIÓN
===================================================== */

.tarjeta-ponencia p:nth-child(3) {
    flex: 0 0 100%;
    width: 100%;

    margin: 0 0 25px 0 !important;

    line-height: 1.5rem;
}


/* =====================================================
   PONENTE
===================================================== */

.tarjeta-ponencia p:nth-child(4) {
    flex: 0 0 100%;
    width: 100%;

    display: flex !important;
    flex-direction: row !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 12px;

    background: transparent !important;

    color: white;

    padding: 0 !important;

    margin: 0 0 32px 0 !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    text-align: left !important;
}


/* "PONENTE:" */
.tarjeta-ponencia p:nth-child(4) > span:first-child {
    display: inline-flex !important;

    align-items: center;

    width: auto !important;

    color: white !important;

    background: transparent !important;

    padding: 0 !important;
    margin: 0 !important;

    line-height: 1.2 !important;

    white-space: nowrap;
}


/* Nombre del ponente */
.tarjeta-ponencia p:nth-child(4) > span:nth-child(2) {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    width: auto !important;

    background-color: white !important;

    color: #333 !important;

    border-radius: 999px;

    padding: 7px 20px !important;

    margin: 0 !important;

    line-height: 1.1 !important;

    font-weight: 600;

    white-space: nowrap;
}


/* =====================================================
   FECHA / HORARIO / UBICACIÓN
===================================================== */

/*
   IMPORTANTE:
   Los 3 comparten automáticamente el espacio disponible.

   Así NO saltan de línea cuando aparece el menú lateral.
*/

.tarjeta-ponencia p:nth-child(5),
.tarjeta-ponencia p:nth-child(6),
.tarjeta-ponencia p:nth-child(7) {

    flex: 1 1 0 !important;

    width: auto !important;

    min-width: 0 !important;
    max-width: none !important;

    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: flex-start !important;

    background-color: white !important;

    color: #333 !important;

    border-radius: 18px;

    text-align: center;

    padding: 10px 10px !important;

    margin: 0 !important;

    box-sizing: border-box;

    line-height: 0.2 !important;

    overflow: visible !important;
}


/* =====================================================
   TÍTULOS DE LOS RECUADROS
===================================================== */

/*
FECHA
HORARIO
UBICACIÓN
*/

.tarjeta-ponencia p:nth-child(5) > span:first-child,
.tarjeta-ponencia p:nth-child(6) > span:first-child,
.tarjeta-ponencia p:nth-child(7) > span:first-child {

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    height: 35px !important;
    min-height: 35px !important;

    margin: 0 0 12px 0 !important;

    padding: 0 !important;

    line-height: 1.1 !important;
}


/* Strong */
.tarjeta-ponencia p:nth-child(5) strong,
.tarjeta-ponencia p:nth-child(6) strong,
.tarjeta-ponencia p:nth-child(7) strong {

    display: block;

    margin: 0 !important;

    line-height: 1.1 !important;
}


/* Todos los textos interiores */
.tarjeta-ponencia p:nth-child(5) span,
.tarjeta-ponencia p:nth-child(6) span,
.tarjeta-ponencia p:nth-child(7) span {

    line-height: 1.2 !important;

    max-width: 100%;

    box-sizing: border-box;
}


/* =====================================================
   FOTO DEL PONENTE
===================================================== */

.tarjeta-ponencia > div:nth-of-type(2) img {

    position: absolute;

    top: 50%;
    left: 40px;

    transform: translate(-50%, -50%);

    width: 280px;
    max-width: none;
    height: auto;

    border-radius: 25px;

    z-index: 10;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* =====================================================
   LOGO SUPERIOR
===================================================== */

.tarjeta-ponencia > div:nth-of-type(1) img {

    position: absolute;

    top: 20px;
    right: 30px;

    z-index: 10;

    width: 130px !important;
}


/* =====================================================
   CONTACT FORM
===================================================== */

.contact-form .col > div p:nth-of-type(2) {

    padding: 50px;

    background-color: #BFCAD8;

    border-radius: 20px;

    margin-top: 64px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

    .dynamicform:has(> .tarjeta-ponencia) {
        flex-flow: column-reverse;
    }


    .dynamicform > .tarjeta-ponencia,
    .dynamicform > .tarjeta-ponencia:nth-of-type(2) {

        width: calc(100% - 40px) !important;

        margin-left: 20px;
        margin-right: 20px;
    }


    /* Parte oscura */
    .dynamicform > .tarjeta-ponencia:nth-of-type(2) {

        border-radius: 0 0 20px 20px;
    }


    /* Parte superior */
    .dynamicform > .tarjeta-ponencia:first-of-type {

        border-radius: 20px 20px 0 0;
    }


    /* Foto y logo */
    .tarjeta-ponencia > div:nth-of-type(1) img,
    .tarjeta-ponencia > div:nth-of-type(2) img {

        position: initial;

        transform: none;

        margin-bottom: 20px;
    }


    /* Contenedor */
    .tarjeta-ponencia .col.s12 > div {

        padding: 35px 30px;

        justify-content: center;

        column-gap: 16px;
        row-gap: 16px;
    }


    /*
       TABLET:
       Los cuadros vuelven a poder saltar de línea.
       Dos arriba + uno debajo si no hay espacio.
    */

    .tarjeta-ponencia p:nth-child(5),
    .tarjeta-ponencia p:nth-child(6),
    .tarjeta-ponencia p:nth-child(7) {

        flex: 0 1 calc(50% - 8px) !important;

        width: calc(50% - 8px) !important;

        min-width: 180px !important;
        max-width: none !important;

        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .dynamicform:has(> .stand) {
        flex-wrap: wrap;
    }


    .dynamicform:has(> .contact-form) {

        padding: 43px 32px 0 32px;

        flex-wrap: wrap;
    }


    .col.solutions-dark div:nth-of-type(2) {
        padding: 3rem 1rem;
    }


    /* Interior */
    .tarjeta-ponencia .col.s12 > div {

        padding: 30px 20px;

        column-gap: 12px;
        row-gap: 12px;
    }


    /* Ponente */
    .tarjeta-ponencia p:nth-child(4) {

        flex-wrap: wrap;

        gap: 8px;

        margin-bottom: 24px !important;
    }


    /*
       MÓVIL:
       dos tarjetas por fila
    */

    .tarjeta-ponencia p:nth-child(5),
    .tarjeta-ponencia p:nth-child(6),
    .tarjeta-ponencia p:nth-child(7) {

        flex: 0 0 calc(50% - 6px) !important;

        width: calc(50% - 6px) !important;

        min-width: 0 !important;
        max-width: none !important;

        height: 145px !important;
        min-height: 145px !important;
        max-height: 145px !important;

        padding: 18px 8px !important;
    }
}


/* =====================================================
   MÓVIL MUY PEQUEÑO
===================================================== */

@media (max-width: 420px) {

    /*
       Si la pantalla es demasiado pequeña,
       una tarjeta por fila para no aplastar el texto.
    */

    .tarjeta-ponencia p:nth-child(5),
    .tarjeta-ponencia p:nth-child(6),
    .tarjeta-ponencia p:nth-child(7) {

        flex: 0 0 100% !important;

        width: 100% !important;

        min-width: 0 !important;

        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
}