/* 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;
  padding: 24px;
}

.dynamicform:has(> .center) {
    display: flex;
    align-items: center;
    max-width: 1024px;
    padding: 42px;
   }


@media only screen and (max-width: 992px) {
.dynamicform:has(> .center) {
  flex-wrap: wrap;
  }

.dynamicform:has(> .center.reverse) {
  flex-direction: column-reverse;
  }
}


/* ==========================================================================
   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;
}

@media (max-width: 768px) {
 h1 {
   font-size: 3.5rem !important;
   }
}

h2 { 
    font-size: 40px; 
    margin-top: 120px;
}

h3 { 
    color: #1C1D1F; 
    font-size: 28px; 
}

p { 
    font-size: 17px; 
    color: #1C1D1F; 
}

.button-white a {
    padding: 14px 46px;
    background-color: #fff;
    border-radius: 99px;
    color: #1d1d1d;
    font-size: 18px;
    display: inline-block;
    min-width: 320px;
    text-align: center;
    transition: 0.3s;
}

.button-white a:hover{
    box-shadow: 0 3px 7px rgb(0 0 0 / 47%);
}
 
.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%);
}

.button-second a{
    color: #1d1d1d;
    background-color: #fff;
    border: 1px solid #1d1d1d;
    margin-top: 24px;
    padding: 14px 46px;
    border-radius: 99px;
    font-size: 18px;
    display: inline-block;
    min-width: 320px;
    text-align: center;
    transition: 0.3s;
}

.button-second a:hover{
    background-color: #f5f6f7;
    box-shadow: 0 3px 7px rgb(0 0 0 / 15%);
}


/* ==========================================================================
   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;
}



/* ====================================================
   CARDS 
   ==================================================== */

/* Contenedor que solo afecta al bloque que tiene cards CMS */
.dynamicform:has(.card > div[id^="cms-module-"]):not(:has(.contact-form)){
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch; /* <-- todas mismas alturas */
  max-width: 1024px;
  padding: 12px 82px;
}

@media (max-width: 768px) {
.dynamicform:has(.card > div[id^="cms-module-"]):not(:has(.contact-form)){
   padding: 12px 24px!important;
   } 
}

.dynamicform:has(.top-bottom-box-card > div[id^="cms-module-"]):not(:has(.contact-form)) {
    max-width: 1024px;
    background-color: #c2d2e7;
    padding: 12px 48px;
    overflow: hidden;
}

.dynamicform:has(.top-bottom-box-card.top > div[id^="cms-module-"]):not(:has(.contact-form)) {
  border-radius: 24px 24px 0 0;
  margin-top: 120px;
  padding-top: 56px;
}

.dynamicform:has(.top-bottom-box-card.bottom > div[id^="cms-module-"]):not(:has(.contact-form)) {
  border-radius: 0 0 24px 24px;
}


/* Card base (independiente del grid l4/l6/etc) */
.dynamicform .card:has(> div[id^="cms-module-"]){
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08) !important;
  padding: 24px !important;
  overflow: hidden;

  /* Layout interno */
  display: grid !important;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto 1fr auto; /* clave para altura uniforme */
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;

  /* Altura consistente */
  min-height: 220px;

  /* Comportamiento flexible */
  flex: 1 1 320px;
}

/* Reset Materialize */
.dynamicform .card:has(> div[id^="cms-module-"]) .row{
  margin: 0 !important;
}
.dynamicform .card:has(> div[id^="cms-module-"]) .col.s12{
  padding: 0 !important;
}

/* =========================
   1) ICONO
   ========================= */
.dynamicform .card:has(> div[id^="cms-module-"])
> div[id^="cms-module-"]:nth-of-type(1){
  grid-column: 1;
  grid-row: 1;
}

.dynamicform .card:has(> div[id^="cms-module-"])
> div[id^="cms-module-"]:nth-of-type(1) img{
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  display: block;
}

/* =========================
   2) TEXTO
   ========================= */
.dynamicform .card:has(> div[id^="cms-module-"])
> div[id^="cms-module-"]:nth-of-type(2){
  grid-column: 2;
  grid-row: 1 / span 2; /* ocupa espacio central */
}

/* Título */
.dynamicform .card:has(> div[id^="cms-module-"])
> div[id^="cms-module-"]:nth-of-type(2) h3{
  margin: 0 0 6px 0 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #111 !important;
}

/* Descripción */
.dynamicform .card:has(> div[id^="cms-module-"])
> div[id^="cms-module-"]:nth-of-type(2) p{
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  color: rgba(0,0,0,0.70) !important;
}




/* ===========================================
   FEATURES BLOCK: ICON, TEXT & IMAGE
   Bloque en grid: Icono (Col 1), Texto (Col 2), Imagen (Col 3)
   =========================================== */

