/* ==========================================================================
   PICODE STUDIO — DESIGN SYSTEM & STYLESHEET
   Inspirado en la ingeniería estética de Quorex Studio & Equinoccio (Eqnio)
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --bg-base: #06070a;
    --bg-surface: #0c0f17;
    --bg-card: #111522;
    --bg-card-hover: #161c2e;
    --bg-glass: rgba(12, 15, 23, 0.75);
    --bg-glass-light: rgba(255, 255, 255, 0.04);
    --bg-glass-card: rgba(17, 21, 34, 0.7);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-red: #ef4444;

    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.35);

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.22);
    --border-blue: rgba(59, 130, 246, 0.35);

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px -5px rgba(59, 130, 246, 0.25);

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    background-color: var(--bg-base);
    color-scheme: dark;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glow Mesh */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: 10%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.orb-2 {
    width: 500px;
    height: 500px;
    top: 35%;
    right: -100px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

.orb-3 {
    width: 550px;
    height: 550px;
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

/* Grid Overlay Texture */
.grid-mesh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.container-sm {
    max-width: 860px;
}

.section {
    padding: 6.5rem 0;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* Typography Helpers */
.eyebrow {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 3. BUTTONS & INTERACTION ---------- */
.btn-primary {
    background: #ffffff;
    color: #06070a;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.35);
    background: #ffffff;
    color: var(--accent-blue);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.95rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.98rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------- 4. NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 7, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 7, 10, 0.92);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .f-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    color: #ffffff;
}

.logo img, .f-logo img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.2rem 0;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover,
.nav-links a.active:not(.btn-primary) {
    color: #ffffff;
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active:not(.btn-primary)::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    padding: 0.4rem;
}

/* Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(6, 7, 10, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    font-size: 1.8rem;
    color: var(--text-primary);
    padding: 0.5rem;
}

.mobile-link {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
}

.mobile-link:hover, .mobile-link.active {
    color: #ffffff;
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}

/* ---------- 5. HERO SECTION (INSTANT LOAD - NO PRELOADER DELAY) ---------- */
.hero {
    min-height: 94vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: saturate(1.3) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(6, 7, 10, 0.4) 0%, var(--bg-base) 100%),
        linear-gradient(to top, var(--bg-base) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    animation: fadeInDown 0.8s ease backwards;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    opacity: 0.6;
    animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.9s ease 0.1s backwards;
}

.hero p {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.8rem;
    line-height: 1.65;
    animation: fadeInUp 0.9s ease 0.2s backwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.9s ease 0.3s backwards;
}

/* Quick Trust Metrics Bar in Hero */
.hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeInUp 0.9s ease 0.4s backwards;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.trust-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 650px) {
    .hero-trust-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem;
    }
}

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 6. CLIENT TRUST MARQUEE & GRID (CLIENTES QUE CONFÍAN) ---------- */
.clients-section {
    padding: 4.5rem 0 5.5rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(12, 15, 23, 0.45);
    position: relative;
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.clients-header h3 {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.clients-header h3 span {
    color: var(--text-primary);
}

/* Marquee Scroller */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Client Brand Card */
.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 250px;
    transition: var(--transition);
}

.brand-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.brand-card .b-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.brand-card .b-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-card .b-info {
    display: flex;
    flex-direction: column;
}

.brand-card .b-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    font-family: var(--font-heading);
}

.brand-card .b-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.brand-card .b-tag {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    margin-top: 0.15rem;
}

/* ---------- 7. ABOUT SECTION (EL ESTUDIO) ---------- */
.about {
    background: var(--bg-base);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
}

/* Feature Pillars in About */
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 2rem 0;
}

.pillar-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: var(--transition);
}

.pillar-item:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.pillar-item i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
    display: block;
}

