/* ==========================================================================
   RODRIGO VERGARA — Portafolio
   Diseño: editorial oscuro + acento lima
   Inspiración: heyparker.ai (titulares fragmentados, viejo vs nuevo),
   dataforwomen.ai (secciones numeradas editoriales), realfood.gov (contraste),
   corgi.insure (cards modulares + lima), micro.so (pulido y micro-interacciones)
   ========================================================================== */

:root {
  --bg: #070907;
  --bg-alt: #0b0f0b;
  --panel: #10150f;
  --panel-2: #141a12;
  --line: rgba(237, 242, 233, 0.09);
  --text: #edf2e9;
  --muted: #96a294;
  --lime: #c7f53f;
  --lime-soft: rgba(199, 245, 63, 0.12);
  --amber: #ffb454;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: #0a0d08; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: 0.01em;
}

.lime { color: var(--lime); }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-terminal {
  font-family: var(--font-mono); font-size: 15px; color: var(--muted);
  min-width: min(420px, 80vw);
}
.pre-line { opacity: 0; animation: preline 0.3s forwards; margin-bottom: 6px; }
.pre-line.pre-l2 { animation-delay: 0.35s; }
.pre-line.pre-l3 { animation-delay: 0.65s; }
.pre-line.pre-l4 { animation-delay: 0.95s; }
.pre-prompt { color: var(--lime); }
@keyframes preline { to { opacity: 1; } }

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 245, 63, 0.07) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  left: 50vw; top: 30vh;
  transition: left 0.18s ease-out, top 0.18s ease-out;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 7, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav::after { /* barra de progreso de scroll */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px;
  width: var(--scroll-progress, 0%);
  background: var(--lime);
  transition: width 0.1s linear;
}
.nav-logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; gap: 8px;
}
.logo-mark { filter: drop-shadow(0 0 8px rgba(199, 245, 63, 0.6)); }
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 32px); }
.nav-links a {
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--lime); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.status-pill {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  animation: blink 1.8s infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.nav-burger { display: none; background: none; border: none; cursor: pointer; }
.nav-burger span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0;
  transition: transform 0.3s;
}

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 12px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-lime { background: var(--lime); color: #0a0d08; }
.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(199, 245, 63, 0.35);
}
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-xl {
  padding: 20px 38px; font-size: clamp(17px, 2.4vw, 22px);
  font-family: var(--font-mono); border-radius: 16px;
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 4vw, 48px) 60px;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.2;
  mask-image: linear-gradient(to bottom, black 40%, transparent 96%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--lime); margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.04; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; }
.hero-title em { font-size: 1.02em; }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 54ch; margin-bottom: 34px;
}
.hero-sub strong { color: var(--text); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: start; gap: 18px clamp(16px, 2.4vw, 36px);
  border-top: 1px solid var(--line); padding-top: 26px;
}
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, auto); } }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-mono); font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700; color: var(--lime);
}
.stat-label { font-size: 13px; color: var(--muted); }