/* --- ESTRUCTURA GENERAL (GRID) --- */
.dynamicform:has(> .lab-features-icons) {
  display: grid;
  grid-template-columns: 88px 1fr 420px;
  /* 1 fila para título + 5 filas para contenido */
  grid-template-rows: auto repeat(5, minmax(72px, auto)) !important;
  column-gap: 18px;
  row-gap: 16px;
  align-items: start;
  margin-top: 120px;
    padding: 0 24px;
}

/* Neutralización de estilos heredados del framework */
.dynamicform:has(> .lab-features-icons) > .lab-features-icons,
.dynamicform:has(> .lab-features-icons) > .lab-features-text,
.dynamicform:has(> .lab-features-icons) > .lab-features-image {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

/* --- COLUMNA IMAGEN --- */
.dynamicform:has(> .lab-features-icons) > .lab-features-image {
grid-column: 3;
    grid-row: 2 / span 4;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    align-self: stretch;
    min-height: 100%;
    display: block;
    min-width: stretch;
}

.dynamicform:has(> .lab-features-icons) > .lab-features-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block !important;
}

/* --- COLUMNAS DE ICONOS Y TEXTOS --- */
.dynamicform:has(> .lab-features-icons) > .lab-features-icons,
.dynamicform:has(> .lab-features-icons) > .lab-features-text {
  display: contents; /* Desglosa los hijos directamente en el grid padre */
}

/* Asignación de columnas */
.dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"] {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  position: relative;
  z-index: 2;
}

.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"] {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

/* Título principal (Ocupa columna 1 y 2) */
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

/* --- EMPAREJADO DE FILAS (Items 1 al 5) --- */
.dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"]:nth-child(1),
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(2) { grid-row: 2; }

.dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"]:nth-child(2),
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(3) { grid-row: 3; }

.dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"]:nth-child(3),
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(4) { grid-row: 4; }

.dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"]:nth-child(4),
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(5) { grid-row: 5; }

.dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"]:nth-child(5),
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(6) { grid-row: 6; }

/* --- ESTÉTICA DE TARJETAS Y TEXTOS --- */
.dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:not(:first-child) {
  grid-column: 1 / 3; /* El fondo abarca también la zona del icono */
  background: #F5F6F7;
  border-radius: 14px;
}

.dynamicform:has(> .lab-features-icons) .lab-features-text p {
  margin: 0 !important;
  padding: 14px 18px 14px 96px; /* El padding izquierdo previene colisión con icono */
  border-radius: 10px;
}

.dynamicform:has(> .lab-features-icons) .lab-features-icons img {
  width: 42px !important;
  max-width: 42px !important;
  display: block;
}

/* --- LIMPIEZA DE CONTENEDORES INTERNOS --- */
.dynamicform:has(> .lab-features-icons) [id^="cms-module-"] .row,
.dynamicform:has(> .lab-features-icons) .lab-features-icons .row.mt-2 {
  margin: 0 !important;
}

.dynamicform:has(> .lab-features-icons) [id^="cms-module-"] .col {
  padding: 0 !important;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
  .dynamicform:has(> .lab-features-icons) {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto repeat(5, auto);
    column-gap: 12px;
    row-gap: 12px;
    padding: 28px;
  }

  .dynamicform:has(> .lab-features-icons) > .lab-features-image {
    display: none !important;
  }

.dynamicform:has(> .lab-features-icons) .lab-features-icons img{
    margin-left: 18px;
}

  .dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:nth-child(1) {
    grid-column: 1 / -1;
  }

  .dynamicform:has(> .lab-features-icons) .lab-features-text > [id^="cms-module-"]:not(:first-child) {
    grid-column: 1 / -1;
    padding: 0; /* Controlado por el padding del p */
  }

  .dynamicform:has(> .lab-features-icons) .lab-features-text p {
    padding: 14px 16px 14px 82px; /* Ajuste de padding izquierdo para icono en móvil */
  }

  .dynamicform:has(> .lab-features-icons) .lab-features-icons > [id^="cms-module-"] {
    padding: 14px 0 0 0 !important;
    align-items: flex-start;
  }
}


/*==================================
TIMELINE
==================================*/
/* 1. Contenedor General */
.dynamicform .timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Alineación central para que la línea sea el eje */
    position: relative;
    padding: 286px 0;
    counter-reset: step-counter;
}

/* 2. Título Superior (Activación 100% online...) */
.dynamicform .timeline > div[id^="cms-module-"]:first-child {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 20px;
    left: 0;
}

.dynamicform .timeline > div[id^="cms-module-"]:first-child .col.s12 > div{
    background-color: transparent;
    box-shadow: none;
}

/* 3. La Línea de Tiempo (El Eje) */
.dynamicform .timeline::after {
    content: "";
    position: absolute;
    top: 55%; /* Eje central */
    left: 5%;
    right: 5%;
    height: 7px;
    background: #e0e0e0;
    z-index: 0;
    border-radius: 4px;
}

/* 4. Estructura de las cajas de pasos */
.dynamicform .timeline > div[id^="cms-module-"]:not(:first-child) {
    flex: 1;
    max-width: 300px;
    position: relative;
    z-index: 2;
}

