/* ===================================
   JF TECHNOLOGY & SERVICES
   DISEÑO PREMIUM PROFESIONAL 2025
   =================================== */

:root {
    --bg-main: #0f1419;
    --bg-secondary: #151b24;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2937;
    --accent-primary: #1e40af;
    --accent-secondary: #1e3a8a;
    --accent-tertiary: #0369a1;
    --accent-glow: rgba(30, 64, 175, 0.25);
    --text-white: #f1f5f9;
    --text-gray: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    --border: rgba(203, 213, 225, 0.1);
    --border-light: rgba(203, 213, 225, 0.05);
    --border-glow: rgba(30, 64, 175, 0.2);
    --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(30, 64, 175, 0.08);
    --shadow-glow-lg: 0 0 30px rgba(30, 64, 175, 0.1);
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --gradient-purple: linear-gradient(135deg, #3730a3 0%, #312e81 100%);
    --gradient-cyan: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    --gradient-sunset: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* Mejora Pro: Scrollbar en Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-main);
}

body {
    background: var(--bg-main);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    z-index: 10000;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    outline: 3px solid white;
    outline-offset: 5px;
    box-shadow: var(--shadow-lg);
}

#intro-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.vignette {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    animation: vignetteBreath 10s ease-in-out infinite;
}

@keyframes vignetteBreath {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-image: linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.6;
    animation: gridFloat 20s linear infinite, gridPulse 5s ease-in-out infinite;
}

@keyframes gridFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.noise-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbHRlcj0idXJsKCNhKSIvPjwvc3ZnPg==');
    pointer-events: none;
}

#loop-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

#loop-logo.visible {
    opacity: 1;
    transform: scale(1);
}

.logo-glass {
    width: 50vmin;
    height: 50vmin;
    min-width: 280px;
    min-height: 280px;
    max-width: 450px;
    max-height: 450px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 3px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 120px rgba(59, 130, 246, 0.5), inset 0 0 80px rgba(59, 130, 246, 0.1), 0 30px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Mejora Pro: Aceleración GPU */
    transform: translateZ(0); 
    backface-visibility: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-3deg); }
}

.logo-glass::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.9) 25%, rgba(139, 92, 246, 0.9) 50%, rgba(6, 182, 212, 0.9) 75%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); filter: hue-rotate(360deg); }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: pulseRing 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

.logo-shine {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { opacity: 0.3; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.6; transform: scale(1.2) translate(10%, 10%); }
}

.logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.text-main {
    font-size: clamp(4rem, 12vmin, 7rem);
    font-weight: 900;
    line-height: 0.9;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #bfdbfe 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 60px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 1;
    letter-spacing: -0.05em;
    animation: textGlow 5s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 30px rgba(59, 130, 246, 0.4)); }
    50% { filter: brightness(1.3) drop-shadow(0 0 50px rgba(59, 130, 246, 0.7)); }
}

.text-sub {
    font-size: clamp(0.7rem, 2.5vmin, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.4em;
    color: #bfdbfe;
    margin-top: 1rem;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.95;
    animation: fadeInUp 1.5s ease 0.5s backwards;
}

.orbit-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}

@keyframes rotateOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scroll-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.scroll-hint:hover {
    color: var(--accent-primary);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator {
    width: 32px;
    height: 56px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    position: relative;
    animation: scrollFade 2.5s ease-in-out infinite;
    transition: var(--transition);
}

.scroll-hint:hover .scroll-indicator {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes scrollFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes scrollDown {
    0% { top: 10px; opacity: 1; }
    100% { top: 36px; opacity: 0; }
}

.scroll-hint span {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    animation: fadeInUp 1.5s ease 1s backwards;
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 20s ease-in-out infinite;
    /* Mejora Pro: Aceleración GPU */
    transform: translateZ(0);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, -80px) scale(0.9); }
    75% { transform: translate(40px, -40px) scale(1.05); }
}

#web-content {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg-main) 10%);
    border-top: 1px solid var(--border-light);
}