/* hero visual: workflow + terminal */
.hero-visual { display: flex; flex-direction: column; gap: 18px; }
.workflow-card, .terminal-card, .browser-mock {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.wf-header {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.wf-dot { width: 10px; height: 10px; border-radius: 50%; }
.wf-dot.r { background: #ff5f57; } .wf-dot.y { background: #febc2e; } .wf-dot.g { background: #28c840; }
.wf-title {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  margin-left: 8px;
}
.wf-svg { width: 100%; height: auto; display: block; padding: 8px; }
.wf-path {
  stroke: rgba(199, 245, 63, 0.35); stroke-width: 1.6; fill: none;
  stroke-dasharray: 6 6;
  animation: dashflow 1.4s linear infinite;
}
@keyframes dashflow { to { stroke-dashoffset: -12; } }
.wf-pulse { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
.wf-node rect {
  fill: var(--panel-2); stroke: var(--line); stroke-width: 1;
}
.wf-node-ia rect { stroke: var(--lime); stroke-opacity: 0.55; }
.wf-node .wf-emoji { font-size: 14px; }
.wf-node .wf-label {
  font-family: var(--font-mono); font-size: 10.5px; fill: var(--text);
}
.terminal-body {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding: 16px 18px; min-height: 74px;
}
.t-line { white-space: nowrap; overflow: hidden; }
.t-cursor::after {
  content: "▊"; color: var(--lime); animation: blink 0.9s infinite;
}
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0; background: var(--bg-alt);
}
.marquee-track {
  display: flex; gap: 34px; align-items: center; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-mono); font-size: 15px; color: var(--muted);
}
.marquee-track i { color: var(--lime); font-style: normal; font-size: 9px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECCIONES ============ */
.section {
  padding: clamp(80px, 11vw, 140px) clamp(20px, 4vw, 48px);
  max-width: 1240px; margin: 0 auto;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-num {
  font-family: var(--font-mono); font-size: 15px; color: var(--lime);
  display: inline-block; margin-right: 14px;
}
.sec-num::after { content: " /"; color: var(--muted); }
.sec-label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em;
  color: var(--muted);
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1;
  letter-spacing: -0.02em; margin-top: 18px; max-width: 20ch;
}

/* ============ 01 CARDS SERVICIOS ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(199, 245, 63, 0.08), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); border-color: rgba(199, 245, 63, 0.4); }
.card-icon { font-size: 30px; margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.card-tag {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--lime);
  background: var(--lime-soft); border-radius: 99px; padding: 5px 12px;
  display: inline-block;
}

/* ============ 02 COMPARACIÓN ============ */
.compare {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.compare-head, .compare-row {
  display: grid; grid-template-columns: 1fr 1.2fr 0.5fr;
  gap: 16px; padding: 18px 26px; align-items: center;
}
.compare-head {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.compare-head .col-old { color: var(--amber); }
.compare-head .col-new { color: var(--lime); }
.compare-head .col-gain { color: var(--muted); text-align: right; }
.compare-row { border-bottom: 1px solid var(--line); transition: background 0.25s; }
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(199, 245, 63, 0.03); }
.compare-row .col-old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 180, 84, 0.5); }
.compare-row .col-new { color: var(--text); }
.compare-row .col-gain {
  font-family: var(--font-mono); color: var(--lime); font-size: 14px;
  text-align: right; white-space: nowrap;
}
.method-note {
  text-align: center; margin-top: 34px; color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

/* ============ CALCULADORA ============ */
.calc {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--panel); border: 1px solid rgba(199, 245, 63, 0.25);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 48px);
  position: relative; overflow: hidden;
}
.calc::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 245, 63, 0.12), transparent 70%);
}
.calc-badge {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--lime); background: var(--lime-soft);
  padding: 6px 12px; border-radius: 99px;
}
.calc-head h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 16px 0 8px; letter-spacing: -0.01em;
}
.calc-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px); margin-top: 28px; align-items: center;
}
.calc-field { display: block; margin-bottom: 26px; }
.calc-label { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.calc-value { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); }
.calc-value b { color: var(--lime); font-size: 16px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  background: linear-gradient(to right, var(--lime) var(--fill, 25%), rgba(255, 255, 255, 0.12) var(--fill, 25%));
  border-radius: 99px; outline: none; margin-bottom: 8px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); border: 3px solid #0a0d08;
  box-shadow: 0 0 0 2px var(--lime), 0 0 14px rgba(199, 245, 63, 0.5);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime); border: 3px solid #0a0d08;
  box-shadow: 0 0 0 2px var(--lime), 0 0 14px rgba(199, 245, 63, 0.5);
  cursor: grab;
}
.calc-result {
  text-align: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px;
}
.calc-result-label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 10px;
}
.calc-result-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--lime);
  display: block; line-height: 1.1;
  text-shadow: 0 0 30px rgba(199, 245, 63, 0.3);
}
.calc-result-sub {
  display: block; font-size: 14px; color: var(--muted);
  margin: 14px auto 22px; max-width: 30ch;
}

/* ============ BANDA VISUAL ============ */
.visual-band {
  height: clamp(300px, 44vw, 460px);
  background-image: linear-gradient(to bottom, rgba(7,9,7,0.72), rgba(7,9,7,0.25) 40%, rgba(7,9,7,0.85)),
                    url("../assets/ai/dropi-iso-web.jpg");
  background-size: cover; background-position: center;
  background-attachment: fixed;
  display: flex; align-items: flex-end;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.visual-band-caption {
  padding: 0 clamp(20px, 4vw, 48px) 34px;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.visual-band-caption p {
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; margin-top: 8px;
  letter-spacing: -0.01em;
}
@media (max-width: 1024px) { .visual-band { background-attachment: scroll; } }

/* ============ 03 PROYECTOS ============ */
.project-flagship {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 3.5vw, 48px);
  margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.project-flagship::after {
  content: ""; position: absolute; bottom: -160px; left: -160px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 245, 63, 0.09), transparent 70%);
  pointer-events: none;
}
.project-flag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--lime);
}
.project-info h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 14px 0; letter-spacing: -0.015em;
}
.project-info p { color: var(--muted); margin-bottom: 20px; }
.project-info strong { color: var(--text); }
.project-points { list-style: none; margin-bottom: 24px; }
.project-points li {
  padding-left: 26px; position: relative; margin-bottom: 9px;
  color: var(--text); font-size: 15.5px;
}
.project-points li::before {
  content: "⚡"; position: absolute; left: 0; color: var(--lime); font-size: 13px;
}
.mock-shot { width: 100%; display: block; border-bottom: 1px solid var(--line); }
.mock-body { padding: 22px; }
.pipeline { display: flex; align-items: stretch; gap: 8px; }
.pipe-step {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 8px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5;
  color: var(--muted);
}
.pipe-step span { display: block; font-size: 20px; margin-bottom: 6px; }
.pipe-step.lime-step { border-color: rgba(199, 245, 63, 0.5); color: var(--text); }
.pipe-arrow { align-self: center; color: var(--lime); font-size: 14px; }
.mock-log {
  margin-top: 18px; font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px;
  transition: color 0.2s, border-color 0.2s;
}
.tags span:hover { color: var(--lime); border-color: var(--lime); }

