/* =========================================================
   Plisar — Landing page
   Diseño, prototipado y gestión de Packaging
   Sistema base + 3 variantes (editorial / swiss / manifesto)
   ========================================================= */

/* ---------- Tokens (Manifesto Dark) ---------- */
:root {
  /* Tipografías */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Paleta Manifesto — dark, audaz */
  --paper: #121110;
  --paper-2: #1c1a17;
  --ink: #F5F1E8;
  --ink-2: #A8A395;
  --rule: #2a2824;

  --accent: oklch(75% 0.18 75);    /* amarillo cálido */
  --accent-ink: #121110;
  --accent-2: oklch(70% 0.09 180);
  --accent-3: oklch(82% 0.10 85);

  /* Espaciado */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 2px;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  
  /* Color scheme para navegadores */
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { 
  /* scroll-behavior se activa solo con JavaScript en links */
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 4px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 26px; height: 26px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
  transition: clip-path 0.4s ease, background 0.3s;
}
.logo:hover .logo__mark { clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%, 0 60%); }
.nav__links { display: flex; gap: var(--s-6); font-size: 14px; }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.3s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 10px 18px;
  background: var(--accent);
  color: #121110;
  border-radius: var(--radius);
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s;
  touch-action: manipulation;
}
.nav__cta:hover { transform: translateY(-1px); background: var(--ink); color: var(--paper); }

@media (max-width: 780px) {
  .nav__links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { 
  padding: var(--s-6) 0 var(--s-7); 
  position: relative; 
  overflow: visible;
  contain: layout style;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
  display: flex; align-items: center; gap: 10px;
}
.hero__eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor;
}
.hero__title {
  font-size: clamp(48px, 10vw, 140px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero__lead {
  font-size: clamp(16px, 1.8vw, 22px);
  max-width: 50ch;
  color: var(--ink-2);
  margin-bottom: var(--s-6);
  line-height: 1.5;
}
.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  touch-action: manipulation;
}
.btn--primary { background: var(--accent); color: #121110; }
.btn--primary:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { transition: transform 0.2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Arte geométrico del hero */
.hero__art {
  position: relative;
  height: 320px;
  margin-top: var(--s-7);
}
.shape {
  position: absolute;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero:hover .shape {
  will-change: transform;
}
.shape--box {
  width: 280px; height: 280px;
  background: var(--accent);
  top: 40px; left: 6%;
}
.shape--circle {
  width: 220px; height: 220px;
  background: var(--ink);
  border-radius: 50%;
  top: 140px; left: 28%;
}
.shape--arc {
  width: 320px; height: 320px;
  background: oklch(55% 0.15 20);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  top: 20px; right: 20%;
  transform: rotate(22deg);
}
.shape--fold {
  width: 180px; height: 260px;
  background: transparent;
  border: 1px solid var(--ink);
  top: 220px; right: 6%;
  transform: rotate(-8deg);
}
.shape--fold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 49%, var(--ink) 49%, var(--ink) 51%, transparent 51%);
  opacity: 0.15;
}
.hero:hover .shape--box { transform: translate(6px, -6px); }
.hero:hover .shape--circle { transform: translate(-4px, 8px); }
.hero:hover .shape--arc { transform: rotate(18deg) translateX(-6px); }
.hero:hover .shape--fold { transform: rotate(-5deg) translate(4px, -4px); }

@media (max-width: 1200px) {
  .hero {
    min-height: 85vh;
  }
  .hero__title {
    font-size: clamp(42px, 9vw, 120px);
  }
  .hero__art { height: 280px; }
}

@media (max-width: 780px) {
  .hero {
    min-height: auto;
    padding: var(--s-5) 0 var(--s-6);
  }
  .hero__title {
    font-size: clamp(36px, 11vw, 72px);
    line-height: 1.1;
  }
  .hero__lead {
    font-size: 16px;
    margin-bottom: var(--s-5);
  }
  .hero__art { 
    height: 260px;
    margin-top: var(--s-6);
  }
  .shape--box { width: 140px; height: 140px; }
  .shape--circle { width: 100px; height: 100px; }
  .shape--arc { width: 180px; height: 180px; }
  .shape--fold { width: 100px; height: 130px; }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(32px, 12vw, 56px);
  }
  .hero__art { height: 200px; }
}

/* Marquee de capacidades */
.marquee {
  border-block: 1px solid var(--rule);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 40px);
  background: var(--paper-2);
}
.marquee__track {
  display: inline-flex;
  gap: var(--s-7);
  animation: marquee 40s linear infinite;
}
.marquee span { display: inline-flex; align-items: center; gap: var(--s-7); }
.marquee span::after {
  content: "✦"; color: var(--accent); font-style: normal; font-size: 20px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   PROCESO
   ========================================================= */
.section { padding: var(--s-10) 0; }
.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
  align-items: end;
}
.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section__title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
}
.section__title em { font-style: italic; color: var(--accent); }
@media (max-width: 780px) {
  .section__head { grid-template-columns: 1fr; gap: var(--s-4); }
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  border-top: 1px solid var(--ink);
}
.step {
  padding: var(--s-6) var(--s-4) var(--s-6) 0;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-4);
  position: relative;
  transition: background-color 0.3s;
  contain: layout style;
}
.step:last-child { border-right: 0; }
.step:hover { background: color-mix(in oklch, var(--paper-2) 60%, transparent); }
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step__art {
  width: 80px; height: 80px;
  position: relative;
  margin-bottom: var(--s-2);
}
.step__art--1 { background: var(--ink); }
.step__art--1::after {
  content:""; position: absolute; inset: 16px;
  border: 1px solid var(--paper);
}
.step__art--2 {
  background: var(--accent);
  border-radius: 50%;
}
.step__art--2::after {
  content:""; position: absolute; left: 50%; top: 50%;
  width: 60%; height: 1px; background: var(--accent-ink);
  transform: translate(-50%, -50%) rotate(-25deg);
}
.step__art--3 {
  background: oklch(55% 0.15 20);
  clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
}
.step__art--4 {
  background: transparent;
  border: 1px solid var(--ink);
  transform: rotate(-4deg);
}
.step__art--4::before, .step__art--4::after {
  content: ""; position: absolute; background: var(--ink);
}
.step__art--4::before { top: 25%; left: 0; right: 0; height: 1px; }
.step__art--4::after  { top: 55%; left: 0; right: 0; height: 1px; opacity: 0.4; }

