/* ========================================
   ALEX MANCÍA PORTFOLIO - ULTRA GLASS
   VERSION: 3.0 - GLASSMORPHISM EXTREMO
   ======================================== */

/* --- Variables CSS --- */
:root {
    --accent-color-light: #4f46e5;
    --accent-color-dark: #6366f1;
    --accent-shadow-light: rgba(79, 70, 229, 0.39);
    --accent-shadow-dark: rgba(99, 102, 241, 0.35);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONFIGURACIÓN BASE - COMPLETAMENTE TRANSPARENTE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-portfolio-wrapper {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.5s ease;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TEMA CLARO - EFECTO PARALLAX CON BURBUJAS FLOTANTES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-portfolio-wrapper:not(.dark) {
    background: linear-gradient(
        135deg,
        #e0f2fe 0%,
        #bfdbfe 25%,
        #93c5fd 50%,
        #60a5fa 75%,
        #3b82f6 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: #1e293b;
    position: relative;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Burbujas flotantes en modo claro */
.amp-portfolio-wrapper:not(.dark)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: bubble-float 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50px) scale(1.1);
        opacity: 0.9;
    }
}

/* Partículas brillantes en modo claro */
.amp-portfolio-wrapper:not(.dark)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.5) 2px, transparent 2px),
        radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 200px 200px, 150px 150px, 250px 250px, 180px 180px, 220px 220px;
    animation: sparkle-drift 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes sparkle-drift {
    0% {
        background-position: 0 0, 50px 50px, 100px 0, 150px 100px, 200px 50px;
    }
    100% {
        background-position: 200px 200px, 250px 250px, 300px 200px, 350px 300px, 400px 250px;
    }
}

.amp-portfolio-wrapper:not(.dark) .text-slate-900,
.amp-portfolio-wrapper:not(.dark) .text-slate-700,
.amp-portfolio-wrapper:not(.dark) .text-slate-600,
.amp-portfolio-wrapper:not(.dark) .text-slate-500 {
    color: #f8fafc;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.amp-portfolio-wrapper:not(.dark) .card-style .dark\:dark-highlight-text,
.amp-portfolio-wrapper:not(.dark) .card-style .text-slate-600,
.amp-portfolio-wrapper:not(.dark) .card-style .text-slate-700,
.amp-portfolio-wrapper:not(.dark) .card-style .amp-service-description,
.amp-portfolio-wrapper:not(.dark) .card-style p {
     color: #334155;
}

.amp-portfolio-wrapper:not(.dark) .card-style h3 {
     color: #1e293b;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TEMA OSCURO - GLASSMORPHISM EXTREMO + MATRIX VISIBLE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Canvas Matrix - SIEMPRE VISIBLE */
#matrix-canvas { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Wrapper - COMPLETAMENTE TRANSPARENTE */
.amp-portfolio-wrapper.dark { 
    background: transparent !important;  /* ⬅️ FORZAR transparencia */
    color: #cbd5e1;
    position: relative;
}

/* Mostrar Matrix */
.amp-portfolio-wrapper.dark #matrix-canvas { 
    display: block !important;  /* ⬅️ FORZAR visualización */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAPA GLASS ULTRA TRANSPARENTE - 50% opacidad máxima
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-portfolio-wrapper.dark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* ✨ GLASSMORPHISM EXTREMO */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,         /* Solo 30% opaco arriba */
        rgba(15, 23, 42, 0.4) 30%,     /* 40% en medio */
        rgba(15, 23, 42, 0.45) 70%,    /* 45% */
        rgba(0, 0, 0, 0.5) 100%        /* 50% máximo abajo */
    );
    
    /* 🔥 BLUR INTENSO para efecto glass */
    backdrop-filter: blur(12px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.1);
    
    z-index: 2;
    pointer-events: none;
}

/* Luz ambiente púrpura pulsante */
.amp-portfolio-wrapper.dark::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at top,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(99, 102, 241, 0.1) 30%,
        transparent 60%
    );
    z-index: 3;
    pointer-events: none;
    animation: pulse-ambient 6s ease-in-out infinite;
}

