/* 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, #fef25c 5%, #f5c762 15%, #eeae78 25%, #e37bae 40%, #fb8579 65%, #5cd5ff 85%);
    border-image-slice: 1;

}
/* -------------------------------------------------------
   SAVE THE DATE
--------------------------------------------------------*/

.save-date div > div > div > div,
.logos {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px;              
    flex-wrap: wrap;  
    margin: 48px auto 0 auto;
}

/* Estilo para cada bloque de fecha (los párrafos <p>) */
.save-date p {
    background-color: #333;  
    color: white;
    border-radius: 24px;    
    display: flex;
    flex-direction: column;  
    justify-content: center;
    align-items: center;
    margin: 0 !important;  
    line-height: 0.8;
    min-width: 125px;
    padding: 26px 36px;
}

/* Estilo para el día (MIÉ, JUE, VIE) */
.save-date p::first-line {
    font-size: 46px;
    font-weight: bold;
    line-height: 1;
}

/* Estilo para el número (11, 12, 13) */
.save-date p {
    font-size: 26px;
    font-weight: 800;
}


/* ==========================================================================
   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;
}

/* Las dos columnas principales */
.tarjeta-ponencia {
    position: relative;
    min-height: 400px;
    border-radius: 0 20px 20px 0;
}

/* Columna izquierda (Texto)
.tarjeta-ponencia:first-of-type {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px 0 0 20px;
border: 1px solid red;
} */

.tarjeta-ponencia:nth-of-type(2) {
  border-image: none !important;
    
    /* 2. Definimos el grosor solo abajo (y a la izquierda si quieres que la curva se vea) */
    border-bottom: 30px solid transparent;
    
    /* 3. El truco de capas de fondo */
    background-image: 
        linear-gradient(#333, #333), /* Capa superior: Color de tu tarjeta */
        linear-gradient(90deg, #fef25c 5%, #f5c762 15%, #eeae78 25%, #e37bae 40%, #fb8579 65%, #5cd5ff 85%); 

    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-repeat: no-repeat;
    border-radius: 20px 0 0 20px;
}

/* Foto del Ponente (Desktop/Tablet) */
.tarjeta-ponencia > div:nth-of-type(2) img {
    position: absolute;
    top: 50%;
    left: 0; /* Se alinea justo en la unión de las dos columnas */
    transform: translate(-50%, -50%);
    width: 280px;
    height: auto;
    border-radius: 25px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tarjeta-ponencia > div:nth-of-type(1) img{
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    width: 130px !important;
} 

/* Estilo específico para la 3ª p (Ponente) para que no ocupe todo el ancho visualmente */
.tarjeta-ponencia p:nth-child(3) span:nth-child(2){
    display: inline-flex;
    width: auto;
    background-color: white;
    color: #333;
    padding: 5px 15px;
    line-height: 18px;
    align-self: center;
    border-radius: 20px;
    margin-bottom: 25px !important; 
}

/* Las 3 últimas p (Recuadros blancos): Alineadas horizontalmente */
.tarjeta-ponencia .col.s12 > div {
    display: flex;
    flex-wrap: wrap; 
    flex-direction: row; /* Flujo horizontal por defecto */
    gap: 20px;           /* Espacio entre los cuadros blancos */
    align-items: flex-start;
    padding: 28px 72px;
}

/* 2. Las 3 primeras filas (Área, Título, Ponente): 
      Forzamos que cada una ocupe su propia línea completa */
.tarjeta-ponencia p:nth-child(1),
.tarjeta-ponencia p:nth-child(2),
.tarjeta-ponencia p:nth-child(3) {
    line-height: 1.5rem;
    flex: 0 0 100%;    /* Ocupa todo el ancho disponible */
    margin-bottom: 0;
}

/* 3. Las 3 últimas p (Los cuadros blancos): 
      Quitamos el ancho del 100% para que se alineen una al lado de la otra */
.tarjeta-ponencia p:nth-child(n+4) {
    flex: 0 1 auto;    /* Permite que el tamaño lo defina el width fijo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    background-color: white;
    color: #333;
    width: 120px;      /* Tamaño de los cuadros */
    height: 120px;
    border-radius: 18px;
    text-align: center;
    margin: 0 !important;
    padding: 10px;
    box-sizing: border-box;
    line-height: 27px;
}

.tarjeta-ponencia .blue-grey-text {
    color: #969696 !important;
    margin-top: -22px;
}

/* Ajuste para que el Ponente (3ª p) se vea como una cápsula y no una barra larga */
.tarjeta-ponencia p:nth-child(3) {
    display: flex;
}



.contact-form .col > div p:nth-of-type(2){
    padding: 50px;
    background-color: #BFCAD8;
    border-radius: 20px;
    margin-top: 64px;
}


/* -------------------------------------
----------- VISTA MOVIL---------------
---------------------------------------*/
/* Ajuste específico para móvil */
@media (max-width: 600px) {
    .save-date p {
        font-size: 28px;
    }

    .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;
    }
}

/*------------------------
---- PONENCIAS--------
--------------------------*/
@media (max-width: 992px) {

.dynamicform:has(> .tarjeta-ponencia){
    flex-flow: column-reverse;
}

.dynamicform > .tarjeta-ponencia,    
.dynamicform > .tarjeta-ponencia:nth-of-type(2) {
        border-radius: 0 0 20px 20px;
        margin: 0 20px 0 20px;
        width: calc(100% - 40px) !important;
    }


.dynamicform > .tarjeta-ponencia{
    border-radius:20px 20px 0 0 ;
}

    /* Reposicionamos la foto en móvil */
    .tarjeta-ponencia > div:nth-of-type(1) img,
    .tarjeta-ponencia > div:nth-of-type(2) img {
        position: initial;
        transform: none;
        margin-bottom: 20px;
    }

    /* Los 3 cuadrados en móvil se ajustan al ancho */
    .tarjeta-ponencia .col.s12 > div {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tarjeta-ponencia .col.s12 > div{
        padding: 28px 20px;
    }
}