/* 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;
}

.col .responsive-img,
.video-responsive{
border-radius: 24px;
}

.header img,
.footer img,
.icons img {
border-radius:0!important;
}

.dynamicform:has(> .margin-block) {
  overflow: hidden;
  margin: 120px auto;
    display: flex;
    align-items: center;
    padding: 42px;
}

.dynamicform:has(> .center) {
    display: flex;
    align-items: center;
    max-width: 1024px;
    padding: 42px;
   }

@media (max-width: 768px) {
 
.dynamicform:has(> .center),
.dynamicform:has(> .margin-block) {
       flex-wrap: wrap;
       padding: 12px;
  }
}

/* ==========================================================================
   1. ESTILOS BASE Y TIPOGRAFÍA
========================================================================== */
body {
    background-color: #fff;
}

h1 {
    display: block !important;
    width: 100% !important;
    font-size: 4.5rem !important;
    font-weight: 700 !important;
    line-height: 0.95 !important;
    word-wrap: normal !important;
    margin-top: 218px !important;
}

h2 { 
    font-size: 40px; 
    margin-top: 120px;
}

h3 { 
    color: #1C1D1F; 
    font-size: 28px; 
}

p { 
    font-size: 17px; 
    color: #1C1D1F; 
}

.button a {
    padding: 14px 46px;
    background-color: #1d1d1d;
    border-radius: 99px;
    color: #fff;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    transition: 0.3s;
}

.button a:hover{
    box-shadow: 0 3px 7px rgb(0 0 0 / 47%);
}

/*---------------------------------
-- DOS BOTONES 
---Primario & secundario---
Meterlos en una lista en el editor de texto
---------------------------------------*/

.button ul li:nth-of-type(1) a {
    font-size: 22px;
    text-decoration: underline!important;
    font-weight: 800;
}

.button ul li:nth-of-type(2) a {
    color: #1d1d1d;
    background-color: #fff;
    border: 1px solid #1d1d1d;
    margin-top: 24px;
}

.button ul li:nth-of-type(2) a:hover{
    background-color: #f5f6f7;
    box-shadow: 0 3px 7px rgb(0 0 0 / 15%);
}

@media (max-width: 768px) {
   h1{
    font-size: 3.5rem !important;
   }
}

/*===============================
HERO SECTION
===============================*/

@media only screen and (max-width: 992px) {
.button .col.s12 > div {
    display: flex;
    flex-direction: column;
    align-items: center;
   }
}

/*===============================
VIDEO SECTION
===============================*/



.dynamicform:has(> .video-section){
   display: flex;
   align-items: center;
   justify-content: center;
   flex-wrap: wrap;
   margin-top: 120px;
}



/*=============================================
    LIST-CARDS: SOLUCIÓN FINAL CENTRADA
=============================================*/
.dynamicform:has(> .list-cards){
overflow: hidden;
 background-color: #F5F6F7;
 border-radius: 24px;
 padding: 0 42px 120px 55px;
 margin-top: 120px;
}

/* 1. Título: Forzado al centro y ancho total */
.width-complete {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 50px !important;
}

/* 2. Contenedor Grid: Centrado en la página */
.list-cards {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    /* Eliminamos el gap horizontal para que no se separe icono de texto */
    gap: 30px 0px !important; 
    width: 100% !important;
    margin: 0 auto !important; /* Esto centra el bloque en la página */
    padding: 0 15px !important;
}

