/* Estilos base de neuscruz.com
   Requiere Fraunces, Nunito Sans y Caveat de Google Fonts (ver GUIA.md). */

:root {
  --night: #1b2140;
  --night-2: #252c52;
  --cream: #f7f0e4;
  --paper: #fffaf2;
  --ink: #2a2a3a;
  --muted: #6b6878;
  --gold: #e3b04b;
  --gold-hover: #edc164;
  --thread: #b8483a;
  --thread-hover: #a23d31;
  --sage: #6f8f7a;
  --wood: #c89a64;
  --linen: #efe3cf;
  --aida: #f3ead9;

  --font-title: "Fraunces", Georgia, serif;
  --font-text: "Nunito Sans", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 18px;
  --radius-sm: 14px;
  --maxw: 1080px;
  --gutter: 20px;
  --section: 72px;

  --shadow-rest: 0 1px 0 rgba(0,0,0,.04);
  --shadow-block: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(27,33,64,.06);
  --shadow-hover: 0 16px 34px rgba(27,33,64,.1);

  --sky:
    radial-gradient(ellipse at 20% 0%, #34407a 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, #3a2a55 0%, transparent 50%),
    var(--night);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-title); }
h1 {
  font-weight: 400; font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02; letter-spacing: -.01em; margin: 0 0 22px;
}
h1 em { font-style: italic; color: var(--gold); }
h2 { font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.25; margin: 0 0 8px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--thread); margin: 0 0 10px;
}
.kicker { font-family: var(--font-hand); font-size: 30px; line-height: 1.1; color: var(--gold); margin: 0 0 6px; }
.lead { font-size: 19px; max-width: 34ch; margin: 0 0 30px; }
.intro { max-width: 60ch; color: var(--muted); margin: 0; }
.hand { font-family: var(--font-hand); font-size: 24px; line-height: 1.1; }

/* ---------- Fondo noche ---------- */
.night, .hero {
  position: relative; overflow: hidden;
  color: var(--cream); background: var(--sky);
}
.night .lead, .hero .lead { color: rgba(247,240,228,.85); }
.hero { padding: 28px 0 96px; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.night > .wrap, .hero > .wrap { position: relative; }

/* Separador cosido: va justo después de un bloque noche */
.seam {
  height: 22px; margin-top: -22px; position: relative;
  background: var(--cream); border-radius: 22px 22px 0 0;
}
.seam::after {
  content: ""; position: absolute; left: 20px; right: 20px; top: 10px;
  border-top: 2px dashed rgba(184,72,58,.45);
}

/* ---------- Botones ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1.2 var(--font-text); text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { background: transparent; border: 1px solid rgba(247,240,228,.4); color: var(--cream); }
.btn-ghost:hover { background: rgba(247,240,228,.08); }
.btn-thread { background: var(--thread); color: var(--paper); }
.btn-thread:hover { background: var(--thread-hover); }

/* ---------- Etiqueta de estado ---------- */
.pill {
  border: 1px solid rgba(247,240,228,.3); border-radius: 999px; padding: 6px 14px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; letter-spacing: .04em;
}
.pill i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Bastidor con foto ---------- */
.hoop { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.hoop::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 12px solid var(--wood);
  box-shadow: inset 0 0 0 2px #a97c4a, 0 20px 50px rgba(0,0,0,.35);
}
.hoop::after {
  content: ""; position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 26px; border-radius: 6px; background: #b0814d;
  box-shadow: inset 0 -4px 0 #94683a;
}
.hoop img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hoop .stitch {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 2px dashed rgba(255,250,242,.7); pointer-events: none;
}

/* Nota manuscrita en papel */
.note {
  display: inline-block; background: var(--paper); color: var(--ink);
  font-family: var(--font-hand); font-size: 24px; line-height: 1.1;
  padding: 10px 16px; border-radius: 12px; transform: rotate(-4deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.hoop .note { position: absolute; bottom: -18px; left: -36px; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 26px 22px 24px;
  position: relative; box-shadow: var(--shadow-rest);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 8px; border-radius: 12px;
  border: 1.5px dashed transparent; transition: border-color .25s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card:hover::before { border-color: rgba(184,72,58,.35); }
.card > svg { width: 44px; height: 44px; margin-bottom: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Enlaces en lista ---------- */
.links { display: grid; gap: 10px; }
.link {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border-radius: var(--radius-sm); padding: 16px 18px;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.link:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(27,33,64,.08); }
.link svg { width: 22px; height: 22px; flex: none; color: var(--thread); }
.link div { flex: 1; min-width: 0; }
.link strong { display: block; font-weight: 700; font-size: 16px; }
.link small { display: block; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.link .arrow { color: var(--muted); font-size: 20px; }

/* ---------- Bloque de encargo ---------- */
.commission {
  padding: 22px; border-radius: var(--radius);
  background: var(--linen); border: 1.5px dashed rgba(184,72,58,.4);
}
.commission p { margin: 0 0 14px; }

/* ---------- Bloque de cita ---------- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 26ch;
  font-family: var(--font-title); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25;
}
.quote blockquote span { color: var(--gold); }
.quote cite {
  display: block; margin-top: 18px; font-style: normal;
  font-family: var(--font-hand); font-size: 26px; color: rgba(247,240,228,.75);
}
.bigstar { position: absolute; color: var(--gold); opacity: .3; }

/* ---------- Tela de punto de cruz ---------- */
.panel {
  background: var(--paper); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-block);
}
.aida {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(20px, 1fr)); gap: 3px;
  padding: 12px; border-radius: 10px; background-color: var(--aida);
  background-image:
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 23px 23px;
}
.aida b { aspect-ratio: 1; position: relative; }
.aida b::before, .aida b::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 120%; height: 3px; border-radius: 2px; background: var(--thread);
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
  transition: transform .25s ease;
}
.aida b::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
.aida b.on::before { transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
.aida b.on::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); transition-delay: .12s; }
.aida b.alt::before, .aida b.alt::after { background: var(--sage); }
.aida b.gold::before, .aida b.gold::after { background: var(--gold); }

/* ---------- Pie ---------- */
footer {
  padding: 34px 0 40px; color: var(--muted); font-size: 14px;
  border-top: 1px solid rgba(0,0,0,.07);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

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

/* ---------- Adaptación ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 56px; }
  body { font-size: 16px; }
  .lead { font-size: 17.5px; }
  .hero { padding-bottom: 80px; }
  .hoop .note { left: -8px; font-size: 21px; }
  .pill { font-size: 12px; padding: 5px 11px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
