:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #e6e6e6;
  --line: #0c0c0f;
  --accent: #c9ccd1;
  --dark: #020203;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo { font: 28px/1 var(--serif); }
.logo span { color: var(--accent); }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 500; }
.btn-sm { padding: 8px 16px; border: 1px solid var(--ink); border-radius: 99px; transition: .2s; }
.btn-sm:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 150px) clamp(16px, 5vw, 64px) clamp(56px, 8vw, 110px);
  max-width: 1280px; margin: 0 auto;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
h1 {
  font: 400 clamp(46px, 8.5vw, 116px)/.98 var(--serif);
  letter-spacing: -.02em;
}
.lead { max-width: 560px; margin: 28px 0 36px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.btn {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 15px 28px; border-radius: 99px;
  background: var(--ink); color: var(--bg); font-weight: 500;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: #000000; }

/* ---------- Trabajos ---------- */
.work { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.work-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: clamp(40px, 6vw, 72px);
}
h2 { font: 400 clamp(34px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -.01em; }
.count { font-size: 14px; color: var(--muted); }

.project {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-bottom: clamp(72px, 10vw, 140px);
}
.project:nth-of-type(even) .shots { order: 2; }

.shots { position: relative; display: block; padding: 0 7% 9% 0; }
.browser {
  border-radius: 12px; overflow: hidden; background: #050506;
  box-shadow: 0 30px 60px -25px rgba(201, 204, 209, .18);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.bar { display: flex; gap: 6px; padding: 10px 12px; background: #0c0c0f; }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #6d28d9; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 24%;
  border: 5px solid #0c0c0f; border-radius: 22px; overflow: hidden; background: #050506;
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .8);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.phone img { aspect-ratio: 9 / 18; object-fit: cover; object-position: top; }
.shots:hover .browser { transform: translateY(-6px); }
.shots:hover .phone { transform: translateY(-14px) rotate(-2deg); }

.num { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: .08em; }
.info h3 { font: 400 clamp(40px, 4.5vw, 58px)/1 var(--serif); margin: 8px 0 6px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.info > p:not(.num):not(.meta) { margin-bottom: 22px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags li { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.link { font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; transition: .2s; }
.link:hover { color: var(--accent); border-color: var(--accent); }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--accent); border-radius: 99px;
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
div.shots { cursor: default; }

/* ---------- Servicios ---------- */
.services {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--ink);
}
.grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.grid > div { padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; }
.grid .n { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 18px; }
.grid h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.grid p { color: var(--muted); font-size: 15px; }
.grid .featured { background: linear-gradient(160deg, #050506, #020203); border-color: var(--accent); }
.grid .featured h4 { font: 400 30px/1.05 var(--serif); margin-bottom: 12px; }
.grid .featured p { color: var(--muted); }
.grid .featured .n { color: var(--accent); }

/* ---------- Calculadora de ROI ---------- */
.roi {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--ink);
}
.roi-lead { color: var(--muted); max-width: 560px; margin: 16px 0 40px; }
.roi-box { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; align-items: start; }
.roi-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roi fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 16px; min-width: 0; }
.roi legend { padding: 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.roi label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.roi input[type=number] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #050506; border: 1px solid var(--line); color: var(--ink);
  font: 600 17px var(--sans); text-shadow: none;
  -moz-appearance: textfield;
}
.roi input[type=number]::-webkit-inner-spin-button { opacity: .4; }
.roi input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 61, 255, .2); }
.money, .pct { position: relative; display: block; }
.money input { padding-left: 28px !important; }
.pct input { padding-right: 30px !important; }
.money::before, .pct::after { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money::before { content: "$"; left: 14px; }
.pct::after { content: "%"; right: 14px; }
.roi label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.roi-results {
  position: sticky; top: 90px;
  border: 1px solid var(--accent); border-radius: 16px; padding: 24px;
  background: linear-gradient(160deg, #050506, #020203);
  display: grid; gap: 12px;
}
.r-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.r-row b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.r-row.good b { color: var(--accent); }
.r-total { display: grid; gap: 2px; padding: 8px 0; }
.r-total span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r-total b { font: 400 clamp(42px, 5vw, 58px)/1.05 var(--serif); color: var(--accent); text-shadow: var(--aura-fuerte); }
.r-total small { color: var(--muted); font-size: 14px; }
.r-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.r-kpis b { font: 400 26px/1.1 var(--serif); color: var(--ink); }
.r-kpis span { font-size: 12px; color: var(--muted); }
.roi-results .btn { justify-content: center; margin-top: 4px; }
.r-note { font-size: 12px; color: var(--muted); opacity: .8; }

@media (max-width: 1100px) { .roi-box { grid-template-columns: 1fr; } .roi-results { position: static; } }
@media (max-width: 640px) { .roi-inputs { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact {
  background: var(--dark); color: var(--ink); text-align: center;
  padding: clamp(80px, 12vw, 150px) 16px;
}
.contact h2 { font-size: clamp(40px, 7vw, 88px); }
.contact em { color: var(--accent); }
.contact { border-top: 1px solid var(--line); }
.contact p { color: var(--muted); margin: 18px 0 36px; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--accent); }

footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px clamp(16px, 5vw, 64px);
  background: var(--dark); color: var(--muted); font-size: 14px;
  border-top: 1px solid #0c0c0f;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .featured { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-of-type(even) .shots { order: 0; }
}
@media (max-width: 520px) {
  .top nav a:not(.btn-sm) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .phone { border-width: 3px; border-radius: 14px; width: 27%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Aura dorada en los textos ---------- */
:root {
  --aura: 0 0 6px rgba(201, 204, 209, .55), 0 0 14px rgba(201, 204, 209, .35);
  --aura-fuerte: 0 0 10px rgba(201, 204, 209, .7), 0 0 26px rgba(201, 204, 209, .45), 0 0 48px rgba(201, 204, 209, .25);
}
body { text-shadow: var(--aura); }
h1, h2, h3, .logo, .grid .featured h4, em { text-shadow: var(--aura-fuerte); }
.contact, footer, .grid .featured { --aura: 0 0 8px rgba(201, 204, 209, .6), 0 0 18px rgba(201, 204, 209, .4); text-shadow: var(--aura); }