.step__title {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.step__text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.step__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--rule);
}
@media (max-width: 980px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACTO / FORMULARIO
   ========================================================= */
.contact {
  background: var(--accent);
  color: #121110;
  padding: var(--s-10) 0;
  position: relative;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: #121110;
  top: -180px; right: -160px;
  opacity: 0.9;
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-9);
  position: relative;
}
.contact__copy .section__label { color: color-mix(in oklch, #121110 70%, transparent); }
.contact__title {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
}
.contact__title em { 
  font-style: italic; 
  color: #121110;
  text-decoration: underline;
  text-decoration-thickness: 6px;
}
.contact__lead {
  font-size: 18px;
  color: color-mix(in oklch, #121110 75%, transparent);
  max-width: 40ch;
  margin-bottom: var(--s-7);
}
.contact__info {
  display: grid; gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid color-mix(in oklch, #121110 25%, transparent);
}
.info-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); font-size: 14px; }
.info-row__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in oklch, #121110 60%, transparent); padding-top: 3px; }

.form {
  background: #121110;
  color: var(--ink);
  padding: var(--s-8);
  border-radius: 4px;
  position: relative;
  contain: layout style;
  max-width: 600px;
}
.form__intro {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Barra de progreso mejorada */
.form__progress {
  height: 2px;
  background: var(--rule);
  margin-bottom: var(--s-8);
  border-radius: 2px;
  overflow: hidden;
}
.form__progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 33.33%;
}

/* Pasos del formulario - mejores transiciones */
.form__step {
  display: none;
  min-height: 400px;
}
.form__step.is-active {
  display: block;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form__step-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
  line-height: 1.1;
  color: var(--ink);
}
.form__step-help {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: var(--s-7);
  line-height: 1.6;
  max-width: 45ch;
}

/* Navegación entre pasos mejorada */
.form__nav {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.btn--step {
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  min-height: 48px;
  color: var(--ink);
  cursor: pointer;
}
.btn--step:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn--step:active {
  transform: translateY(0);
}
.btn--next {
  margin-left: auto;
  background: var(--accent);
  border-color: var(--accent);
  color: #121110;
  font-weight: 600;
}
.btn--next:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
}

/* Campos mejorados con FONDO OSCURO VISIBLE */
.field { 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  margin-bottom: var(--s-6);
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}
.field label .req { 
  color: var(--accent); 
  font-size: 14px;
  margin-left: 4px;
}

/* Inputs con fondo oscuro - SOLUCIONA el problema de contraste */
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--ink-2);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #1c1a17;
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.1);
}
.field input::placeholder,
.field textarea::placeholder { 
  color: var(--ink-2);
  opacity: 0.6;
}

