/* ============================================================
   main.css — Cuaderno del taller de abel.expert
   Fondo negro, tipografía impecable, la audacia vive en la lluvia.
   Cada bloque lleva su decisión anotada. Nada es casual.
   ============================================================ */

/* — Las herramientas: dos fuentes, self-hosted, ni un byte de CDN — */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-mono-latin.woff2') format('woff2');
}
/* — Suplentes métricos: mientras llega la titular, el sistema ocupa
     exactamente el mismo hueco. Cero saltos de layout (CLS 0) — */
@font-face {
  font-family: 'SG Fallback';
  src: local('Arial'), local('Helvetica Neue');
  size-adjust: 101%; ascent-override: 98%; descent-override: 29%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Plex Fallback';
  src: local('Menlo'), local('Courier New');
  size-adjust: 100%; ascent-override: 102%; descent-override: 28%; line-gap-override: 0%;
}

/* — La paleta: cuatro colores de Google sobre tinta. Nada más. — */
:root {
  --g-blue:   #4285F4;
  --g-red:    #EA4335;
  --g-yellow: #FBBC05;
  --g-green:  #34A853;
  --ink:      #050505;
  --paper:    #FAFAFA;
  --line:     rgba(250, 250, 250, .14);
  --muted:    rgba(250, 250, 250, .62);
  --soft:     rgba(250, 250, 250, .82);   /* — gris de LECTURA: para párrafos, no etiquetas — */
  --display:  'Space Grotesk', 'SG Fallback', system-ui, sans-serif;
  --mono:     'IBM Plex Mono', 'Plex Fallback', ui-monospace, Menlo, monospace;
  /* — Curva afinada a mano: arranque seco, aterrizaje suave — */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* — Base: retícula de 8px, contenedor de 1200, texto que se lee — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 430;                       /* — sobre tinta, el 400 adelgaza: 430 se lee — */
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--paper); }
.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* — La selección de texto también es del taller: amarillo sobre tinta — */
::selection { background: var(--g-green); color: var(--ink); }

/* — Scrollbar fina: raíl de tinta, mango de línea, azul al agarrarlo — */
html { scrollbar-width: thin; scrollbar-color: var(--line) var(--ink); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--g-green); }

/* — Teclado primero: anillo azul de 2px, separado 3px, siempre visible — */
:focus-visible { outline: 2px solid var(--g-green); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--paper); color: var(--ink);
  padding: 8px 16px; font-family: var(--mono);
}
.skip:focus { left: 0; }

/* — La lluvia vive detrás de todo; el contenido, delante — */
/* — La lluvia, un punto más atrás: ambiente, no protagonista — */
#rain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
main, .top, .seal { position: relative; z-index: 1; }
/* — Halo de tinta bajo cada letra: el texto se recorta contra la lluvia — */
main h1, main h2, main h3, main p, main li, main summary, .rotator-line, .seal p {
  text-shadow: 0 1px 3px rgba(5, 5, 5, .95), 0 0 14px rgba(5, 5, 5, .85);
}

/* — El kicker: firma de Abel en cada sección, mono y minúscula — */
.kicker {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .8125rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 24px;
}