#web-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 50%, transparent 100%);
    filter: blur(2px);
    animation: lineGlow 4s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.navbar.solid-nav {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transform: translateX(0);
    transition: var(--transition-slow);
    text-decoration: none;
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    position: relative;
}

.nav-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-blue);
    opacity: 0;
    border-radius: var(--radius-md);
    transition: var(--transition);
    z-index: -1;
}

.nav-logo:hover::before {
    opacity: 0.15;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.4));
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.08) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.6));
}

.nav-logo:hover .logo-glow {
    opacity: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.solid-nav .nav-link {
    text-shadow: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

.nav-link:hover::after {
    opacity: 0.12;
}

.menu-btn {
    display: none;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--border-glow);
    color: var(--text-white);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.solid-nav .menu-btn {
    box-shadow: none;
}

.menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition);
}

.menu-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.menu-btn:hover::before {
    opacity: 0.15;
}

.menu-line {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-white);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.text-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.section-dark {
    background: linear-gradient(180deg, var(--bg-main) 0%, #050505 50%, var(--bg-main) 100%);
    position: relative;
}

.hero-text {
    padding: clamp(6rem, 15vh, 10rem) 0 clamp(5rem, 10vh, 8rem);
    text-align: center;
    position: relative;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 0.7rem 1.8rem;
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-white);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.gradient-animated {
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.hero-description {
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s backwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
}

.section-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn span, .btn i {
    position: relative;
    z-index: 1;
}

.btn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.3);
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--bg-main);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.3rem 2.8rem;
    font-size: 1.05rem;
}

.btn-nav {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6); }
}

.full-width {
    width: 100%;
    justify-content: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 340px), 1fr));
    gap: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(400px, 50vh, 480px);
    cursor: pointer;
    /* Mejora Pro: Aceleración GPU */
    transform: translateZ(0);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.card:hover {
    transform: translateY(-16px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    opacity: 0.12;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 2;
    transition: var(--transition);
}

.card:hover .card-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 35%, rgba(0, 0, 0, 0.98) 100%);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.card:hover .card-glow {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transition: var(--transition);
    z-index: 3;
    pointer-events: none;
}

.card:hover .card-shine {
    top: 100%;
    left: 100%;
}

.card-content {
    position: relative;
    z-index: 3;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
    position: relative;
}

.icon-bg {
    position: absolute;
    inset: -5px;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg);
    opacity: 0;
    filter: blur(10px);
    transition: var(--transition);
    z-index: -1;
}

.card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.card:hover .icon-bg {
    opacity: 0.6;
}

.icon {
    font-size: 2rem;
    color: white;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-white);
    transition: var(--transition);
    letter-spacing: -0.02em;
}

.card:hover .card-content h3 {
    color: var(--accent-primary);
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.link-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.link-more span {
    position: relative;
}

.link-more span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.link-more:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.link-more i {
    transition: var(--transition);
}

.link-more:hover {
    color: var(--text-white);
    gap: 14px;
}

.link-more:hover i {
    transform: translateX(5px);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.testimonial-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 2.5rem);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 1.2rem;
}

.testimonial-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.client-info strong {
    display: block;
    color: var(--text-white);
    font-size: 1.05rem;
}

.client-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
}

.contact-content {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, rgba(15, 15, 15, 1) 0%, rgba(10, 10, 10, 1) 100%);
    border-right: 2px solid var(--border);
    position: relative;
}