/* Select mejorado con icono claro */
.field select { 
  padding-right: 40px; 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F5F1E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 8px; 
  background-position: right 16px center; 
  background-repeat: no-repeat;
  cursor: pointer;
}
.field textarea { 
  resize: vertical; 
  min-height: 120px; 
  line-height: 1.6;
}

/* Estados de error mejorados */
.field--error input,
.field--error textarea,
.field--error select { 
  border-color: var(--accent); 
  background: rgba(255, 200, 87, 0.05);
}
.field__error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: var(--s-2);
  min-height: 16px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field__error::before {
  content: "⚠";
  font-size: 14px;
}
.field__help {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: var(--s-2);
  line-height: 1.5;
}

/* Campos flotantes - ELIMINADOS para simplificar */
/* Radio buttons rediseñados - más grandes y claros */
.field--radios {
  border: 0;
  padding: 0;
  margin: 0 0 var(--s-6) 0;
}
.field--radios legend {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--s-3);
  min-height: 56px;
  background: transparent;
}
.radio:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  transform: translateX(4px);
}
.radio input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.radio span {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.radio:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 200, 87, 0.08);
}
.radio:has(input:checked) span {
  font-weight: 500;
}

/* Dropzone mejorado */
.field--drop {
  margin-bottom: var(--s-6);
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-7);
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 140px;
  background: var(--paper-2);
  text-align: center;
}
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--accent);
  background: rgba(255, 200, 87, 0.05);
}
.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(255, 200, 87, 0.1);
  transform: scale(1.02);
}
.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dropzone__icon {
  font-size: 36px;
  color: var(--accent);
}
.dropzone__copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.dropzone__copy em {
  font-size: 12px;
  color: var(--ink-2);
  font-style: normal;
  line-height: 1.5;
}

/* Submit button mejorado */
.form__submit {
  width: 100%;
  padding: 18px 24px;
  background: var(--accent);
  color: #121110;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
  min-height: 56px;
  touch-action: manipulation;
  border: 0;
  cursor: pointer;
}
.form__submit:hover:not(:disabled) { 
  background: var(--ink); 
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 200, 87, 0.3);
}
.form__submit:active:not(:disabled) {
  transform: translateY(0);
}
.form__submit:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  pointer-events: none; 
}
.form__note { 
  font-size: 12px; 
  color: var(--ink-2); 
  margin-top: var(--s-4); 
  text-align: center;
  line-height: 1.6;
}

/* Success state mejorado */
.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-5);
  padding: var(--s-8) 0;
}
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: flex; }
.form.is-sent .form__progress { display: none; }
.form.is-sent .form__intro { display: none; }
.form__success-mark {
  width: 72px; height: 72px; 
  border-radius: 50%;
  background: var(--accent); 
  color: #121110;
  display: grid; 
  place-items: center;
  font-size: 36px;
  animation: successPop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes successPop {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.form__success h3 { 
  font-size: 32px; 
  letter-spacing: -0.02em;
  color: var(--ink);
}
.form__success p { 
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.6;
}
.form__success button { 
  font-family: var(--font-mono); 
  font-size: 12px; 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  color: var(--accent); 
  text-decoration: underline;
  padding: var(--s-3);
  min-height: 36px;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color 0.2s;
}
.form__success button:hover {
  color: var(--ink);
}
.form__success-meta {
  margin-top: var(--s-2);
  font-size: 14px;
}
.form__success-meta a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive del formulario */
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .form { 
    padding: var(--s-6); 
    max-width: 100%;
  }
  .form__step {
    min-height: 380px;
  }
  .form__step-title {
    font-size: clamp(24px, 6vw, 32px);
  }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.footer__inner {
  display: flex; justify-content: space-between; gap: var(--s-5);
  flex-wrap: wrap;
  color: var(--ink-2);
}
.footer__copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Prefers Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee__track {
    animation: none;
  }

  .form__step.is-active {
    animation: none;
  }
}

/* =========================================================
   Prefers High Contrast
   ========================================================= */
@media (prefers-contrast: high) {
  :root {
    --ink: oklch(10% 0 0);
    --paper: oklch(98% 0 0);
    --accent: oklch(50% 0.2 40);
  }
}