/* — Cabecera: una regla de taller colgada arriba, sin estridencias — */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, .96) 55%, rgba(5, 5, 5, 0));
}
.brand { font-size: .9375rem; text-decoration: none; letter-spacing: .04em; }
.brand-cursor { color: var(--g-green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.top nav { display: flex; gap: 8px; }
.top nav a {
  font-family: var(--mono); font-size: .8125rem;
  text-decoration: none; color: var(--muted);
  padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center;
}
/* — Cada letra del enlace se enciende una a una (spans desde craft.js) — */
.top nav a span {
  transition: color .18s var(--ease), border-color .18s var(--ease);
  transition-delay: calc(var(--i) * 30ms);
  border-bottom: 1px solid transparent;
}
@media (hover: hover) {
  .top nav a:hover span { color: var(--paper); border-bottom-color: var(--g-green); }
}

/* ============================================================
   HERO — el momento firma. El h1 es texto real e indexable:
   el canvas solo lo escolta. Sin JS o con reduced-motion,
   el nombre está ahí desde el primer frame.
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 24px 64px;
  max-width: 1200px; margin-inline: auto;
}
/* — El rotador: lo que sale del taller, en gigante, descifrándose.
     El h1 real (oculto visualmente) lleva todos los servicios para Google — */
.rotator-line {
  display: flex; align-items: baseline; gap: .08em;
  margin: 0 0 32px;
  font-size: clamp(2.1rem, 8.5vw, 6.25rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  min-height: 2.3em;                 /* — reserva dos líneas: nada salta — */
}
.rotator { color: var(--paper); overflow-wrap: break-word; min-width: 0; }
.rot-caret { color: var(--g-green); animation: blink 1s steps(1) infinite; flex: none; }
@media (min-width: 900px) { .rotator-line { min-height: 1.2em; } }
.c-blue { color: var(--g-blue); }
.c-red { color: var(--g-red); }
.c-yellow { color: var(--g-yellow); }
.c-green { color: var(--g-green); }
.c-paper { color: var(--paper); }
.c-acc { color: var(--g-green); }

.hero-sub { font-size: clamp(.9375rem, 2.4vw, 1.25rem); color: var(--paper); margin: 0 0 48px; min-height: 1.6em; }
/* — Cursor de bloque: parpadea como una terminal esperando orden — */
.caret {
  display: inline-block; width: .6em; height: 1.1em;
  background: var(--g-green); margin-left: 4px; vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-perks { margin: 28px 0 0; font-size: .875rem; color: var(--soft); letter-spacing: .02em; }

/* ============================================================
   BOTONES — cada uno una pieza única, ninguno de catálogo.
   ============================================================ */
/* — btn-wa: verde de contratar. El borde se lo dibuja craft.js
     con un rect SVG; aquí, la base sólida y el texto en tinta — */
.btn-wa {
  position: relative;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  background: var(--g-green); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s var(--ease);
  will-change: transform;
}
.btn-wa svg { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); pointer-events: none; }
.btn-wa svg rect {
  fill: none; stroke: var(--paper); stroke-width: 2;
  stroke-dasharray: var(--perim, 600); stroke-dashoffset: var(--perim, 600);
}
@media (hover: hover) {
  /* — 450ms: lo que tarda un lápiz decidido en rodear la pieza — */
  .btn-wa:hover svg rect { transition: stroke-dashoffset .45s cubic-bezier(0.22, 1, 0.36, 1); stroke-dashoffset: 0; }
}
/* — Al pulsar, saltan virutas del borde (spans desde craft.js) — */
.chip-spark {
  position: absolute; width: 4px; height: 4px; background: var(--g-green);
  pointer-events: none; opacity: 1;
  animation: spark .5s var(--ease) forwards;
}
@keyframes spark {
  to { transform: translate(var(--sx), var(--sy)) scale(.3); opacity: 0; }
}
.btn-big { font-size: 1.25rem; padding: 18px 40px; }

/* — btn-ghost: marco blanco y un barrido amarillo tipo scanline — */
.btn-ghost {
  position: relative; overflow: hidden;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  border: 1px solid var(--paper); color: var(--paper);
  font-family: var(--display); font-weight: 500; font-size: 1rem;
  text-decoration: none;
}
.btn-ghost::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -30%;
  width: 20%; background: var(--g-green); opacity: .4;
  transform: skewX(-12deg);
  transition: left .5s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .btn-ghost:hover::before { left: 115%; }
}

/* ============================================================
   SECCIONES — quietas, negras, precisas. La retícula manda.
   ============================================================ */
section { max-width: 1200px; margin-inline: auto; padding: 120px 24px; }

section h2 { font-size: clamp(1.75rem, 4.6vw, 3rem); margin: 0 0 48px; }

/* — Manifiesto: tipografía grande; las palabras clave se encienden — */
.manifesto { padding-block: 160px; }
.mani-text {
  font-size: clamp(1.5rem, 4.2vw, 2.75rem);
  font-weight: 500; line-height: 1.3; letter-spacing: -0.02em;
  max-width: 22ch; margin: 0;
}
.light { color: var(--paper); font-style: normal; transition: color .6s var(--ease); }
.light.on { color: var(--g-green); }
/* — Se encienden en cadena, como enchufar la regleta del taller — */
.light:nth-of-type(2) { transition-delay: .2s; }
.light:nth-of-type(3) { transition-delay: .4s; }
.light:nth-of-type(4) { transition-delay: .6s; }

/* — Servicios: tres piezas sobrias; el hover les mete lluvia dentro — */
.serv-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.serv-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, .9);
  min-height: 224px;
}
.serv-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
@media (hover: hover) {
  .serv-card:hover .serv-rain { opacity: 1; }
}
.serv-body { position: relative; padding: 40px 32px 32px; display: flex; flex-direction: column; height: 100%; }
.serv-num { font-size: .8125rem; color: var(--g-green); letter-spacing: .08em; margin-bottom: 16px; }
.serv-card h3 { font-size: 1.625rem; margin: 0 0 14px; letter-spacing: -0.02em; }
.serv-card p { color: var(--paper); font-size: 1rem; line-height: 1.65; margin: 0 0 20px; }
/* — Los entregables: tres piezas por servicio, marcadas en verde — */
.serv-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.serv-list li { font-size: .875rem; color: var(--soft); padding-left: 20px; position: relative; line-height: 1.55; }
.serv-list li::before { content: '→'; position: absolute; left: 0; color: var(--g-green); }
.serv-link {
  margin-top: auto; font-size: .8125rem; color: var(--paper);
  text-decoration: none; border-bottom: 1px solid var(--line);
  align-self: flex-start; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) {
  .serv-link:hover { border-bottom-color: var(--g-green); color: var(--g-green); }
}

