/* 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;
}

 .hero h1 {
    display: block !important;
    width: 100% !important;
    font-size: 3.5rem;
    font-weight: 700 !important;
    line-height: 0.95 !important;
    word-wrap: normal !important;
}


@media (max-width: 768px) {
   .hero h1{
   font-size: 2.3rem !important;
    }
}


h2 { 
    font-size: 40px; 
    margin-top: 120px;
}

@media (max-width: 768px) {
  h2 { 
    margin-top: 24px!important;
   font-size: 2rem!important;   
   }
}

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;
    margin-top: 0!important;
}

.button a:hover{
    box-shadow: 0 3px 7px rgb(0 0 0 / 47%);
}

/*=======  
HERO  
=========*/

@media (max-width: 768px) {
.hero {
   text-align: center;
  }
}


/* ==========================================================================
   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.75 !important;
    word-wrap: normal !important;
}

h2 { 
    font-size: 40px; 
    margin-top: 120px;
}

h3 { 
    color: #1C1D1F; 
    font-size: 28px; 
}

p { 
    font-size: 17px; 
    color: #1C1D1F; 
}


/* ====================================================
   CARDS 
   ==================================================== */

/* Contenedor que solo afecta al bloque que tiene cards CMS */
.dynamicform:has(.card > div[id^="cms-module-"]){
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    align-items: stretch;
    margin: 17px auto;
    padding: 0 20px;
}

/* 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 0;
  grid-template-rows: auto 1fr auto; /* clave para altura uniforme */
  column-gap: 16px;
  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;
}

/* -------------------------------------
   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;
}

/*--------------------------- 
  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: 600 !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;
}

/* --------------------------------------------------
CARDS - COLOR
------------------------------------------------------ */


.dynamicform:has(.color-card) {
    display: flex !important;
    flex-wrap: wrap;
    height: 100% !important;
    padding: 36px 0;
}



.dynamicform:has(.color-card) .row, 
.dynamicform:has(.color-card) .col {
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

/* Contenedor de la imagen */
.color-card .center {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.color-card img.responsive-img {
    display: block !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2; /* Por encima del fondo redondeado */
    max-width: 360px !important;
}

.color-card-text p{
   margin:0;
}

/* --- ESTILOS PARA PC (Escritorio) --- */
@media (min-width: 993px) {
    
    /* Aplicamos el fondo y el redondeo directamente a la columna de la imagen */
    .color-card {
        border-radius: 42px; 
        position: relative;
        overflow: hidden; 
    }

/* Asignación de colores por clase en PC */
.dynamicform:has(.color-card.left2) .color-card{
    position:relative;
}

.dynamicform:has(.color-card) .color-card::after{
    width: 70%;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    content: "";
    border-radius: 42px;
}


    /* Bloque 1 */
    .dynamicform:has(.color-card:not(.right):not(.left2)) .color-card::after { background-color: #8a9fbd !important; }

    /* Bloque 2 (Verde) */
    .dynamicform:has(.color-card.right) .color-card::after { background-color: #a7c9bb !important;
        right: 0; }

    /* Bloque 3 (Azul) */
    .dynamicform:has(.color-card.left2) .color-card::after { background-color: #99a2ad !important; }

    /* Centrado vertical del texto de descripción */
    .dynamicform:has(.color-card) > .col:not(.color-card) {
        justify-content: center !important;
        padding: 0 5% !important;
    }



.color-card:nth-child(odd) .row .col.s12 img{
     align-self: end;
}


.color-card:nth-child(even) .row .col.s12 img{
     align-self: start;
}


    /* Título H3 */
    .dynamicform:has(.color-card) h3 {
        width: 70%;
        padding: 60px 24px 20px 24px !important;
        margin: 0 !important;
        font-weight: bold;
        position: relative;
        z-index: 2;
    }

   .dynamicform:has(.color-card.right)  h3 {
         right: -30%;
      }

    .color-card img {
        margin-top: auto !important;
        margin-bottom: -2px !important; 
        max-width: 100% !important;
        align-self: center;
    }
}

/* --- ESTILOS PARA MÓVIL Y TABLET --- */
@media (max-width: 992px) {
    .dynamicform:has(.color-card) {
        flex-direction: column !important;
    }

    .color-card {
        width: 100% !important;
        order: 1 !important; 
        border-radius: 42px;
        padding-top: 40px !important;
        overflow: hidden;
    }

    /* Colores en Móvil */
    .dynamicform:has(.color-card) .color-card { background-color: #E3D7E9 !important; }
    .dynamicform:has(.color-card.right) .color-card { background-color: #b7d9d5 !important; }
    .dynamicform:has(.color-card.left2) .color-card { background-color: #bccbda !important; }

    .dynamicform:has(.color-card) h3 {
        text-align: center !important;
        width: 100% !important;
        padding: 20px !important;
    }

    .color-card img {
        width: 80% !important;
        margin: 0 auto -2px auto !important;
        display: block !important;
    }

    .dynamicform:has(.color-card) > .col:not(.color-card) {
        width: 100% !important;
        order: 2 !important;
        padding: 40px 20px !important;
        text-align: center;
    }
}

/*==========================================================================
   10. MIGRACIÓN (.migration-hero)
   ========================================================================== */

.dynamicform:has(.migration-hero) {
   overflow-hiden;
   margin-top: 120px !important;
   max-width: 1240px;}





/*==========================================================================
   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; }
}



/* ==========================================================================
    RESEÑAS (TESTIMONIALS)
   ========================================================================== */
.dynamicform:has(.testimonials) {
    display: flex !important;
    justify-content: center !important;
    gap: 30px;
    padding: 40px 0px !important;
}

.testimonials {
    background-color: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 24px !important;
    padding: 35px !important;
    flex: 0 1 460px !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:1024px) {
.dynamicform:has(.testimonials) {
    flex-wrap: wrap !important;
   padding: 12px!important;
  }  

.testimonials {
    margin: 0 !important;
    flex: 0 1 412px !important;
    padding: 12px 0 !important;
  }
}


/* ==========================================================================
   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: 40px;
    width: auto !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: 600px) {


/*----  CONTACT FORM ------*/
    .dynamicform:has(> .contact-form){
        padding: 43px 32px 0 32px;
        flex-wrap: wrap;
     }


}