/* ==========================================================================
   Pixeleando — Design System
   Fuente: Space Grotesk (display) + Inter (body)
   Marca: azul #3498DB
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --radius: 1rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --background: oklch(0.135 0.008 250);
  --foreground: oklch(0.985 0 0);
  --surface: oklch(0.17 0.01 250);
  --card: oklch(0.19 0.012 250);
  --muted-foreground: oklch(0.74 0.015 250);
  --border: oklch(1 0 0 / 8%);

  /* Brand — Pixeleando azul #3498DB */
  --brand: oklch(0.66 0.14 240);
  --brand-bright: oklch(0.82 0.11 225);
  --brand-deep: oklch(0.54 0.16 250);
  --purple-accent: oklch(0.62 0.22 295);

  --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 55%, var(--brand-deep) 100%);
  --gradient-radial:
    radial-gradient(circle at 25% 20%, oklch(0.66 0.14 240 / 0.45), transparent 55%),
    radial-gradient(circle at 80% 75%, oklch(0.54 0.16 250 / 0.35), transparent 55%),
    radial-gradient(circle at 60% 40%, oklch(0.62 0.22 295 / 0.12), transparent 60%);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
::selection { background: oklch(0.66 0.14 240 / 0.45); color: white; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-wide { width: min(1300px, 94vw); margin-inline: auto; }
.wrap-narrow { width: min(1100px, 92vw); margin-inline: auto; }

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

.glass {
  background: linear-gradient(135deg, oklch(1 0 0 / 0.06), oklch(1 0 0 / 0.02));
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid oklch(1 0 0 / 0.08);
}
.glass-blue {
  background: linear-gradient(135deg, oklch(0.66 0.14 240 / 0.10), oklch(1 0 0 / 0.02));
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid oklch(0.66 0.14 240 / 0.22);
  box-shadow: 0 20px 60px -25px oklch(0.66 0.14 240 / 0.4);
}

.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.pixel-grid {
  background-image:
    linear-gradient(to right, oklch(0.66 0.14 240 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.66 0.14 240 / 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Keyframes ---------- */
@keyframes float-slow { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-22px,0) scale(1.05); } }
@keyframes drift { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(40px,-30px,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes pixel-blink { 0%, 100% { opacity: 0.15; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-float-slow { animation: float-slow 9s ease-in-out infinite; }
.animate-drift { animation: drift 14s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }
.animate-pixel-blink { animation: pixel-blink 3.6s ease-in-out infinite; }
.animate-marquee { animation: marquee 45s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section label ---------- */
.section-label {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .28em;
  color: var(--muted-foreground);
}
.section-label .dot-n { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand); }
.section-label .dot-n::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 8px var(--brand); display: inline-block; }
.section-label .line { height: 1px; width: 40px; background: oklch(1 0 0 / .15); }

section { position: relative; padding-block: 6rem; }
@media (min-width: 640px) { section { padding-block: 8rem; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; font-weight: 500; font-size: .875rem;
  padding: .75rem 1.5rem; transition: background-color .2s, border-color .2s, transform .2s;
  border: 1px solid oklch(1 0 0 / .1);
  background: oklch(1 0 0 / .03);
  color: var(--foreground);
}
.btn:hover { background: oklch(1 0 0 / .07); border-color: oklch(0.66 0.14 240 / .4); transform: translateY(-1px); }
.btn.btn-sm { padding: .5rem 1rem; font-size: .75rem; }
.btn.btn-primary {
  border: none; color: white;
  background: var(--gradient-brand);
  box-shadow: 0 10px 40px -12px oklch(0.66 0.14 240 / .7);
}
.btn.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset-inline: 0; top: 1rem; z-index: 50;
  margin-inline: auto; width: min(1200px, 92vw);
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; padding: .5rem .75rem .5rem 1rem;
}
.brand { display: flex; align-items: center; gap: .5rem; }
.brand img { display: block; }

.nav-links { display: none; align-items: center; gap: .25rem; font-size: .9rem; }
.nav-links a { padding: .4rem .8rem; border-radius: 999px; color: var(--muted-foreground); transition: color .2s, background .2s, border-color .2s; border: 1px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.nav-links a.active { background: oklch(0.66 0.14 240 / .14); border-color: oklch(0.66 0.14 240 / .35); }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-toggle { display: inline-flex; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; border: 1px solid oklch(1 0 0 / .1); background: oklch(1 0 0 / .03); }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-menu { position: fixed; inset: 0; z-index: 49; background: oklch(0.1 0.008 250 / .98); backdrop-filter: blur(10px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; color: var(--foreground); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding-top: 8rem; }
.hero-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-backdrop .radial { position: absolute; inset: 0; background: var(--gradient-radial); }
.hero-backdrop .grid1 { position: absolute; inset: 0; opacity: .6; mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%); }
.orb { position: absolute; border-radius: 999px; filter: blur(64px); }
.orb-1 { left: -8rem; top: 5rem; width: 460px; height: 460px; background: oklch(0.66 0.14 240 / 0.45); }
.orb-2 { right: -8rem; bottom: 0; width: 520px; height: 520px; background: oklch(0.54 0.16 250 / 0.4); }
.orb-3 { left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%,-50%); background: oklch(0.62 0.22 295 / 0.18); }
.hero-bottom-fade { position: absolute; inset-inline: 0; bottom: 0; height: 10rem; background: linear-gradient(to bottom, transparent, var(--background)); }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .4rem .8rem; font-size: .75rem; color: var(--muted-foreground); }
.eyebrow .blip { width: 6px; height: 6px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

.hero h1 { font-size: clamp(2.4rem, 8.5vw, 7.5rem); font-weight: 600; line-height: .95; letter-spacing: -0.045em; margin-top: 2rem; }
.hero h1 .muted-line { color: oklch(0.74 0.015 250 / .7); }
.rotating-word { display: inline-block; color: var(--brand-bright); background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub { max-width: 42rem; margin-top: 2rem; font-size: 1.05rem; color: var(--muted-foreground); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 1.5rem .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: oklch(0.74 0.015 250 / .7); margin-top: 3rem; }
.scroll-cue { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--muted-foreground); }
.scroll-cue .pill { width: 24px; height: 36px; border-radius: 999px; border: 1px solid oklch(1 0 0 / .15); display: flex; justify-content: center; padding-top: .25rem; }
.scroll-cue .pill .dot { width: 4px; height: 6px; border-radius: 999px; background: var(--foreground); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%,100% { opacity: 1; transform: translateY(0); } 50% { opacity: .2; transform: translateY(10px); } }
.hero-footer-row { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .hero-footer-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card { border-radius: 1rem; padding: 1.25rem; position: relative; overflow: hidden; transition: border-color .2s; }
.stat-card:hover { border-color: oklch(0.66 0.14 240 / .4); }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 640px) { .stat-value { font-size: 2.25rem; } }
.stat-label { margin-top: .4rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }

/* ---------- Services grid ---------- */
.services-head { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-end; justify-content: space-between; }
@media (min-width: 768px) { .services-head { flex-direction: row; } }
.services-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 1px; overflow: hidden; border-radius: 1.5rem; border: 1px solid oklch(1 0 0 / .1); background: oklch(1 0 0 / .04); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { position: relative; overflow: hidden; background: oklch(0.16 0.01 250); padding: 1.75rem; transition: background .2s; }
@media (min-width: 640px) { .service-card { padding: 2rem; } }
.service-card:hover { background: oklch(0.2 0.012 250); }
.service-card .meta-row { display: flex; align-items: center; justify-content: space-between; font-size: .625rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted-foreground); }
.service-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: .75rem; margin-top: 2.5rem; }
.service-card h3 { margin-top: .9rem; font-size: 1.4rem; }
.service-card p { margin-top: 1rem; max-width: 22rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Project cards (home teaser) ---------- */
.projects-list { margin-top: 4rem; display: flex; flex-direction: column; gap: 3.5rem; }
.project-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .project-row { grid-template-columns: repeat(12, 1fr); } .project-row.reversed .project-visual { order: 2; } }
.project-visual { grid-column: span 7 / span 7; }
.project-info { grid-column: span 5 / span 5; }
@media (max-width: 1023px) { .project-visual, .project-info { grid-column: auto; } }
.device-frame { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid oklch(1 0 0 / .1); background: oklch(0.17 0.01 250); box-shadow: 0 60px 120px -40px oklch(0.66 0.14 240 / .45), 0 0 0 1px oklch(1 0 0 / .06) inset; }
.device-frame .surface { position: relative; aspect-ratio: 16/10; }
.device-frame .browser { position: absolute; inset: 6%; border-radius: 1rem; border: 1px solid oklch(1 0 0 / .15); background: oklch(0.12 0.008 250 / .85); backdrop-filter: blur(20px); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: .4rem; border-bottom: 1px solid oklch(1 0 0 / .1); padding: .6rem 1rem; }
.browser-bar span.win { width: 8px; height: 8px; border-radius: 999px; background: oklch(1 0 0 / .2); }
.browser-bar .url { margin-left: .6rem; font-size: .625rem; color: oklch(1 0 0 / .4); }
.browser-body { display: grid; grid-template-columns: 3fr 2fr; gap: .75rem; padding: 1.2rem; }
.skeleton-block { border-radius: 999px; background: oklch(1 0 0 / .1); height: 10px; }
.project-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--brand); }
.project-info h3 { margin-top: .75rem; font-size: 2rem; }
.project-info p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.tech-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-tags span { border: 1px solid oklch(1 0 0 / .1); background: oklch(1 0 0 / .04); border-radius: 999px; padding: .3rem .7rem; font-size: .7rem; color: var(--muted-foreground); }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; display: flex; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 2.5rem; }
.marquee-fade { pointer-events: none; position: absolute; inset-block: 0; width: 8rem; z-index: 2; }
.marquee-fade.left { left: 0; background: linear-gradient(to right, var(--background), transparent); }
.marquee-fade.right { right: 0; background: linear-gradient(to left, var(--background), transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 3rem; padding-right: 3rem; }
.marquee-track span.item { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; letter-spacing: -0.02em; color: oklch(1 0 0 / .8); }
@media (min-width: 640px) { .marquee-track span.item { font-size: 3.2rem; } }
.marquee-track .px4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 16px; height: 16px; }
.marquee-track .px4 i { border-radius: 1px; background: oklch(1 0 0 / .1); }

