/* =====================================================
   EKOS STUDIO — Design System v3
   Syne · DM Sans · JetBrains Mono
   Dark Premium · Steel Platinum · Cyber Blue
   ===================================================== */


:root {
    --bg-base:         #0D0D0F;
    --bg-elevated:     #141416;
    --bg-card:         #111113;
    --text-pure:       #F5F5F7;
    --text-muted:      #8E8E93;
    --text-dim:        #606065;
    --accent-platinum: #E5E4E2;
    --accent-steel:    #6EA8D8;
    --accent-glow:     rgba(110, 168, 216, 0.08);
    --accent-glow-lg:  rgba(110, 168, 216, 0.18);
    --terminal-bg:     #0A0A0B;
    --terminal-border: #252527;
    --terminal-text:   #C8C8D0;
    --border-subtle:   rgba(255, 255, 255, 0.05);
    --border-muted:    rgba(255, 255, 255, 0.10);
    --border-steel:    rgba(110, 168, 216, 0.22);
    --font-display:    'Inter', sans-serif;
    --font-body:       'Inter', sans-serif;
    --font-mono:       'JetBrains Mono', monospace;
}

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background-color: var(--bg-base);
    color: var(--text-pure);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.55;
    cursor: none;
}

a, button { cursor: none; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border-width: 0;
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */

.cursor-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--accent-platinum);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    will-change: left, top;
}

.cursor-ring {
    position: fixed;
    width: 30px; height: 30px;
    border: 1px solid rgba(110, 168, 216, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                height 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                border-color 0.25s,
                background 0.25s;
    will-change: left, top;
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring { display: none; }
}

.cursor-ring.expanded {
    width: 48px; height: 48px;
    border-color: var(--accent-steel);
    background: rgba(110, 168, 216, 0.04);
}

/* =====================================================
   SCROLL PROGRESS BAR
   ===================================================== */

.scroll-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-steel), var(--accent-platinum));
    z-index: 99997;
    pointer-events: none;
    transition: width 0.05s linear;
}

/* =====================================================
   GRAIN OVERLAY
   ===================================================== */

.grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.038;
    pointer-events: none;
    z-index: 9997;
}

/* =====================================================
   SCROLL REVEAL
   ===================================================== */

/* Shared transition timing for all reveal variants */
.zen-fade, .zen-left, .zen-right {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade up (default) */
.zen-fade {
    opacity: 0;
    transform: translateY(44px);
    filter: blur(6px);
}
.zen-fade.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Slide from left */
.zen-left {
    opacity: 0;
    transform: translateX(-52px);
    filter: blur(6px);
}
.zen-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Slide from right */
.zen-right {
    opacity: 0;
    transform: translateX(52px);
    filter: blur(6px);
}
.zen-right.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Stagger delays via data-delay attribute */
[data-delay="0"] { transition-delay: 0s; }
[data-delay="1"] { transition-delay: 0.11s; }
[data-delay="2"] { transition-delay: 0.22s; }
[data-delay="3"] { transition-delay: 0.33s; }
[data-delay="4"] { transition-delay: 0.44s; }
[data-delay="5"] { transition-delay: 0.55s; }

/* =====================================================
   NAVIGATION
   ===================================================== */

#main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease,
                border-color 0.4s ease, padding 0.35s ease;
    border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border-subtle);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

#main-nav.scrolled .nav-brand {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-logo { height: 32px; width: auto; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-pure); }

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-platinum);
    text-decoration: none;
    border: 1px solid var(--border-muted);
    padding: 0.5rem 1.3rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.22);
}

/* Group: CTA + lang toggle + hamburger */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language toggle */
.lang-toggle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 0.3rem 0.6rem;
    cursor: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.lang-toggle:hover {
    color: var(--accent-steel);
    border-color: var(--border-steel);
    background: rgba(110, 168, 216, 0.04);
}

.lang-toggle[data-lang="en"] span,
.lang-toggle[data-lang="es"] span {
    display: inline-block;
}

/* Mobile lang toggle variant */
.lang-toggle--mobile {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    padding: 0.5rem 1.4rem;
    border-color: var(--border-muted);
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(12px);
    transition: color 0.2s ease, border-color 0.2s ease,
                opacity 0.4s ease 0.30s,
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.30s;
}

