.animated-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 460px;
  background-color: #000;
  border-radius: 8px;
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 105%; /* Para simular desplazamiento */
  height: 100%;
  background-image: url('../img/nuevo-fondo.jpg');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  animation: moveBackground 5s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes moveBackground {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-4.8%);
  }
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
        padding: 50px;
}
.blur-overlay {
  position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-image: url(../img/fondo-ovalo.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.decor-img {
  position: absolute;
  transition: transform 0.5s ease;
  z-index: 3;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.img-left {
  bottom: 0;
  left: 0;
    width: 250px;
  transform: translateX(-220px);
   animation-name: showFromLeft;
}

.img-right-1 {
width: 160px;
  top: 10px;
  right: 0;
  transform: translateX(200px);
  animation-name: showFromRight1;
}

.img-right-2 {
  bottom: 0;
  width: 250px;
  right: 0;
 transform: translateY(245px);
  animation-name: showFromBottom;
}

/* Animaciones individuales sincronizadas */

/* Animaciones individuales sin opacity */
@keyframes showFromLeft {
  0% {
    transform: translateX(-220px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes showFromRight1 {
  0% {
    transform: translateX(200px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes showFromBottom {
  0% {
    transform: translateY(245px);
  }
  100% {
    transform: translateY(0);
  }
}

.banner-content div.h2 {
    font-size: 35px;
    font-weight: 700;
    padding: 0px 200px;
    line-height: 1.1;
}

.banner-content div.h3 {
    letter-spacing: 5px;
    font-size: 25px;
    font-weight: 400;
    margin: 0;
}

.banner-content div.h2, .banner-content div.h3, .banner-content div.h4, .banner-content p {
    position: relative;
    z-index: 4;
}

.banner-content div.h4 {
    font-size: 35px;
    font-weight: 800;
    margin: 0;
}
.banner-content a {
    background-color: white;
    padding: 5px 25px;
    font-size: 15px;
    line-height: normal;
    border-radius: 50px;
    color: #453D3B;
    font-weight: 600;
}

.banner-content p {
    font-size: 23px;
    font-weight: 500;
}



.content h2{
      color: #72B344;
}
.content h2 strong{
 
     color: #2C5904;
}
.content p{
color: #453D3B;
font-size: 17px;
font-weight: 500;
}
/* ----- Lista izquierda ----- */
.comp-item-left {
    cursor: pointer;
    margin-bottom: 25px;
    transition: all .3s ease;
}

.comp-item-left h3,
.comp-item-left p {
    margin: 0;
    transition: all .3s ease;
}

/* INACTIVO */
.comp-item-left:not(.active) h3,
.comp-item-left:not(.active) p {
    /* color: #C8C2C2; */
    opacity: 0.4;
}

/* ACTIVO */
.comp-item-left.active h3 {
    color: #453D3B;
    font-weight: 700;
    opacity: 1;
}

.comp-item-left.active p {
    color: #000;
    opacity: 1;
    line-height: normal;
    font-weight: 500;
}

/* ----- Imagen central ----- */
.comp-img-wrapper {
    width: 100%;
    /* max-width: 420px; */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 30px;
}

.comp-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- Cifras derecha ----- */
.comp-cifras {
    font-size: 28px;
    color: #453D3B;
    /* font-weight: 600; */
    transition: opacity .3s ease;
    line-height: normal;
}
section.banner_animado {
    background-color: #F6F4E8;
}

/* Responsive */
@media (max-width: 600px){
    .comp-item-left { margin-bottom: 18px; }
    .comp-cifras { margin-top: 25px; font-size: 17px;}
    .content p{ font-size: 15px; }
    .content h2{ font-size: 24px;}
    .comp-img-wrapper{ border-radius: 13px;}
    .comp-item-left h3{font-size: 20px;}
    .comp-item-left p{font-size: 15px;line-height: normal;}
}
