/* ============================================================
   REINA DORADA — Design tokens
   Paleta oficial de marca: azul profundo + amarillo miel.
   ============================================================ */
/* ============================================================
   Tipografías autoalojadas (sin llamadas a servidores de terceros)
   ============================================================ */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #041429;
  --ink-soft: #0B2340;
  --honey-deep: #AD7314;
  --honey: #D98D1B;
  --honey-light: #F2AF27;
  --parchment: #F3E8D2;
  --parchment-dim: #EADFC7;
  --cream: #FBF7EF;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }

p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--honey-deep);
  margin: 0 0 0.9em;
}
.eyebrow--light { color: var(--honey-light); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled,
.nav--solid {
  background: rgba(4, 20, 41, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.8rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(4rem, 10vw, 8rem);
}
.nav__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 160px;
  height: 131.9px;
  transition: height 0.6s var(--ease);
}
.nav.is-scrolled .nav__brand,
.nav--solid .nav__brand {
  height: 37.6px;
}
.nav__logo {
  position: absolute;
  top: 50%;
  left: 0;
  width: 160px;
  height: auto;
  transform: translateY(-50%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav__logo--text { opacity: 0; transform: translateY(-50%) scale(0.92); }
.nav__logo--full { opacity: 1; }
.nav.is-scrolled .nav__logo--full,
.nav--solid .nav__logo--full { opacity: 0; transform: translateY(-50%) scale(1.06); }
.nav.is-scrolled .nav__logo--text,
.nav--solid .nav__logo--text { opacity: 1; transform: translateY(-50%) scale(1); }
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav__group a,
.nav__links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav__group a:hover, .nav__group a.is-active,
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__group a.is-active::after,
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--honey-light);
}

.nav__back {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
  grid-column: 3;
  justify-self: end;
}
.nav--solid .nav__inner { grid-template-columns: auto 1fr auto; }
.nav__back:hover { border-color: var(--honey-light); color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__close {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  align-self: flex-end;
  padding: 0.4rem;
  margin-bottom: 1rem;
}
.nav__close:hover { color: var(--white); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,20,41,0.75) 0%, rgba(4,20,41,0.35) 30%, rgba(4,20,41,0.35) 85%, rgba(4,20,41,0.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
  width: 100%;
}
.hero__lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.86);
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  z-index: 2;
  color: rgba(255,255,255,0.7);
}
.hero__scroll-dot { animation: scrollDot 2.2s ease-in-out infinite; }
@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(10px); }
}

/* Placeholder de imagen (sustituir por fotos reales) */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(184,121,28,0.14) 0 12px, rgba(184,121,28,0.05) 12px 24px),
    var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  width: 100%; height: 100%;
}
.img-placeholder span { max-width: 22ch; }
.img-placeholder--hero { position: absolute; inset: 0; border-radius: 0; }
.img-placeholder--square { aspect-ratio: 1 / 1; height: auto; }

.product-shot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--parchment-dim);
}

/* ============ SECTION LAYOUT ============ */
.section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.section--dark { background: var(--ink); color: rgba(255,255,255,0.92); }
.section--dark p { color: rgba(255,255,255,0.72); }
.section--sand { background: var(--parchment-dim); }

.section__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__inner--narrow { max-width: 760px; }
.section__inner--center { text-align: center; }
.section__inner--center p { margin-left: auto; margin-right: auto; }

.section__inner--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.section__inner--reverse { direction: rtl; }
.section__inner--reverse > * { direction: ltr; }

.section__lead-row { max-width: 68ch; }
.section__lead { font-size: 1.08rem; }
.section__note {
  font-size: 0.92rem;
  color: var(--honey-deep);
  border-left: 2px solid var(--honey-deep);
  padding-left: 0.9rem;
}
.section--dark .section__note { color: var(--honey-light); }

