/*
Theme Name: GoTech Lab
Theme URI: https://gotech-lab.com
Author: GoTech Lab
Author URI: https://gotech-lab.com
Description: Landing page profesional para GoTech Lab - Software Development Studio. Dark/Light theme ultra-moderno con animaciones profesionales y soporte bilingue ES/EN.
Version: 1.0.0
License: Proprietary
Text Domain: gotechlab
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #00D4FF;
    --primary-dark: #00A8CC;
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --neon-green: #00FF94;
    --orange: #FF6B35;
    --yellow: #FFE066;
    --red: #EF4444;
    --pink: #EC4899;

    --bg-body: #0A0E17;
    --bg-surface: #111827;
    --bg-card: #1A1F2E;
    --bg-card-hover: #222838;
    --bg-input: #1E2433;

    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    --text-accent: var(--primary);

    --border: #30363D;
    --border-light: #21262D;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 20px rgba(0,212,255,0.15);

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s ease-out;

    --nav-height: 72px;
    --container-max: 1280px;
}

/* Light Mode */
.light-mode {
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-input: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --primary: #0891B2;
    --primary-dark: #0E7490;
    --accent: #7C3AED;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 20px rgba(8,145,178,0.1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #000; padding: 0.5rem 1.5rem;
    border-radius: var(--radius); z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg-body);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1.5rem; }
.preloader-logo .accent { color: var(--primary); }
.preloader-bar { width: 200px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.preloader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width 0.3s; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot, .cursor-ring {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 9998;
    transition: transform 0.15s ease-out; display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--primary); }
.cursor-ring {
    width: 36px; height: 36px; border: 1.5px solid var(--primary);
    opacity: 0.5; transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
}
.cursor-ring.hover { width: 52px; height: 52px; opacity: 0.8; border-color: var(--accent); }
@media (pointer: fine) { .cursor-dot, .cursor-ring { display: block; } body { cursor: none; } a, button, [role="button"] { cursor: none; } }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 1001;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%; transition: width 0.1s linear;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
    background: rgba(10,14,23,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000; transition: transform 0.35s ease;
}
.light-mode .navbar { background: rgba(248,250,252,0.9); }
.navbar.hidden { transform: translateY(-100%); }
.navbar-inner {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 2rem; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.35rem; font-weight: 800; color: var(--text-primary); }
.nav-brand .accent { color: var(--primary); }
.nav-brand-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 900; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: color var(--transition); position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); transition: all var(--transition);
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle svg { width: 18px; height: 18px; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 0.5rem; z-index: 1002;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--text-primary);
    transition: all 0.3s ease; border-radius: 2px;
}
.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); }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(17,24,39,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem; flex-direction: column; gap: 1rem; z-index: 999;
}
.light-mode .mobile-menu { background: rgba(248,250,252,0.95); }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text-primary); font-size: 1.1rem; padding: 0.5rem 0; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .navbar-inner { padding: 0 1rem; }
    .nav-brand { font-size: 1.1rem; gap: 0.5rem; }
    .nav-brand-icon { width: 32px; height: 32px; font-size: 0.95rem; }
    .nav-actions { gap: 0.5rem; }
    .nav-toggle { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
    .hamburger { padding: 8px; min-width: 40px; min-height: 40px; justify-content: center; align-items: center; }
}

@media (max-width: 375px) {
    .nav-brand { font-size: 1rem; }
    .nav-brand-icon { width: 28px; height: 28px; font-size: 0.85rem; border-radius: 8px; }
    .nav-actions { gap: 0.35rem; }
    .nav-toggle { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 8px; }
    .nav-toggle svg { width: 16px; height: 16px; }
    #langLabel { font-size: 0.65rem !important; }
}

/* ===== CONTAINER ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 50px;
    background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
    color: var(--primary); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1rem;
}
.section-title .accent { color: var(--primary); }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: heroFloat 8s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--primary); top: -10%; right: -5%; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent); bottom: -10%; left: -5%; animation-delay: -3s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--neon-green); top: 50%; left: 40%; animation-delay: -5s; opacity: 0.2; }

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1.2rem; border-radius: 50px;
    background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
    color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-green); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--neon-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary); max-width: 660px; margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-typed { color: var(--primary); font-weight: 700; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 600; border: none;
    cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; box-shadow: 0 4px 15px rgba(0,212,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,212,255,0.4); color: #fff; }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Hero Stats */