/* ---------- Process timeline ---------- */
.timeline { position: relative; margin-top: 5rem; }
.timeline::before { content: ""; position: absolute; left: 14px; top: .5rem; bottom: .5rem; width: 1px; background: linear-gradient(to bottom, transparent, oklch(0.66 0.14 240 / .5), oklch(0.66 0.14 240 / .5), transparent); }
@media (min-width: 640px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.timeline-list { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 640px) { .timeline-list { gap: 5rem; } }
.timeline-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .timeline-item { grid-template-columns: 1fr 1fr; gap: 3rem; } .timeline-item.odd > *:first-child { order: 2; } }
.timeline-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: .5rem; font-family: var(--font-display); font-size: .75rem; font-weight: 600; }
.timeline-item h3 { font-size: 1.5rem; }
@media (min-width: 640px) { .timeline-item h3 { font-size: 1.85rem; } }
.timeline-item p { margin-top: .5rem; max-width: 24rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.7; }

/* ---------- Testimonials ---------- */
.testimonial-grid { margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card { position: relative; overflow: hidden; border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 768px) { .testimonial-card:nth-child(even) { transform: translateY(2.5rem); } }
.stars { display: flex; gap: .25rem; color: var(--brand-bright); }
.testimonial-quote { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; }
.testimonial-figcap { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.avatar-initials { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; font-size: .875rem; font-weight: 600; color: white; background: var(--gradient-brand); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; overflow: hidden; padding-block: 8rem; }
@media (min-width: 640px) { .final-cta { padding-block: 11rem; } }
.final-cta h2 { margin: 2rem auto 0; max-width: 16ch; font-size: clamp(2.2rem, 8vw, 6.5rem); font-weight: 600; line-height: .9; letter-spacing: -0.04em; }
.final-cta p { margin: 2rem auto 0; max-width: 34rem; color: var(--muted-foreground); font-size: 1.05rem; }
.final-cta .hero-cta { justify-content: center; margin-top: 3rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem .8rem; font-size: .75rem; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--foreground); }
.social-row { display: flex; align-items: center; gap: .75rem; }
.social-row a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--muted-foreground); transition: color .2s, border-color .2s; }
.social-row a:hover { color: var(--foreground); border-color: oklch(0.66 0.14 240 / .4); }
.footer-bottom { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: oklch(0.74 0.015 250 / .6); }
.footer-bottom .with-icon { display: flex; align-items: center; gap: .5rem; }

