/* ===========================================================
   COLORES DE MARCA — cambia estos valores por los tuyos
   =========================================================== */
:root {
  --tinta: #3b0b13;        /* texto principal */
  --tinta-suave: #6e4f52;  /* texto secundario */
  --papel: #fcfaee;        /* fondo base */
  --acento: #3b0b13;       /* botones y detalles */
  --acento-texto: #fcfaee;
  --dorado: #d4a02a;       /* firma dorada */
  --sobre: #f2e8d5;        /* lo actualiza el código con el sobre elegido */

  --fuente-titulos: "Cormorant Garamond", Georgia, serif;
  --fuente-texto: "futura-pt", "Futura PT", "Jost", system-ui, sans-serif; /* Futura light; Jost es la alternativa libre */
  --radio: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 800px at 70% 40%, color-mix(in srgb, var(--sobre) 16%, #fffaf2) 0%, transparent 70%),
    radial-gradient(900px 700px at 10% 90%, color-mix(in srgb, var(--sobre) 10%, var(--papel)) 0%, transparent 70%),
    var(--papel);
  background-attachment: fixed;
  transition: background-color .6s;
  overflow-x: hidden;
}

#escena {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

/* ---------- Marca y navegación ---------- */
.marca {
  position: fixed;
  top: 22px;
  left: 6vw;
  z-index: 5;
}
.marca__nombre {
  font-family: var(--fuente-titulos);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--tinta);
  text-decoration: none;
  letter-spacing: -.01em;
}

.pasos {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pasos a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--tinta-suave);
  text-decoration: none;
  font-size: 13px;
}
.pasos a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background .3s, transform .3s;
}
.pasos a span { opacity: 0; transform: translateX(6px); transition: .3s; }
.pasos a:hover span, .pasos a.activo span { opacity: 1; transform: none; }
.pasos a.activo { color: var(--tinta); }
.pasos a.activo::after { background: var(--acento); border-color: var(--acento); transform: scale(1.25); }

/* ---------- Secciones ---------- */
form { position: relative; z-index: 2; margin: 0; }

.seccion {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 6vw;
  pointer-events: none; /* deja pasar clics al 3D */
}
.seccion > * { pointer-events: auto; }

.intro { max-width: 660px; }
.intro h1 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 10px 0 18px;
}
.intro h1 em { font-style: normal; }
.firma-artista { display: block; width: min(250px, 52%); height: auto; margin: -52px 0 0 36%; position: relative; pointer-events: none; }
.intro__texto { font-size: 19px; font-weight: 300; color: var(--tinta-suave); max-width: 420px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 300;
  color: var(--acento);
  margin: 0;
}

.scroll-hint {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--tinta-suave);
}
.scroll-hint span {
  width: 22px; height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: currentColor;
  animation: rueda 1.6s infinite;
}
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.panel {
  width: min(430px, 100%);
  background: rgba(253, 251, 240, .7);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radio);
  padding: 30px 30px 28px;
  box-shadow: 0 20px 60px -30px rgba(43, 42, 51, .35);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s;
}
.panel.visible { opacity: 1; transform: none; }
.panel h2 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 8px 0 8px;
}
.panel > p { color: var(--tinta-suave); font-weight: 300; margin: 0 0 18px; }

/* ---------- Colores ---------- */
.colores { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.color {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.color:hover { transform: scale(1.08); }
.color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--tinta); transform: scale(1.1); }
.eleccion { margin: 14px 0 0; font-family: var(--fuente-titulos); font-weight: 600; font-size: 21px; min-height: 1.2em; }

/* ---------- Técnicas ---------- */
.tecnicas { display: grid; gap: 7px; }
.tecnica {
  text-align: left;
  font: inherit;
  color: inherit;
  background: rgba(255,255,255,.6);
  border: 1.5px solid rgba(43,42,51,.12);
  border-radius: 14px;
  padding: 9px 14px;
  cursor: pointer;
  display: grid;
  gap: 0;
  transition: border-color .25s, background .25s, transform .25s;
}
.tecnica strong { font-family: var(--fuente-titulos); font-weight: 600; font-size: 21px; }
.tecnica span { font-size: 13px; color: var(--tinta-suave); }
.tecnica:hover { transform: translateX(4px); }
.tecnica[aria-checked="true"] { border-color: var(--acento); background: #fff; }

/* ---------- Campos ---------- */
.campo { display: grid; gap: 6px; margin-bottom: 14px; position: relative; }
.campo > span { font-size: 14px; color: var(--tinta); }
.campo input, .campo textarea {
  font: inherit;
  color: var(--tinta);
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid rgba(43,42,51,.14);
  background: rgba(255,255,255,.8);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.campo input:focus, .campo textarea:focus {
  border-color: var(--acento);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 18%, transparent);
}
.campo.error input, .campo.error textarea { border-color: #c0392b; }
.contador { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--tinta-suave); }

.rejilla { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.campo--ancho { grid-column: 1 / -1; }
.rejilla .campo { margin-bottom: 10px; }

/* ---------- Envío ---------- */
.resumen { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.resumen li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(43,42,51,.18); padding-bottom: 8px; }
.resumen li span:first-child { color: var(--tinta-suave); }
.resumen li span:last-child { color: var(--tinta); text-align: right; }
.resumen .falta { color: #c0392b; }
.aviso { color: #c0392b; font-size: 14px; min-height: 1em; margin: 0 0 10px; }

.boton {
  font: inherit;
  letter-spacing: .03em;
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--acento);
  color: var(--acento-texto);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--acento) 70%, transparent);
}
.boton:hover { transform: translateY(-2px); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton--claro { width: auto; padding: 14px 34px; }

.gracias {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background: color-mix(in srgb, var(--papel) 70%, transparent);
  backdrop-filter: blur(6px);
  animation: aparecer .8s both;
}
.gracias[hidden] { display: none; }
.gracias > div { max-width: 480px; }
.gracias h2 { font-family: var(--fuente-titulos); font-weight: 600; font-size: 40px; line-height: 1.1; margin: 10px 0; }
.gracias p { color: var(--tinta-suave); }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .seccion { align-items: flex-end; padding: 80px 18px 22px; }
  .seccion--intro { align-items: flex-end; }
  .panel { padding: 22px 20px; background: rgba(255,252,247,.82); }
  .panel h2 { font-size: 28px; }
  .pasos { right: 10px; gap: 12px; }
  .pasos a span { display: none; }
  .marca { left: 18px; top: 16px; }
  .intro { padding-bottom: 30px; }
  .intro h1 { font-size: 40px; }
  .rejilla { grid-template-columns: 1fr 1fr; }
  .campo textarea { height: 110px; }
  .panel > p { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transition: none; }
}

/* ---------- Idea de la obra y foto de referencia ---------- */
.campo--idea { margin-top: 14px; }
.subir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.subir__boton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--tinta) 40%, transparent);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--tinta);
  transition: background .2s, border-color .2s;
}
.subir__boton:hover { background: rgba(255,255,255,.7); border-color: var(--tinta); }
.subir__boton small { color: var(--tinta-suave); font-size: 12px; }
.subir__vista { position: relative; }
.subir__vista img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.subir__vista button {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--tinta); color: var(--acento-texto);
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
}
.subir__vista[hidden] { display: none; }

/* ---------- Datos de contacto ---------- */
.subtitulo { font-family: var(--fuente-titulos); font-weight: 600; font-size: 22px; margin: 6px 0 10px; }
.resumen { margin-top: 6px; }