.hero-stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 2.5rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== SERVICES ===== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card:hover {
    border-color: var(--primary); transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--card-color, var(--primary)), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(0,212,255,0.1); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--primary); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-filters {
    display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.5rem 1.25rem; border-radius: 50px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(0,212,255,0.1); border-color: var(--primary); color: var(--primary);
}

.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition); cursor: pointer;
}
.project-card:hover {
    border-color: var(--primary); transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.project-card-header {
    padding: 1.5rem 1.5rem 0; display: flex; align-items: flex-start; gap: 1rem;
}
.project-card-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.project-card-icon svg { width: 22px; height: 22px; color: #fff; }
.project-card-meta { flex: 1; }
.project-card-meta h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.project-card-meta h3 .accent { color: var(--primary); }
.project-card-tagline { font-size: 0.85rem; color: var(--text-muted); }
.project-card-status {
    padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.7rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.status-production { background: rgba(0,255,148,0.1); color: var(--neon-green); }
.status-beta { background: rgba(255,224,102,0.1); color: var(--yellow); }
.status-development { background: rgba(139,92,246,0.1); color: var(--accent); }

.project-card-body { padding: 1rem 1.5rem; }
.project-card-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.project-card-footer {
    padding: 0.75rem 1.5rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
}
.project-card-tech { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tech-badge {
    padding: 0.2rem 0.6rem; border-radius: 6px;
    background: var(--bg-surface); border: 1px solid var(--border);
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}
.project-card-arrow { color: var(--text-muted); transition: all var(--transition); }
.project-card:hover .project-card-arrow { color: var(--primary); transform: translateX(4px); }

/* ===== TECH STACK ===== */
.tech-stack-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}
.tech-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1rem;
    text-align: center; transition: all var(--transition);
}
.tech-item:hover { border-color: var(--primary); transform: translateY(-3px); }
.tech-item-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.tech-item-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ===== PROCESS ===== */
.process-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; position: relative;
}
.process-step {
    text-align: center; position: relative;
}
.process-number {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; color: #fff;
    margin: 0 auto 1.25rem;
}
.process-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(0,212,255,0.15); border-radius: var(--radius-xl);
    padding: 4rem; text-align: center; margin: 2rem 0;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem; text-align: center;
    transition: all var(--transition);
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.contact-card-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0,212,255,0.1); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.contact-card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.9rem; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ===== FOOTER ===== */
.footer-wave {
    margin-top: -1px;
}
.footer-wave svg { display: block; width: 100%; height: 80px; }

.footer {
    background: var(--bg-card); padding: 4rem 0 0;
}
.footer-content {
    max-width: var(--container-max); margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { color: var(--text-secondary); margin: 1rem 0; font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--transition);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col a {
    display: block; color: var(--text-secondary); font-size: 0.9rem;
    padding: 0.3rem 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    max-width: var(--container-max); margin: 3rem auto 0; padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom span { color: var(--text-muted); font-size: 0.85rem; }

/* ===== PROJECT PAGE ===== */
.project-hero {
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    position: relative; overflow: hidden;
}
.project-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, rgba(0,212,255,0.08), transparent 60%);
}
.project-hero-content { position: relative; z-index: 1; }
.project-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.5rem;
}
.project-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 1rem; }
.project-hero-title .accent { color: var(--primary); }
.project-hero-desc { font-size: 1.15rem; color: var(--text-secondary); max-width: 700px; line-height: 1.8; margin-bottom: 2rem; }

.project-features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin-top: 3rem;
}
.project-feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; align-items: flex-start; gap: 1rem;
}
.project-feature-card .check {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: rgba(0,255,148,0.1); display: flex; align-items: center; justify-content: center;
    color: var(--neon-green); font-size: 0.8rem;
}
.project-feature-card span { font-size: 0.95rem; color: var(--text-primary); }

.project-tech-stack {
    display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem;
}
.project-tech-badge {
    padding: 0.5rem 1.25rem; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
}

