/* 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;
}

/* ==========================================================================
   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;
}

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;
    min-width: 320px;
    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: transparent;
    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;
    max-width: 1024px;
    padding: 24px 24px 48px 24px;
}


/* ==========================================================
    ZIG-ZAG BLOCK
   ========================================================== */
.dynamicform > .col.zig-zag-block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 30px 80px; /* 30px vertical, 80px horizontal */
    justify-content: space-between !important;
    padding: 46px 52px !important;
    background-color: #e6e7e9;
    border-radius: 24px;
    margin-top: 120px;
}

/* Título siempre arriba */
.dynamicform > .col.zig-zag-block > div:first-child {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    margin: 0 auto 60px auto !important;
    order: -1 !important;
    text-align: center !important;
}

.dynamicform > .col.zig-zag-block > div:first-child h3 {
    font-size: 2.5rem;
}

/* ==========================================================
      REGLAS PARA BLOQUES DE TEXTO (Cajas Azules)
   ========================================================== */
/* Seleccionamos 2, 4, 6 y 8 (que son tus módulos de texto) */
.dynamicform > .col.zig-zag-block > div:nth-child(2),
.dynamicform > .col.zig-zag-block > div:nth-child(4),
.dynamicform > .col.zig-zag-block > div:nth-child(6),
.dynamicform > .col.zig-zag-block > div:nth-child(8) {
    flex: 0 0 calc(70% - 40px) !important;
    max-width: calc(70% - 40px) !important;
    padding: 60px !important;
    background-color: #3368b0;
    border-radius: 24px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Recuperamos el color blanco para los textos */
.dynamicform > .col.zig-zag-block > div:nth-child(2) h3, .dynamicform > .col.zig-zag-block > div:nth-child(2) p,
.dynamicform > .col.zig-zag-block > div:nth-child(4) h3, .dynamicform > .col.zig-zag-block > div:nth-child(4) p,
.dynamicform > .col.zig-zag-block > div:nth-child(6) h3, .dynamicform > .col.zig-zag-block > div:nth-child(6) p,
.dynamicform > .col.zig-zag-block > div:nth-child(8) h3, .dynamicform > .col.zig-zag-block > div:nth-child(8) p {
    color: #ffffff !important;
}

/* ==========================================================
     REGLAS PARA BLOQUES DE IMAGEN
   ========================================================== */
/* Seleccionamos 3, 5, 7 y 9 (que son tus módulos de imagen) */
.dynamicform > .col.zig-zag-block > div:nth-child(3),
.dynamicform > .col.zig-zag-block > div:nth-child(5),
.dynamicform > .col.zig-zag-block > div:nth-child(7),
.dynamicform > .col.zig-zag-block > div:nth-child(9) {
    flex: 0 0 calc(30% - 40px) !important;
    max-width: calc(30% - 40px) !important;
    position: relative !important;
    min-height: 400px; /* Para asegurar que la imagen tenga presencia */
}

.dynamicform > .col.zig-zag-block div.col.center .responsive-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
}

/* ==========================================================
     EL ZIG-ZAG (Control de Orden Visual)
   ========================================================== */
@media only screen and (min-width: 993px) {
    /* Fila 1: Texto (2) Izquierda, Imagen (3) Derecha */
    .dynamicform > .col.zig-zag-block > div:nth-child(2) { order: 1 !important; }
    .dynamicform > .col.zig-zag-block > div:nth-child(3) { order: 2 !important; }

    /* Fila 2: Texto (4) Derecha, Imagen (5) Izquierda -> ZIG-ZAG */
    .dynamicform > .col.zig-zag-block > div:nth-child(4) { order: 4 !important; }
    .dynamicform > .col.zig-zag-block > div:nth-child(5) { order: 3 !important; }

    /* Fila 3: Texto (6) Izquierda, Imagen (7) Derecha */
    .dynamicform > .col.zig-zag-block > div:nth-child(6) { order: 5 !important; }
    .dynamicform > .col.zig-zag-block > div:nth-child(7) { order: 6 !important; }

    /* Fila 4: Texto (8) Derecha, Imagen (9) Izquierda -> ZIG-ZAG */
    .dynamicform > .col.zig-zag-block > div:nth-child(8) { order: 8 !important; }
    .dynamicform > .col.zig-zag-block > div:nth-child(9) { order: 7 !important; }
}

