/* ===== ANIMACIONES Y EFECTOS BYTEWAVE ===== */

/* Marquee Footer (Texto Infinito) */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Efecto de Texto Delineado */
.outline-text {
    -webkit-text-stroke: 1px #22d3ee;
    color: transparent;
}

.outline-text-strong {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

/* Dibujado de Líneas (Iconos) */
.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.draw-active .draw-path {
    stroke-dashoffset: 0;
}

/* Scroll Reveal General */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- CLASES FORZADAS PARA NAVBAR (Glassmorphism) --- */
/* Usamos !important para asegurar que sobreescriban a Tailwind */
.nav-scrolled {
    background-color: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 800px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.btn-scrolled {
    background-color: #22d3ee !important;
    color: #020617 !important;
    border-color: #22d3ee !important;
    box-shadow: 4px 4px 0px 0px rgba(255, 255, 255, 0.2) !important;
}

/* Animación de carga inicial */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection personalizada */
::selection {
    background-color: rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
}

/* Glow effect para cards hover */
.group:hover {
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
}

/* ===== CARRUSEL DE PROYECTOS ===== */
.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.6s ease-out;
}

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

/* Galería de Imágenes */
.image-gallery {
    position: relative;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
    position: relative;
}

/* Indicadores del Carrusel */
.carousel-indicator {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator:hover {
    background-color: rgba(34, 211, 238, 0.5);
}

.carousel-indicator.active {
    background-color: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* Iconos de Tecnología */
.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icon:hover {
    border-color: #22d3ee;
    color: #22d3ee;
    background-color: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}