body{
    overflow-x: hidden;
}

section.sobre h2{
    font-size: 40px;
    font-weight: 400;
    line-height: normal;
    color:  var(--verde-b);
}
section.sobre h2 b{
    font-weight: 700;
}
section.sobre h2 em{
    font-weight: 700;
     color: var(--verde-t);
     font-style: normal;
}
section.sobre img{
    border-radius: 28px;
}
section.sobre .sobre_txt h3 {
    font-size: 32px;
    font-weight: 300;
    color: var(--verde-b);
}
section.sobre .sobre_txt h3 b{
    font-weight: 700;
    color: var(--verde-t);
}
section.sobre .sobre_txt p{
    font-size: 16px;
    line-height: 19px;
    color: #000;
    font-weight: 400;
    border-left: solid #FFD22F 5px;
    padding: 30px 190px 30px 25px;
    margin: 0;
}
.sobre-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 400px; /* ajustá si necesitás más espacio */
}

/* === ESTADO INICIAL === */
.col-text {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
    visibility: hidden;
}

/* Centrar la imagen con flex sin usar position absolute */
.col-img {
    display: flex;
    justify-content: center;
    transition: all 0.6s ease;
    transform: translateX(-50%); /* para que visualmente quede centrada */
}

/* === ESTADO HOVER === */
.container-fluid:hover .col-text {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.container-fluid:hover .col-img {
    transform: translateX(0); /* vuelve a su posición original */
}

section.pilares img{
    border-radius: 8px;
    margin-top: 30px;
    width: 100%;
}
section.pilares .col-dere .pilares_img,
section.pilares .col-izq .pilares_img {
    width: 45%;
    position: relative;
}
section.pilares .col-dere .pilares_txt,
section.pilares .col-izq .pilares_txt{
    width: 55%;
    position: relative;
}
section.pilares .pilares_txt{
   background-color: var(--crema); 
}
section.pilares .pilares_txt h4{
    font-size: 32px;
    font-weight: 700;
    color: var(--verde-b);
}
section.pilares .pilares_txt p{
    color: #453D3B;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;   
    width: 71%;  
}
section.pilares .col-dere .pilares_txt{
    border-radius: 8px 0px 0px 8px;
    padding-right: 140px;
    padding-left: 60px;
}
section.pilares .col-izq .pilares_txt{
    border-radius: 0px 8px 8px 0px;
    padding-left: 140px;
    padding-right: 60px;
}
section.pilares .fondo_cuadro {
    position: absolute;
    width: 80%;
    height: 90%;
    z-index: -1;
    top: -10px;    
    border-radius: 8px;
}
section.pilares .col-dere .fondo_cuadro{
    right: -40px;
}
section.pilares .col-izq .fondo_cuadro{
    left: -40px;
}
section.sobre .container-fluid, 
section.pilares .container-fluid #pilares,
section.valores #list-valores 
{
    max-width: 1440px;
    margin: auto;
}
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 1.5s ease-in-out;
    will-change: transform, opacity;
}
.fade-in-left {
    transform: translateX(-100vw);
}

.fade-in-right {
    transform: translateX(100vw);
}
.animate {
    opacity: 1;
    transform: translateX(0);
}

section.valores .valor {
    width: 20%;
    height: 230px;
}
section.valores .valor .card{
    border-radius: 8px;
    border: none;
}
section.valores .valor .card h4{
    font-size: 17px;
    text-align: center;
    font-weight: 700;
    color: #2C5904;
}
section.valores .valor .card p{
     font-size: 11px;
    text-align: center;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    color: #2C5904;
}
section.valores .valor img {
    width: 70px;
    margin: auto;
}


/* Ocultamos visualmente el <p> pero mantenemos su espacio reservado */
section.valores .valor .card p {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    overflow: hidden;
    pointer-events: none;
}

