/* Tailwind CDN mantenido */
/* Fuentes y estilos base */
body { 
    font-family: 'Inter', sans-serif; 
}

/* Animaciones personalizadas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Transición suave entre videos */
.video-slide {
    transition: opacity 1.5s ease-in-out;
}

/* Partículas container */
#particles-cta {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Efecto hover para tarjetas de equipo */
.team-card:hover .team-image {
    transform: scale(1.05);
}

/* Estilos para el formulario */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Botón flotante */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.floating-btn.show {
    opacity: 1;
    transform: translateY(0);
}

/* Menú móvil */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Overlay para menú móvil */
.menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Marquee Animations */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 35s linear infinite;
}

.marquee-wrapper {
    width: fit-content;
}

.marquee-track {
    display: flex;
    width: max-content;
}

/* Pausar animación en hover */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* Efectos para los tech items */
.tech-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: max-content;
}

.tech-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    .animate-marquee {
        animation: marquee 20s linear infinite;
    }
    
    .animate-marquee-reverse {
        animation: marquee-reverse 25s linear infinite;
    }
    
    .tech-item {
        padding: 0.5rem 1rem;
    }
    
    .tech-item span {
        font-size: 0.875rem;
    }
}

/* Efectos específicos para proyectos de emergencia */
.emergency-pulse {
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Estilos para datos en tiempo real */
.realtime-badge {
    background: linear-gradient(45deg, #10B981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Efectos de mapa para FarmaTurno */
.map-pin {
    animation: bouncePin 2s infinite;
}

@keyframes bouncePin {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* Efectos para ofertas especiales */
.ofert-special {
    position: relative;
    overflow: hidden;
}

.ofert-special::before {
    content: 'OFERTA';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(45deg, #EF4444, #DC2626);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.price-comparison {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
}

/* Animación para el precio de oferta */
@keyframes pulsePrice {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-price {
    animation: pulsePrice 2s infinite;
}