/* ==========================================================================
   COMETA — Estudio de arte y grabado
   Paleta inspirada en tintas de imprenta (grabado / serigrafía).
   Personaliza los tokens en :root para adaptar a tu propia marca.
   ========================================================================== */

:root {
  --paper: #fdfbf7;
  --surface: #f3efe6;
  --ink: #17181a;
  --ink-soft: #55575c;
  --hairline: rgba(23, 24, 26, 0.12);

  /* paleta de "tintas" */
  --magenta: #e8407a;
  --indigo: #3b4cca;
  --yellow: #f4b400;
  --teal: #12897d;

  --ease-ink: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

body {
  background: var(--paper);
}

/* Tailwind arbitrary color helpers used in the HTML (bg-paper, bg-ink, etc.) */
.bg-paper { background-color: var(--paper); }
.bg-surface { background-color: var(--surface); }
.bg-ink { background-color: var(--ink); }
.text-paper { color: var(--paper); }
.text-ink { color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* LOGOMARCA — tres puntos de tinta                                        */
/* ---------------------------------------------------------------------- */

.ink-dots {
  display: inline-flex;
  width: 26px;
  height: 20px;
  position: relative;
}
.dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  mix-blend-mode: multiply;
  top: 3px;
}
.dot-magenta { background: var(--magenta); left: 0; }
.dot-indigo  { background: var(--indigo); left: 7px; }
.dot-teal    { background: var(--teal); left: 14px; }

/* ---------------------------------------------------------------------- */
/* NAV                                                                     */
/* ---------------------------------------------------------------------- */

#site-nav {
  background: rgba(253, 251, 247, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-ink), border-color .3s var(--ease-ink);
}
#site-nav.scrolled {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-link {
  color: var(--ink);
  opacity: 0.7;
  transition: opacity .2s var(--ease-ink);
}
.nav-link:hover { opacity: 1; }

.mobile-link { display: block; color: var(--ink); padding: 6px 0; }

/* ---------------------------------------------------------------------- */
/* TIPOGRAFÍA                                                              */
/* ---------------------------------------------------------------------- */

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--yellow); }

.hero-title {
  position: relative;
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-title .layer {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}
.hero-title .layer-magenta { color: var(--magenta); transform: translate(4px, 3px); }
.hero-title .layer-teal    { color: var(--teal); transform: translate(-4px, -2px); }
.hero-title .layer-main    { position: relative; color: var(--ink); }

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
}
.section-title--light { color: var(--paper); }

.section-sub {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.section-sub--light { color: rgba(253, 251, 247, 0.7); }

/* ---------------------------------------------------------------------- */
/* BOTONES                                                                  */
/* ---------------------------------------------------------------------- */

.btn-solid {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform .2s var(--ease-ink), background-color .2s var(--ease-ink);
}
.btn-solid:hover { background: var(--indigo); transform: translateY(-1px); }

.btn-line {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 23px;
  border-radius: 999px;
  transition: background-color .2s var(--ease-ink), color .2s var(--ease-ink);
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  background: var(--magenta);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background-color .2s var(--ease-ink);
}
.btn-pill:hover { background: var(--indigo); }

/* ---------------------------------------------------------------------- */
/* PLACEHOLDERS DE IMAGEN                                                   */
/* ---------------------------------------------------------------------- */

.art-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 1px dashed;
  overflow: hidden;
}
.art-placeholder span {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.55;
}

.ph-indigo  { background: rgba(59, 76, 202, 0.08);  border-color: rgba(59, 76, 202, 0.35); }
.ph-magenta { background: rgba(232, 64, 122, 0.08); border-color: rgba(232, 64, 122, 0.35); }
.ph-teal    { background: rgba(18, 137, 125, 0.08); border-color: rgba(18, 137, 125, 0.35); }
.ph-yellow  { background: rgba(244, 180, 0, 0.12);  border-color: rgba(244, 180, 0, 0.4); }
.ph-neutral { background: rgba(23, 24, 26, 0.05);   border-color: rgba(23, 24, 26, 0.25); }

/* Marcas de registro — motivo decorativo tomado del grabado/serigrafía */
.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.35;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  color: var(--ink);
}
.reg-mark::before { top: 10px; left: 10px; }
.reg-mark::after { bottom: 10px; right: 10px; }

/* ---------------------------------------------------------------------- */
/* TARJETAS — obras                                                         */
/* ---------------------------------------------------------------------- */

.work-card-body { padding-top: 18px; }
.work-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 6px 0 8px;
  color: var(--ink);
}
.work-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

.work-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-indigo  { background: rgba(59, 76, 202, 0.12); color: var(--indigo); }
.tag-magenta { background: rgba(232, 64, 122, 0.12); color: var(--magenta); }
.tag-teal    { background: rgba(18, 137, 125, 0.12); color: var(--teal); }
.tag-yellow  { background: rgba(244, 180, 0, 0.18); color: #8a5f00; }

.work-price {
  margin-top: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* TARJETAS — piezas pequeñas                                              */
/* ---------------------------------------------------------------------- */

.mini-card { text-align: left; }
.mini-tag {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
}
.mini-price {
  margin-top: 2px;
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: rgba(253, 251, 247, 0.6);
}

/* ---------------------------------------------------------------------- */
/* PASOS — comisiones                                                       */
/* ---------------------------------------------------------------------- */

.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--indigo);
  padding-top: 3px;
  flex-shrink: 0;
}
.step h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}
.step p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* FORMULARIO DE COMISIÓN                                                   */
/* ---------------------------------------------------------------------- */

.commission-form {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}
.field textarea { resize: vertical; }

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 18px;
}

/* ---------------------------------------------------------------------- */
/* HERRAMIENTAS                                                            */
/* ---------------------------------------------------------------------- */

.tool-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  margin: 14px 0 6px;
  color: var(--ink);
}
.tool-card p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* FOOTER                                                                   */
/* ---------------------------------------------------------------------- */

.footer-heading {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .2s var(--ease-ink);
}
.footer-link:hover { color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* HOVER — tarjetas                                                         */
/* ---------------------------------------------------------------------- */

.work-card, .mini-card, .tool-card { transition: transform .3s var(--ease-ink); }
.work-card:hover, .mini-card:hover, .tool-card:hover { transform: translateY(-4px); }

/* ---------------------------------------------------------------------- */
/* SCROLL REVEAL                                                           */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-ink), transform .7s var(--ease-ink);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
