body{
    overflow-x: hidden;
}

section.historia h2{
    font-size: 40px;
    font-weight: 400;
    line-height: normal;
    color:  var(--verde-b);
}
section.historia h2 strong{
    font-weight: 700;
    color: #72B344;
}


.timeline-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #453D3B;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin: 50px 0;
    width: 100%;
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: #2C5904;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.timeline-img,
.timeline-content {
    width: 43%;
    border-radius: 8px;
}

.timeline-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
        z-index: -1;
    position: relative;
}
.timeline-img{
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.timeline-img::before{
        content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(44, 89, 4, 0.50) 56.5%, rgba(0, 0, 0, 0) 100%);
    border-radius: 8px;
}
.timeline-content {
    padding: 20px 25px;
    border-radius: 8px;
    margin-top: 2rem;
}

.timeline-content h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.2;
}
.timeline-item.right .timeline-content{
    text-align: right;
}

.timeline-content.bg-1 {
    background-color: #F6F4E8;
}
.timeline-content.bg-1 h3{
    color: #0B5D18;
}
.timeline-content.bg-1 p,
.timeline-content.bg-2 p{
    color: #453D3B;
}
.timeline-content.bg-2 {
    background-color: #BFED00;
}
.timeline-content.bg-2 h3,
.timeline-content.bg-3 h3,
.timeline-content.bg-3 p{
    color: #2C5904;
}
.timeline-content.bg-3 {
    background-color: #FFD22F;
}
.timeline-content.bg-4 {
    background-color: #2C5904;
}
.timeline-content.bg-4 h3,
.timeline-content.bg-4 p{
    color: #F6F4E8;
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
} 

.timeline-img:hover::after {
    top: 0;
    right: 0;
}
.timeline-img::after {
    content: "";
    position: absolute;
    top: -100%;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgb(114, 179, 68);
    mix-blend-mode: multiply; /* Efecto pass-through */
    opacity: 0.8;
    transition: top 0.5s ease-in-out, right 0.5s ease-in-out;
    z-index: 1;
     border-radius: 8px;
}
@media (max-width: 600px){
section.historia h2{
    font-size: 25px;
}
section.historia h2 br{
    display: none;
}
.timeline-item.right {
    flex-direction: column-reverse;
}
.timeline-item.left {
    flex-direction: column;
    align-items: flex-end;
}
.timeline-item {
    align-items: flex-end;
}
.timeline-line,.timeline-item::before{
        left: 10px;
}
.timeline-img, .timeline-content {
    width: 90%;
}
.timeline-content{
        margin-top: 1rem;
}
}