.nav-mobile.open .lang-toggle--mobile {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   HERO
   ===================================================== */

#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 80% 80% at center, transparent 25%, black 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, transparent 25%, black 75%);
    pointer-events: none;
}

.hero-cursor-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 440px at var(--glow-x, 50%) var(--glow-y, 48%),
        rgba(110, 168, 216, 0.09),
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

/* Dramatic blur-to-sharp entrance + breathing */
.hero-logo-ambient {
    position: absolute;
    width: min(72vw, 680px);
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -53%) scale(1.06);
    filter: blur(28px) brightness(2) drop-shadow(0 0 60px rgba(110,168,216,0.15));
    opacity: 0;
    will-change: filter, opacity, transform;
    pointer-events: none;
    z-index: 0;
    transition: opacity 2.4s cubic-bezier(0.16,1,0.3,1),
                filter 2.4s cubic-bezier(0.16,1,0.3,1),
                transform 2.4s cubic-bezier(0.16,1,0.3,1);
}

.hero-logo-ambient.visible {
    opacity: 1;
    filter: drop-shadow(0 0 55px rgba(110,168,216,0.15)) brightness(1.04);
    transform: translate(-50%, -53%) scale(1);
    animation: logo-breathe 10s ease-in-out 2.6s infinite;
}

@keyframes logo-breathe {
    0%, 100% { filter: drop-shadow(0 0 45px rgba(110,168,216,0.12)) brightness(1.03); }
    50%       { filter: drop-shadow(0 0 100px rgba(110,168,216,0.28)) brightness(1.10); }
}

.hero-cta {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem;
    align-items: center;
    z-index: 2;
    white-space: nowrap;
}

.btn-primary {
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bg-base);
    background: var(--accent-platinum);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    display: inline-block;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.2s ease, transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    display: inline-block;
}

.btn-ghost:hover { color: var(--text-pure); }


/* =====================================================
   SHARED
   ===================================================== */

.container { max-width: 1200px; margin: 0 auto; }

.section-padded { padding: 9rem 5%; position: relative; }

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--accent-steel);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: block;
    opacity: 0.85;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--accent-platinum);
    line-height: 1.06;
}

/* =====================================================
   ATELIER
   ===================================================== */

#atelier {
    padding: 12rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.atelier-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.atelier-text strong { color: var(--text-pure); font-weight: 500; }

.link-arrow {
    color: var(--accent-steel);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.link-arrow:hover { opacity: 1; }

.atelier-visual { position: relative; padding-left: 3.5rem; }

.visual-accent-line {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--border-steel) 40%, var(--border-subtle) 100%);
}

/* Code block with staggered reveal */
.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 2rem 2.2rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 2.1;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-steel), transparent);
}

