/* 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;
  margin: 84px auto;
}

.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;
  text-align: center;
  }

.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;
}

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%);
}


/* ====================================================
   CONTENEDOR PRINCIPAL (CENTRADOR)
   ==================================================== */
.dynamicform:has(.card > div[id^="cms-module-"]) {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; /* <--- ESTO centra las 3 cards */
    gap: 24px;
    padding: 0 5%;
    margin: 0 auto 82px;
    align-items: stretch; /* Mantiene mismo alto */
}

/* ====================================================
   TARJETAS (ANCHO FIJO PARA MANTENER ESTRUCTURA)
   ==================================================== */
.dynamicform .card:has(> div[id^="cms-module-"]) {
    /* ... tus estilos de color, bordes y sombras ... */
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08) !important;
    padding: 30px 20px !important;

    /* Control de ancho para que no se estiren */
    min-width: 250px !important; /* Evita que se colapsen como en tu foto */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}


/* 2) Texto ocupando el resto */
.dynamicform .card:has(> div[id^="cms-module-"]) > div[id^="cms-module-"]:nth-of-type(2) {
    width: 100% !important;
    flex-grow: 1 !important;
}


.dynamicform .card:has(> div[id^="cms-module-"]) > div[id^="cms-module-"]:nth-of-type(2) p,
.dynamicform .card:has(> div[id^="cms-module-"]) > div[id^="cms-module-"]:nth-of-type(2) h3 {
    hyphens: none !important;      /* Desactiva los guiones automáticos */
    word-break: normal !important;  /* Evita que rompa palabras para forzar el ancho */
    overflow-wrap: normal !important; /* Asegura comportamiento estándar de texto */
}
/* ====================================================
   RESPONSIVE (TABLET Y MÓVIL)
   ==================================================== */

/* Tablet: 2 arriba y 1 abajo centrada */
@media (max-width: 992px) {
   .dynamicform:has(> .card){
        flex-wrap: wrap !important;
    }

    .dynamicform .card:has(> div[id^="cms-module-"]) {
        width: calc(50% - 24px) !important;
    }

}

/* Móvil: 1 por fila */
@media (max-width: 600px) {
    .dynamicform .card:has(> div[id^="cms-module-"]) {
        width: 100% !important;
    }
}


/*------------------------------------------
CONTACT FORM
-----------------------------------------*/
.dynamicform:has(> .contact-form.card) {
    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;
     }
}