@keyframes pulse-ambient {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Asegurar que el contenido esté SIEMPRE visible */
.amp-portfolio-wrapper.dark .amp-header,
.amp-portfolio-wrapper.dark .amp-main,
.amp-portfolio-wrapper.dark .amp-footer {
    position: relative;
    z-index: 10;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER CON LIQUID GLASS ULTRA INTENSO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 1rem;
}

.amp-container {
    max-width: 1280px;
    margin: 0 auto;
}

.amp-header-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Header modo claro - glassmorphism blanco */
.amp-portfolio-wrapper:not(.dark) .amp-header-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

/* Header modo oscuro - ULTRA TRANSPARENTE */
.amp-portfolio-wrapper.dark .amp-header-card {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.2) 0%,      /* 20% opaco */
        rgba(15, 23, 42, 0.15) 50%,    /* 15% opaco */
        rgba(30, 41, 59, 0.2) 100%     /* 20% opaco */
    );
    backdrop-filter: blur(25px) saturate(200%) brightness(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(1.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

/* Animación líquida en header */
.amp-portfolio-wrapper.dark .amp-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(139, 92, 246, 0.2) 0%,
        transparent 60%
    );
    animation: liquid-float 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.amp-portfolio-wrapper.dark .amp-header-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.15) 0%,
        transparent 60%
    );
    animation: liquid-float-reverse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes liquid-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(40px, 40px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes liquid-float-reverse {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-40px, -40px) rotate(-180deg);
        opacity: 0.9;
    }
}

/* Asegurar contenido visible en header */
.amp-portfolio-wrapper.dark .amp-header-card > * {
    position: relative;
    z-index: 1;
}

.amp-portfolio-wrapper.dark .amp-header-card:hover {
    backdrop-filter: blur(30px) saturate(220%) brightness(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(220%) brightness(1.3);
    box-shadow: 
        0 12px 48px 0 rgba(0, 0, 0, 0.6),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 0 rgba(99, 102, 241, 0.4),
        0 0 60px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BRAND Y THEME TOGGLE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.brand-name { 
    color: #1e293b; 
    font-weight: 900; 
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease; 
}

.amp-portfolio-wrapper:not(.dark) .brand-name {
    color: #ffffff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
}

.amp-portfolio-wrapper.dark .brand-name {
    color: #e0e7ff;
    text-shadow: 
        0 0 10px rgba(139, 92, 246, 0.8),
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(99, 102, 241, 0.4);
}

.theme-toggle-btn { 
    padding: 0.5rem;
    border-radius: 9999px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease; 
}

.theme-toggle-btn:hover {
    background-color: rgba(99, 102, 241, 0.15);
}

.amp-portfolio-wrapper.dark .theme-toggle-btn:hover {
    background-color: rgba(139, 92, 246, 0.25);
}

.theme-toggle-btn.rotate { 
    transform: rotate(360deg); 
}

.amp-portfolio-wrapper:not(.dark) #theme-icon-light {
    color: #ffffff;
    transition: filter 0.3s ease;
}

.amp-portfolio-wrapper:not(.dark) .theme-toggle-btn:hover #theme-icon-light {
    filter: 
        drop-shadow(0 0 10px #fbbf24) 
        drop-shadow(0 0 20px #f59e0b)
        drop-shadow(0 0 30px #f59e0b);
}

.amp-portfolio-wrapper.dark #theme-icon-dark {
    color: #e2e8f0;
    transition: filter 0.3s ease, color 0.3s ease;
}

.amp-portfolio-wrapper.dark .theme-toggle-btn:hover #theme-icon-dark {
    color: #ffffff;
    filter: 
        drop-shadow(0 0 10px #818cf8) 
        drop-shadow(0 0 20px #6366f1)
        drop-shadow(0 0 30px #8b5cf6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MAIN CONTAINER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 2rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO SECTION CON HOVER INTENSO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-hero {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

.amp-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    position: relative;
}

/* MODO CLARO - Hover con explosión de luz */
.amp-portfolio-wrapper:not(.dark) .amp-hero-title {
    color: #ffffff;
    text-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.4);
}

.amp-portfolio-wrapper:not(.dark) .amp-hero-title:hover {
    transform: translateY(-5px) scale(1.02);
    text-shadow: 
        0 5px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 80px rgba(255, 255, 255, 0.4);
}

/* MODO OSCURO - Hover con efecto neón púrpura */
.amp-portfolio-wrapper.dark .amp-hero-title {
    color: #ffffff;
    position: relative;
}

/* Luz de fondo permanente */
.amp-portfolio-wrapper.dark .amp-hero-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 140%;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(99, 102, 241, 0.2) 30%,
        transparent 70%
    );
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse-hero-glow 3s ease-in-out infinite;
}

@keyframes pulse-hero-glow {
    0%, 100% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 🔥 HOVER ULTRA INTENSO EN HERO TITLE */
.amp-portfolio-wrapper.dark .amp-hero-title:hover {
    transform: translateY(-8px) scale(1.05);
    text-shadow: 
        0 0 20px rgba(139, 92, 246, 1),
        0 0 40px rgba(139, 92, 246, 0.9),
        0 0 60px rgba(139, 92, 246, 0.7),
        0 0 80px rgba(139, 92, 246, 0.5),
        0 0 100px rgba(139, 92, 246, 0.3);
    filter: brightness(1.3);
}

.amp-portfolio-wrapper.dark .amp-hero-title:hover::before {
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.6) 0%,
        rgba(139, 92, 246, 0.4) 30%,
        rgba(99, 102, 241, 0.2) 50%,
        transparent 70%
    );
    animation: pulse-hero-glow-fast 1s ease-in-out infinite;
}