/* ---------- Icon sizing (feather-like inline svg) ---------- */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.accent-1 { background: linear-gradient(135deg, oklch(0.66 0.14 240), oklch(0.54 0.16 250)); }
.accent-2 { background: linear-gradient(135deg, oklch(0.82 0.11 225), oklch(0.66 0.14 240)); }
.accent-3 { background: linear-gradient(135deg, oklch(0.54 0.16 250), oklch(0.62 0.22 295)); }
.accent-4 { background: linear-gradient(135deg, oklch(0.66 0.14 240), oklch(0.82 0.11 225)); }

/* ---------- Portfolio filter chips ---------- */
.filter-scroller { overflow-x: auto; scrollbar-width: none; }
.filter-scroller::-webkit-scrollbar { display: none; }
.filter-chips { display: flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .4rem; width: max-content; }
.filter-chip { white-space: nowrap; border-radius: 999px; padding: .5rem 1rem; font-size: .8rem; font-weight: 500; color: var(--muted-foreground); border: none; background: transparent; transition: color .2s; }
.filter-chip:hover { color: var(--foreground); }
.filter-chip.active { color: white; background: var(--gradient-brand); box-shadow: 0 8px 30px -10px oklch(0.66 0.14 240 / .7); }

.portfolio-grid { margin-top: 3rem; display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card { position: relative; overflow: hidden; border-radius: 1.5rem; transition: border-color .2s, transform .3s; }
.portfolio-card:hover { border-color: oklch(0.66 0.14 240 / .4); transform: translateY(-6px); }
.portfolio-thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.portfolio-thumb .inner { position: absolute; inset: 1.5rem; border-radius: .75rem; border: 1px solid oklch(1 0 0 / .15); background: oklch(0.1 0.008 250 / .85); backdrop-filter: blur(16px); padding: 1rem; }
.portfolio-body { padding: 1.5rem; }
.portfolio-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .22em; color: var(--brand); }
.portfolio-body h3 { margin-top: .75rem; font-size: 1.4rem; }
.portfolio-body p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
.chip-row { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-row span { border: 1px solid oklch(1 0 0 / .1); background: oklch(1 0 0 / .04); border-radius: 999px; padding: .2rem .6rem; font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.portfolio-cta { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.portfolio-cta .go { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }
.portfolio-cta .go .ring { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid oklch(1 0 0 / .15); transition: border-color .2s, background .2s; }
.portfolio-card:hover .go .ring { border-color: oklch(0.66 0.14 240 / .6); background: oklch(0.66 0.14 240 / .15); }

/* Captura real superpuesta al mockup — si no hay imagen o falla, se ve el mockup normal */
.portfolio-real-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.portfolio-card:hover .portfolio-real-shot { transform: scale(1.045); }

.live-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-bright); border: 1px solid oklch(0.66 0.14 240 / .35);
  border-radius: 999px; padding: .35rem .7rem; transition: background .2s, border-color .2s;
}
.live-link:hover { background: oklch(0.66 0.14 240 / .12); border-color: oklch(0.66 0.14 240 / .6); }

/* ---------- Detail page ---------- */
.detail-hero { padding-top: 9rem; padding-bottom: 3rem; overflow: hidden; }
@media (min-width: 640px) { .detail-hero { padding-top: 11rem; padding-bottom: 5rem; } }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted-foreground); }
.back-link:hover { color: var(--foreground); }
.detail-meta-eyebrow { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--brand); }
.detail-meta-eyebrow .line { height: 1px; width: 32px; background: oklch(1 0 0 / .15); }
.detail-hero h1 { margin-top: 1.5rem; max-width: 46rem; font-size: clamp(2.4rem, 6.5vw, 5.5rem); font-weight: 600; line-height: .95; letter-spacing: -0.04em; }
.detail-hero .lede { margin-top: 1.5rem; max-width: 40rem; font-size: 1.05rem; color: var(--muted-foreground); line-height: 1.7; }
.detail-cover { position: relative; margin-top: 3.5rem; aspect-ratio: 16/9; overflow: hidden; border-radius: 1.5rem; border: 1px solid oklch(1 0 0 / .1); box-shadow: 0 60px 120px -40px oklch(0.66 0.14 240 / .55), 0 0 0 1px oklch(1 0 0 / .06) inset; }
.meta-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .meta-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.meta-card { border-radius: 1.25rem; padding: 1.25rem; }
.meta-card .l { font-size: .625rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted-foreground); }
.meta-card .v { margin-top: .75rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.4; }
.block-title { margin-top: 1.5rem; margin-bottom: 2.5rem; font-size: 1.75rem; }
@media (min-width: 640px) { .block-title { font-size: 2.25rem; } }
.process-list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .process-list { grid-template-columns: 1fr 1fr; } }
.process-item { display: flex; gap: 1rem; border-radius: 1.25rem; padding: 1.25rem; }
.process-num { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: .5rem; font-family: var(--font-display); font-size: .7rem; }
.process-item p { font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.placeholder-note { border: 1px dashed oklch(0.66 0.14 240 / .4); border-radius: 1rem; padding: 1.25rem 1.5rem; font-size: .8rem; color: var(--muted-foreground); background: oklch(0.66 0.14 240 / .06); }
.results-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.result-card { border-radius: 1.5rem; padding: 2rem; }
.result-card .val { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; }
.result-card .lab { margin-top: .75rem; display: flex; align-items: center; gap: .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted-foreground); }
.detail-cta { border-radius: 1.5rem; padding: 2.5rem 1.5rem; text-align: center; }
@media (min-width: 640px) { .detail-cta { padding: 4rem; } }
.detail-cta h2 { font-size: 1.85rem; }
@media (min-width: 640px) { .detail-cta h2 { font-size: 2.75rem; } }
.detail-cta p { margin: 1rem auto 0; max-width: 34rem; font-size: .95rem; color: var(--muted-foreground); }
.detail-cta .hero-cta { justify-content: center; margin-top: 2rem; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.gray { color: var(--muted-foreground); }
.no-results { margin-top: 4rem; text-align: center; color: var(--muted-foreground); }

/* ---------- Contact form ---------- */
.contact-section {
  border-radius: 1.75rem; overflow: hidden; padding: 3rem 1.5rem; position: relative;
  background: linear-gradient(180deg, oklch(0.19 0.012 250), oklch(0.15 0.01 250));
  border: 1px solid oklch(1 0 0 / 0.08);
}
.contact-section::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(120deg, oklch(0.66 0.14 240 / .55), oklch(1 0 0 / .04) 30%, oklch(1 0 0 / .04) 70%, oklch(0.62 0.22 295 / .35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@media (min-width: 640px) { .contact-section { padding: 5rem 3rem; } }
.contact-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.25rem; }
.field label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-foreground); }
.field input, .field textarea {
  background: oklch(1 0 0 / .03); border: 1px solid oklch(1 0 0 / .12); border-radius: .75rem;
  padding: .85rem 1rem; color: var(--foreground); font-family: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.contact-side { display: flex; flex-direction: column; gap: 1.25rem; justify-content: center; }
.contact-side a.contact-link { display: flex; align-items: center; gap: 1rem; font-size: 1rem; padding: .5rem; border-radius: 1rem; transition: background .2s; }
.contact-side a.contact-link:hover { color: var(--brand-bright); background: oklch(1 0 0 / .04); }
.contact-icon-badge { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: linear-gradient(135deg, oklch(0.66 0.14 240 / .18), oklch(1 0 0 / .03)); border: 1px solid oklch(0.66 0.14 240 / .3); color: var(--brand-bright); }
.contact-link-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-foreground); margin-bottom: .15rem; }
.form-note { margin-top: 1rem; font-size: .75rem; color: var(--muted-foreground); }

.trust-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted-foreground); }
.trust-row .icon { width: 15px; height: 15px; color: var(--brand-bright); }

.field-error { display: none; font-size: .72rem; color: oklch(0.7 0.19 25); margin-top: -.15rem; }
.field.has-error input, .field.has-error textarea { border-color: oklch(0.7 0.19 25 / .7); }
.field.has-error .field-error { display: block; }

.form-status { display: none; margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: .85rem; font-size: .85rem; line-height: 1.5; }
.form-status.is-visible { display: block; }
.form-status.success { background: oklch(0.7 0.16 150 / .12); border: 1px solid oklch(0.7 0.16 150 / .35); color: oklch(0.85 0.14 150); }
.form-status.error { background: oklch(0.7 0.19 25 / .12); border: 1px solid oklch(0.7 0.19 25 / .35); color: oklch(0.82 0.16 25); }
.form-status.sending { background: oklch(1 0 0 / .05); border: 1px solid oklch(1 0 0 / .12); color: var(--muted-foreground); }

.btn[disabled] { opacity: .6; pointer-events: none; }