.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 720px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(199, 245, 63, 0.4); }
.pc-media {
  height: 200px; overflow: hidden; position: relative;
  background: var(--panel-2); display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.pc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .pc-media img { transform: scale(1.06); }
.pc-visual-label { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.pc-upcook {
  background: linear-gradient(135deg, #1a2410, #0d1410 60%),
              radial-gradient(circle at 80% 20%, rgba(199, 245, 63, 0.25), transparent 50%);
}
.pc-whatsapp { background: linear-gradient(135deg, #0d1a14, #0a0f0c); padding: 18px; }
.chat-mock { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.45;
}
.chat-msg.in { background: rgba(255, 255, 255, 0.08); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.out { background: rgba(199, 245, 63, 0.16); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-meta {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--lime);
  align-self: flex-end;
}
.pc-youtube { background: linear-gradient(135deg, #1a0f10, #0f0a0b); }
.yt-mock { display: grid; place-items: center; gap: 16px; }
.yt-play {
  width: 66px; height: 46px; border-radius: 12px; background: #ff4444;
  display: grid; place-items: center; color: white; font-size: 18px;
  box-shadow: 0 0 40px rgba(255, 68, 68, 0.35);
}
.yt-bar {
  width: 130px; height: 4px; border-radius: 99px;
  background: linear-gradient(to right, #ff4444 60%, rgba(255,255,255,0.15) 60%);
}
.pc-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pc-body h3 { font-size: 19px; letter-spacing: -0.01em; }
.pc-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.pc-link {
  font-family: var(--font-mono); font-size: 13px; color: var(--lime);
  transition: opacity 0.2s;
}
.pc-link:hover { opacity: 0.75; }
.pc-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============ 04 STACK ============ */
.stack-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
}
.meter { margin-bottom: 26px; }
.meter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 9px; font-size: 15px;
}
.meter-head b { font-family: var(--font-mono); color: var(--lime); font-size: 14px; }
.meter-bar {
  height: 7px; background: rgba(255, 255, 255, 0.07); border-radius: 99px;
  overflow: hidden;
}
.meter-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(to right, rgba(199, 245, 63, 0.5), var(--lime));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(199, 245, 63, 0.4);
}
.stack-note { margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.stack-note strong { color: var(--text); }

/* ============ 05 SOBRE MÍ ============ */
.about {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  filter: grayscale(0.9) contrast(1.05);
  transition: filter 0.6s ease, transform 0.6s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.about-photo:hover img { filter: grayscale(0) contrast(1); transform: scale(1.015); }
.photo-caption {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  background: rgba(7, 9, 7, 0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px;
}
.about-lead { font-size: clamp(19px, 2.4vw, 24px); margin-bottom: 18px; line-height: 1.45; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--text); }
.about-text em { font-size: 1.05em; }
.about-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--lime);
  border-left: 3px solid var(--lime); padding-left: 22px;
  margin: 30px 0; line-height: 1.35;
}
.about-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ 06 CONTACTO ============ */
.contact {
  text-align: center; position: relative; max-width: none;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to bottom, var(--bg) 4%, rgba(7,9,7,0.72), var(--bg) 96%),
                    url("../assets/ai/automation-bg-web.jpg");
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.contact-inner { max-width: 780px; margin: 0 auto; }
.contact-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 20px 0 16px;
}
.contact-sub {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin-bottom: 40px;
}
.contact-links {
  margin-top: 30px; display: flex; justify-content: center; gap: 16px;
  font-family: var(--font-mono); font-size: 14px; color: var(--muted);
}
.contact-links a { color: var(--muted); transition: color 0.2s; }
.contact-links a:hover { color: var(--lime); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 48px);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .project-flagship { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: rgba(7, 9, 7, 0.97);
    padding: 24px clamp(20px, 4vw, 48px) 32px; gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.35s ease;
    backdrop-filter: blur(14px);
  }
  .nav-links.open { transform: none; }
  .nav-burger { display: block; }
  .status-pill { display: none; }
  .compare-head, .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-head .col-gain, .compare-row .col-gain { display: none; }
  .stack-grid { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
