*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-hoja: #4a7c59;
    --verde-claro: #8fbc8f;
    --amarillo-calido: #e8c547;
    --naranja-suave: #e8913a;
    --gris-claro: #f0eee9;
    --gris-medio: #c4bfb6;
    --negro-elegante: #1a1a1a;
    --blanco: #fafaf8;
    --bg-primary: #fafaf8;
    --bg-secondary: #f0eee9;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #4a7c59;
    --accent-hover: #3d6b4a;
    --card-bg: #ffffff;
    --border: #e0dcd5;
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section-padding: 6rem 2rem;
    --container-max: 1200px;
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 8px 40px rgba(26, 26, 26, 0.10);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.particle {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gris-medio);
    animation: floatParticle 12s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px) rotate(3deg); opacity: 0.6; }
    50% { transform: translateY(-10px) translateX(-5px) rotate(-2deg); opacity: 0.4; }
    75% { transform: translateY(-25px) translateX(8px) rotate(1deg); opacity: 0.5; }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all var(--transition-smooth) !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.nav-cta::after {
    display: none !important;
}

.nav-secret {
    font-family: var(--font-mono);
    font-size: 0.85rem !important;
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
    position: relative;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--amarillo-calido);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-terminal {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #333;
    transition: all var(--transition-smooth);
}

.hero-terminal:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.terminal-header {
    background: #2a2a2a;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
}

.terminal-body {
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 2;
}

.prompt {
    color: var(--amarillo-calido);
    margin-right: 0.5rem;
}

.command {
    color: #e0e0e0;
    animation: fadeInCommand 2s ease forwards;
    opacity: 0;
}

@keyframes fadeInCommand {
    to { opacity: 1; }
}

.output {
    color: #8fbc8f;
    padding-left: 1.5rem;
    animation: fadeInOutput 0.5s ease forwards;
    opacity: 0;
}

.terminal-line:nth-child(2) .output { animation-delay: 1.5s; }
.terminal-line:nth-child(4) .output { animation-delay: 3.2s; }

@keyframes fadeInOutput {
    to { opacity: 1; }
}

.cursor-blink {
    color: var(--amarillo-calido);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.typing {
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.hero-visual {
    display: none;
}

.geek-float {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gris-medio);
    opacity: 0.6;
    pointer-events: none;
    animation: geekDrift 15s ease-in-out infinite;
}

.geek-float:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.geek-float:nth-child(2) { top: 25%; right: 10%; animation-delay: -5s; }
.geek-float:nth-child(3) { bottom: 25%; left: 15%; animation-delay: -10s; }

@keyframes geekDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(2deg); }
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.editorial-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 3rem;
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.carousel-card {
    position: absolute;
    width: 500px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.6s ease,
    filter 0.6s ease;
    cursor: pointer;
}

.carousel-card.active {
    z-index: 10;
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #e8e8e8;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.carousel-arrow:hover {
    border-color: var(--text-primary);
    background: var(--gris-claro);
    transform: scale(1.05);
}

.carousel-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.carousel-indicators {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gris-medio);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.indicator.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.2rem;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-logo-float {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLab 5s ease-in-out infinite;
}

.about-logo-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
}

.about-mini-terminal {
    position: absolute;
    bottom: -10px;
    right: -30px;
    background: #1a1a1a;
    padding: 1rem 1.3rem;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 2;
    box-shadow: var(--shadow-md);
    border: 1px solid #333;
}

.about-mini-terminal code {
    color: #aaa;
}

.about-mini-terminal .highlight {
    color: #8fbc8f;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--amarillo-calido));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gris-claro);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: white;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-hint {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-hint {
    opacity: 1;
    transform: translateY(0);
}

