.andy-section {
    position: relative;
}
.andy-child {
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}
.andy-img-placeholder {
    width: 221px;
    height: 124px;
    background: #fff;
    /* border-radius: 8px; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(.4,0,.2,1);
    z-index: 2;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
}
.andy-img-placeholder img {
    max-width: 100%;
    max-height: 100%;
}
.andy-desc {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    padding: 0 10px;
    left: 0;
    right: 0;
    top: 100%;
    transform: translateY(0%);
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    transition: opacity 0.4s 0.1s, top 0.5s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.andy-link {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 50%;
    bottom: 0px;
    text-align: center;
    font-size: 16px;
    text-decoration: underline;
    transition: opacity 0.4s 0.2s, width 0.4s 0.2s, left 0.4s 0.2s;
    z-index: 1;
    padding: .5rem 0;
    width: 100px;
    transform: translateX(-50%);
    overflow: hidden;
    background: white;
}
.andy-child:hover .andy-img-placeholder {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* Left: top-left */
.andy-child:nth-child(1):hover .andy-img-placeholder {
    left: 0;
    top: 0;
    transform: none;
}
/* Middle: top-center */
.andy-child:nth-child(2):hover .andy-img-placeholder {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
/* Right: top-right */
.andy-child:nth-child(3):hover .andy-img-placeholder {
    left: auto;
    right: 0;
    top: 0;
    transform: none;
}
/* Reset right for non-hover */
.andy-child:nth-child(3) .andy-img-placeholder {
    right: auto;
}
.andy-child:hover .andy-desc {
    opacity: 1;
    pointer-events: auto;
    top: 60%;
}
.andy-child:hover .andy-link {
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}
/* Specific text color for first child */
.andy-child:nth-child(1) .andy-desc,
.andy-child:nth-child(1) .andy-desc {
    color: #fff;
}
.andy-child:nth-child(1) .andy-link {
    color: #EDA215;
}
.andy-child:nth-child(2) .andy-desc {
    color: #fff;
}
.andy-child:nth-child(2) .andy-link {
    color: #E32020;
}
.andy-child:nth-child(3) .andy-desc {
    color: #fff;
}
.andy-child:nth-child(3) .andy-link {
    color: #253FE8;
}
@media (max-width: 991px) {
    .andy-desc { font-size: 15px; }
    .andy-img-placeholder { width: 180px; height: 100px; }
}
/* Breakpoint: lower than 630px */
@media (max-width: 629px) {
    /* TODO: Add styles for mobile screens below 630px */
    .andy-section {
        flex-direction: column;
        height: 640px !important;
        padding: 2rem 3rem !important;
    }
    .andy-child {
        width: 100% !important;
    }
    
    .andy-child:hover .andy-img-placeholder {
        left: 50% !important;
        top: 0 !important;
        transform: translateX(-50%) !important;
        /* i want to reduce the size of the image more */
        width: 120px !important;
        height: 50px !important;
    }
    
    .andy-child:hover .andy-desc {
        top: 35% !important;
    }
}

/* Breakpoint: between 630px and 940px */
@media (min-width: 630px) and (max-width: 940px) {
    /* TODO: Add styles for screens between 630px and 940px */
}

/* Estilos para el carrusel de testimonios "Se parte de nosotros" */
.testimonios .h2 {
    margin-bottom: 30px;
    font-size: 36px;
}
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
.marquee-content {
    display: inline-flex;
    animation: scrollTestimonios 25s linear infinite;
}
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
@keyframes scrollTestimonios {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.card-testimonio {
    width: 400px;
    background-color: #ECECEC;
    padding: 40px 30px;
    margin: 0 10px;
    white-space: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 250px;
}
.card-testimonio p.quote {
    font-style: italic;
    color: #c93434;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}
.card-testimonio p.author {
    color: #c93434;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .card-testimonio {
        width: 300px;
        padding: 30px 20px;
        min-height: 280px;
    }
    .testimonios .h2 {
        font-size: 30px !important;
    }
}


/* Estilos para el carrusel de logos "Empresas Planillas" */
.section-empresas .h2 {
    margin-bottom: 30px;
    font-size: 36px;
}
.marquee-logo-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    padding: 20px 0;
    position: relative;
}
/* Agregamos gradientes en los extremos para un efecto bonito */
.marquee-logo-container::before,
.marquee-logo-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.marquee-logo-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.marquee-logo-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.marquee-logo-content {
    display: inline-grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    gap: 20px;
    animation: scrollLogos 45s linear infinite;
    align-items: center;
    padding-right: 20px;
}
.marquee-logo-container:hover .marquee-logo-content {
    animation-play-state: paused;
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.logo-placeholder {
    width: 170px;
    height: 170px;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    color: #555;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.logo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #EDA215;
}
.logo-placeholder img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo-placeholder:hover img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .logo-placeholder {
        width: 130px;
        height: 130px;
        font-size: 14px;
        margin: 0 8px;
    }
    .section-empresas .h2 {
        font-size: 30px !important;
    }
}