@keyframes pulse-hero-glow-fast {
    0%, 100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

@media (min-width: 768px) {
    .amp-hero-title {
        font-size: 3.75rem;
    }
}

.highlight-text { 
    background-clip: text; 
    -webkit-background-clip: text; 
    color: transparent; 
    background-image: linear-gradient(to right, var(--accent-color-light), #7c3aed); 
}

.amp-portfolio-wrapper.dark .dark-highlight-text { 
    color: #e2e8f0; 
    text-shadow: 
        0 0 15px rgba(139, 92, 246, 0.8),
        0 0 30px rgba(99, 102, 241, 0.6);
    transition: all 0.3s ease;
}

.amp-portfolio-wrapper.dark .amp-hero-title:hover .dark-highlight-text {
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(139, 92, 246, 1),
        0 0 40px rgba(139, 92, 246, 0.8),
        0 0 60px rgba(139, 92, 246, 0.6);
}

.amp-hero-description {
    max-width: 42rem;
    font-size: 1.125rem;
    color: #475569;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .amp-hero-description {
        font-size: 1.25rem;
    }
}

.amp-portfolio-wrapper:not(.dark) .amp-hero-description {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.amp-portfolio-wrapper:not(.dark) .amp-hero-description:hover {
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.amp-portfolio-wrapper.dark .amp-hero-description {
    color: #cbd5e1;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.amp-portfolio-wrapper.dark .amp-hero-description:hover {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    color: #e2e8f0;
    transform: translateY(-2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTIONS Y TÍTULOS CON LUZ PERMANENTE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-section {
    padding: 5rem 0;
}

.amp-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    position: relative;
}

/* Modo claro */
.amp-portfolio-wrapper:not(.dark) .amp-section-title {
    color: #ffffff;
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 255, 255, 0.4);
}

.amp-portfolio-wrapper:not(.dark) .amp-section-title:hover {
    transform: translateY(-4px) scale(1.02);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(255, 255, 255, 0.7),
        0 0 50px rgba(255, 255, 255, 0.5);
}

/* Modo oscuro - Luz permanente */
.amp-portfolio-wrapper.dark .amp-section-title {
    color: #e2e8f0;
    text-shadow: 
        0 0 25px rgba(139, 92, 246, 0.7),
        0 0 50px rgba(99, 102, 241, 0.5),
        0 0 75px rgba(99, 102, 241, 0.3);
}

.amp-portfolio-wrapper.dark .amp-section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 160%;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.35) 0%,
        rgba(99, 102, 241, 0.2) 30%,
        transparent 70%
    );
    z-index: -1;
    border-radius: 50%;
    filter: blur(35px);
    animation: pulse-section-glow 3s ease-in-out infinite;
}