.pillar-item h4 {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.pillar-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tech Specs Floating Badge Box */
.about-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.about-visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 60% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.card-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.card-code-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.spec-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-val {
    font-family: var(--font-mono);
    color: #ffffff;
    font-weight: 600;
}

.spec-val.highlight {
    color: #22c55e;
}

@media (max-width: 920px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ---------- 8. ESPECIALIDADES / SERVICIOS ---------- */
.services {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.6rem 2.2rem;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.15);
    background: var(--bg-card-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.s-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .s-icon {
    background: var(--accent-gradient);
    color: #ffffff;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: #22c55e;
    font-size: 0.75rem;
}

/* ---------- 9. PORTFOLIO SHOWCASE (ELIMINATING "DESCUADRADAS" FOREVER) ---------- */
.work {
    background: var(--bg-base);
}

/* Category Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 10;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    color: #ffffff;
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #ffffff;
    color: #06070a;
    border-color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

/* Project Cards Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.2rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* Unifed, Perfectly Aligned Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
    position: relative;
    box-shadow: var(--shadow-card);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8);
}

/* Uniform Preview Frame - 1:1 or 16:11 Aspect Ratio with Dark Studio Backdrop */
.p-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Pure square frame, perfectly framing 1:1 3D renders */
    background: radial-gradient(circle at 50% 45%, #181d2c 0%, #0a0c12 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.p-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.project-card:hover .p-image img {
    transform: scale(1.05);
}

/* Tag Badges over Image */
.p-tags {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.p-tags span {
    background: rgba(6, 7, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.p-tags span.tag-real {
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.p-tags span.tag-demo {
    border-color: rgba(147, 51, 234, 0.4);
    color: #c084fc;
}

/* Project Card Content */
.p-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10, 12, 18, 0.95) 100%);
}

.p-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.p-content p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tech Badges */
.p-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.8rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-card:hover .tech-badge {
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* Brand Custom Hover Glows */
.project-card[data-brand="familygym"]:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.15), 0 0 20px rgba(245, 158, 11, 0.08);
}

.project-card[data-brand="repuestoscr"]:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.2), 0 0 25px rgba(6, 182, 212, 0.1);
}

.project-card[data-brand="urbanfood"]:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.15), 0 0 20px rgba(239, 68, 68, 0.08);
}

.project-card[data-brand="saron"]:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.15), 0 0 20px rgba(236, 72, 153, 0.08);
}

.project-card[data-brand="nexus"]:hover {
    border-color: rgba(132, 204, 22, 0.5);
    box-shadow: 0 20px 45px rgba(132, 204, 22, 0.15), 0 0 20px rgba(132, 204, 22, 0.08);
}

.project-card[data-brand="override"]:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 45px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.08);
}

.project-card[data-brand="nova"]:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.15), 0 0 20px rgba(6, 182, 212, 0.08);
}

.project-card[data-brand="smash"]:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.15), 0 0 20px rgba(249, 115, 22, 0.08);
}

/* ---------- 10. METHODOLOGY / PROCESO (COMO QUOREX & EQNIO) ---------- */
.process-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.process-step:hover .step-number {
    color: var(--accent-cyan);
}

.process-step h4 {
    font-size: 1.18rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 990px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 11. CONTACT SECTION & CTA ---------- */
.contact-section {
    background: var(--bg-base);
}

.contact-box {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 4.5rem 3.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.contact-box::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form {
    margin-top: 2.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input, select, textarea {
    width: 100%;
    padding: 1.05rem 1.4rem;
    background: rgba(6, 7, 10, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(6, 7, 10, 0.85);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

select option {
    background: var(--bg-surface);
    color: #ffffff;
}

@media (max-width: 768px) {
    .contact-box {
        padding: 2.5rem 1.5rem;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ---------- 12. FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 2.5rem;
    background: #040508;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 1.2rem 0 1.8rem;
    max-width: 340px;
    line-height: 1.65;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.3rem;
    letter-spacing: -0.2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-social-row {
    display: flex;
    gap: 1rem;
}

.footer-social-row a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social-row a:hover {
    color: #ffffff;
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 580px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- 13. FLOATING SOCIAL BAR ---------- */
.floating-socials {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.f-social-item {
    position: relative;
    width: 52px;
    height: 52px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: socialPulse 3.5s infinite alternate ease-in-out;
}

@keyframes socialPulse {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35); border-color: rgba(59, 130, 246, 0.4); }
}

.f-social-item:hover {
    transform: translateX(-5px) scale(1.08);
    animation: none;
}

.f-social-item.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.45);
}

.f-social-item.instagram:hover {
    color: #E1306C;
    border-color: #E1306C;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.45);
}

.social-tooltip {
    position: absolute;
    right: 66px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.f-social-item:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    right: 62px;
}

@media (max-width: 768px) {
    .floating-socials {
        flex-direction: row;
        top: auto;
        bottom: 20px;
        right: 18px;
        transform: none;
        gap: 12px;
    }
    .social-tooltip {
        display: none;
    }
}

/* ---------- 14. SUBPAGE STYLES (ABOUT, CONTACTO, LEGAL) ---------- */
.subpage-header {
    padding-top: 140px;
    padding-bottom: 4.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(12, 15, 23, 0.8) 0%, var(--bg-base) 100%);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--accent-cyan);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Legal & Documentation Content Typography */
.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.legal-section {
    margin-bottom: 3.5rem;
}

.legal-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-section h2 i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.legal-section p, .legal-section li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

.legal-highlight-box p {
    color: var(--text-primary);
    margin: 0;
    font-size: 0.98rem;
}

/* Contact Page Grid */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.channel-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.channel-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.channel-card.wa .channel-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.channel-card.ig .channel-icon {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
}

.channel-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.channel-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.4rem;
}

@media (max-width: 820px) {
    .contact-channels-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}