.hero-pattern {
    background-image: radial-gradient(#0066cc 0.5px, transparent 0.5px), radial-gradient(#0066cc 0.5px, #f8fafc 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
}

.dark .hero-pattern {
    background-image: radial-gradient(#3b82f6 0.5px, transparent 0.5px), radial-gradient(#3b82f6 0.5px, #0f172a 0.5px);
    opacity: 0.15;
}

/* 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 fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInNav {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

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

.animate-slide-in-nav {
    animation: slideInNav 0.5s ease-out forwards;
}

/* Ocultar elementos inicialmente */
.opacity-0 {
    opacity: 0;
}

/* Transiciones suaves */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects mejorados */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.hover-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;
}

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

/* Animación para iconos */
.icon-bounce:hover {
    animation: bounce 0.6s ease;
}

/* Delays escalonados */
.delay-100 {
    animation-delay: 0.1s;
}

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

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

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

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Carrusel Marquee */
.dmarquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 1rem;
    animation: marquee 40s linear infinite;
    width: fit-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.img-marque {
    flex-shrink: 0;
    width: 256px;
    height: 192px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.img-marque:hover {
    transform: scale(1.05);
}

/* Carrusel Circular */
.circular-slider-container {
    position: relative;
    min-height: 500px;
    max-width: 1200px;
    margin: 0 auto;
}

.circular-slider {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-slide {
    position: absolute;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.circular-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.circular-slide:hover img {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

/* Posiciones del carrusel circular */
.circular-center {
    width: 400px;
    height: 400px;
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
}

.circular-left-close,
.circular-right-close {
    width: 300px;
    height: 300px;
    opacity: 0.8;
    z-index: 5;
}

.circular-left-close {
    transform: translateX(-150px) scale(0.85);
}

.circular-right-close {
    transform: translateX(150px) scale(0.85);
}

.circular-left-far,
.circular-right-far {
    width: 250px;
    height: 250px;
    opacity: 0.5;
    z-index: 1;
}

.circular-left-far {
    transform: translateX(-280px) scale(0.7);
}

.circular-right-far {
    transform: translateX(280px) scale(0.7);
}

.circular-hidden {
    display: none;
}

.circular-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0066cc;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.circular-slider-btn:hover {
    background: #0052a3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.circular-prev {
    left: 1rem;
}

.circular-next {
    right: 1rem;
}

.circular-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.circular-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.circular-dot:hover {
    background: rgba(148, 163, 184, 0.8);
    transform: scale(1.2);
}

.circular-active {
    background-color: #0066cc !important;
    width: 24px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .circular-center {
        width: 280px;
        height: 280px;
    }
    
    .circular-left-close,
    .circular-right-close {
        width: 200px;
        height: 200px;
    }
    
    .circular-left-far,
    .circular-right-far {
        width: 150px;
        height: 150px;
    }
    
    .circular-left-close {
        transform: translateX(-100px) scale(0.85);
    }
    
    .circular-right-close {
        transform: translateX(100px) scale(0.85);
    }
    
    .circular-left-far {
        transform: translateX(-180px) scale(0.7);
    }
    
    .circular-right-far {
        transform: translateX(180px) scale(0.7);
    }
    
    .img-marque {
        width: 200px;
        height: 150px;
    }
}
