/* - keyframes - */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideCard {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blink {
    0%, 49% { 
        opacity: 0; 
    }
    50%, 100% { 
        opacity: 1; 
    }
}




/* -  Nosotros  - */

header.header {
    animation: fadeInUp 1s ease-out;
}

a.link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

a.link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blanco), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

a.link:hover {
    text-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

a.link:hover::after {
    width: 130%;
}


.text {
    animation: fadeInRight 1.2s ease-out 0.5s both;
}

.text h1 {
    transition: all 0.3s ease;
}

.text h3 {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s both;
}


/* - Servicios - */

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--blanco);
    margin-left: 4px;
    animation: blink 1s infinite;
}

div.title-servicios {
    position: relative;
    overflow: hidden;
}


.process, .indubatch, .merco {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.process {
    animation: slideCard 0.8s ease-out 0.2s both, float 3s ease-in-out infinite;
}

.indubatch {
    animation: slideCard 0.8s ease-out 0.4s both, float 3.5s ease-in-out infinite;
}

.merco {
    animation: slideCard 0.8s ease-out 0.6s both, float 4s ease-in-out infinite;
}

.process::before, 
.indubatch::before, 
.merco::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.process:hover, 
.indubatch:hover, 
.merco:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0px 20px 80px -10px rgba(255, 255, 255, 0.5) inset,
                0px 25px 50px rgba(0, 0, 0, 0.4);
    animation-play-state: paused;
}

.process:hover::before, 
.indubatch:hover::before, 
.merco:hover::before {
    width: 300%;
    height: 300%;
}


/* - Clientes - */



/* - Contacto - */
a.redes {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

a.redes::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

a.redes:hover {
    transform: translateY(-5px) scale(1.2) rotate(5deg);
}

a.redes:hover::after {
    width: 150%;
    height: 150%;
}

a.redes img {
    transition: all 0.3s ease;
}

a.redes:hover img {
    filter: brightness(1.3) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.5));
}

a.contacto {
    transition: all 0.3s ease;
    position: relative;
}

a.contacto::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blanco);
    transition: width 0.4s ease;
}

a.contacto:hover::after {
    width: 100%;
}



/* Animación suave de arriba hacia abajo para las tarjetas de clientes */

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(8px);
    }
}



/* Aplicar animaciones a las tarjetas */
section.clientes .carrusel .tarjeta {
    animation: 0.8s ease-out, floatUpDown 4s ease-in-out infinite;
    animation-delay: 0s, 0.8s;
}




section.clientes .carrusel .top .tarjeta:nth-child(odd) {
    animation:
        slideCard 0.8s ease-out 0.12s both,
        floatUpDown 3.3s ease-in-out infinite;
    animation-delay: 0.12s, 1.0s;
}

section.clientes .carrusel .top .tarjeta:nth-child(even) {
    animation:
        slideCard 0.8s ease-out 0.25s both,
        floatUpDown 4.6s ease-in-out infinite;
    animation-delay: 0.25s, 1.2s;
}




section.clientes .carrusel .bottom .tarjeta:nth-child(odd) {
    animation:
        slideCard 0.8s ease-out 0.35s both,
        floatUpDown 5.1s ease-in-out infinite;
    animation-delay: 0.35s, 1.4s;
}

section.clientes .carrusel .bottom .tarjeta:nth-child(even) {
    animation:
        slideCard 0.8s ease-out 0.18s both,
        floatUpDown 3.8s ease-in-out infinite;
    animation-delay: 0.18s, 1.1s;
}