@keyframes pulse-section-glow {
    0%, 100% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.amp-portfolio-wrapper.dark .amp-section-title:hover {
    color: #ffffff;
    transform: translateY(-5px) scale(1.03);
    text-shadow: 
        0 0 35px rgba(139, 92, 246, 1),
        0 0 60px rgba(139, 92, 246, 0.9),
        0 0 85px rgba(139, 92, 246, 0.7),
        0 0 110px rgba(139, 92, 246, 0.5);
}

.amp-portfolio-wrapper.dark .amp-section-title:hover::before {
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.6) 0%,
        rgba(139, 92, 246, 0.4) 30%,
        rgba(99, 102, 241, 0.2) 50%,
        transparent 70%
    );
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICIOS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .amp-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .amp-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amp-service-card {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amp-service-icon {
    padding: 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amp-service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.amp-service-card:hover .amp-service-icon {
    transform: scale(1.15) rotateZ(5deg);
}

.amp-service-card:hover .amp-service-icon::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

.amp-portfolio-wrapper:not(.dark) .amp-service-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.amp-portfolio-wrapper.dark .amp-service-icon {
    background: rgba(255, 255, 255, 0.05);
}

/* Colores específicos de iconos */
.amp-service-icon.bg-indigo-100 {
    background-color: rgba(224, 231, 255, 0.3);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-indigo-100 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-indigo-100::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
}

.amp-portfolio-wrapper.dark .amp-service-card:hover .amp-service-icon.bg-indigo-100 {
    box-shadow: 
        0 0 25px rgba(99, 102, 241, 0.7),
        0 0 50px rgba(99, 102, 241, 0.5),
        0 0 75px rgba(99, 102, 241, 0.3);
}

.amp-service-icon.bg-sky-100 {
    background-color: rgba(224, 242, 254, 0.3);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-sky-100 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.08) 100%);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-sky-100::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, transparent 70%);
}

.amp-portfolio-wrapper.dark .amp-service-card:hover .amp-service-icon.bg-sky-100 {
    box-shadow: 
        0 0 25px rgba(14, 165, 233, 0.7),
        0 0 50px rgba(14, 165, 233, 0.5),
        0 0 75px rgba(14, 165, 233, 0.3);
    animation: pulse-sky 2s infinite;
}

@keyframes pulse-sky {
    0%, 100% { transform: scale(1.15) rotateZ(5deg); }
    50% { transform: scale(1.2) rotateZ(5deg); }
}

.amp-service-icon.bg-emerald-100 {
    background-color: rgba(209, 250, 229, 0.3);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-emerald-100 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-emerald-100::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 70%);
}

.amp-portfolio-wrapper.dark .amp-service-card:hover .amp-service-icon.bg-emerald-100 {
    box-shadow: 
        0 0 25px rgba(16, 185, 129, 0.7),
        0 0 50px rgba(16, 185, 129, 0.5),
        0 0 75px rgba(16, 185, 129, 0.3);
}

.amp-service-icon.bg-amber-100 {
    background-color: rgba(254, 243, 199, 0.3);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-amber-100 {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.amp-portfolio-wrapper.dark .amp-service-icon.bg-amber-100::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.5) 0%, transparent 70%);
}

.amp-portfolio-wrapper.dark .amp-service-card:hover .amp-service-icon.bg-amber-100 {
    box-shadow: 
        0 0 25px rgba(245, 158, 11, 0.7),
        0 0 50px rgba(245, 158, 11, 0.5),
        0 0 75px rgba(245, 158, 11, 0.3);
}

.amp-service-icon svg {
    display: block;
    transition: filter 0.3s ease;
}

.amp-portfolio-wrapper.dark .amp-service-card:hover .amp-service-icon svg {
    filter: drop-shadow(0 0 10px currentColor);
}