/* Estilo base para la card */
section.valores .valor .card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Hover: levantar la card y mostrar el <p> */
section.valores .valor .card:hover {
    transform: translateY(-25px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

section.valores .valor .card:hover p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


@media (max-width: 600px){
    section.sobre .container-fluid, 
section.pilares .container-fluid #pilares,
section.valores #list-valores 
{
    max-width: 100%;
    margin: auto;
}
section.banner-inicio .text {
    height: 80px;
    border-radius: 0 0 16px 16px;
}
.fade-in-left,.fade-in-right,.animate {

    transform: translateX(0);
}
section.sobre h2 {
    font-size: 25px;
}

.col-text {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        
    }

    .col-img {
        transform: none !important;
            height: 250px;
    }
    .col-img img{
        object-fit: cover;
            border-radius: 20px;
    }
    .sobre_txt {
        background: #72B344;
        margin-top: -25px;
        z-index: -1;
        position: relative;
        border-radius: 0 0 20px 20px;
    }
    section.sobre .sobre_txt h3{
        border-left: solid #fff 5px;
    padding: 0px 10px;
    }
    section.sobre .sobre_txt h3 b{
        color: #FFF;
    }
    section.sobre .sobre_txt p {
    font-size: 20px;
    line-height: normal;
    color: #fff;
        border-left: none;
                padding: 5px;
    }
    section.pilares .col-dere .pilares_img, 
    section.pilares .col-izq .pilares_img,
    section.pilares .col-dere .pilares_txt, 
    section.pilares .col-izq .pilares_txt,
    section.pilares .pilares_txt p{
        width: 100%;
    }
    section.pilares .col-dere .fondo_cuadro {
        right: 0%;
        top: 1%;
            border-radius: 16px;
            width: 85%;
    }
    section.pilares .col-izq .fondo_cuadro {
    left: 0%;
    top: 1%;
    width: 85%;
    border-radius: 16px;
    }
    section.pilares img{
        width: 93%;
            border-radius: 16px;
    }
    section.pilares .col-dere .pilares_txt,
    section.pilares .col-izq .pilares_txt {
    padding: 45px 30px 35px 30px;
    text-align: center;
    margin-top: -35px;
    z-index: -2;
    border-radius: 0 0 16px 16px;
        margin-bottom: 45px;
    }
    section.pilares .pilares_txt p{
        font-size: 15px;
    }
    section.pilares .pilares_txt h4 {
        font-size: 25px;
    }
    section.pilares .col-izq img{
        float: inline-end;
    }
    /* Cuando Slick está activo, fuerza bloque para evitar el flex del row */
  #list-valores .row.slick-initialized{
    display: block;
  }

  /* Cada slide ocupa el ancho, con un pequeño padding lateral */
  section.valores .valor{
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Sin efectos de hover en móvil */
  section.valores .valor .card{
    transform: none !important;
    box-shadow: none !important;
  }
  section.valores .valor .card:hover{
    transform: none !important;
    box-shadow: none !important;
  }

  /* Mostrar siempre el párrafo (sin hover) */
  section.valores .valor .card p{
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  section.valores .valor .card:hover p{
    opacity: 1 !important;
    transform: none !important;
  }

  /* Ajustes visuales del slide */
  section.valores .valor img{
    width: 70px;
    margin: 0 auto 8px auto;
  }
  section.valores .valor .card h4{
    text-align: center;
    margin-bottom: 6px;
  }

  /* Opcional: estilo de dots de Slick */
  #list-valores .slick-dots{
    position: static;
    margin-top: 10px;
  }
  #list-valores .slick-dots li button:before{
    font-size: 10px;
  }

  /* Si tu row llevaba flex-nowrap, neutralízalo en móvil para no pelear con Slick */
  #list-valores .row{
    flex-wrap: nowrap; /* valor original */
  }
  #list-valores .row.slick-initialized{
    flex-wrap: initial; /* Slick manda */
  }
  #list-valores .slick-prev,
  #list-valores .slick-next {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;          /* tamaño del icono */
    color: #72b344;           /* color del ícono */
    z-index: 10;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  #list-valores .slick-prev { left: 10px; }
  #list-valores .slick-next { right: 20px; }

  #list-valores .slick-prev:hover,
  #list-valores .slick-next:hover {
    color: #72b344;           /* color hover opcional */
  }

  /* Oculta las flechas si hay solo un slide */
  #list-valores .slick-disabled {
    opacity: 0.3;
    pointer-events: none;
  }
  .slick-dots li button {
        font-size: 0;
        line-height: 0;
        display: block;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background-color: #AFC9A2;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
        .slick-dots li {
        margin: 0;
        width: 26px;
        height: 26px;
    }
        .slick-dots {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        list-style: none;
        padding: 0;
        bottom: -40px;
        left: 0;
    }
        .slick-dots li button:before {
        color: transparent !important;
    }
        .slick-dots li.slick-active button {
        background-color: #2C5904;
    }
}