/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f5f0e6;
  --bg-2:      #ece2d0;
  --paper:     #ffffff;
  --ink:       #26241f;
  --ink-soft:  #423f38;
  --ink-mute:  #7a7468;
  --accent:    #b3673f;
  --accent-2:  #6b6a45;
  --gold:      #c9a15f;
  --dark:      #221f1a;
  --dark-2:    #2c2822;
  --cream:     #f2ebda;
  --line:      rgba(38, 36, 31, 0.14);
  --line-dark: rgba(242, 235, 218, 0.14);
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 30px 60px -30px rgba(38, 36, 31, 0.35);
  --shadow-sm: 0 14px 30px -18px rgba(38, 36, 31, 0.4);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--font-display); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .6rem;
  display: block;
}

.body-text { color: var(--ink-soft); max-width: 62ch; }

/* reveal-on-scroll: content visible by default, JS progressively enhances */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* =============================================================
   5. Header / nav
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand span { font-style: italic; color: var(--accent); font-weight: 400; }

.main-nav {
  display: none;
  gap: 1.9rem;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: .3rem;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 34px; height: 28px; justify-content: center; align-items: flex-end;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), width .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle span:nth-child(2) { width: 70%; }
html.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 100%; }
html.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
html.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  padding: 2rem 1.5rem;
  gap: 1.6rem;
  z-index: 90;
  overflow-y: auto;
}
.main-nav.is-open .nav-link { font-size: 1.3rem; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: 2.5rem;
  overflow: hidden;
}
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hc { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 4rem 3rem;
  max-width: 760px;
}
.kicker {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(3.2rem, 13vw, 7.5rem);
  line-height: .92;
  max-width: 14ch;
  margin-inline: auto;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 2.1rem;
}

.hero-stats {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 1.8rem;
  text-align: center;
  gap: 1rem;
}
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--accent); }
.stat-label { font-size: .78rem; letter-spacing: .04em; color: var(--ink-mute); text-transform: uppercase; }

/* =============================================================
   7. Marquee
   ============================================================= */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: .9rem;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  padding-right: .4rem;
  color: var(--gold);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* =============================================================
   8. Sections (general)
   ============================================================= */
.section { padding-block: 5rem; }
.section--tint { background: var(--bg-2); }
.section--dark {
  background: var(--dark);
  color: var(--cream);
}
.section--dark .eyebrow { color: var(--gold); }
.section--dark h2 { color: var(--cream); }
.section--dark .body-text { color: rgba(242,235,218,.72); }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.section-intro { max-width: 68ch; }

/* Quienes somos */
.quienes-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.quienes-media { position: relative; }
.qm-main {
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.qm-small {
  display: none;
  position: absolute;
  bottom: -1.6rem;
  right: -1.6rem;
  width: 42%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-sm);
}
.quienes-content h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 1.1rem; }

@media (min-width: 720px) {
  .qm-small { display: block; }
}
@media (min-width: 960px) {
  .quienes-grid { grid-template-columns: .8fr 1fr; }
}

/* =============================================================
   9. Card grid (products)
   ============================================================= */
.card-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}
@media (min-width: 720px) { .card-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.section--dark .card { background: var(--dark-2); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-photo { aspect-ratio: 1/1; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-photo img { transform: scale(1.08); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-name { font-size: 1.02rem; font-weight: 500; }
.card-desc { font-size: .84rem; color: var(--ink-mute); line-height: 1.5; flex: 1; }
.section--dark .card-desc { color: rgba(242,235,218,.6); }
.card-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.05rem;
}

/* =============================================================
   10. Royale categories
   ============================================================= */
.royale-category {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}
.royale-category-media img {
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.royale-category-content h3 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: .3rem 0 .8rem; }

@media (min-width: 960px) {
  .royale-category { grid-template-columns: .55fr 1fr; }
  .royale-category.reverse .royale-category-media { order: 2; }
  .royale-category.reverse .royale-category-content { order: 1; }
}

/* =============================================================
   11. Serenity
   ============================================================= */
.serenity-layout {
  display: grid;
  gap: 2.5rem;
}
.serenity-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.serenity-list { display: flex; flex-direction: column; }
.serenity-row {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.serenity-name { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.serenity-line { flex: 1; border-bottom: 1px dotted rgba(242,235,218,.3); transform: translateY(-4px); }
.serenity-price { font-style: italic; color: var(--gold); white-space: nowrap; }

@media (min-width: 960px) {
  .serenity-layout { grid-template-columns: .7fr 1fr; }
}

/* =============================================================
   12. CTA / contact
   ============================================================= */
.cta-section { background: var(--paper); }
.cta-grid { display: grid; gap: 2.5rem; align-items: center; }
.cta-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.cta-content h2 { font-size: clamp(2rem, 4.5vw, 2.6rem); margin: .4rem 0 1rem; }
.contact-list { display: flex; flex-direction: column; gap: .6rem; margin: 1.4rem 0; }
.contact-item { font-weight: 500; }
.contact-item:hover { color: var(--accent); }
.social-row { display: flex; gap: 1.4rem; margin-top: 1.6rem; }
.social-row a { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); }
.social-row a:hover { color: var(--accent); }

@media (min-width: 960px) {
  .cta-grid { grid-template-columns: .8fr 1fr; }
}

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer { background: var(--ink); color: rgba(242,235,218,.7); padding-block: 2.2rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: center;
  text-align: center;
  font-size: .85rem;
}
.site-footer .brand { color: var(--cream); }
.site-footer .brand span { color: var(--gold); }

@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
