/* Scroll offset para compensar header sticky */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
    --translation-opacity: 0;
}

/* Prevenir parpadeo de traducciones */
[data-i18n],
[data-i18n-placeholder] {
    opacity: var(--translation-opacity);
    transition: opacity 0.15s ease-in;
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Clases de animación */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Delays para animaciones escalonadas */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Efecto hover para tarjetas */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 40px -5px rgba(234, 88, 12, 0.2);
}

.card-hover:hover i {
    animation: bounce 0.6s ease-in-out;
    color: #ffffff;
}

/* Animación para el contenedor del ícono en tarjetas */
.card-hover .bg-orange-600 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover .bg-orange-600 {
    background: linear-gradient(135deg, #ea580c 0%, #ff6b1a 100%);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
    transform: scale(1.15) rotate(5deg);
}

/* Efecto de texto al hover */
.card-hover h3 {
    transition: color 0.3s ease;
}

.card-hover:hover h3 {
    color: #ea580c;
}

.card-hover p {
    transition: color 0.3s ease;
}

.card-hover:hover p {
    color: #555;
}

/* Efecto de brillo en botones */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-shine:hover::before {
    left: 100%;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de línea subrayada */
.underline-animate {
    position: relative;
    display: inline-block;
}

.underline-animate::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ea580c;
    transition: width 0.3s ease;
}

.underline-animate:hover::after {
    width: 100%;
}

/* Contador animado */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ea580c;
}

/* Carrusel de imágenes - Solo una visible a la vez (6 imágenes) */
@keyframes carousel-fade {
    0% {
        opacity: 1;
        visibility: visible;
    }

    14% {
        opacity: 1;
        visibility: visible;
    }

    16.66% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.carousel-image {
    animation: carousel-fade 18s ease-in-out infinite;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
}

.carousel-image:nth-child(1) {
    animation-delay: 0s;
}

.carousel-image:nth-child(2) {
    animation-delay: 3s;
}

.carousel-image:nth-child(3) {
    animation-delay: 6s;
}

.carousel-image:nth-child(4) {
    animation-delay: 9s;
}

.carousel-image:nth-child(5) {
    animation-delay: 12s;
}

.carousel-image:nth-child(6) {
    animation-delay: 15s;
}

/* Contenedor del carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

/* Overlay gradient */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(234, 88, 12, 0.2) 100%);
    z-index: 10;
    border-radius: 0.5rem;
}

/* Slider de logos de clientes */
.logos-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: white;
    padding: 2rem 0;
}

.logos-track {
    display: flex;
    animation: scroll-logos 60s linear infinite;
    width: max-content;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    width: 220px;
    height: 130px;
    margin: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Estilos para la sección de clientes - Reemplazo de clases Tailwind */
section.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

section.from-gray-50 {
    --tw-gradient-from: #f9fafb;
    --tw-gradient-to: rgba(249, 250, 251, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

section.to-white {
    --tw-gradient-to: #ffffff;
}

section.relative {
    position: relative;
}

section.overflow-hidden {
    overflow: hidden;
}

/* Enhanced Slider Styles */
.logos-slider-enhanced {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
    min-height: 180px;
    display: block;
}

.logos-track-enhanced {
    display: flex;
    animation: scroll-logos-enhanced 40s linear infinite;
    width: max-content;
    align-items: center;
    gap: 0;
}

.logos-track-enhanced:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos-enhanced {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item-enhanced {
    flex-shrink: 0;
    width: 200px;
    margin: 0 1.5rem;
    perspective: 1000px;
}

.logo-card {
    position: relative;
    width: 100%;
    height: 120px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    filter: grayscale(100%);
    opacity: 0.7;
    z-index: 1;
}

/* Eliminado efecto de borde naranja y fondo */
.logo-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    filter: grayscale(0%);
    opacity: 1;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.logo-card:hover img {
    transform: scale(1.1);
}