.text-indigo-500 {
    color: #6366f1;
}

.text-sky-500 {
    color: #0ea5e9;
}

.text-emerald-500 {
    color: #10b981;
}

.text-amber-500 {
    color: #f59e0b;
}

.amp-portfolio-wrapper.dark .text-indigo-400 {
    color: #818cf8;
}

.amp-portfolio-wrapper.dark .text-sky-400 {
    color: #38bdf8;
}

.amp-portfolio-wrapper.dark .text-emerald-400 {
    color: #34d399;
}

.amp-portfolio-wrapper.dark .text-amber-400 {
    color: #fbbf24;
}

.amp-service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.amp-portfolio-wrapper.dark .amp-service-card:hover .amp-service-title {
    color: #ffffff;
    text-shadow: 
        0 0 18px rgba(139, 92, 246, 0.9),
        0 0 35px rgba(139, 92, 246, 0.6),
        0 0 50px rgba(139, 92, 246, 0.4);
}

.amp-service-description {
    font-size: 0.875rem;
    color: #475569;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TARJETAS CON GLASSMORPHISM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.card-style {
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Modo claro - glass blanco */
.amp-portfolio-wrapper:not(.dark) .card-style {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

.amp-portfolio-wrapper:not(.dark) .card-style:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 20px 40px 0 rgba(31, 38, 135, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

/* Modo oscuro - ULTRA glass */
.amp-portfolio-wrapper.dark .card-style {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.25) 0%,
        rgba(15, 23, 42, 0.2) 100%
    );
    backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 2px 4px -2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.amp-portfolio-wrapper.dark .card-style:hover {
    transform: translateY(-12px) scale(1.04);
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.35) 0%,
        rgba(15, 23, 42, 0.3) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.card-style h3 {
     transition: all 0.3s ease;
}

.amp-portfolio-wrapper:not(.dark) .card-style:hover h3 {
     color: var(--accent-color-light);
     text-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.amp-portfolio-wrapper.dark .card-style h3,
.amp-portfolio-wrapper.dark .card-style p {
    transition: all 0.3s ease;
}

.amp-portfolio-wrapper.dark .card-style p {
    font-weight: 400;
    color: #cbd5e1;
}

.amp-portfolio-wrapper.dark .card-style:hover h3 {
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(139, 92, 246, 0.9),
        0 0 30px rgba(139, 92, 246, 0.6);
}

.amp-portfolio-wrapper.dark .card-style:hover p {
    color: #e2e8f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HABILIDADES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-skills-container {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-label {
    font-weight: 600;
    color: #334155;
}

.amp-portfolio-wrapper:not(.dark) .skill-label {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.amp-portfolio-wrapper.dark .skill-label {
    color: #e2e8f0;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
}

.amp-portfolio-wrapper.dark .skill-item:hover .skill-label {
    text-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
    color: #ffffff;
}

.skill-percent-display {
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 700;
}

.chart {
    font-size: 6px; 
    perspective: 1000px;
    perspective-origin: 50% 50%;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    margin-top: 1rem;
}

.bar {
    font-size: 1em;
    position: relative;
    height: 10em;
    transition: all 0.3s ease-in-out;
    transform: rotateX(60deg) rotateY(0deg);
    transform-style: preserve-3d;
}

.bar .face {
    font-size: 2em;
    position: relative;
    width: 100%;
    height: 2em;
    background-color: #e2e8f0;
}

.amp-portfolio-wrapper.dark .bar .face {
    background-color: rgba(51, 65, 85, 0.5);
}

.bar .face.side-a,
.bar .face.side-b {
    width: 2em;
}

.bar .side-a {
    transform: rotateX(90deg) rotateY(-90deg) translateX(2em) translateY(1em) translateZ(1em);
}

.bar .side-b {
    transform: rotateX(90deg) rotateY(-90deg) translateX(4em) translateY(1em) translateZ(-1em);
    position: absolute;
    right: 0;
}

.bar .side-0 {
    transform: rotateX(90deg) rotateY(0) translateX(0) translateY(1em) translateZ(-1em);
}

.bar .side-1 {
    transform: rotateX(90deg) rotateY(0) translateX(0) translateY(1em) translateZ(3em);
}

.bar .top {
    transform: rotateX(0deg) rotateY(0) translateX(0em) translateY(4em) translateZ(2em);
}

.bar .floor {
    box-shadow: 0 0.1em 0.6em rgba(0, 0, 0, 0.1);
}

.growing-bar {
    width: 0%;
    height: 2em;
    transition: width 2s ease-out;
}

.amp-portfolio-wrapper.dark .bar .side-0 {
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.4);
}

.amp-portfolio-wrapper.dark .bar .side-a {
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.4);
}

.amp-portfolio-wrapper.dark .bar .floor {
     box-shadow: 0 0.1em 1em rgba(0, 0, 0, 0.4), 0 0 2em rgba(0, 0, 0, 0.3);
}

.amp-portfolio-wrapper.dark .growing-bar {
    box-shadow: none;
}

/* Colores neón específicos */
.amp-portfolio-wrapper.dark .skill-uiux .skill-percent-display { 
    text-shadow: 0 0 10px #a5b4fc, 0 0 18px #6366f1; 
}

.amp-portfolio-wrapper.dark .skill-uiux .growing-bar { 
    box-shadow: 0 0 2em rgba(99, 102, 241, 0.8), 0 0 4em rgba(99, 102, 241, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-uiux .bar .side-a { 
    background-color: #4f46e5; 
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.4), 0 0 18px rgba(99, 102, 241, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-web .skill-percent-display { 
    text-shadow: 0 0 10px #7dd3fc, 0 0 18px #0ea5e9; 
}

.amp-portfolio-wrapper.dark .skill-web .growing-bar { 
    box-shadow: 0 0 2em rgba(14, 165, 233, 0.8), 0 0 4em rgba(14, 165, 233, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-web .bar .side-a { 
    background-color: #0ea5e9; 
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.4), 0 0 18px rgba(14, 165, 233, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-pentest .skill-percent-display { 
    text-shadow: 0 0 10px #6ee7b7, 0 0 18px #10b981; 
}

.amp-portfolio-wrapper.dark .skill-pentest .growing-bar { 
    box-shadow: 0 0 2em rgba(16, 185, 129, 0.8), 0 0 4em rgba(16, 185, 129, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-pentest .bar .side-a { 
    background-color: #059669; 
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.4), 0 0 18px rgba(16, 185, 129, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-marketing .skill-percent-display { 
    text-shadow: 0 0 10px #fcd34d, 0 0 18px #f59e0b; 
}

.amp-portfolio-wrapper.dark .skill-marketing .growing-bar { 
    box-shadow: 0 0 2em rgba(245, 158, 11, 0.8), 0 0 4em rgba(245, 158, 11, 0.6); 
}

.amp-portfolio-wrapper.dark .skill-marketing .bar .side-a { 
    background-color: #f59e0b; 
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.4), 0 0 18px rgba(245, 158, 11, 0.6); 
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILTROS Y PORTAFOLIO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn { 
    background-color: #e2e8f0; 
    color: #334155; 
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out; 
}

.filter-btn:hover { 
    background-color: #cbd5e1; 
}

.filter-btn.active { 
    background-color: var(--accent-color-light); 
    color: white; 
    box-shadow: 0 4px 14px 0 var(--accent-shadow-light); 
}

.amp-portfolio-wrapper.dark .filter-btn { 
    background-color: rgba(30, 41, 59, 0.4); 
    backdrop-filter: blur(10px);
    color: #94a3b8; 
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.amp-portfolio-wrapper.dark .filter-btn:hover { 
    background-color: rgba(51, 65, 85, 0.5); 
    border-color: rgba(99, 102, 241, 0.4);
}

.amp-portfolio-wrapper.dark .filter-btn.active { 
    background-color: var(--accent-color-dark); 
    color: #e2e8f0; 
    box-shadow: 0 4px 14px 0 var(--accent-shadow-dark); 
    border-color: rgba(139, 92, 246, 0.6);
}

.amp-portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .amp-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .amp-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-item {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: block;
}

.project-item img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%);
}

.project-item:hover img {
    transform: scale(1.10);
    filter: grayscale(0%);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amp-portfolio-wrapper.dark .project-item:hover .project-title {
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(139, 92, 246, 0.9),
        0 0 30px rgba(139, 92, 246, 0.6);
}

.project-description {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1rem;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color-dark);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACTO Y BOTONES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-contact {
    text-align: center;
}

.amp-contact-description {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
}

.amp-portfolio-wrapper:not(.dark) .amp-contact-description {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.amp-contact-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .amp-contact-buttons {
        flex-direction: row;
    }
}

.btn-contact {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    transform: translateZ(0);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn-contact:hover::before {
    width: 200%;
    height: 200%;
}

.btn-contact:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

.btn-email {
    background-color: #334155;
    color: white;
}

.amp-portfolio-wrapper.dark .btn-email {
    background-color: #1e293b;
}

.btn-email:hover {
    background-color: #1e293b;
}

.amp-portfolio-wrapper.dark .btn-email:hover {
    background-color: #0F172A;
}

.btn-contact svg, .btn-contact span {
    position: relative;
    z-index: 1;
}

/* Botón líquido */
a.btn-liquid {
    position: relative;
    padding: 20px 50px;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    width: 200px;
    overflow: hidden;
    border-radius: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    background-color: var(--accent-color-light);
    box-shadow: 0 4px 14px 0 var(--accent-shadow-light);
    transition: box-shadow 0.3s ease;
}

.amp-portfolio-wrapper.dark a.btn-liquid {
    background-color: var(--accent-color-dark);
    box-shadow: 0 4px 14px 0 var(--accent-shadow-dark);
}

a.btn-liquid:hover {
    box-shadow: 0 6px 20px 0 var(--accent-shadow-light);
}

.amp-portfolio-wrapper.dark a.btn-liquid:hover {
    box-shadow: 0 6px 20px 0 var(--accent-shadow-dark);
}

a.btn-liquid span {
    position: relative;
    color: #fff;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 4px;
    z-index: 1;
    display: block;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.btn-liquid .liquid {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--accent-color-light);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, .5);
    transition: .5s;
}

.amp-portfolio-wrapper.dark a.btn-liquid .liquid {
    background: var(--accent-color-dark);
}

a.btn-liquid .liquid::after,
a.btn-liquid .liquid::before {
    content: '';
    width: 200%;
    height: 200%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: #000;
}

a.btn-liquid .liquid::before {
    border-radius: 45%;
    background: rgba(20, 20, 20, 1);
    animation: animate 5s linear infinite;
}

a.btn-liquid .liquid::after {
    border-radius: 40%;
    background: rgba(20, 20, 20, .5);
    animation: animate 10s linear infinite;
}

a.btn-liquid:hover .liquid{
    top: -140px;
}

@keyframes animate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amp-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.amp-portfolio-wrapper.dark .amp-footer {
    border-top-color: rgba(99, 102, 241, 0.2);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILIDADES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hidden {
    display: none !important;
}

/* Optimizaciones */
@media (prefers-reduced-motion: reduce) {
    .amp-portfolio-wrapper.dark .amp-section-title::before,
    .amp-portfolio-wrapper.dark .amp-hero-title::before,
    .amp-portfolio-wrapper.dark .amp-header-card::before,
    .amp-portfolio-wrapper.dark .amp-header-card::after,
    .amp-portfolio-wrapper.dark::after {
        animation: none;
    }
}

@media (max-width: 768px) {
    .amp-portfolio-wrapper.dark .amp-header-card {
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
    }
    
    .amp-portfolio-wrapper.dark .amp-section-title::before {
        filter: blur(25px);
    }
    
    .amp-portfolio-wrapper.dark::before {
        backdrop-filter: blur(8px) saturate(150%);
        -webkit-backdrop-filter: blur(8px) saturate(150%);
    }
}

/* FIN DEL CSS */