/* 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;
}

@media (max-width: 768px) {
  h2 { 
    margin-top: 24px;
   }
}

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;
    display: inline-block;
}

.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%);
}

.dynamicform:has(.hero-color) {
   overflow:hidden;
   min-width: 100%;
   background-color: #304f80;
}


/* ==========================================================================
   2. TARJETAS GENERALES (GRID LAYOUT)
   ========================================================================== */
.dynamicform:has(.card > div[id^="cms-module-"]) {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.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: grid !important;
    grid-template-columns: 48px 1fr 56px;
    grid-template-rows: auto 1fr auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
    min-height: 220px;
    flex: 1 1 320px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dynamicform .card:has(> div[id^="cms-module-"]):hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.10) !important;
}

/* Contenido Interno de Tarjetas */
.dynamicform .card:has(> div[id^="cms-module-"]) .row { margin: 0 !important; }
.dynamicform .card:has(> div[id^="cms-module-"]) .col.s12 { padding: 0 !important; }

.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: 64px !important;
    height: 64px !important;
    object-fit: contain;
    display: block;
}

.dynamicform .card:has(> div[id^="cms-module-"]) > div[id^="cms-module-"]:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.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;
}

.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;
}

.dynamicform .card:has(> div[id^="cms-module-"]) > div[id^="cms-module-"]:nth-of-type(3) {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.dynamicform .card:has(> div[id^="cms-module-"]) > div[id^="cms-module-"]:nth-of-type(3) img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: #111 !important;
    padding: 11px !important;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.dynamicform .card:has(> div[id^="cms-module-"]):hover > div[id^="cms-module-"]:nth-of-type(3) img {
    transform: translateX(2px);
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   4. SOLUTIONS DARK (OVERLAY EFFECTS)
   ========================================================================== */
.col.solutions-dark {
    position: relative;
    border-radius: 30px;
    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: 30px;
    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);
}

/* ==========================================================================
   5. ZIG-ZAG DINÁMICO
   ========================================================================== */

.dynamicform:has(.zig-zag){
   max-width: 1200px;
}

.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; }

@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; }
}

/* ==========================================================================
   6. TARJETAS MORE (ESPECIALIDADES)
   ========================================================================== */
.dynamicform div.card.more {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    padding: 30px 20px !important;
    min-height: 220px !important;
    border-radius: 20px !important;
    background: #fff !important;
    position: relative !important;
    cursor: pointer;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    transform: translateY(0); 
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease !important;
    will-change: transform; 
}

.dynamicform .card.more a::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important; 
    background-color: rgba(0,0,0,0); 
}

.dynamicform div.card.more div[id^="cms-module-"] {
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.dynamicform .card.more div[id^="cms-module-"]:nth-of-type(1) { margin-bottom: 15px !important; }

.dynamicform .card.more div[id^="cms-module-"]:nth-of-type(1) img {
    width: 48px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
}

.dynamicform .card.more div[id^="cms-module-"]:nth-of-type(2) h4 {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1c1d1f !important;
}

.dynamicform .card.more::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 32px;
    height: 32px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='3' 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: 32px;
    transition: transform 0.4s ease !important;
    will-change: transform;
    z-index: 5;
}

.dynamicform div.card.more:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

.dynamicform div.card.more:hover::after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
   .dynamicform:has(.card) {
    padding: 0 24px;
}

.dynamicform .card:has(> div[id^="cms-module-"]) {
    grid-template-columns: 48px 1fr!important;
  }
}


/* ==========================================================================
   7. RESEÑAS (TESTIMONIALS)
   ========================================================================== */
.dynamicform:has(.testimonials) {
    display: flex !important;
    justify-content: center !important;
    gap: 30px;
    padding: 40px 120px !important;
}

.testimonials {
    background-color: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 24px !important;
    padding: 35px !important;
    flex: 0 1 350px !important; 
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease, background-color 0.4s ease !important;
    will-change: transform;
    cursor: pointer;
}

.testimonials:hover {
    transform: translateY(-10px);
    background-color: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    border-color: #d1d1d1 !important;
}

.testimonials a::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    background-color: rgba(0,0,0,0);
}

@media (max-width: 768px) {
.dynamicform:has(.testimonials) {
   padding: 12px!important;
   flex-wrap: wrap !important;
  }  

.testimonials {
    margin: 0 !important;
  }
}

/* ==========================================================================
   8. HITOS (YEARS-15)
   ========================================================================== */
.years-15-text h3 span { line-height: 110%; }

.dynamicform:has(.years-15) {
    margin-top: 120px !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; }
}

/* ==========================================================================
   9. SOFTWARE SOLIDO
   ========================================================================== */
.solido .row:nth-of-type(2) .dynamicform { display: block; overflow: hidden; }

.solido .row:nth-of-type(2) {
    overflow: visible;
    display: block;
    padding: 64px 0;
    margin-bottom: 64px;
    position: relative; 
}

.solido .row:nth-of-type(2)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 80%; 
    height: 1px;
    background-color: #E6E7E9;
}

.dynamicform:has(> .solido-2) { padding: 64px 0; }

.dynamicform:has(> .solido) img,
.dynamicform:has(> .solido-2) img {
    max-height: 52px;
    width: auto !important;
}

/* ==========================================================================
   10. MIGRACIÓN DE DATOS (.data-migration-list)
   ========================================================================== */

.dynamicform:has(.data-migration) {
    margin-top: 120px !important;
}

.data-migration-list div[id^="cms-module-"] > .row > .col > div {
    display: grid !important;
    grid-template-columns: 4fr 6fr !important; 
    column-gap: 50px !important;
    row-gap: 0 !important;
    align-items: center !important; 
    margin-bottom: 80px !important;
    width: 100% !important;
}

.data-migration-list h3 {
    grid-column: 1 !important;
    grid-row: 1 / span 20 !important;
    margin: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    align-self: center !important;
}

.data-migration-list p {
    grid-column: 2 !important;
    position: relative !important;
    padding-left: 35px !important;
    margin: 10px 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
}

.data-migration-list p::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-weight: 900 !important;
    font-size: 20px;
}

@media (max-width: 992px) {
    .data-migration-list div[id^="cms-module-"] > .row > .col > div {
        grid-template-columns: 1fr !important;
        row-gap: 4px !important;
        align-items: start !important;
    }
    .data-migration-list p { grid-column: 1 !important; }
}


/* ====================================
   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;
}

.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;
   }
}