/* =========================================================
   OHARA ARCHIVE — hoja de estilos principal
   Identidad: Vintage Grape / Ink Black / Periwinkle / White
   No hace falta tocar este archivo para añadir productos.
   ========================================================= */

/* ---------- Tipografías ---------- */
@font-face {
  font-family: 'Tagesschrift';
  src: url('../fonts/tagesschrift-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Buccario';
  src: url('../fonts/buccario.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Coelacanth';
  src: url('../fonts/coelacanth-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Coelacanth';
  src: url('../fonts/coelacanth-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Coelacanth';
  src: url('../fonts/coelacanth-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens de marca ---------- */
:root {
  --grape: #3D2D51;
  --ink: #0B0516;
  --peri: #D3C0FB;
  --white: #FFFFFF;

  --ink-2: #140B23;          /* ink aclarado para tarjetas */
  --ink-3: #1D1230;          /* bordes y separadores */
  --paper: #F7F4FB;          /* papel de archivo */
  --paper-2: #EDE7F6;
  --text-dark: #E9E3F6;      /* texto sobre ink */
  --text-mute: #A99BC4;

  --font-display: 'Tagesschrift', Georgia, 'Times New Roman', serif;
  --font-body: 'Coelacanth', 'Iowan Old Style', Georgia, serif;
  --font-name: 'Buccario', 'Tagesschrift', Georgia, serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --t: 220ms cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05vw + 14px, 19px);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--peri); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 2px; }

/* ---------- Cielo estrellado de fondo ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(211,192,251,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 8%,  rgba(211,192,251,.40), transparent 60%),
    radial-gradient(1.4px 1.4px at 33% 62%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 44%, rgba(211,192,251,.45), transparent 60%),
    radial-gradient(1px 1px at 58% 88%, rgba(211,192,251,.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 92%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(1px 1px at 68% 30%, rgba(211,192,251,.30), transparent 60%),
    radial-gradient(900px 620px at 72% -10%, rgba(61,45,81,.75), transparent 70%),
    radial-gradient(700px 520px at 5% 30%, rgba(61,45,81,.45), transparent 70%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--paper { background: var(--paper); color: var(--grape); }
.section--paper a { color: var(--grape); text-decoration: underline; text-underline-offset: .2em; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: 1.12em; color: var(--text-mute); }
.section--paper .lead { color: color-mix(in srgb, var(--grape) 78%, white); }

.eyebrow {
  font-family: var(--font-name);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  color: var(--peri);
  display: block;
  margin-bottom: 1.1em;
}
.section--paper .eyebrow { color: var(--grape); }
.eyebrow::before { content: '— '; opacity: .6; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .78em 1.5em;
  border: 1px solid var(--peri);
  border-radius: var(--radius);
  background: transparent;
  color: var(--peri);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: .8rem;
  cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t);
  text-decoration: none !important;
}
.btn:hover { background: var(--peri); color: var(--ink); transform: translateY(-1px); }
.btn--solid { background: var(--peri); color: var(--ink); }
.btn--solid:hover { background: var(--white); border-color: var(--white); }
.btn--grape { border-color: var(--grape); color: var(--grape); }
.btn--grape:hover { background: var(--grape); color: var(--white); }
.btn--grape-solid { background: var(--grape); border-color: var(--grape); color: var(--white); }
.btn--grape-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-3);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; color: var(--peri); flex: 0 0 auto; }
.brand:hover { text-decoration: none; color: var(--white); }
.brand svg { height: 34px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav a {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .78rem;
  color: var(--text-dark);
  padding-block: .4em;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--peri); border-bottom-color: var(--peri); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--ink-3); border-radius: var(--radius);
  color: var(--peri); padding: .5em .7em; cursor: pointer;
}
.basket-link { position: relative; }
.basket-count {
  display: inline-grid; place-items: center;
  min-width: 1.5em; height: 1.5em; padding-inline: .3em;
  border-radius: 999px; background: var(--peri); color: var(--ink);
  font-size: .68rem; font-family: var(--font-body); font-weight: 700;
  margin-left: .45em; line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
    padding: .5rem var(--gutter) 1.2rem;
  }
  .nav[data-open="false"] { display: none; }
  .nav a { padding-block: .85em; border-bottom: 1px solid var(--ink-3); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(70px, 12vw, 140px) clamp(60px, 9vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .35em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__mark { color: var(--peri); opacity: .95; filter: drop-shadow(0 0 60px rgba(211,192,251,.22)); }
.hero__mark svg { width: min(100%, 420px); margin-inline: auto; animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@media (prefers-reduced-motion: reduce) { .hero__mark svg { animation: none } }

/* ---------- Rejilla de productos ---------- */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
  padding: 0; margin: 0; list-style: none;
}
.card {
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--peri); transform: translateY(-3px); }
.card__media { aspect-ratio: 4 / 3; background: var(--grape); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__ref {
  position: absolute; top: .7rem; left: .7rem;
  font-family: var(--font-body); font-weight: 700; font-size: .66rem; letter-spacing: .16em;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--peri); padding: .28em .6em; border-radius: 2px;
}
.card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.22rem; }
.card__body h3 a { color: var(--text-dark); }
.card__body h3 a:hover { color: var(--peri); text-decoration: none; }
.card__desc { margin: 0; font-size: .92rem; color: var(--text-mute); }
.card__foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.precio { font-family: var(--font-display); font-size: 1.22rem; color: var(--peri); }
.badge {
  font-family: var(--font-body); font-weight: 700; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: .25em .7em; color: var(--text-mute);
}
.badge--agotado { color: #E7A2A2; }
.badge--encargo { color: var(--peri); }

/* ---------- Filtros ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filtro {
  background: transparent; border: 1px solid var(--ink-3); color: var(--text-mute);
  border-radius: 999px; padding: .45em 1.1em; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  transition: all var(--t);
}
.filtro:hover { color: var(--peri); border-color: var(--peri); }
.filtro[aria-pressed="true"] { background: var(--peri); border-color: var(--peri); color: var(--ink); }

/* ---------- Ficha de producto ---------- */
.ficha { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: start; }
@media (max-width: 880px) { .ficha { grid-template-columns: 1fr; } }
.ficha__galeria img { border-radius: var(--radius); border: 1px solid var(--ink-3); width: 100%; height: auto; }
.ficha__galeria > img { aspect-ratio: 4 / 3; object-fit: cover; }
.ficha__miniaturas { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.ficha__miniaturas button { padding: 0; border: 1px solid var(--ink-3); border-radius: 2px; background: none; cursor: pointer; width: 76px; }
.ficha__miniaturas button[aria-current="true"] { border-color: var(--peri); }
.ficha__precio { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--peri); margin: .2em 0 .6em; }
.ficha dl { display: grid; grid-template-columns: auto 1fr; gap: .45em 1.2em; margin: 1.6rem 0 0; font-size: .95rem; }
.ficha dt { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--text-mute); padding-top: .35em; }
.ficha dd { margin: 0; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.15rem; max-width: 640px; }
.form--ancho { max-width: none; }
.campo { display: grid; gap: .4rem; }
.campo label {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: .7rem; color: var(--text-mute);
}
.section--paper .campo label { color: color-mix(in srgb, var(--grape) 80%, white); }
.campo input, .campo textarea, .campo select {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: .75em .9em;
  color: var(--text-dark);
  width: 100%;
  transition: border-color var(--t);
}
.section--paper .campo input, .section--paper .campo textarea, .section--paper .campo select {
  background: var(--white); border-color: color-mix(in srgb, var(--grape) 25%, white); color: var(--grape);
}
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--peri); outline: none; }
.campo textarea { min-height: 150px; resize: vertical; }
.campo--fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .campo--fila { grid-template-columns: 1fr; } }
.ayuda { font-size: .85rem; color: var(--text-mute); margin: 0; }
.section--paper .ayuda { color: color-mix(in srgb, var(--grape) 70%, white); }
.campo--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.campo--check input { width: 1.1em; height: 1.1em; margin-top: .35em; }
.campo--check label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Solicitud (lista de pedido) ---------- */
.solicitud-tabla { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.solicitud-tabla th {
  text-align: left; font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .68rem; color: var(--text-mute);
  border-bottom: 1px solid var(--ink-3); padding: .6em .5em;
}
.solicitud-tabla td { padding: .9em .5em; border-bottom: 1px solid var(--ink-3); vertical-align: middle; }
.solicitud-tabla img { width: 62px; height: 62px; object-fit: cover; border-radius: 2px; }
.cant {
  width: 76px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  color: var(--text-dark);
  padding: .45em .55em;
}
.cant:focus { border-color: var(--peri); outline: none; }
.quitar { background: none; border: none; color: var(--text-mute); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: .2em .4em; }
.quitar:hover { color: #E7A2A2; }
.total-linea { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--font-display); font-size: 1.35rem; }

/* ---------- Avisos ---------- */
.aviso {
  border-left: 3px solid var(--peri);
  background: color-mix(in srgb, var(--grape) 35%, transparent);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}
.aviso--paper { background: var(--paper-2); border-left-color: var(--grape); color: var(--grape); }
.vacio { text-align: center; padding: 4rem 1rem; color: var(--text-mute); }

/* ---------- Bloques varios ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem); }
.bloque h3 { margin-bottom: .4em; }
.bloque p { font-size: .96rem; }
.separador { height: 1px; background: var(--ink-3); border: 0; margin-block: clamp(2rem,5vw,3.5rem); }
.cita {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35; max-width: 22ch; color: var(--peri);
}

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--ink-3); padding-block: clamp(48px, 7vw, 80px) 2.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand svg { width: 150px; color: var(--peri); margin-bottom: 1rem; }
.site-footer h4 {
  font-family: var(--font-name); text-transform: uppercase; letter-spacing: .18em;
  font-size: .7rem; color: var(--peri); margin: 0 0 1.1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.site-footer a { color: var(--text-mute); font-size: .92rem; }
.site-footer a:hover { color: var(--peri); }
.copy { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--ink-3); font-size: .82rem; color: var(--text-mute); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.copy p { margin: 0; max-width: none; }

/* ---------- Texto legal ---------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.por-rellenar { background: rgba(231,162,162,.18); border-bottom: 1px dashed #E7A2A2; padding: 0 .2em; border-radius: 2px; }
.section--paper .por-rellenar { background: #FBE9E9; }

/* Rótulo sin Buccario: para textos con acentos (categorías, datos variables) */
.eyebrow--plain { font-family: var(--font-body); font-weight: 700; letter-spacing: .2em; }
