/* L'Espai d'Emma · estilos compartidos de la tienda.
   Un solo tema claro a propósito: los colores de marca y las fotos se ven siempre igual. */
:root {
  --lino: #F7F3EC;
  --blanco: #FFFDF9;
  --avena: #EADFCF;
  --arena: #F0E6D6;
  --chenilla: #A89582;
  --cacao: #3D342C;
  --suave: #6A5F55;
  --linea: #E2D8C9;
  --menta-clara: #DCEDE9;
  --menta: #A7CBC5;
  --menta-honda: #3F7A72;
  --menta-texto: #37706A;
  --mostaza: #B98428;
  --alerta: #9A4B36;

  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radio: 6px;
  --ancho: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lino);
  color: var(--cacao);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--menta-texto); text-underline-offset: 3px; }
a:hover { color: var(--menta-honda); }
:focus-visible { outline: 2px solid var(--menta-honda); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--menta-texto); }
.lead { font-size: 1.2rem; color: var(--cacao); max-width: 54ch; }
.muted { color: var(--suave); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Vichy menta: la tela de la marca */
.vichy {
  background-color: var(--menta-clara);
  background-image:
    repeating-linear-gradient(90deg, rgba(63,122,114,.38) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, rgba(63,122,114,.38) 0 8px, transparent 8px 16px);
}
.vichy-band { height: 10px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--menta-honda); background: var(--menta-honda); color: var(--blanco);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: #336760; border-color: #336760; color: var(--blanco); }
.btn.ghost { background: transparent; color: var(--menta-honda); }
.btn.ghost:hover { background: var(--menta-clara); color: var(--menta-honda); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--avena); border-color: var(--avena); color: var(--suave); cursor: not-allowed; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }

/* Pespunte: borde discontinuo como el de la etiqueta del logo */
.stitch { position: relative; background: var(--menta-clara); border-radius: var(--radio); }
.stitch::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--menta-honda); border-radius: 4px; pointer-events: none; }

/* Chips de estado */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.disponible { background: var(--menta-clara); color: var(--menta-texto); }
.chip.reservado { background: #F3E6CC; color: #7A5A17; }
.chip.vendido { background: var(--avena); color: var(--suave); }

/* Cabecera */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(247,243,236,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--cacao); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--menta-honda); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--linea); }
.lang button { border: 0; background: transparent; font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; padding: 7px 9px; border-radius: 999px; cursor: pointer; color: var(--suave); }
.lang button[aria-pressed="true"] { background: var(--menta-clara); color: var(--menta-texto); }

/* Aviso de modo demo */
.demo-note { background: #F3E6CC; color: #5E4511; font-size: .85rem; text-align: center; padding: 6px 16px; }

/* Secciones */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; margin-bottom: 40px; }

/* Pie */
.site-footer { border-top: 1px solid var(--linea); padding-block: 48px 40px; background: var(--blanco); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; justify-content: space-between; }
.site-footer img { height: 44px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--cacao); text-decoration: none; }
.site-footer a:hover { color: var(--menta-honda); text-decoration: underline; }
.site-footer .legal { margin-top: 32px; font-size: .85rem; color: var(--suave); }

@media (max-width: 860px) {
  .nav { gap: 0; }
  .nav a:not(:last-child) { display: none; }
  .nav a { font-size: .9rem; }
  .site-header .bar { gap: 12px; }
  .brand img { height: 34px; }
}
@media (max-width: 420px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .brand img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Prelanzamiento: barra fija bajo la cabecera */
.pre-bar { background: var(--menta-clara); border-top: 1.5px dashed var(--menta-honda); }
.pre-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 8px; }
.pre-bar p { margin: 0; font-size: .92rem; font-weight: 600; color: var(--menta-texto); line-height: 1.35; }
.pre-bar .btn { flex: none; }
@media (max-width: 600px) {
  .pre-bar p { font-size: .8rem; }
}
