/* =========================================================
   Jun Nudos — hoja de estilos
   Paleta, tipografía y componentes reutilizables.
   Edita las variables de :root para cambiar colores globales.
   ========================================================= */

:root {
  /* Colores de marca */
  --teal:        #17c3b2;   /* acento principal (mordisco, botones) */
  --teal-dark:   #109c8f;
  --collar-bg:   #0fcfa0;   /* fondo verde de la sección de collares */
  --sky:         #bfdfe7;   /* azul claro decorativo */

  /* Neutros */
  --ink:   #1c1c1e;         /* texto principal */
  --gray:  #7a7a7a;         /* texto secundario */
  --muted: #9e9e9e;         /* etiquetas / detalles */
  --line:  #ececec;         /* bordes */

  /* Superficies */
  --bg:      #ffffff;
  --bg-alt:  #f5f6f6;
  --card:    #ffffff;
  --shadow:  0 12px 30px rgba(0, 0, 0, .08);

  /* Tipografía y medidas */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1160px;
  --radius: 18px;
}

/* Tema oscuro */
:root[data-theme="dark"] {
  --ink:   #f2f2f3;
  --gray:  #b7b7ba;
  --muted: #8a8a90;
  --line:  #2c2c31;
  --bg:      #121214;
  --bg-alt:  #1a1a1d;
  --card:    #1c1c20;
  --shadow:  0 12px 30px rgba(0, 0, 0, .45);
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* Etiqueta pequeña reutilizable */
.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { color: var(--teal); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .8em 1.6em;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.logo__img { height: 48px; width: auto; }
.logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark  { display: none; }
:root[data-theme="dark"] .logo__img--light { display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { font-weight: 600; font-size: .95rem; color: var(--gray); transition: color .2s ease; }
.site-nav > a:hover { color: var(--teal); }
.site-nav .btn { color: #fff; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--teal); border-color: var(--teal); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 60px 22px 30px; }
.hero__title {
  font-size: clamp(2.1rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: capitalize;
  color: var(--ink);
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.hero__title .accent { color: var(--teal); }
.hero__stamp {
  display: inline-block;
  width: clamp(70px, 12vw, 128px);
  vertical-align: middle;
  margin-left: .1em;
  transform: translateY(-.12em);
}
.hero__media {
  margin: 34px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__media img { width: 100%; object-fit: cover; }

/* ---------- Fact ---------- */
.fact { text-align: center; padding: 70px 22px; }
.fact__big {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 10px;
}

/* ---------- Reglas ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding-block: 20px 70px;
}
.rule {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.rule__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 14px 0 12px;
}
.rule__text { color: var(--gray); font-size: 1.05rem; }

/* ---------- Menú ---------- */
.menu { padding-block: 30px 80px; }
.menu__head { text-align: center; margin-bottom: 46px; }
.menu__title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-top: 8px;
}

/* Botones de filtro del menú */
.menu__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -20px 0 44px;
}
.filter {
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  color: var(--gray);
  padding: .6em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter:hover { color: var(--teal); border-color: var(--teal); }
.filter.is-active { color: #fff; background: var(--teal); border-color: var(--teal); }
.menu-card.is-hidden { display: none; }
.menu__empty {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 10px;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.menu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.14); }
.menu-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; }
.menu-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.menu-card__title { font-size: 1.4rem; font-weight: 700; }
.menu-card__sub { color: var(--gray); margin-top: 4px; margin-bottom: 16px; }
.menu-card__prices { list-style: none; margin: auto 0 0; padding: 0; }
.menu-card__prices li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.menu-card__prices .qty { color: var(--gray); }
.menu-card__prices .price { font-weight: 700; color: var(--teal); }
.menu-card__note { margin-top: 12px; font-size: .82rem; font-style: italic; color: var(--muted); }

/* ---------- Intro nudos ---------- */
.knots-intro { text-align: center; padding: 40px 22px 0; }
.knots-intro__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  margin-top: 8px;
}

/* ---------- Correas y Collares ---------- */
.collares { padding: 60px 0 80px; }
.collares__inner {
  background: var(--collar-bg);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.collares__media { align-self: end; }
.collares__media img { width: 100%; max-width: 480px; margin-inline: auto; }
.collares__content { padding: 54px 48px 54px 20px; color: #06382d; }
.collares__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.collares__title span { display: block; }
.collares__text { font-size: 1.15rem; margin: 18px 0 28px; max-width: 34ch; }
.collares__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.collares__content .btn { background: #06382d; border-color: #06382d; }
.collares__content .btn:hover { background: #000; border-color: #000; }
.collares__content .btn--ghost { background: transparent; color: #06382d; border-color: #06382d; }
.collares__content .btn--ghost:hover { background: #06382d; color: var(--collar-bg); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  padding-block: 20px;
  background: var(--bg-alt);
}
.marquee__track {
  display: inline-flex;
  will-change: transform;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--teal);
  padding-right: 1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.site-footer__inner { text-align: center; padding: 56px 22px; }
.site-footer__stamp { width: 84px; margin: 0 auto 16px; }
.site-footer__brand { font-size: 1.5rem; font-weight: 800; }
.site-footer__by { color: var(--gray); margin-top: 4px; }
.site-footer__social { display: flex; justify-content: center; gap: 22px; margin: 20px 0; }
.site-footer__social a { font-weight: 700; color: var(--teal); }
.site-footer__social a:hover { color: var(--teal-dark); }
.site-footer__copy { color: var(--muted); font-size: .88rem; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 60;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .collares__inner { grid-template-columns: 1fr; }
  .collares__media { align-self: center; padding-top: 30px; }
  .collares__content { padding: 10px 34px 48px; text-align: center; }
  .collares__text { margin-inline: auto; }
  .collares__cta { justify-content: center; }
  .collares__title span { display: inline; }
}
@media (max-width: 560px) {
  .menu__grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav > a:not(.btn) { display: none; }   /* deja acceso rápido y limpio en móvil */
  .hero { padding-top: 34px; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