/* ===== FLOATING DOCK ===== */
.dock-nav {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: rgba(26,31,46,0.9); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 50px;
    padding: 0.5rem 1.5rem; display: flex; align-items: center; gap: 0.75rem;
    z-index: 900; opacity: 0; transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.dock-nav.visible { opacity: 1; pointer-events: all; }
.light-mode .dock-nav { background: rgba(255,255,255,0.9); }
.dock-item {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.2s ease; cursor: pointer;
    position: relative;
}
.dock-item:hover { color: var(--primary); transform: translateY(-4px) scale(1.1); }
.dock-item.active { color: var(--primary); }
.dock-item.active::after {
    content: ''; position: absolute; bottom: -4px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--primary);
}
.dock-item svg { width: 20px; height: 20px; }
.dock-separator { width: 1px; height: 24px; background: var(--border); }

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed; bottom: 5rem; right: 1.5rem; z-index: 800;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--transition); opacity: 0; pointer-events: none;
}
.whatsapp-float.visible { opacity: 1; pointer-events: all; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed; bottom: 5rem; right: 1.5rem; z-index: 801;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); cursor: pointer;
    opacity: 0; pointer-events: none; transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

@keyframes cardShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero { min-height: auto; padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.8rem; }
    .hero-stat-label { font-size: 0.75rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 1.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }
    .tech-stack-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .tech-item { padding: 1rem 0.5rem; }
    .tech-item-icon { font-size: 1.5rem; }
    .tech-item-name { font-size: 0.75rem; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .process-number { width: 48px; height: 48px; font-size: 1.1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
    .cta-section { padding: 2.5rem 1.5rem; }
    .cta-section h2 { font-size: 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .project-hero { padding: calc(var(--nav-height) + 2rem) 0 3rem; }
    .project-hero-title { font-size: 2rem; }
    .project-hero-desc { font-size: 1rem; }
    .project-features-grid { grid-template-columns: 1fr; }
    .page-header { padding: 6rem 1.5rem 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .content-card { padding: 1.5rem; }
    .security-grid { grid-template-columns: 1fr; }
    .content-card table { font-size: 0.8rem; }
    .content-card table th, .content-card table td { padding: 0.5rem 0.6rem; }
    .mobile-menu { padding: 1rem 1.5rem; }
    .mobile-menu a { font-size: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
    .mobile-menu a:last-child { border-bottom: none; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 4.5rem; right: 1rem; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .scroll-top { bottom: 4.5rem; right: 1rem; width: 40px; height: 40px; }
    .dock-nav { padding: 0.4rem 1rem; gap: 0.5rem; bottom: 1rem; }
    .dock-item { width: 36px; height: 36px; }
    .dock-item svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .hero-stats { gap: 1rem; }
    .hero-stat-number { font-size: 1.5rem; }
    .portfolio-filters { gap: 0.35rem; }
    .filter-btn { font-size: 0.75rem; padding: 0.35rem 0.8rem; }
    .process-grid { grid-template-columns: 1fr; }
    .tech-stack-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; }
    .project-tech-stack { gap: 0.5rem; }
    .project-tech-badge { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
}

/* ===== LEGAL PAGES (page-header, content, tables, info-box) ===== */
.badge {
    display: inline-block; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--primary);
    margin-bottom: 0.75rem;
}
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    z-index: 0;
}
.page-header .badge {
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}
.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}
.content-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}
.content-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.content-card ul, .content-card ol {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0.5rem 0 1rem 1.5rem;
}
.content-card li { margin-bottom: 0.4rem; }
.content-card strong { color: var(--text-primary); font-weight: 600; }
.content-card a { color: var(--primary); text-decoration: none; }
.content-card a:hover { text-decoration: underline; }

.info-box {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}
.info-box p { margin-bottom: 0.3rem; }
.info-box p:last-child { margin-bottom: 0; }

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}
.content-card table th, .content-card table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.content-card table th {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(0, 212, 255, 0.06);
}
.content-card table td { color: var(--text-secondary); }