.code-line {
    color: var(--terminal-text);
    opacity: 0.15;
    transform: translateX(-5px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.code-line.revealed   { opacity: 1; transform: translateX(0); }
.code-line.indent     { padding-left: 1.6rem; }
.c-key                { color: #C792EA; }
.c-prop               { color: #82AAFF; }
.c-fn                 { color: #89DDFF; }
.c-str                { color: #C3E88D; }
.c-bool               { color: #F78C6C; }
.code-comment         { color: #546E7A; margin-top: 0.2rem; }

/* =====================================================
   STATS
   ===================================================== */

#stats {
    padding: 5.5rem 5%;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.stats-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

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

.stat-val {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.05em;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-steel) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-suf {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.8rem;
    line-height: 1.4;
}

/* =====================================================
   SERVICES — Editorial list
   ===================================================== */

.services-list {
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
}

.service-row {
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 5rem 1fr 2.5rem;
    gap: 2rem;
    align-items: start;
    position: relative;
    transition: border-bottom-color 0.3s ease;
}

/* Left accent bar */
.service-row::before {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-steel), transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.service-row:hover::before        { transform: scaleY(1); }
.service-row:hover                { border-bottom-color: var(--border-steel); }

.sr-num {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--accent-steel);
    letter-spacing: 0.2em;
    opacity: 0.6;
    padding-top: 0.35rem;
}

.sr-body { min-width: 0; }

.sr-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sr-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-pure);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sr-icon {
    width: 20px; height: 20px;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.service-row:hover .sr-icon { color: var(--accent-platinum); }

.sr-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
                opacity 0.4s ease,
                margin-top 0.4s ease;
}

.service-row:hover .sr-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.75rem;
}

.sr-arrow {
    width: 20px; height: 20px;
    color: var(--text-dim);
    padding-top: 0.35rem;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.service-row:hover .sr-arrow {
    color: var(--accent-steel);
    transform: translate(3px, -3px);
}

/* =====================================================
   WORKFLOW — Interactive tabs
   ===================================================== */

.workflow-section {
    background: radial-gradient(ellipse 50% 60% at 0% 50%, rgba(110,168,216,0.04) 0%, transparent 60%);
}

.workflow-tabs { margin-top: 4.5rem; max-width: 780px; }

.wt-nav {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
    gap: 0;
}

.wt-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.9rem 1.8rem;
    cursor: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wt-num  { opacity: 0.5; font-size: 0.6rem; }
.wt-label { }

.wt-btn:hover  { color: var(--text-pure); }

.wt-btn.active {
    color: var(--accent-platinum);
    border-bottom-color: var(--accent-steel);
}

.wt-content { position: relative; min-height: 140px; }

.wt-panel {
    display: none;
    animation: panel-enter 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.wt-panel.active { display: block; }

@keyframes panel-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wt-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-pure);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.wt-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 560px;
}

/* =====================================================
   SECURITY HERITAGE — Ring animation
   ===================================================== */

#security {
    padding: 12rem 5%;
    background:
        radial-gradient(ellipse 55% 50% at center, rgba(110,168,216,0.06) 0%, transparent 65%),
        radial-gradient(circle at center, #15151A 0%, #0D0D0F 70%);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.security-ring-wrap {
    position: relative;
    width: clamp(260px, 35vw, 340px);
    height: clamp(260px, 35vw, 340px);
    margin: 1.5rem 0 0.5rem;
}

.ring-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: rgba(110, 168, 216, 0.1);
    stroke-width: 1;
}

.ring-sweep {
    fill: none;
    stroke: url(#ring-gradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    /* circumference ≈ 804.2 (2π × 128) */
    stroke-dasharray: 804.2;
    stroke-dashoffset: 804.2;
    transition: stroke-dashoffset 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* We define the gradient via a defs block in SVG HTML */
#security.ring-active .ring-sweep { stroke-dashoffset: 0; }

.security-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.years {
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 14vw, 9.5rem);
    font-weight: 700;
    background: linear-gradient(175deg, #FFFFFF 0%, var(--accent-steel) 60%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.06em;
}

.security-subtext {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-steel);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-top: 0.3rem;
}

.security-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 1.8rem;
}

/* =====================================================
   CONTACT / TERMINAL
   ===================================================== */

#contact {
    padding: 10rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4.5rem;
}

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

.contact-email {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.contact-email:hover { opacity: 1; }

.terminal {
    width: 100%;
    max-width: 740px;
    background-color: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 10px;
    box-shadow:
        0 50px 100px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.04);
    font-family: var(--font-mono);
    overflow: hidden;
}

.terminal-header {
    background: #141416;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-buttons { display: flex; gap: 8px; }

/* Note: .btn here matches the terminal window buttons, NOT the CTA buttons */
.btn { width: 11px; height: 11px; border-radius: 50%; cursor: none; }
.btn.close { background: #ED6A5E; }
.btn.min   { background: #F4BF4F; }
.btn.max   { background: #61C554; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #5A5A62;
    font-size: 0.68rem;
    margin-right: 38px;
    letter-spacing: 0.06em;
}

/* Boot sequence */
.boot-seq {
    padding: 1.6rem 2.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 0.5rem;
}

.boot-line {
    font-size: 0.78rem;
    color: #4A4A55;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(3px);
    animation: boot-appear 0.3s ease forwards;
    animation-delay: calc(var(--i, 0) * 550ms + 400ms);
    animation-play-state: paused;
}

.boot-seq.active .boot-line { animation-play-state: running; }

@keyframes boot-appear {
    to { opacity: 1; transform: translateY(0); }
}

.boot-tag    { color: #555560; }
.boot-ok     { color: #4A9E45; }
.boot-ready  { color: #7A7A88; font-style: italic; }

.boot-sep {
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin-top: 1rem;
    opacity: 0;
    animation: boot-appear 0.2s ease forwards;
    animation-delay: calc(var(--i, 0) * 550ms + 400ms);
    animation-play-state: paused;
}

.boot-seq.active .boot-sep { animation-play-state: running; }

.terminal-body {
    padding: 1.8rem 2.2rem 2.5rem;
    color: var(--terminal-text);
    font-size: 0.875rem;
}

.terminal-line {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}

.prompt {
    color: #4A4A52;
    margin-right: 1rem;
    white-space: nowrap;
    user-select: none;
}

.prompt .cwd { color: var(--accent-steel); opacity: 0.9; }

.prompt-text { color: #7A7A88; white-space: nowrap; }

.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    width: calc(100% - 20px);
    outline: none;
    caret-color: transparent;
    cursor: none;
}

input.terminal-input { height: 1.5rem; }

.cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--accent-steel);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 0.9; }
    50%       { opacity: 0; }
}

.terminal-input::placeholder { color: rgba(255,255,255,0.07); }

.success-msg {
    display: none;
    margin-top: 0.5rem;
}

/* Terminal inline error */
.term-error {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #E05C5C;
    padding: 0 2.2rem 0 calc(2.2rem + 1ch);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.term-error.visible {
    max-height: 2rem;
    opacity: 1;
}

/* Boot fadeout */
.boot-seq.fadeout {
    animation: boot-fadeout 0.5s ease forwards;
}

@keyframes boot-fadeout {
    0%   { opacity: 1; transform: translateY(0); max-height: 200px; }
    60%  { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 0; max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}

/* Confirmation screen */
.confirm-screen {
    padding: 0.4rem 0;
}

.confirm-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.confirm-line.show {
    opacity: 1;
    transform: translateY(0);
}

.confirm-line.ok   { color: #61C554; }
.confirm-line.info { color: #6EA8D8; }
.confirm-line.dim  { color: #4A4A55; }
.confirm-line.muted { color: #7A7A88; }

.confirm-sep {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 1.2rem 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.confirm-sep.show { opacity: 1; }

.confirm-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0.3rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.confirm-bar-wrap.show { opacity: 1; }

.confirm-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.confirm-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-steel), var(--accent-platinum));
    border-radius: 2px;
    transition: width 1.1s cubic-bezier(0.4,0,0.2,1);
}

.confirm-receipt {
    border: 1px solid rgba(110,168,216,0.15);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-top: 0.6rem;
    background: rgba(110,168,216,0.03);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.confirm-receipt.show {
    opacity: 1;
    transform: translateY(0);
}

.confirm-receipt-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-steel);
    margin-bottom: 0.9rem;
    opacity: 0.7;
}

.confirm-receipt-row {
    display: flex;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.confirm-receipt-row strong {
    color: var(--text-pure);
    font-weight: 500;
}

.confirm-receipt-note {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.confirm-receipt-note span {
    color: var(--accent-steel);
}

/* ── Privacy note (below contact form) ────────────── */
.privacy-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2rem;
    line-height: 1.6;
}

.privacy-note a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.privacy-note a:hover { color: var(--accent-steel); }

html[lang="es"] .prv-en,
html[lang="en"] .prv-es { display: none; }
html[lang="es"] .prv-es,
html[lang="en"] .prv-en { display: inline; }

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5% 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    height: 42px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    object-position: left center;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.footer-logo:hover { opacity: 1; }

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    max-width: 220px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
    padding-top: 0.2rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--text-pure); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* =====================================================
   HAMBURGER MENU
   ===================================================== */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 0;
    cursor: none;
    transition: border-color 0.2s ease;
    z-index: 1001;
}

.nav-hamburger:hover { border-color: var(--accent-steel); }

.nav-hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--accent-platinum);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                opacity   0.25s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(13,13,15,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-mobile.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-mob-link {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem 2rem;
    transition: color 0.2s ease;
    opacity: 0;
    transform: translateY(12px);
    transition: color 0.2s ease,
                opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.nav-mobile.open .nav-mob-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-mob-link:nth-child(1) { transition-delay: 0.05s; }
.nav-mob-link:nth-child(2) { transition-delay: 0.10s; }
.nav-mob-link:nth-child(3) { transition-delay: 0.15s; }
.nav-mob-link:nth-child(4) { transition-delay: 0.20s; }
.nav-mob-link:nth-child(5) { transition-delay: 0.25s; }

.nav-mob-link:hover { color: var(--text-pure); }

.nav-mob-cta {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-platinum);
    text-decoration: none;
    border: 1px solid var(--border-muted);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition: background 0.2s ease, border-color 0.2s ease,
                opacity 0.4s ease 0.25s,
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.25s;
}

.nav-mobile.open .nav-mob-cta {
    opacity: 1;
    transform: translateY(0);
}

.nav-mob-cta:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.22);
}

@media (max-width: 960px) {
    #atelier {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 8rem 5%;
    }

    .atelier-visual     { padding-left: 0; }
    .visual-accent-line { display: none; }
    .stats-grid         { grid-template-columns: repeat(2, 1fr); }
    .nav-links          { display: none; }
    .nav-cta            { display: none; }
    .lang-toggle        { display: none; }
    .nav-hamburger      { display: flex; }
    .nav-mobile         { display: flex; }
    .lang-toggle--mobile { display: inline-block; }

    .service-row { grid-template-columns: 4rem 1fr 2rem; gap: 1.2rem; }

    .wt-btn { padding: 0.8rem 1.2rem; }

    .footer-inner  { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand  { align-items: center; }
    .footer-logo   { object-position: center center; }
    .footer-nav    { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
}

@media (max-width: 600px) {
    .security-ring-wrap { width: 240px; height: 240px; }
    .years              { font-size: 4.5rem; }
    .terminal-body      { padding: 1.5rem 1.2rem; }
    .terminal-header    { padding: 0.8rem 1rem; }
    .prompt             { margin-right: 0.6rem; }
    .hero-cta           { flex-direction: column; gap: 0.9rem; }
    .stats-grid         { gap: 1.5rem; }
    .wt-nav             { overflow-x: auto; }
    .wt-btn             { white-space: nowrap; padding: 0.8rem 1rem; }
    .service-row        { grid-template-columns: 3.5rem 1fr; }
    .sr-arrow           { display: none; }
    .pricing-grid       { grid-template-columns: 1fr; }
    .pricing-card--featured { transform: none; }
}

/* =====================================================
   PRICING
   ===================================================== */

.pricing-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--border-muted);
    box-shadow: 0 0 32px rgba(110, 168, 216, 0.06);
}

.pricing-card--featured {
    border-color: var(--border-steel);
    background: linear-gradient(160deg, rgba(110, 168, 216, 0.06) 0%, var(--bg-card) 60%);
    transform: translateY(-8px);
    box-shadow: 0 0 48px rgba(110, 168, 216, 0.10);
}

.pricing-card--featured:hover {
    border-color: var(--accent-steel);
    box-shadow: 0 0 64px rgba(110, 168, 216, 0.16);
}

.pc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-steel);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pc-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pc-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-steel);
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.pc-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-pure);
    letter-spacing: -0.01em;
}

.pc-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.pc-from {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.pc-amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-steel) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pc-currency {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.pc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.pc-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.5;
}

.pc-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-steel);
    font-size: 0.75rem;
    opacity: 0.7;
}

.pc-cta {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-muted);
    border-radius: 6px;
    color: var(--accent-platinum);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pc-cta:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-steel);
    color: var(--text-pure);
}

.pc-cta--featured {
    background: var(--accent-steel);
    border-color: var(--accent-steel);
    color: #0D0D0F;
    font-weight: 600;
}

.pc-cta--featured:hover {
    background: #89C0E8;
    border-color: #89C0E8;
    color: #0D0D0F;
}

.pricing-note {
    margin-top: 2.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
    letter-spacing: 0.02em;
}

.pricing-note a {
    color: var(--accent-steel);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pricing-note a:hover { opacity: 1; }

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .pricing-card--featured { transform: none; }
}