.cta-section {
    background: var(--negro-elegante);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-content .btn-primary {
    background: var(--amarillo-calido);
    color: var(--negro-elegante);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.cta-content .btn-primary:hover {
    background: #f0d45a;
    box-shadow: 0 8px 30px rgba(232, 197, 71, 0.4);
}

.footer {
    background: var(--negro-elegante);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-easter-egg {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.footer-mail {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-mail:hover {
    color: white;
}

.footer-tel {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-tel:hover {
    color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.dark-mode-toggle:hover {
    background: var(--gris-claro);
    border-color: var(--text-primary);
    transform: scale(1.1);
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#matrix-bg.active {
    opacity: 0.18;
    z-index: 0;
}

body.dark-mode {
    background: #0a0e0f;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: rgba(10, 14, 15, 0.9);
    border-color: #1a1a1a;
}

body.dark-mode .navbar.scrolled {
    background: rgba(10, 14, 15, 0.95);
}

body.dark-mode .nav-links a {
    color: #aaa;
}

body.dark-mode .nav-links a:hover {
    color: #e0e0e0;
}

body.dark-mode .nav-cta {
    background: var(--accent) !important;
    color: white !important;
}

body.dark-mode .section {
    background: transparent;
    color: #e0e0e0;
}

body.dark-mode .section-alt {
    background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .section-description {
    color: #aaa;
}

body.dark-mode .section-label {
    color: var(--verde-claro);
}

body.dark-mode .hero h1 {
    color: #e0e0e0;
}

body.dark-mode .hero h1 em {
    color: var(--verde-claro);
}

body.dark-mode .hero-subtitle {
    color: #aaa;
}

body.dark-mode .hero-terminal {
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.1);
}

body.dark-mode .hero-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border-color: #333;
}

body.dark-mode .service-card {
    background: #111;
    border-color: #222;
}

body.dark-mode .service-card h3 {
    color: #e0e0e0;
}

body.dark-mode .service-card p {
    color: #aaa;
}

body.dark-mode .service-icon {
    background: #1a1a1a;
}

body.dark-mode .service-card:hover .service-icon {
    background: var(--accent);
    color: white;
}

body.dark-mode .cta-section {
    background: #111;
    color: #e0e0e0;
}

body.dark-mode .cta-section h2 {
    color: #e0e0e0;
}

body.dark-mode .cta-section p {
    color: #aaa;
}

body.dark-mode .cta-content .btn-primary {
    background: var(--amarillo-calido);
    color: var(--negro-elegante);
}

body.dark-mode .cta-section::before {
    background: radial-gradient(circle, rgba(74, 124, 89, 0.15) 0%, transparent 70%);
}

body.dark-mode .footer {
    background: #050505;
    border-color: #111;
}

body.dark-mode .btn-secondary {
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .btn-secondary:hover {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark-mode .carousel-arrow {
    background: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .carousel-arrow:hover {
    border-color: var(--accent);
    background: #222;
}

body.dark-mode .indicator {
    background: #444;
}

body.dark-mode .indicator.active {
    background: var(--accent);
}

body.dark-mode .dark-mode-toggle {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .dark-mode-toggle:hover {
    border-color: var(--accent);
}

body.dark-mode .carousel-card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body.dark-mode .about-text {
    color: #aaa;
}

body.dark-mode .about-mini-terminal {
    background: #0a0a0a;
    border-color: #222;
}

body.dark-mode .geek-float {
    color: #333;
}

body.dark-mode .bg-particles .particle {
    color: #333;
}

body.dark-mode .hamburger span {
    background: #e0e0e0;
}

body.dark-mode .category-icon {
    background: #1a1a1a;
}

body.dark-mode .category-title {
    color: #e0e0e0;
}

body.dark-mode .category-description {
    color: #aaa;
}

body.dark-mode .service-card-detail {
    background: #111;
    border-color: #222;
}

body.dark-mode .service-card-detail h3 {
    color: #e0e0e0;
}

body.dark-mode .service-card-detail p {
    color: #aaa;
}

body.dark-mode .service-card-icon {
    background: #1a1a1a;
}

body.dark-mode .service-card-detail:hover .service-card-icon {
    background: var(--accent);
    color: white;
}

body.dark-mode .page-title {
    color: #e0e0e0;
}

body.dark-mode .page-subtitle {
    color: #aaa;
}

body.dark-mode .footer-easter-egg {
    color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .logo {
    color: #e0e0e0;
}

body.dark-mode .logo-accent {
    color: var(--verde-claro);
}

body.dark-mode .logo-img {
    filter: brightness(1.1);
}

body.dark-mode .about-logo-img {
    filter:
        drop-shadow(2px 0 0 #fff)
        drop-shadow(-2px 0 0 #fff)
        drop-shadow(0 2px 0 #fff)
        drop-shadow(0 -2px 0 #fff)
        drop-shadow(0 20px 60px rgba(0,0,0,0.4));
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.page-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gris-claro);
    border-radius: 20px;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.category-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.category-description {
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
}

.services-grid-category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card-detail {
    background: var(--card-bg);
    padding: 2rem 1.8rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    cursor: default;
}

.service-card-detail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gris-claro);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    transition: all var(--transition-smooth);
}

.service-card-detail:hover .service-card-icon {
    background: var(--accent);
    color: white;
}

.service-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.service-whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

body.dark-mode .service-whatsapp-btn {
    background: #25D366;
    color: white;
}

body.dark-mode .service-whatsapp-btn:hover {
    background: #20bd5a;
}

.tools-menu {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tool-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 80px;
}

.tool-menu-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tool-menu-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.tool-menu-icon {
    font-size: 1.3rem;
}

.tool-menu-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
}

.tool-panels {
    position: relative;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.tool-container:hover {
    box-shadow: var(--shadow-lg);
}

.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--gris-claro);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.tool-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.tool-description {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tool-body {
    max-width: 600px;
    margin: 0 auto;
}

.tool-input-group {
    margin-bottom: 1.5rem;
}

.tool-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.tool-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
}

.tool-input::placeholder {
    color: var(--gris-medio);
}

.tool-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gris-medio);
    margin-top: 0.4rem;
}

.tool-color-input {
    width: 80px;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.tool-color-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
}

.tool-file-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px dashed var(--border);
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.tool-file-input:hover {
    border-color: var(--accent);
}

.tool-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gris-claro);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.tool-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.tool-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.tool-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tool-result {
    min-height: 60px;
}

.qr-canvas {
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    background: white;
    padding: 1rem;
    width: 200px;
    height: 200px;
}

.generated-link-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    word-break: break-all;
}

.generated-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}

.generated-link:hover {
    text-decoration: underline;
}

.palette-colors {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.palette-swatch {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.palette-swatch:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.palette-hex {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
}

.palette-copied {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.palette-copied.show {
    opacity: 1;
}

.compress-preview {
    text-align: center;
    margin-bottom: 1rem;
}

.compress-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.compress-info {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.preset-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.preset-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.preset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.extract-preview-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.extract-canvas {
    display: none;
    max-width: 100%;
    max-height: 250px;
    border-radius: 14px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.name-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.name-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.name-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.name-card-style {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(74, 124, 89, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    align-self: flex-start;
}

.name-card-slogan {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.name-card-copy {
    margin-top: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.name-card-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tool-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--negro-elegante);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.tool-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.lab-mode {
    background: #0a0e0f;
    color: #e0e0e0;
}

body.lab-mode .navbar {
    background: rgba(10, 14, 15, 0.9);
    border-color: #1a1a1a;
}

body.lab-mode .nav-links a {
    color: #888;
}

body.lab-mode .nav-links a:hover {
    color: #e0e0e0;
}

body.lab-mode .hamburger span {
    background: #e0e0e0;
}

.lab-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.lab-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.lab-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lab-icon-container:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 8px;
    border-radius: 28px;
}

.lab-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(74, 124, 89, 0.15);
    border: 2px solid rgba(74, 124, 89, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    transition: all 0.4s ease;
    animation: floatLab 4s ease-in-out infinite;
}

.lab-icon-large:hover,
.lab-icon-large:focus {
    background: rgba(74, 124, 89, 0.3);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(74, 124, 89, 0.3);
}

.lab-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 24px;
    border: 2px solid rgba(74, 124, 89, 0.2);
    animation: pulseLab 2s ease-out infinite;
}

@keyframes floatLab {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseLab {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.lab-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.lab-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--amarillo-calido);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-top: 0.3rem;
}

.countdown-separator {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #444;
    font-weight: 700;
}

.lab-subtitle {
    color: #888;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 0.5rem;
}

.lab-hint {
    color: #555;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.lab-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lab-footer {
    background: #050505 !important;
    border-color: #111 !important;
    color: #555 !important;
}

.lab-footer .footer-easter-egg {
    color: #333 !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    border: 1px solid #222;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-icon-large {
    font-size: 3rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #e0e0e0;
}

.modal-text {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.modal-warning {
    color: #666;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.games-area {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: #050505;
    overflow-y: auto;
    padding: 6rem 2rem 4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.games-area.active {
    opacity: 1;
    pointer-events: all;
}

.games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.games-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
}

.games-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #333;
    background: transparent;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.games-close:hover {
    background: #1a1a1a;
    border-color: #e0e0e0;
}

.games-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.game-select-btn {
    background: transparent;
    border: 1px solid #222;
    color: #888;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.game-select-btn:hover {
    border-color: #444;
    color: #ccc;
}

.game-select-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.game-panel {
    display: none;
    max-width: 420px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.game-panel.active {
    display: block;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.game-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
}

.game-score {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--amarillo-calido);
    font-weight: 500;
}

.game-canvas {
    display: block;
    margin: 0 auto 1rem;
    border-radius: 10px;
    background: #000;
    border: 1px solid #1a1a1a;
    touch-action: none;
    max-width: 100%;
    height: auto;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-controls-row {
    display: flex;
    gap: 0.5rem;
}

.game-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #222;
    background: #111;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.game-btn:active {
    background: #1a1a1a;
    border-color: var(--accent);
}

.tetris-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.game-restart {
    background: transparent;
    border: 1px solid #222;
    color: #888;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.game-restart:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lab-particle-float {
    position: absolute;
    font-family: var(--font-mono);
    pointer-events: none;
    animation: labFloat 12s ease-in-out infinite;
}

@keyframes labFloat {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(15px) rotate(10deg); }
    50% { transform: translateY(-15px) translateX(-10px) rotate(-5deg); }
    75% { transform: translateY(-40px) translateX(20px) rotate(8deg); }
}

.secret-pulse-indicator {
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}

.secret-pulse-indicator:nth-child(2) { left: 50%; transform: translateX(-300%); }
.secret-pulse-indicator:nth-child(3) { left: 50%; transform: translateX(-100%); }
.secret-pulse-indicator:nth-child(4) { left: 50%; transform: translateX(100%); }

.secret-pulse-indicator.active {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(74, 124, 89, 0.6);
}

.error-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.error-content {
    max-width: 600px;
}

.error-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    animation: floatLab 4s ease-in-out infinite;
}

.error-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
}

.error-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
}

.error-code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
}

.error-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.error-message {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.error-submessage {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.error-footer-text {
    color: var(--gris-medio);
    font-size: 0.85rem;
    line-height: 1.8;
}

.error-console {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.7;
}

.error-terminal {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #333;
    text-align: left;
}

.error-line {
    color: #e8913a !important;
}

body.dark-mode .error-logo::after {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .error-logo-img {
    filter:
        drop-shadow(2px 0 0 #fff)
        drop-shadow(-2px 0 0 #fff)
        drop-shadow(0 2px 0 #fff)
        drop-shadow(0 -2px 0 #fff)
        drop-shadow(0 20px 60px rgba(0,0,0,0.4));
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.project-modal-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.project-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.project-modal-image {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

.project-modal-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.project-modal-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.project-modal-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.project-modal-counter {
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .project-modal-content {
        width: 95%;
    }
    .project-modal-close {
        top: -45px;
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-particles,
    .geek-float,
    .about-shape,
    .whatsapp-float::after,
    .lab-particle-float,
    .about-logo-float,
    .error-logo {
        animation: none !important;
    }
    .particle {
        animation: none !important;
        opacity: 0.2;
    }
    .lab-particle-float {
        animation: none;
        opacity: 0.1;
    }
    .fade-in {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        max-width: 600px;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-visual {
        order: 1;
    }
    .about-mini-terminal {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .carousel-stage {
        height: 400px;
    }
    .carousel-card {
        width: 380px;
        height: 300px;
    }
    .services-grid-category {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        transition: right var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .section {
        padding: 4rem 1.5rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-container {
        max-width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .carousel-stage {
        height: 350px;
    }
    .carousel-card {
        width: 300px;
        height: 240px;
    }
    .carousel-controls {
        gap: 1rem;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
    .dark-mode-toggle {
        width: 38px;
        height: 38px;
        bottom: 80px;
        right: 20px;
    }
    .services-grid-category {
        grid-template-columns: 1fr;
    }
    .service-card-detail {
        padding: 1.5rem;
    }
    .page-hero {
        padding: 7rem 1.5rem 3rem;
    }
    .tool-container {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }
    .tool-input-row {
        grid-template-columns: 1fr;
    }
    .tool-actions {
        flex-direction: column;
    }
    .tool-actions .btn-primary,
    .tool-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .qr-canvas {
        width: 160px;
        height: 160px;
    }
    .palette-swatch {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
    .lab-hero {
        padding: 5rem 1.5rem 3rem;
    }
    .lab-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .lab-icon-pulse {
        width: 80px;
        height: 80px;
    }
    .modal-content {
        padding: 2rem 1.5rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    .game-canvas {
        max-width: 100%;
    }
    .error-logo-img {
        width: 90px;
        height: 90px;
    }
    .error-logo::after {
        width: 100px;
        height: 100px;
    }
    .error-hero {
        padding: 6rem 1.5rem 3rem;
    }
    .tools-menu {
        gap: 0.3rem;
    }
    .tool-menu-btn {
        min-width: 60px;
        padding: 0.7rem 0.8rem;
        border-radius: 12px;
    }
    .tool-menu-icon {
        font-size: 1.1rem;
    }
    .tool-menu-label {
        font-size: 0.7rem;
    }
    .names-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .carousel-stage {
        height: 300px;
    }
    .carousel-card {
        width: 240px;
        height: 200px;
        border-radius: 14px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}