@font-face {
            font-family: 'Inter';
            font-display: swap;
        }
    </style>

    <style>
        html { scroll-behavior: smooth; }
        .bg-navy { background-color: #0A192F; }
        .text-navy { color: #0A192F; }
        .bg-emerald { background-color: #059669; } /* Emerald 600 for better contrast */
        .text-emerald { color: #059669; }
        .hover\:bg-emerald-600:hover { background-color: #047857; }
        /* Browser Mockup & Portfolio CSS */
        #portfolio-viewport {
            overflow: hidden;
        }
        #portfolio-grid {
            gap: 1rem !important;
        }
        #portfolio-grid.portfolio-carousel {
            display: flex !important;
            align-items: stretch;
            transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform;
        }
        #portfolio-grid.portfolio-expanded {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            transform: none !important;
        }
        .portfolio-card {
            flex: 0 0 100%;
            min-width: 0;
            cursor: pointer;
        }
        .portfolio-url,
        .portfolio-card .p-5 > a,
        .browser-mockup .font-mono span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .portfolio-description,
        .portfolio-card .p-5 > p {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .portfolio-control {
            min-width: 44px;
            min-height: 44px;
        }
        @media (min-width: 768px) {
            #portfolio-grid {
                gap: 2rem !important;
            }
            #portfolio-grid.portfolio-carousel .portfolio-card {
                flex-basis: calc((100% - 2rem) / 2);
            }
        }
        @media (min-width: 1024px) {
            #portfolio-grid.portfolio-carousel .portfolio-card {
                flex-basis: calc((100% - 4rem) / 3);
            }
            #portfolio-grid.portfolio-expanded {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }
        }

        .browser-mockup {
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            background-color: white;
        }
        .browser-mockup .font-mono {
            margin-left: 0.35rem !important;
            margin-right: 0.35rem !important;
            padding-left: 0.35rem !important;
            padding-right: 0.35rem !important;
            font-size: 8px !important;
        }
        @media (min-width: 640px) {
            .browser-mockup .font-mono {
                margin-left: 1rem !important;
                margin-right: 1rem !important;
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
                font-size: 10px !important;
            }
        }
        .portfolio-card:hover .browser-mockup {
            transform: translateY(-8px);
            box-shadow: 0 30px 60px -15px rgba(10, 25, 47, 0.15);
            border-color: rgba(5, 150, 105, 0.2);
        }
        .browser-content {
            position: relative !important;
            overflow: hidden !important;
            width: 100% !important;
            aspect-ratio: 16 / 9 !important;
        }
        @media (min-width: 768px) {
            .browser-content {
                aspect-ratio: 21 / 10 !important;
            }
        }
        /* Dynamic blue halo vignette overlay for all project images */
        .browser-content::after {
            content: '' !important;
            position: absolute !important;
            inset: 0 !important;
            box-shadow: inset 0 0 18px rgba(37, 99, 235, 0.45), inset 0 0 8px rgba(59, 130, 246, 0.3) !important;
            pointer-events: none !important;
            z-index: 10 !important;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }
        .portfolio-card:hover .browser-content::after {
            box-shadow: inset 0 0 28px rgba(37, 99, 235, 0.65), inset 0 0 12px rgba(59, 130, 246, 0.45) !important;
        }
        .browser-content img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: top !important;
            transition: object-position 4s cubic-bezier(0.25, 1, 0.5, 1) !important;
            display: block !important;
        }
        .browser-content picture {
            display: block;
            width: 100%;
            height: 100%;
        }
        .portfolio-card:hover .browser-content img {
            object-position: bottom !important;
        }
        
        /* Filter Button Active states */
        .filter-btn {
            background-color: white;
            color: #4B5563;
            border: 1px solid #E5E7EB;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .filter-btn:hover {
            color: #0A192F;
            background-color: #F9FAFB;
            border-color: #D1D5DB;
            transform: translateY(-1px);
        }
        .filter-btn.active {
            background-color: #059669;
            color: white !important;
            border-color: #059669;
            box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
            transform: translateY(-1px);
        }
        
        /* Filter Fade In Animation */
        @keyframes portfolioFadeIn {
            from {
                opacity: 0;
                transform: scale(0.96) translateY(10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        .portfolio-animate-show {
            animation: portfolioFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }


        /* Navbar Scroll States */
        header.header-top {
            background-color: transparent;
            border-color: transparent;
            box-shadow: none;
        }
        header.header-top .logo-text { color: white; }
        .logo-text {
            position: relative;
            z-index: 10;
        }
        .logo-text::before {
            content: '';
            position: absolute;
            top: -10%;
            left: -10%;
            width: 120%;
            height: 120%;
            /* Solid white core for maximum text contrast, with a gorgeous neon cyan/aqua outer aura */
            background: radial-gradient(ellipse at center, 
                rgba(255, 255, 255, 0.98) 0%, 
                rgba(255, 255, 255, 0.85) 45%, 
                rgba(6, 182, 212, 0.3) 65%, 
                rgba(255, 255, 255, 0) 85%) !important;
            border-radius: 9999px;
            z-index: -1;
            opacity: 0;
            filter: blur(6px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            transform: scale(0.9);
        }
        header.header-scrolled .logo-text {
            filter: drop-shadow(0 2px 4px rgba(10, 25, 47, 0.08)) !important;
        }
        header.header-scrolled .logo-text::before {
            opacity: 1;
            transform: scale(1.1);
            animation: logo-glow-pulse 3s infinite alternate ease-in-out;
        }
        @keyframes logo-glow-pulse {
            0% {
                opacity: 0.85;
                filter: blur(6px);
                transform: scale(1.02);
            }
            100% {
                opacity: 1;
                filter: blur(9px);
                transform: scale(1.18);
            }
        }
        header.header-top .nav-link { color: #D1D5DB; }
        header.header-top .nav-link:hover { color: white; }
        header.header-top #mobile-menu-btn { color: white; background: rgba(255,255,255,0.1); }

        header.header-scrolled {
            background-color: rgba(255, 255, 255, 0.4);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
            backdrop-filter: blur(8px) saturate(220%);
            -webkit-backdrop-filter: blur(8px) saturate(220%);
        }
        header.header-scrolled .logo-text { color: #0A192F; }
        header.header-scrolled .nav-link { 
            color: #1F2937; 
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
        }
        header.header-scrolled .nav-link:hover { color: #0A192F; }
        header.header-scrolled .bg-emerald {
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), 0 0 5px rgba(255, 255, 255, 0.8);
        }
        header.header-scrolled #mobile-menu-btn { color: #4B5563; background: rgba(255,255,255,0.5); }
        
        /* Scroll to Top Button */
        #scroll-top {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background-color: #0A192F;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            opacity: 0;
            visibility: hidden;
            transform: scale(0.5) translateY(20px);
            border: 2px solid rgba(255,255,255,0.1);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        #scroll-top.show {
            opacity: 1;
            visibility: visible;
            transform: scale(1) translateY(0);
        }
        #scroll-top:hover {
            background-color: #10B981;
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
        }
        
        /* Main Content Focus Effect */
        #main-wrapper {
            opacity: 1;
            filter: blur(0px);
        }
/* Reveal Animation Stabilized for CLS */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Prevent content jump by ensuring min-height for sections containing heavy reveals */
.hero-content-area {
    min-height: 400px;
}


        .contact-cta-panel {
            background: #fff;
            border: 1px solid #eef2f7;
            border-radius: 1rem;
            box-shadow: 0 20px 40px -24px rgba(10, 25, 47, 0.3);
            padding: 1.5rem;
        }
        .contact-action-primary,
        .contact-action-secondary {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.625rem;
            width: 100%;
            min-height: 3.5rem;
            border-radius: 0.75rem;
            font-weight: 800;
            text-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
        }
        .contact-action-primary {
            background-color: #059669;
            color: #fff;
            box-shadow: 0 12px 26px rgba(5, 150, 105, 0.24);
        }
        .contact-action-primary:hover {
            transform: translateY(-2px);
            background-color: #047857;
            box-shadow: 0 16px 30px rgba(5, 150, 105, 0.3);
        }
        .contact-action-secondary {
            background-color: #f8fafc;
            color: #0A192F;
            border: 1px solid #e5e7eb;
        }
        .contact-action-secondary:hover {
            transform: translateY(-2px);
            color: #059669;
            border-color: rgba(5, 150, 105, 0.3);
        }

        /* Showcase Gallery Effect */
        .glass-shine {
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            z-index: 10;
        }
        .group:hover .glass-shine {
            animation: slide-shine 0.8s forwards;
        }
        @keyframes slide-shine {
            100% { left: 200%; }
        }

        .premium-glass-shine {
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            z-index: 20;
            pointer-events: none;
            animation: slide-shine 6s infinite ease-in-out;
        }

        /* Parallax Canvas Background */
        #parallax-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 2; /* Entre el fondo y el texto */
            opacity: 0.8;
            mix-blend-mode: difference;
            transition: opacity 0.5s ease;
        }

        #main-wrapper {
            position: relative;
            z-index: 0;
        }

        /* Asegurar que el contenido esté sobre el canvas */
        .relative.z-10 {
            z-index: 10;
            position: relative;
        }

        /* Scroll Down Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: white;
            opacity: 0.8;
            transition: all 0.3s ease;
            cursor: pointer;
            z-index: 20;
        }
        .scroll-indicator:hover {
            opacity: 1;
            transform: translateX(-50%) translateY(-5px);
        }
        .mouse-icon {
            width: 26px;
            height: 42px;
            border: 2px solid white;
            border-radius: 20px;
            position: relative;
        }
        .mouse-wheel {
            width: 4px;
            height: 8px;
            background: #10B981;
            border-radius: 2px;
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            animation: scroll-wheel 1.5s infinite;
        }
        @keyframes scroll-wheel {
            0% { opacity: 1; transform: translateX(-50%) translateY(0); }
            100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
        }

        /* Universal styling for all portfolio tags to ensure beautiful vertical alignment, letter-spacing, and transition */
        .portfolio-card .flex-wrap span {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            cursor: default !important;
            border-radius: 9999px !important;
            font-size: 9px !important;
            font-weight: 800 !important;
            letter-spacing: 0.06em !important;
            text-transform: uppercase !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 3.5px 8.5px !important;
            line-height: 1 !important;
        }

        .portfolio-card .flex-wrap span:hover {
            transform: translateY(-2.5px) scale(1.04) !important;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
        }

        /* Category Tag */
        .tag-category {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.08) 100%) !important;
            color: #1e293b !important;
            border: 1px solid rgba(15, 23, 42, 0.18) !important;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
        }
        .portfolio-card .flex-wrap .tag-category:hover {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.15) 100%) !important;
            border-color: rgba(15, 23, 42, 0.35) !important;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
        }

        /* Web Tag */
        .tag-plan-premium {
            background: linear-gradient(135deg, #047857 0%, #10b981 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
            border: 1px solid rgba(16, 185, 129, 0.35) !important;
        }
        .portfolio-card .flex-wrap .tag-plan-premium:hover {
            background: linear-gradient(135deg, #059669 0%, #34d399 100%) !important;
            box-shadow: 0 6px 14px rgba(16, 185, 129, 0.4) !important;
            border-color: rgba(16, 185, 129, 0.6) !important;
        }

        /* Animated Premium Tag */
        .tag-premium-only {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
            color: #fbbf24 !important;
            border: 1px solid rgba(251, 191, 36, 0.55) !important;
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.22), inset 0 0 4px rgba(251, 191, 36, 0.15) !important;
            font-weight: 800 !important;
            animation: premium-pulse 2.5s infinite ease-in-out;
        }
        .tag-premium-only::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.3) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            transform: skewX(-25deg);
            animation: premium-shimmer 3s infinite ease-in-out;
        }
        .portfolio-card .flex-wrap .tag-premium-only:hover {
            transform: translateY(-3.5px) scale(1.06) !important;
            box-shadow: 0 6px 18px rgba(251, 191, 36, 0.45), inset 0 0 5px rgba(251, 191, 36, 0.25) !important;
            border-color: rgba(251, 191, 36, 0.95) !important;
        }
        @keyframes premium-shimmer {
            0% { left: -100%; }
            30% { left: 150%; }
            100% { left: 150%; }
        }
        @keyframes premium-pulse {
            0%, 100% {
                box-shadow: 0 0 8px rgba(251, 191, 36, 0.2), inset 0 0 4px rgba(251, 191, 36, 0.1);
                border-color: rgba(251, 191, 36, 0.4);
            }
            50% {
                box-shadow: 0 0 15px rgba(251, 191, 36, 0.55), inset 0 0 6px rgba(251, 191, 36, 0.25);
                border-color: rgba(251, 191, 36, 0.85);
            }
        }

        /* Blog SEO Tag */
        .tag-plan-basic {
            background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25) !important;
            border: 1px solid rgba(99, 102, 241, 0.35) !important;
        }
        .portfolio-card .flex-wrap .tag-plan-basic:hover {
            background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%) !important;
            box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4) !important;
            border-color: rgba(99, 102, 241, 0.6) !important;
        }

        /* OJS Tag */
        .tag-plan-ojs {
            background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25) !important;
            border: 1px solid rgba(139, 92, 246, 0.35) !important;
        }
        .portfolio-card .flex-wrap .tag-plan-ojs:hover {
            background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%) !important;
            box-shadow: 0 6px 14px rgba(139, 92, 246, 0.4) !important;
        }
        
        /* Pulse glow animation for the "Ver más" button to make it extremely eye-catching */
        @keyframes pulse-glow-btn {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 10px 25px rgba(16, 185, 129, 0.35);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(16, 185, 129, 0), 0 10px 25px rgba(16, 185, 129, 0.35);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 10px 25px rgba(16, 185, 129, 0.35);
            }
        }
        .btn-pulse-glow {
            animation: pulse-glow-btn 2.2s infinite ease-in-out;
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: 0.01ms !important;
            }
        }
        @media (max-width: 640px) {
            #parallax-canvas {
                display: none;
            }
            .premium-glass-shine,
            .btn-pulse-glow,
            .mouse-wheel {
                animation: none !important;
            }
        }
