/* 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;
}

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;
    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%);
}

/*==========================================================================
   5. ZIG-ZAG DINÁMICO
   ========================================================================== */

.dynamicform:has(.zig-zag){
   max-width: 1024px;
}

.zig-zag {
    display: grid !important;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: center;
    padding: 40px 0 !important;
    min-width: 100% !important;
}

.zig-zag div[id^="cms-module-"]:nth-of-type(odd) {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zig-zag div[id^="cms-module-"]:nth-of-type(even) {
    grid-column: 2;
    display: flex;
    justify-content: center;
}

.zig-zag img {
    width: 100% !important;
    max-width: 500px;
    height: auto !important;
    object-fit: contain;
}

.zig-zag div[id^="cms-module-"]:nth-of-type(3) { grid-column: 2; }
.zig-zag div[id^="cms-module-"]:nth-of-type(4) { grid-column: 1; grid-row: 2; }

.zig-zag div[id^="cms-module-"]:nth-of-type(7) { grid-column: 2; }
.zig-zag div[id^="cms-module-"]:nth-of-type(8) { grid-column: 1; grid-row: 4; }

@media (max-width: 992px) {
    .zig-zag { grid-template-columns: 1fr !important; gap: 20px; padding: 20px !important; }
    .zig-zag div[id^="cms-module-"] { grid-column: 1 !important; }
    .zig-zag div[id^="cms-module-"]:nth-of-type(4) { grid-row: auto; }
    .zig-zag div[id^="cms-module-"]:nth-of-type(even) { margin-bottom: 40px; }
    .zig-zag div[id^="cms-module-"]:nth-of-type(8) { grid-row: 8; }
}



/* ==========================================================================
   4. SOLUTIONS DARK (OVERLAY EFFECTS)
   ========================================================================== */
.col.solutions-dark {
    position: relative;
    border-radius: 24px;
    overflow: hidden; 
}

.col.solutions-dark img,
.col.solutions-dark div:nth-of-type(1) {
    position: relative;
    z-index: 1;
    height: 100%;
    transition: filter 0.45s ease;
}

.col.solutions-dark img {
    filter: brightness(0.5);
}

.col.solutions-dark div:nth-of-type(2) {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 24px;
    background: rgba(0,0,0,0);
    transition: background 0.45s ease;
    padding: 3rem;
    box-sizing: border-box;
    pointer-events: none;
}

.col.solutions-dark div:nth-of-type(2) h3,
.col.solutions-dark div:nth-of-type(2) p {
    color: #fff;
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    margin: 0;
    will-change: transform, opacity;
}

.col.solutions-dark div:nth-of-type(2) h3 {
    bottom: 0;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.45s ease, opacity 0.35s ease; 
}

.col.solutions-dark div:nth-of-type(2) p {
    top: calc(3rem + 5.2rem);
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.col.solutions-dark:hover img { filter: brightness(0.3); }

.col.solutions-dark:hover div:nth-of-type(2) h3 { transform: translateY(-290px); }

.col.solutions-dark:hover div:nth-of-type(2) p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.08s, 0.08s;
    pointer-events: none;
}

/* Botón flotante (+) */
.dynamicform .solutions-dark::after {
    content: "";
    position: absolute;
    right: 50px;
    bottom: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.dynamicform .solutions-dark:hover::after {
    opacity: 0;
    visibility: hidden; 
    transform: scale(0.8);
}


.col.solutions-dark.small:hover div:nth-of-type(2) h3 {
    transform: translateY(-18px);
}


/*------------------------------------------
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;
     }
}