.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.security-item { background: rgba(0, 212, 255, 0.04); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; }
.security-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-primary); }
.security-item p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1rem 1rem;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner.closing { transform: translateY(100%); transition-duration: 0.3s; }
.cookie-banner.docked {
    bottom: auto; top: 72px; padding: 0;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.docked.visible { transform: translateY(0); }
.cookie-banner.docked.closing { transform: translateY(-100%); }
.cookie-banner.docked.nav-up { top: 0; }
.cookie-banner.docked.nav-down { top: 72px; }
.cookie-banner.docked .cookie-banner-content {
    max-width: 100%; border-radius: 0; border: none;
    border-bottom: 2px solid rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.45) 0%, rgba(120, 0, 255, 0.4) 50%, rgba(255, 0, 128, 0.3) 100%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.25), 0 2px 16px rgba(120, 0, 255, 0.15);
}
.cookie-banner.docked .cookie-banner-main { padding: 0.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.cookie-banner.docked .cookie-icon { width: 20px; height: 20px; }
.cookie-banner.docked .cookie-banner-text p { font-size: 0.75rem; }
.cookie-banner.docked .cookie-btn { padding: 0.4rem 1rem; font-size: 0.75rem; }
.cookie-banner.docked .cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.5); animation: cookiePulse 2s ease-in-out infinite;
}
@keyframes cookiePulse {
    0%, 100% { box-shadow: 0 0 16px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 24px rgba(0, 212, 255, 0.7), 0 0 8px rgba(120, 0, 255, 0.4); }
}
.cookie-banner.docked .cookie-details { max-width: 680px; margin: 0 auto; }
.light-mode .cookie-banner.docked .cookie-banner-content {
    background: linear-gradient(135deg, rgba(0, 130, 200, 0.3) 0%, rgba(90, 0, 200, 0.25) 50%, rgba(200, 0, 100, 0.18) 100%);
    border-bottom: 2px solid rgba(0, 130, 200, 0.3);
}
.cookie-banner-content {
    max-width: 680px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden;
}
.cookie-banner-main { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.cookie-banner-text { display: flex; align-items: flex-start; gap: 0.7rem; flex: 1; }
.cookie-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--accent-light, var(--accent)); margin-top: 1px; }
.cookie-banner-text p { font-size: 0.78rem; color: var(--text-secondary); margin: 0; line-height: 1.45; }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.5rem 1.1rem; border-radius: 8px; font-size: 0.78rem;
    font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}
.cookie-btn-accept:hover { opacity: 0.9; transform: translateY(-1px); }
.cookie-btn-configure {
    background: transparent; color: var(--text-muted); padding: 0.45rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; opacity: 0.5; transition: opacity 0.2s;
}
.cookie-btn-configure:hover { opacity: 1; color: var(--text-primary); }
.cookie-btn-save { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.cookie-btn-save:hover { border-color: var(--primary); color: var(--primary); }
.cookie-details { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-details.open { max-height: 300px; }
.cookie-categories { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.cookie-cat { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat-info { display: flex; flex-direction: column; gap: 0.1rem; }
.cookie-cat-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.cookie-cat-desc { font-size: 0.68rem; color: var(--text-muted); }
.cookie-toggle-always {
    font-size: 0.68rem; color: var(--accent); font-weight: 600;
    background: rgba(0, 212, 255, 0.08); padding: 0.2rem 0.6rem; border-radius: 20px;
}
.cookie-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-switch-slider {
    position: absolute; inset: 0; background: rgba(255,255,255,0.1);
    border-radius: 20px; cursor: pointer; transition: background 0.25s;
}
.cookie-switch-slider::before {
    content: ''; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px;
    background: var(--text-muted); border-radius: 50%; transition: transform 0.25s, background 0.25s;
}
.cookie-switch input:checked + .cookie-switch-slider { background: rgba(0, 212, 255, 0.25); }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(16px); background: var(--accent); }
.cookie-details-actions {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1.25rem; border-top: 1px solid var(--border);
}
.cookie-privacy-link { font-size: 0.7rem; color: var(--text-muted); text-decoration: underline; }
.cookie-privacy-link:hover { color: var(--primary); }
.light-mode .cookie-switch-slider { background: rgba(0,0,0,0.12); }
.light-mode .cookie-switch-slider::before { background: #999; }
.light-mode .cookie-switch input:checked + .cookie-switch-slider { background: rgba(0, 130, 200, 0.2); }
.light-mode .cookie-switch input:checked + .cookie-switch-slider::before { background: var(--primary); }
.light-mode .cookie-cat { border-bottom-color: rgba(0,0,0,0.06); }
@media (max-width: 600px) {
    .cookie-banner { padding: 0 0.5rem 0.5rem; }
    .cookie-banner.docked { padding: 0; top: 56px; }
    .cookie-banner-main { flex-direction: column; align-items: stretch; gap: 0.7rem; padding: 1rem; }
    .cookie-btn-accept { flex: 1; text-align: center; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero-orb { animation: none; }
    .fade-up { opacity: 1; transform: none; }
}