/* Contenedor interno de la caja (h4 + p) */
.dynamicform .timeline .col.s12 > div {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 12px rgb(0 0 0 / 12%);
    width: 90%;
    margin: 0 auto;
}

.dynamicform .timeline h4 {
    margin: 0;
    padding: 10px;
    color: white;
    font-size: 15px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.dynamicform .timeline p {
    margin: 0;
    padding: 15px;
    font-size: 13px;
    text-align: center;
    color: #555;
}

/* --- ELEMENTOS COMUNES: FLECHA Y PUNTO --- */

/* La Flecha (Triángulo) */
.dynamicform .timeline .col.s12 > div::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
}

/* El Punto (Circulito en la línea) */
.dynamicform .timeline .col.s12 > div::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 5;
}

/* --- POSICIONAMIENTO PASOS 1 Y 3 (ARRIBA) --- */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(2),
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(4) {
    transform: translateY(-67px); /* Empuja la caja hacia arriba del eje */
}

/* Flecha apuntando abajo */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(2) .col.s12 > div::before,
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(4) .col.s12 > div::before {
    bottom: -20px;
    border-top-color: #f4f4f4; /* Mismo gris que la caja */
}

/* Punto sobre la línea (para los de arriba) */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(2) .col.s12 > div::after,
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(4) .col.s12 > div::after{
    bottom: -40px;
}

/* --- POSICIONAMIENTO PASO 2 (ABAJO) --- */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(3) {
    transform: translateY(158px); /* Empuja la caja hacia abajo del eje */
}

.dynamicform .timeline > div[id^="cms-module-"]:nth-child(3) .col.s12 > div {
    flex-direction: column-reverse;
    box-shadow: 0 -8px 12px rgb(0 0 0 / 12%);
 /* Título abajo para que la flecha salga del título */
}

/* Flecha apuntando arriba */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(3) .col.s12 > div::before {
    top: -20px;
    border-bottom-color: #f4f4f4;
}

/* Punto sobre la línea (para el de abajo) */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(3) .col.s12 > div::after{
    top: -35px;
}

/* --- COLORES Y CONTADORES --- */

.dynamicform .timeline h4 strong::before {
    counter-increment: step-counter;
    content: counter(step-counter) ". ";
    font-size: 32px;
}

/* Colores de cajas y puntos */
/* Paso 1 */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(2) h4 { background: #99b4d8; }
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(2) .col.s12 > div::after { background: #1d1d1f; }

/* Paso 2 */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(3) h4 { 
background: #99b4d8;
border-radius: 0 0 8px 8px;
 }

.dynamicform .timeline > div[id^="cms-module-"]:nth-child(3) .col.s12 > div::after { background: #1d1d1f; }

/* Paso 3 */
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(4) h4 { background: #99b4d8; }
.dynamicform .timeline > div[id^="cms-module-"]:nth-child(4) .col.s12 > div::after { background: #1d1d1f; }



/* --- VERSIÓN MÓVIL --- */
@media only screen and (max-width: 768px) {
    /* 1. Reset del contenedor principal */
    .dynamicform .timeline {
        display: block !important; /* Cambiamos de flex/grid a bloque normal */
        padding: 20px 0;
        height: auto;
    }

    /* 2. Ocultamos la línea de tiempo y los puntos */
    .dynamicform .timeline::after,
    .dynamicform .timeline .col.s12 > div::after {
        display: none !important;
    }

    /* 3. Ajuste de los módulos de cada paso */
    .dynamicform .timeline > div[id^="cms-module-"] {
        width: calc(100% - 48px) !important; /* 24px de margen a cada lado */
        max-width: none !important;
        margin: 0 24px 30px 24px !important; /* Margen lateral de 24px y separación entre cajas */
        transform: none !important; /* Eliminamos el desplazamiento arriba/abajo */
        position: static !important;
    }

    /* 4. Reset de la estructura interna de la caja */
    .dynamicform .timeline .col.s12 > div {
        width: 100% !important;
        flex-direction: column !important; /* Todas con título arriba */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* 5. Aseguramos que el título esté arriba en todos los pasos */
    .dynamicform .timeline h4 {
        order: 1 !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .dynamicform .timeline p {
        order: 2 !important;
        border-radius: 0 0 12px 12px !important;
        min-height: auto; /* El texto dicta la altura */
    }

    /* 6. Eliminamos las flechas (triángulos) */
    .dynamicform .timeline .col.s12 > div::before {
        display: none !important;
    }

    /* 7. Ajuste del título principal (Activación 100%...) */
    .dynamicform .timeline > div[id^="cms-module-"]:first-child {
        position: static !important;
        margin-bottom: 40px !important;
        padding: 0 24px;
        font-size: 1.5rem;
    }
}

.dynamicform:has(> .color-block) {
  overflow:hidden;
  background-color: #3368B0;
  border-radius: 24px;
  margin-bottom: 84px;
}



/* ====================================
   CONTACT FORM
   ==================================== */

.dynamicform:has(> .contact-form) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #EEEEEE!important;
    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;
}