/* 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;
    padding: 8px;
  }

.dynamicform:has(> .center.reverse) {
  flex-direction: column-reverse;
  }
}


/* ==========================================================================
   1. ESTILOS BASE Y TIPOGRAFÍA
========================================================================== */
body {
    background-color: #fff;
    color: #1C1D1F; 
}

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: 336px;
    margin-bottom: 48px;
}

h2 { 
    font-size: 40px; 
    margin-top: 120px;
}


@media (max-width: 768px) {
   h1{
   font-size: 3.5rem!important   
    }
   h2 {
    font-size: 32px;
    margin-top: 48px;
    }
}

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;
    min-width: 320px;
    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%);
}


/* ====================================================
   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: nowrap;
  gap: 16px;
  align-items: stretch; /* <-- todas mismas alturas */
  max-width: 1200px;
  padding: 12px 0px;
}

@media (max-width: 768px) {
.dynamicform:has(.card > div[id^="cms-module-"]):not(:has(.contact-form)){
   padding: 12px 24px!important;
   flex-wrap: wrap;
   } 
}

.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;
    display: flex;
    column-gap: 16px;
    row-gap: 24px;
    flex: 1 1 320px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 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: 48px !important;
  height: 48px !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;
}




/* ==========================================================================
      HITOS (YEARS-15)
   ========================================================================== */
.years-15-text h3 span { 
    line-height: 110%; 
    font-size: 32px !important;
}

.dynamicform:has(.years-15) {
    padding: 24px 16px 16px 16px !important;
    margin-bottom: 84px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 1100px !important;    
    margin-left: auto !important;
    margin-right: auto !important;
}

.dynamicform:has(.years-15) .col:not(.years-15) { padding-right: 30px !important; }

.years-15 {
    display: grid !important;
    grid-template-columns: 80px 1fr !important; 
    align-items: center !important;
    column-gap: 20px !important;
    row-gap: 25px !important;
}

.years-15 > div[id^="cms-module-"]:nth-child(odd) { grid-column: 1 !important; }
.years-15 > div[id^="cms-module-"]:nth-child(even) { grid-column: 2 !important; }

.years-15 div[id^="cms-module-"] img {
    width: 64px !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
}

@media (max-width: 600px) {
    .years-15 { 
grid-template-columns: 60px 1fr !important; 
column-gap: 15px !important; 
row-gap: 20px !important;
 }

.dynamicform:has(.years-15) .col:not(.years-15){
    padding-right: 0px !important;
}
    .years-15 div[id^="cms-module-"] img { 
  width: 60px !important; }
}


/* ====================================
   CENTER
   ==================================== */

.dynamicform:has(> .center) {
    display: flex;
    align-items: center;
    max-width: 1024px;
    padding: 42px;
   }


.dynamicform:has(> .center) H2 {
   margin-top: 0;
}

@media only screen and (max-width: 992px) {
.dynamicform:has(> .center) {
  flex-wrap: wrap;
  padding: 16px;
  }

.dynamicform:has(> .center.reverse) {
  flex-direction: column-reverse;
  }
}


/* ==========================================================
    ZIG-ZAG BLOCK
   ========================================================== */
.dynamicform > .col.zig-zag-block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 30px 42px; /* 30px vertical, 42px horizontal */
    justify-content: space-between !important;
    padding: 46px 52px !important;
    background-color: #d0e5dc;
    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 0 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: #62A688;
    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 {
    color: #ffffff !important;
}


/*  BOTONES DE LAS CAJAS   */

.dynamicform > .col.zig-zag-block > div:nth-child(2) a,
.dynamicform > .col.zig-zag-block > div:nth-child(4) a,
.dynamicform > .col.zig-zag-block > div:nth-child(6) a{
    font-size: 12px;
    float: right;
    padding: 8px 26px;
    min-width: auto;
}


.col.zig-zag-block div ul {
     color: #fff;
     padding-left: 12px;
}

.col.zig-zag-block div ul li {
    position: relative;
    transition: transform 0.3s ease; 
    border-bottom: 1px solid #0000003d;
}

.col.zig-zag-block div ul li a {
    padding: 20px 0;
    background-color: transparent;
    color: #1d1d1d;
    text-align: left;
    min-width: 100%;
    display: block;
    transition: transform 0.3s ease; 
}

.col.zig-zag-block div ul li a:hover{
   box-shadow: none;
   transform: translateY(-5px); 
}


.col.zig-zag-block div ul li:has(a:hover)::after{
    transform: translateY(-60%);
}

.col.zig-zag-block div ul li::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 37px;
  border-radius: 999px;
  background: #111;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25px 25px;
  pointer-events: none;
    transition: transform 0.3s ease; 
}



/*========== VISTA MOVIL ==========*/

@media (max-width: 768px) {
.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) {
    padding: 24px !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 h3 {
    font-size: 2rem;
}

    .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 */
    }
    .dynamicform > .col.zig-zag-block div.col.center .responsive-img {
        position: relative !important;
        height: 300px !important;
    }

.col.zig-zag-block div ul li::after{
       background: transparent;
       background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
        width: 16px;
        height: 16px;
        right: -5px;
   }

.col.zig-zag-block div ul li a {
    font-size: 14px;
    padding-right: 16px;
   }
}





/* ====================================
   CONTACT FORM
   ==================================== */

.dynamicform:has(> .contact-form) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #EEEEEE!important;
    border-radius: 24px;
    padding: 64px;
    margin: 120px auto;
}

.dynamicform .contact-form.card:has(> div[id^="cms-module-"]) {
    grid-template-columns: auto;
    text-align: left!important;
}

.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: 12px;
   }
}