.contact-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.contact-content > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.8rem;
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid var(--border-glow);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(8px);
    border-color: var(--accent-primary);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-info strong {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-info span {
    color: var(--text-gray);
    font-size: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    gap: 0.8rem;
    color: var(--text-white);
}

.contact-form-wrapper {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
    background: var(--bg-card);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 0.7rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.form-group:focus-within label {
    color: var(--accent-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-status i {
    font-size: 1.3rem;
}

.footer {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(1.5rem, 3vw, 2rem);
    border-top: 2px solid var(--border);
    background: linear-gradient(180deg, var(--bg-main) 0%, #000000 100%);
    position: relative;
    margin-top: clamp(3rem, 6vw, 5rem);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

.footer-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-footer-info {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-footer-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.contact-footer-info i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.contact-footer-info a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.contact-footer-info a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-blue);
    border-color: var(--accent-primary);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-newsletter {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-newsletter:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-contact-simple {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.footer-contact-simple p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    margin: 0.5rem 1rem;
    font-size: 1rem;
}

.footer-contact-simple i {
    color: var(--accent-primary);
    font-size: 1.3rem;
}

.footer-contact-simple a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.footer-contact-simple a:hover {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-blue);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    /* Mejora Pro: Aceleración GPU */
    transform: translateZ(0); 
    backface-visibility: hidden;
    perspective: 1000px;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: shapeFloat 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: shapeFloat 18s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-30%, -70%) scale(1.2); }
}

.service-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 2px solid var(--border);
    position: relative;
}

.service-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.service-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-header p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 0.8rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
    line-height: 1.6;
    transition: var(--transition);
}

.detail-list li:hover {
    color: var(--text-white);
    padding-left: 1rem;
    border-color: var(--accent-primary);
}

.detail-list li:last-child {
    border-bottom: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mejora Pro: Clase para spinner de carga */
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

*:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
    border: 3px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

::selection {
    background: var(--accent-primary);
    color: white;
}

/* ===================================
   MEDIA QUERIES (RESPONSIVE)
   =================================== */

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }

    .nav-logo img {
        height: 42px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 85px;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 90vw;
        max-width: 400px;
        height: calc(100vh - 85px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 2rem;
        box-shadow: -12px 0 48px rgba(0, 0, 0, 0.6);
        border-left: 2px solid var(--border-glow);
        gap: 0.5rem;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 1.2rem 1.5rem;
    }

    .menu-btn {
        display: flex;
    }

    .hero-text {
        padding: clamp(4rem, 10vh, 6rem) 0 clamp(3rem, 6vh, 5rem);
    }

    .stats-row {
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .section {
        padding: clamp(3rem, 8vw, 5rem) 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-content {
        border-right: none;
        border-bottom: 2px solid var(--border);
        padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    }

    .contact-form-wrapper {
        padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
}

/* ===================================
   MEDIA QUERY: MÓVILES (Tablets pequeñas y celulares)
   =================================== */
@media (max-width: 768px) {
    .text-main {
        font-size: 15vmin;
    }

    .logo-glass {
        width: 40vmin;
        height: 40vmin;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        width: 100%;
        top: 70px;
        height: calc(100vh - 70px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo, .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }

    .btn-newsletter {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cursor, .cursor-dot {
        display: none !important;
    }
}

/* ===================================
   MEDIA QUERY: MÓVILES PEQUEÑOS (< 480px)
   =================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-logo span {
        font-size: 0.9rem;
    }

    .hero-text {
        padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 4vh, 3rem);
    }

    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .stats-row {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .card {
        padding: 1.5rem 1.2rem;
        min-height: 350px;
    }

    .contact-content, 
    .contact-form-wrapper {
        padding: 2rem 1.2rem;
    }

    .contact-content h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-contact-simple {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-contact-simple p {
        margin: 0.5rem 0;
    }

    body {
        overflow-x: hidden;
    }
}

.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: var(--border-glow);
}

/* ===================================
   MEJORA PRO: MODO IMPRESIÓN
   =================================== */
@media print {
    body {
        background: #ffffff;
        color: #000000;
    }
    
    #intro-layer, 
    .hero-background, 
    .floating-orbs,
    .navbar,
    .btn-group,
    .back-to-top {
        display: none !important;
    }

    .card {
        border: 1px solid #000;
        color: #000;
        page-break-inside: avoid;
        box-shadow: none;
    }
    
    .text-main, h2, h3 {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
        text-shadow: none;
    }
}