/* ==========================================================
     MOBILE
   ========================================================== */
@media only screen and (max-width: 992px) {

    .dynamicform > .col.zig-zag-block{
       padding: 46px 32px !important;
     }

    .dynamicform > .col.zig-zag-block > div:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
     }
    .dynamicform > .col.zig-zag-block > div:not(:first-child) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: initial !important; /* Orden natural en móvil */
        padding: 24px !important;
    }
    .dynamicform > .col.zig-zag-block div.col.center .responsive-img {
        position: relative !important;
        max-height: 380px;
    }
   .dynamicform > .col.zig-zag-block > div:nth-child(3),
   .dynamicform > .col.zig-zag-block > div:nth-child(5),
   .dynamicform > .col.zig-zag-block > div:nth-child(7),
   .dynamicform > .col.zig-zag-block > div:nth-child(9),
.dynamicform > .col.zig-zag-block > div:nth-child(3) .row .col,
.dynamicform > .col.zig-zag-block > div:nth-child(5) .row .col,
.dynamicform > .col.zig-zag-block > div:nth-child(7) .row .col,
.dynamicform > .col.zig-zag-block > div:nth-child(9) .row .col{
       padding: 0 !important;
   }
}




/* ==========================================================
   FEATURES - ICON, TEXT & IMAGE
   ========================================================== */

/* 1. GRID PRINCIPAL Y ESTRUCTURA */
.dynamicform:has(> .features-icons) {
  display: grid;
  grid-template-columns: 62px 1fr 420px;
  /* 1 fila título + 5 filas contenido */
  grid-template-rows: auto repeat(7, minmax(52px, auto)) !important;
  column-gap: 18px;
  row-gap: 16px;
  align-items: start;
  margin: 120px auto;
  max-width: 1240px;
}

/* Neutralizamos comportamiento por defecto del framework */
.dynamicform:has(> .features-icons) > .features-icons,
.dynamicform:has(> .features-icons) > .features-text,
.dynamicform:has(> .features-icons) > .features-image {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  display: contents; /* Sacamos módulos al grid */
}

/* 2. COLUMNA IMAGEN (features-image) */
.dynamicform:has(> .features-icons) > .features-image {
  grid-column: 3;
  grid-row: 2 / span 7; /* combina 1 título + 7 filas */
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  align-self: stretch;
  min-width: stretch;
  min-height: 100%;
  display: block; /* Sobrescribe el contents solo para el contenedor visual */
}

.dynamicform:has(> .features-icons) > .features-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* 3. ASIGNACIÓN DE COLUMNAS (Iconos y Textos) */
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"] {
  grid-column: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"] {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

/* TÍTULO (Primer módulo de textos) */
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

/* 4. EMPAREJADO DE FILAS (Items 2 al 6) */
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(1) { grid-row: 2; }
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(2) { grid-row: 3; }
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(3) { grid-row: 4; }
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(4) { grid-row: 5; }
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(5) { grid-row: 6; }
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(6) { grid-row: 7; }
.dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"]:nth-child(7) { grid-row: 8; }

.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(2) { grid-row: 2; }
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(3) { grid-row: 3; }
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(4) { grid-row: 4; }
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(5) { grid-row: 5; }
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(6) { grid-row: 6; }
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(7) { grid-row: 7; }
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(8) { grid-row: 8; }

/* 5. ESTÉTICA DE LAS TARJETAS DE TEXTO */
.dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:not(:first-child) {
  grid-column: 1 / 3;
  background: #F5F6F7;
  border-radius: 14px;
}

.dynamicform:has(> .features-icons) .features-text p {
  margin: 0 !important;
  padding: 14px 18px 14px 64px; /* Padding izquierdo para no chocar con el icono */
  border-radius: 10px;
}

.dynamicform:has(> .features-icons) .features-icons img {
  width: 32px !important;
  max-width: 32px !important;
  display: block;
}

/* 6. LIMPIEZA BUILDER (CMS) */
.dynamicform:has(> .features-icons) [id^="cms-module-"] .row,
.dynamicform:has(> .features-icons) .features-icons .row.mt-2 {
  margin: 0 !important;
  margin-top: 0 !important;
}

.dynamicform:has(> .features-icons) [id^="cms-module-"] .col {
  padding: 0 0 0 18px !important;
}