/* 3. Estilo base de los módulos */
.list-cards [id^="cms-module-"] {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 25px;
    min-height: 180px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

/* 4. BLOQUE ICONO (Lado izquierdo) */
.list-cards [id^="cms-module-"]:has(img) {
    grid-column: span 1 !important; 
    border-radius: 15px 0 0 15px;
    border-right: none !important;
    justify-content: center;
    /* Añadimos un margen izquierdo para separar las TARJETAS entre sí */
    margin-left: 20px !important; 
    box-shadow: -10px 10px 20px rgba(0,0,0,0.02);
}

/* Ajuste para que la primera tarjeta de cada fila no tenga margen extra si es necesario */
.list-cards [id^="cms-module-"]:nth-child(1),
.list-cards [id^="cms-module-"]:nth-child(7) {
    margin-left: 0 !important;
}

/* Forzar visibilidad de imágenes */
.list-cards [id^="cms-module-"] img {
    width: 45px !important;
    height: auto !important;
    display: block !important;
    opacity: 1 !important;
}

/* 5. BLOQUE TEXTO (Lado derecho) */
.list-cards [id^="cms-module-"]:not(:has(img)) {
    grid-column: span 3 !important; 
    border-radius: 0 15px 15px 0;
    border-left: none !important;
    justify-content: flex-start;
    /* Añadimos margen derecho para separar de la siguiente tarjeta */
    margin-right: 20px !important; 
    box-shadow: 10px 10px 20px rgba(0,0,0,0.02);
}

/* 6. POSICIONAMIENTO Y CENTRADO FILA INFERIOR */
@media (min-width: 992px) {
    /* Centramos la fila de 2 tarjetas (módulos 7, 8, 9, 10) */
    /* Empujamos el módulo 7 para que empiece en la col 3 del grid de 12 */
    .list-cards [id^="cms-module-"]:nth-child(7) {
        grid-column-start: 3 !important;
        margin-left: 0 !important;
    }
}



/*=============================================
    TABLETS (PANTALLAS MEDIANAS)
=============================================*/

@media (max-width: 1420px) and (min-width: 769px) {
    /* 1. Pasamos de 3 tarjetas a 2 tarjetas por fila para dar aire */
    div.col.list-cards {
        grid-template-columns: repeat(2, 1fr 2fr) !important;
        gap: 20px 0px !important;
    }

    /* 2. Ajustamos los span para que el icono y texto sigan unidos */
    div.list-cards > div[id^="cms-module-"]:has(img) {
        grid-column: span 1 !important;
        margin-left: 10px !important;
        min-width: 80px !important;
    }

    div.list-cards > div[id^="cms-module-"]:not(:has(img)) {
        grid-column: span 1 !important;
        margin-right: 10px !important;
    }

    /* 3. Reset de posicionamiento: En 2 columnas el centrado del 7º elemento cambia */
    div.list-cards > div[id^="cms-module-"]:nth-child(7) {
        grid-column-start: auto !important;
    }
}

/*=============================================
    AJUSTE DE VISIBILIDAD
=============================================*/

/* Forzamos que el contenedor de la imagen tenga un ancho mínimo real */
div.list-cards > div[id^="cms-module-"]:has(img) {
    flex-basis: 100px !important;
    flex-shrink: 0 !important;
}

/* Evitamos que la imagen colapse a 0px */
div.list-cards img {
    min-width: 40px !important;
    width: 45px !important;
    height: auto !important;
    display: block !important;
}



/* 7. RESPONSIVE MÓVIL */
@media (max-width: 768px) {


.dynamicform:has(> .list-cards) {
    border-radius: 24px;
    padding: 0 6px 18px 25px;
}


    /* 1. Grid de 2 columnas: Fijo para el icono y flexible para el texto */
    div.col.list-cards {
        display: grid !important;
        grid-template-columns: 80px 1fr !important; 
        gap: 0 !important;
        padding: 10px !important;
        background-color: transparent !important;
    }

    /* 2. Unificación visual y eliminación de sombras internas */
    div.list-cards > div[id^="cms-module-"] {
        background-color: #ffffff !important;
        min-height: 100px !important; /* Altura mínima para que no colapse */
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #f0f0f0 !important;
        box-shadow: none !important; /* Quitamos sombras individuales */
    }

    /* 3. Lado del ICONO (Columna 1) */
    div.list-cards > div[id^="cms-module-"]:has(img),
    div.list-cards > div[id^="cms-module-"]:has(.responsive-img) {
        grid-column: 1 !important;
        border-radius: 12px 0 0 12px !important;
        border-right: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* Sombra solo a la izquierda, arriba y abajo */
        box-shadow: -5px 5px 15px rgba(0,0,0,0.03) !important;
    }

    /* SOLUCIÓN AL ACHICAMIENTO: Forzamos tamaño del icono */
    div.list-cards > div[id^="cms-module-"] img {
        width: 40px !important; 
        min-width: 40px !important; /* Evita que se achique a 0 */
        height: auto !important;
        flex-shrink: 0 !important; /* Prohibe al navegador comprimir la imagen */
        display: block !important;
    }

    /* 4. Lado del TEXTO (Columna 2) */
    div.list-cards > div[id^="cms-module-"]:not(:has(img)):not(:has(.responsive-img)) {
        grid-column: 2 !important;
        border-radius: 0 12px 12px 0 !important;
        border-left: none !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        /* Sombra solo a la derecha, arriba y abajo */
        box-shadow: 5px 5px 15px rgba(0,0,0,0.03) !important;
    }

    /* Limpieza de espacios extra en el texto */
    div.list-cards p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    div.list-cards p br {
        display: none; /* Quitamos saltos de línea innecesarios en móvil */
    }

    /* 5. Ajuste del título */
    .dynamicform > .col.s12:first-child h2 {
        margin-top: 42px !important;
    }



.list-cards > [id^="cms-module-"]:has(img),
    .list-cards > [id^="cms-module-"]:has(.responsive-img) {
        margin-left: 0 !important;
    }

.list-cards > [id^="cms-module-"]:nth-child(7) {
        grid-column-start: 3 !important;
    }



}
/* ====================================
   CONTACT FORM
   ==================================== */

.dynamicform:has(> .contact-form) {
    display: flex;
    flex-direction: row;
    background-color: #EEEEEE;
    border-radius: 24px;
    padding: 62px;
    margin: 120px auto;
}


.contact-form .col > div p:nth-of-type(2){
    padding: 50px;
    background-color: #BFCAD8;
    border-radius: 18px;
    margin-top: 64px;
}


@media (max-width: 768px) {

.dynamicform:has(> .contact-form){
    padding: 24px;
    flex-wrap: wrap;
   }
}