:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #38bdf8;
  --dark: #0f172a;
  --tint: #eff6ff;
  --line: #cbd5e1;
  --hard: 6px 6px 0 var(--dark);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 1.05rem; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

/* Nota a mano alzada */
.note { font-family: var(--font-hand); font-size: 1.5rem; color: var(--primary); margin-bottom: .25rem; line-height: 1; }
.note-light { color: var(--accent); }

/* Botones */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 12px; font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--text); background: var(--surface);
  border: 2px solid var(--dark); box-shadow: 4px 4px 0 var(--dark); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--dark); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--dark); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { color: var(--text); text-decoration: none; font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .2s; padding-bottom: 2px; }
.nav ul a:hover { background-size: 100% 3px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--dark); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 88px; background-image: radial-gradient(var(--line) 1.3px, transparent 1.3px); background-size: 24px 24px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; margin-bottom: .45em; }
.mark {
  display: inline-block; min-width: 3ch; color: var(--primary); position: relative; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C40 2 80 11 120 5s60 3 78 1' fill='none' stroke='%2338bdf8' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .22em no-repeat;
  padding-bottom: .12em;
}
.mark #rotator::after { content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 3px; background: var(--primary); vertical-align: -.05em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.sticker {
  position: absolute; right: 2%; top: -2%; width: 118px; height: 118px; border-radius: 50%;
  background: var(--secondary); color: #fff; border: 3px solid var(--dark); box-shadow: 4px 4px 0 var(--dark);
  display: grid; place-items: center; text-align: center; transform: rotate(12deg); margin: 0;
  font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.05;
}

/* Cinta */
.ribbon { background: var(--primary); border-block: 3px solid var(--dark); transform: rotate(-1.2deg); margin: 0 -24px; overflow: hidden; position: relative; z-index: 2; }
.ribbon-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ribbon span { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; padding: 14px 0; white-space: nowrap; display: flex; align-items: center; }
.ribbon span::after { content: ""; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--dark); border-radius: 50%; margin: 0 28px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); border-block: 2px solid var(--dark); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* Servicios */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.svc { background: var(--surface); border: 2px solid var(--dark); border-radius: 22px; box-shadow: 8px 8px 0 var(--dark); padding: 28px; }
.svc h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: .6em; }
.svc li { display: flex; gap: 18px; padding: 18px 0; border-top: 2px dashed var(--line); }
.svc li > span { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.05rem; padding-top: 2px; }
.svc h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: .2em; }
.svc p { color: var(--muted); margin: 0; font-size: .98rem; }
.svc-blue { background: var(--primary); color: #fff; }
.svc-blue li { border-color: rgba(255, 255, 255, .45); }
.svc-blue li > span { color: var(--accent); }
.svc-blue p { color: var(--tint); }

/* Trabajos */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 32px; align-items: start; }
.work-wide { grid-column: 1 / -1; }
.work { margin: 0; }
.frame { background: var(--surface); border: 2px solid var(--dark); border-radius: 14px; box-shadow: var(--hard); overflow: hidden; transition: transform .2s; }
.work:hover .frame { transform: rotate(-1deg) translateY(-4px); }
.frame-bar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 2px solid var(--dark); background: var(--bg); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dark); background: #fff; }
.frame-bar i:last-child { background: var(--primary); }
.frame-phone { border-radius: 26px; }
.shot svg, .shot img { display: block; width: 100%; height: auto; }
.shot img { aspect-ratio: 1568 / 733; object-fit: cover; object-position: top left; }
.work figcaption { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.work figcaption strong { color: var(--text); font-family: var(--font-head); }
.work figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }
.work figcaption a:hover { color: var(--primary); }
.work-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 32px; border: 2px dashed var(--dark); border-radius: 14px; }
.work-cta h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: 0; flex: 1 1 320px; }
.work-cta .note { flex-basis: 100%; margin: 0; }
.tag { display: inline-block; margin-left: 10px; padding: 1px 10px; border: 2px solid var(--dark); border-radius: 999px; background: var(--accent); color: var(--dark); font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; border-top: 3px dashed var(--line); z-index: 0; }
.steps li { position: relative; z-index: 1; }
.steps b {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--primary);
  color: #fff; border: 3px solid var(--dark); font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 16px;
  box-shadow: 3px 3px 0 var(--dark);
}
.steps h4 { font-size: 1.3rem; font-weight: 800; }
.steps p { color: var(--muted); margin-bottom: .4em; font-size: 1rem; }
.steps em { font-family: var(--font-hand); font-style: normal; font-size: 1.35rem; color: var(--secondary); }

/* Promesas */
.promises li { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 2px solid var(--dark); }
.promises li:first-child { padding-top: 0; }
.promises li:last-child { border-bottom: 0; padding-bottom: 0; }
.promises h3 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 800; margin: 0; }
.promises p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* Contacto */
.contact-panel {
  background: var(--primary); color: #fff; border: 3px solid var(--dark); border-radius: 26px;
  box-shadow: 10px 10px 0 var(--dark); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contact-text h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.contact-text p { color: var(--tint); }
.contact-list li { margin-bottom: 6px; }
.contact-list a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.form { background: var(--surface); color: var(--text); border: 2px solid var(--dark); border-radius: 18px; padding: 28px; box-shadow: 6px 6px 0 var(--dark); }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 2px solid var(--dark); border-radius: 10px; font: inherit; color: var(--text); background: var(--bg); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 3px 3px 0 var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #b91c1c; }
.error { display: block; color: #b91c1c; min-height: 1.1em; font-size: .85rem; margin-top: 3px; font-weight: 600; }
.form-status { margin: 12px 0 0; font-weight: 700; }
.form-status.ok { color: #15803d; }
.form-status.fail { color: #b91c1c; }

/* Footer */
.site-footer { background: var(--dark); color: #94a3b8; padding: 44px 0; }
.site-footer .brand { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer-inner p { margin: 0; width: 100%; font-size: .9rem; border-top: 1px solid #334155; padding-top: 18px; }

/* Entrada al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .svc-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .works { grid-template-columns: 1fr 1fr; }
  .work-wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .promises li { grid-template-columns: 1fr; gap: 8px; }
  .contact-panel { padding: 32px 24px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 20px 16px; gap: 18px; border-bottom: 2px solid var(--dark); display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 14px; }
  .nav .btn { text-align: center; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .works, .steps { grid-template-columns: 1fr; }
  .work-phone { max-width: 220px; }
  .svc { padding: 24px 20px; }
  .sticker { width: 96px; height: 96px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .mark #rotator::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .frame { transition: none; }
}

/* Campo trampa anti-bots del formulario */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