/* =========================
   RESPONSIVE (MÓVIL)
   ========================= */
@media (max-width: 768px) {
  .dynamicform:has(> .features-icons) {
    grid-template-columns: 45px 1fr;
    grid-template-rows: auto repeat(5, auto);
    column-gap: 12px;
    row-gap: 12px;
    padding: 28px;
    margin-bottom: 0;
  }

  .dynamicform:has(> .features-icons) > .features-image {
    display: none !important;
  }

  .dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:nth-child(1) {
    grid-column: 1 / -1;
  }

  .dynamicform:has(> .features-icons) .features-text > [id^="cms-module-"]:not(:first-child) {
    grid-column: 1 / -1;
    padding: 0; /* El padding lo da el <p> interno */
  }

  .dynamicform:has(> .features-icons) .features-text p {
    padding: 14px 16px 14px 56px; /* Ajuste espacio icono en móvil */
  }

  .dynamicform:has(> .features-icons) .features-icons > [id^="cms-module-"] {
    grid-column: 1;
    justify-content: center !important;
    padding-top: 0 !important; /* Alineación centrada por flex */
  }
}


/*===========================================
VIDEO BLOCK
===========================================*/

.dynamicform:has(>  .video-block-color) {
    display: flex !important;
    flex-wrap: wrap !important;

    background-color: #F5F6F7;
    border-radius: 24px;
    margin-top: 120px;
    overflow: hidden;
    padding: 72px;
}

.dynamicform > .col.video-block-color {
    display: contents !important; 
}

.dynamicform > .col.video-block-color:first-of-type > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    order: 1;
}

.dynamicform > .col.video-block-color:last-of-type > div:first-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical con respecto al video */
    align-items: center;     /* Centrado horizontal solicitado */
    text-align: left;
    order: 2;
    padding: 0 42px;
}

.dynamicform > .col.video-block-color:last-of-type > div:nth-child(2) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 3; /* Se coloca debajo de los dos de arriba */
    text-align: center;
    padding-top: 2rem;
}

/* RESPONSIVE: Todo al 100% en móvil */
@media only screen and (max-width: 992px) {
    .dynamicform > .col.video-block-color:first-of-type > div,
    .dynamicform > .col.video-block-color:last-of-type > div:first-child,
    .dynamicform > .col.video-block-color:last-of-type > div:nth-child(2) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

.dynamicform:has(> .video-block-color) {
     padding: 36px 12px;
    }

.dynamicform > .col.video-block-color:last-of-type > div:first-child{
    padding: 0;
    text-align: center;
    }

.col .responsive-img, .video-responsive {
    border-radius: 18px;
    }
}



/* ==========================================================================
   3. BLOCK ICON
   ========================================================================== */
.dynamicform .block-icon {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px !important;
}

.dynamicform .block-icon div[id^="cms-module-"]:nth-of-type(1) {
    width: 50px !important; 
    margin-bottom: -45px !important; 
    z-index: 2;
}

.dynamicform .block-icon div[id^="cms-module-"]:nth-of-type(2) {
    width: 100% !important;
}

.dynamicform .block-icon div[id^="cms-module-"]:nth-of-type(2) h3 {
    padding-left: 65px !important;
    margin-top: 0 !important;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.dynamicform .block-icon div[id^="cms-module-"]:nth-of-type(2) p {
    margin-top: 15px !important;
    padding-left: 0 !important;
    width: 100% !important;
    display: block !important;
}

.block-icon img.responsive-img {
    max-width: 100% !important;
    height: auto !important;
}



/*------------------------------------------
CONTACT FORM
-----------------------------------------*/
.dynamicform:has(> .contact-form) {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #EEEEEE;
    border-radius: 24px;
    padding: 62px;
    margin-top: 120px!important;
    margin-bottom: 120px!important;
    padding: 42px !important;
}


.contact-form.card {
    grid-template-columns: auto !important;
}


/* -------------------------------------
----------- VISTA MOVIL---------------
---------------------------------------*/
/* Ajuste específico para móvil */
@media (max-width: 768px) {


/*----  CONTACT FORM ------*/
    .dynamicform:has(> .contact-form){
        padding: 43px 12px 0 12px !important;
        flex-wrap: wrap;
     }
}