@import url('https://fonts.googleapis.com/css?family=Pattaya|Work+Sans:400,200,300');

body {
    background-color: #040a16;
    color: #fff;
    overflow-x: hidden;
}
#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}
dialog::backdrop {
    background: rgba(4, 10, 22, 0.8);
    backdrop-filter: blur(8px);
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

dialog.closing::backdrop {
    opacity: 0;
    backdrop-filter: blur(0);
}

dialog[open] {
    animation: modalFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog.closing {
    animation: modalFadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modalFadeOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.9) translateY(30px); }
}

.tech-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tech-card-hover:hover {
    box-shadow: 0 0 30px rgba(70, 184, 218, 0.2);
}

/* Estilos para el efecto de revelado suave */
.reveal-item {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 2s cubic-bezier(0.2, 1, 0.3, 1), transform 2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Margen para que el scroll no oculte los filtros y se vea la activación */
#portfolio-grid {
    scroll-margin-top: 50px;
}

.explainer {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estilos adicionales para fuentes si Tailwind no los carga a tiempo */
.font-logo { font-family: 'Pattaya', cursive; }
.font-work { font-family: 'Work Sans', sans-serif; }

/* Estados de los filtros (Boxes) */
.explainer.active-filter {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: none !important;
    background-color: rgba(15, 23, 42, 0.8) !important; /* slate-900/80 */
}

.explainer[data-explainer="landing"].active-filter {
    border-color: rgba(251, 191, 36, 0.6) !important; /* amber-400 */
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
}

.explainer[data-explainer="estatico"].active-filter {
    border-color: rgba(52, 211, 153, 0.6) !important; /* emerald-400 */
    box-shadow: 0 0 25px rgba(52, 211, 153, 0.2);
}

.explainer[data-explainer="dinamico"].active-filter {
    border-color: rgba(129, 140, 248, 0.6) !important; /* indigo-400 */
    box-shadow: 0 0 25px rgba(129, 140, 248, 0.2);
}

/* Estilos para el Carousel de Reseñas */
#reviews-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.review-card {
    min-width: calc(100% - 1rem); /* Móvil */
}

@media (min-width: 768px) {
    .review-card {
        min-width: calc(33.333% - 1rem); /* Desktop: 3 columnas */
    }
}

.explainer.inactive-filter {
    opacity: 0.4;
    transform: scale(0.95);
    filter: grayscale(1);
}

/* Efecto de pulso para llamar la atención en WhatsApp */
@keyframes pulse-custom {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

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