/* 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;
   }


@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: 1.2 !important;
    word-wrap: normal !important;
    margin-top: 140px !important;
    margin-bottom: 0;
}

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;
    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%);
}


@media (max-width: 768px) {
  h1{
    font-size: 3.5rem !important;
   }
}

/* ==========================================================================
   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;
  background-color: #c2d2e7;
  padding: 12px 48px;
}
.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 */
  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;
}


/*------------------------------------------
CONTACT FORM
-----------------------------------------*/
.dynamicform:has(> .contact-form) {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #EEEEEE;
    border-radius: 32px;
    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;
     }
}