/* — Proyectos: la captura llega pixelada y se fabrica ante tus ojos — */
.works-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
.work-media { position: relative; display: block; border: 1px solid var(--line); overflow: hidden; }
.work-img { width: 100%; transition: opacity .5s var(--ease); opacity: 0; position: absolute; inset: 0; height: 100%; object-fit: cover; }
.work-px {
  width: 100%; height: auto; aspect-ratio: 960 / 667;
  image-rendering: pixelated;   /* — 48px estirados: el halftone honesto — */
  object-fit: cover;
}
@media (hover: hover) {
  .work-media:hover .work-img { opacity: 1; }
}
/* — En táctil no hay hover: la imagen nítida se muestra al entrar en viewport (craft.js) — */
.work-media.made .work-img { opacity: 1; }
.work .kicker { margin: 16px 0 4px; color: var(--paper); }
.work-line { color: var(--soft); font-size: 1rem; margin: 0; }

/* — Proceso: cuatro pasos unidos por una línea que se dibuja al pasar — */
.proc-list {
  list-style: none; margin: 0; padding: 0 0 0 40px;
  position: relative;
  display: grid; gap: 56px;
}
.proc-list::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--g-green);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s var(--ease);
}
.process.inview .proc-list::before { transform: scaleY(1); }
.proc-step { position: relative; }
.proc-num {
  position: absolute; left: -40px; top: 0;
  font-size: .8125rem; color: var(--muted);
  background: var(--ink); padding: 4px 0;
}
.proc-step h3 { font-size: 1.375rem; margin: 0 0 8px; }
.proc-step p { color: var(--soft); font-size: 1rem; margin: 0; }

/* — Sobre Abel: retrato en duotono azul sobre tinta, bio sin humo — */
.about-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
.about-photo { margin: 0; position: relative; border: 1px solid var(--line); max-width: 420px; overflow: hidden; border-radius: 22px; }
/* — Retrato a color, esquinas redondeadas. La lluvia lo revela; no lo tiñe. — */
.about-photo img { width: 100%; transition: filter 1s var(--ease); }
/* — Con JS arranca atenuado; la ceremonia lo enciende a todo color — */
.js .about-photo img { filter: brightness(.4) saturate(.85) contrast(1.05); }
.js .about-photo.lit img { filter: none; }
.photo-rain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
}
.photo-rain.on { opacity: 1; }
.about h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 24px; }
.about-text p { color: var(--soft); }
.about-close { color: var(--paper); font-weight: 500; }

/* — Preguntas: cada objeción respondida es una venta a medio hacer — */
.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; min-height: 44px;
  font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none;
  color: var(--g-green); font-size: 1.5rem; font-weight: 400; line-height: 1;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--soft); font-size: 1rem; line-height: 1.65; margin: 0; padding: 0 40px 20px 0; }