/* ============ NUESTRA TIERRA — mapa de ruta ============ */
.route-map { width: 100%; height: auto; color: var(--honey-light); }
.route-map__path { stroke: rgba(240,200,120,0.4); }
.route-map__point circle { fill: var(--honey); }
.route-map__point--accent circle { fill: var(--honey-light); }
.route-map__point text {
  font-family: var(--font-body);
  font-size: 12px;
  fill: rgba(255,255,255,0.75);
}

/* ============ LA MIEL — 10 razones ============ */
.reasons-header {
  text-align: center;
  max-width: 640px;
  margin: clamp(4rem, 8vw, 6rem) auto 3rem;
}
.section__inner > .reasons-header:first-child { margin-top: 0; }
.reasons-header .eyebrow { text-align: center; margin-left: auto; margin-right: auto; }
.reasons-header .section__lead { margin-left: auto; margin-right: auto; }

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 0.4rem;
  max-width: 920px;
  margin: 0 auto;
}
.reason {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0.6rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(4,20,41,0.1);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.reason:hover { background: rgba(217,141,27,0.07); }
.reason__hex {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(160deg, var(--honey-deep), var(--honey));
}
.reason__hex span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.reason__title {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
}

/* ============ GALERÍA A SANGRE ============ */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #F2EBDB;
}
.gallery-strip__col {
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
}
.gallery-strip__col .img-placeholder {
  border-radius: 0;
}
.gallery-strip__col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ============ OTROS PRODUCTOS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1000px;
  margin: 0 auto;
}
.product-card { min-width: 0; }
.product-card h3 {
  margin-top: 1.3rem;
  font-size: 1.25rem;
}
.product-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.product-card .img-placeholder--square { width: 100%; min-width: 0; }
.product-card img.img-placeholder--square {
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,20,41,0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--cream);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 2.4rem 2.2rem;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__hex {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(160deg, var(--honey-deep), var(--honey));
  margin-bottom: 1.2rem;
}
.modal__hex span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}
.modal h3 { margin-bottom: 0.6rem; }
.modal p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(4,20,41,0.06);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s;
}
.modal__close:hover { background: rgba(4,20,41,0.12); }

/* ============ NUESTRA HISTORIA ============ */
.section--story {
  background: var(--parchment);
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
}
.section--story .eyebrow { margin-left: auto; margin-right: auto; }
.story__verse {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.65;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 auto;
}
.story__signature {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--honey-deep);
}

/* ============ CONTACTO ============ */
.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  transition: border-color 0.25s, background 0.25s;
}
.contact-item:hover {
  border-color: var(--honey-light);
  background: rgba(240,200,120,0.08);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn--ghost-light {
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost-light:hover {
  background: var(--white);
  color: var(--ink);
}

/* ============ PÁGINAS LEGALES ============ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--section-pad) + 3rem) var(--gutter) var(--section-pad);
}
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal-page .legal-updated {
  font-size: 0.85rem;
  color: var(--honey-deep);
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.6rem;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin-bottom: 0.5em; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: var(--honey-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .legal-pending {
  background: var(--parchment-dim);
  border-left: 3px solid var(--honey-deep);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.footer__links {
  margin: 0;
}
.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin: 0 0.5rem;
}
.footer__links a:hover { color: rgba(255,255,255,0.8); }
/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  padding: 1.4rem 0;
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer p { margin: 0; }

@media (max-width: 600px) {
  .footer__inner { justify-content: center; text-align: center; }
}

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .section__inner--split {
    grid-template-columns: 1fr;
  }
  .section__inner--reverse { direction: ltr; }
  .section__visual { order: -1; }
}

@media (max-width: 700px) {
  .nav__inner { position: relative; display: flex; justify-content: center; }
  .nav__group { display: none; }
  .nav__brand { width: 150px; height: 123.6px; }
  .nav.is-scrolled .nav__brand { height: 35.2px; }
  .nav__logo { width: 150px; }
  .nav__toggle {
    display: flex;
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
  }
  .nav__links {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__close { display: block; }

  .reasons { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .products-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .gallery-strip { grid-template-columns: 1fr; gap: 12px; }
  .gallery-strip__col { height: 45vh; min-height: 260px; }
}