@media (hover: hover) { .faq-item summary:hover { color: var(--g-green); } }

/* — CTA final: la lluvia arrecia detrás; aquí se cierra el trato — */
.final {
  min-height: 88svh;
  display: flex; flex-direction: column; justify-content: center;
}
.final h2 { font-size: clamp(2.5rem, 9vw, 6rem); margin: 0 0 48px; }
.final-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.final-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
.final-lead { color: var(--soft); max-width: 40ch; }
@media (min-width: 900px) { .final-grid { grid-template-columns: 1.1fr 1fr; } .final-ctas { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* — El formulario del taller: sobrio, negro, con foco verde — */
.forge { border: 1px solid var(--line); padding: 28px; background: rgba(5, 5, 5, .92); }
.forge .kicker { margin-bottom: 16px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fg-row { grid-template-columns: 1fr 1fr; } }
.fg-opt { color: rgba(250,250,250,.62); font-weight: 400; }
.fg label { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.fg input, .fg textarea {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: var(--display); font-size: 1rem;
  min-height: 44px;
}
.fg textarea { resize: vertical; }
.fg input:focus, .fg textarea:focus { outline: 2px solid var(--g-green); outline-offset: 0; border-color: var(--g-green); }
.fg ::placeholder { color: rgba(250, 250, 250, .35); }
.fg-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.fg-consent input { min-height: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--g-green); }
.fg-consent label { font-size: .78rem; line-height: 1.5; }
.fg-consent a { color: var(--paper); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* — Botonería de consentimiento y formulario: cápsulas sobrias — */
.ck-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  background: transparent; color: var(--paper);
  border: 1px solid var(--line); cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: .9375rem;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.ck-btn:hover { border-color: var(--g-green); }
.ck-btn-solid { background: var(--g-green); color: var(--ink); border-color: var(--g-green); font-weight: 700; }
.ck-btn-solid:hover { background: #3DBF61; }
.ck-link {
  background: none; border: none; cursor: pointer; padding: 8px 0;
  color: var(--muted); font-size: .8125rem; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ck-link:hover { color: var(--paper); border-bottom-color: var(--g-green); }
.final-mail { font-size: 1rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) {
  .final-mail:hover { color: var(--paper); border-bottom-color: var(--g-green); }
}

/* — El sello del artesano: centrado, con su hilo verde de cierre — */
.seal {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 64px 24px 56px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
  background: var(--ink);
}
.seal::before {
  content: ''; position: absolute; top: -1px; left: 50%; translate: -50% 0;
  width: 64px; height: 2px; background: var(--g-green);
}
.seal .brand { font-size: 1.0625rem; }
.seal p { font-size: .75rem; line-height: 2.1; color: var(--muted); margin: 0; letter-spacing: .04em; max-width: none; }
.seal-copy { color: var(--muted); }
.seal-legal { display: flex; gap: 28px; align-items: center; justify-content: center; }
.seal-legal a { font-size: .75rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; padding: 8px 0; }
.seal-legal .ck-link { font-size: .75rem; }
@media (hover: hover) {
  .seal-legal a:hover { color: var(--paper); border-bottom-color: var(--g-green); }
}

/* ============================================================
   DETALLES DE TALLER
   ============================================================ */
/* — Cursor propio: un cuadrado que respira en modo diferencia.
     Solo existe donde hay puntero fino; en táctil, ni rastro — */
.cursor { display: none; }
@media (pointer: fine) {
  .js .cursor {
    display: block; position: fixed; z-index: 100;
    width: 10px; height: 10px; background: #fff;
    mix-blend-mode: difference; pointer-events: none;
    translate: -50% -50%;
    transition: scale .25s var(--ease), border-radius .25s var(--ease);
  }
  .js .cursor.is-link { scale: 1.6; }
  /* — Sobre un interactivo se vuelve cruz: aquí se corta — */
  .js .cursor.is-link::before, .js .cursor.is-link::after {
    content: ''; position: absolute; background: #fff;
  }
  .js .cursor.is-link::before { left: 50%; top: -4px; bottom: -4px; width: 2px; translate: -50% 0; }
  .js .cursor.is-link::after { top: 50%; left: -4px; right: -4px; height: 2px; translate: 0 -50%; }
}

/* — Modo taller (tecla G): la retícula de 8px sale a la luz — */
body.grid-on::before {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background:
    repeating-linear-gradient(to right, rgba(52, 168, 83, .2) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(to bottom, rgba(52, 168, 83, .2) 0 1px, transparent 1px 8px);
}

/* — Aparición sobria del contenido al hacer scroll — */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   COOKIES — un aviso de taller: sutil, abajo a la izquierda,
   lejos de los botones de contacto. El panel, un plano limpio.
   ============================================================ */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  max-width: 360px;
  background: rgba(5, 5, 5, .95);
  border: 1px solid var(--line);
  padding: 20px;
  animation: ck-in .5s var(--ease);
}
@keyframes ck-in { from { opacity: 0; transform: translateY(12px); } }
.ck-kicker { font-size: .6875rem; letter-spacing: .08em; color: var(--g-green); margin: 0 0 8px; }
.ck-text { font-size: .875rem; color: var(--paper); margin: 0 0 16px; line-height: 1.5; }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookies .ck-btn { min-height: 40px; padding: 8px 18px; font-size: .875rem; }

.ck-modal[hidden], .cookies[hidden] { display: none; }
.ck-modal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, .65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ck-panel {
  background: #0A0A0A; border: 1px solid var(--line);
  max-width: 520px; width: 100%; max-height: 86svh; overflow-y: auto;
  padding: 32px;
}
.ck-panel h2 { font-size: 1.5rem; margin: 0 0 8px; }
.ck-sub { color: var(--muted); font-size: .875rem; margin: 0 0 24px; }
.ck-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.ck-row h3 { font-size: 1rem; margin: 0 0 4px; }
.ck-row p { font-size: .875rem; color: var(--soft); margin: 0; }
.ck-always { font-size: .75rem; color: var(--g-green); flex: none; }
/* — El interruptor: una pieza que se nota al accionar — */
.ck-toggle {
  flex: none; width: 46px; height: 26px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.ck-toggle i {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--muted);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.ck-toggle.on { background: var(--g-green); border-color: var(--g-green); }
.ck-toggle.on i { transform: translateX(20px); background: var(--ink); }
.ck-panel .ck-actions { margin-top: 24px; }
.ck-note { margin: 20px 0 0; font-size: .75rem; }
.ck-note a { color: var(--muted); }
.ck-note a:hover { color: var(--paper); }

@media (max-width: 480px) {
  .cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .ck-panel { padding: 24px 20px; }
}

/* ============================================================
   RESPONSIVE — móvil primero se piensa, escritorio se expande.
   Breakpoints reales: 768 y 1024. Cero scroll horizontal.
   ============================================================ */
@media (min-width: 768px) {
  .serv-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about-grid { grid-template-columns: 2fr 3fr; }
  .proc-list { grid-template-columns: repeat(2, 1fr); padding-left: 48px; }
}
@media (min-width: 1024px) {
  .top { padding: 20px 40px; }
  section { padding-inline: 40px; }
  .hero { padding-inline: 40px; }
}
@media (max-width: 480px) {
  .hero-ctas > * { width: 100%; }
  .top nav a:not(:last-child) { display: none; } /* — móvil: solo Contacto; el resto se llega scrolleando — */
}

/* — Páginas legales: mismo taller, tono de documento — */
.legal-page { max-width: 760px; margin-inline: auto; padding: 140px 24px 96px; }
.legal-page h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 32px; }
.legal-page h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: .9375rem; }
.legal-page a { color: var(--paper); }
.legal-page small { color: var(--muted); font-family: var(--mono); font-size: .75rem; }

/* — 404: número gigante, salida clara — */
.notfound { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
.notfound .big { font-size: clamp(6rem, 24vw, 14rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0 0 16px; }

/* ============================================================
   CALMA — reduced-motion: la web entera funciona sin moverse.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .light { color: inherit; }
  .light { color: var(--g-green); }
  .work-img { opacity: 1; }
  .js .about-photo img { filter: none; }
  .caret { animation: none; }
  .brand-cursor { animation: none; }
}
