/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #F3F0E9;
  --white:     #FAFAF7;
  --ink:       #111111;
  --text-mute: #6C6A66;
  --burgundy:  #541B27;
  --line:      rgba(17,17,17,0.12);
  --line-strong: rgba(17,17,17,0.24);

  /* Canela / Suisse Int'l son de pago y Mónica confirmó que no las tiene
     con licencia web — se descartan. Fraunces (serif) y Switzer (sans)
     son las elecciones definitivas: las alternativas gratuitas más
     cercanas en carácter editorial/fashion a Canela y Suisse Int'l. */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Switzer", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
  --container: 1400px;
  --margin: 1.125rem;   /* mobile 16-20px */
}
@media (min-width: 720px)  { :root { --margin: 1.5rem; } }
@media (min-width: 960px)  { :root { --margin: 2.25rem; } }  /* 32-48px */
@media (min-width: 1280px) { :root { --margin: 3rem; } }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;             /* body 15-17px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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.03; letter-spacing: -0.01em;
  font-family: var(--serif); font-weight: 400;
}
ul { list-style: none; padding: 0; }
:focus-visible { outline: 1.5px solid var(--burgundy); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--white);
  font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities / type scale
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }

/* Editorial 12-col grid (4-col on mobile) — used for irregular layouts */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: clamp(1.1rem, 2vw, 2rem); }
}

.kicker {
  font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 700; font-family: var(--sans);
}
.eyebrow { font-size: .8rem; color: var(--text-mute); font-weight: 400; }
.meta { font-size: .8rem; letter-spacing: .02em; color: var(--text-mute); } /* 12-13px */

.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); position: relative; }
.section-head { max-width: 620px; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 1rem + 3vw, 4rem); margin-top: .7rem; } /* 48-64 desktop */
.section-head p { margin-top: 1.1rem; color: var(--text-mute); font-size: 1.02rem; }

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 6rem); } /* 72-96 desktop */

/* =============================================================
   4. Buttons & links — restrained, editorial (no pill shapes)
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.7rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--sans);
  transition: background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--burgundy); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }

.link-underline {
  position: relative; font-size: .88rem; font-weight: 500;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: inline-flex; align-items: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; letter-spacing: -.01em; }
.nav-logo img { display: block; height: 34px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-link { position: relative; font-size: .82rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; padding-block: .3rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--burgundy);
  transition: right .5s var(--ease-out);
}
.nav-link:hover::after { right: 0; }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 1px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 400;
  background: var(--bg);
  padding: 2rem var(--margin);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.3rem; }
.mobile-menu a { font-family: var(--serif); font-size: 1.6rem; font-style: italic; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Hero — image 65vh, headline below, CTA
   ============================================================= */
.hero { padding-top: var(--nav-h); }
.hero-media { height: 65vh; overflow: hidden; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); will-change: transform; }
.hero-content { padding-block: clamp(2.25rem, 5vw, 3.5rem); max-width: 780px; }
.hero-content .kicker { display: block; margin-bottom: 1.1rem; }
.hero-title { color: var(--ink); }
.hero-title em { font-style: italic; }
.hero-sub { margin-top: 1.3rem; max-width: 46ch; font-size: 1.05rem; color: var(--text-mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

/* =============================================================
   7. Manifesto
   ============================================================= */
.manifesto-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: 3rem; color: var(--burgundy); line-height: 1; }
.manifesto-text { font-size: clamp(1.15rem, 1rem + 1.2vw, 1.6rem); font-family: var(--serif); line-height: 1.4; }
.manifesto-text em { font-style: italic; }
@media (min-width: 960px) {
  .manifesto-grid { grid-template-columns: .7fr 2fr; align-items: start; gap: 4rem; }
}

/* =============================================================
   8. Taxonomy strip — moving marquee, serif italic
   ============================================================= */
.taxonomy-strip {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--white);
}
.taxonomy-strip ul {
  display: flex; width: max-content; flex-wrap: nowrap;
  animation: marquee 32s linear infinite; gap: 2.5rem;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.taxonomy-strip li {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 2.5rem;
}
.taxonomy-strip li::after { content: "·"; color: var(--burgundy); }

/* =============================================================
   8b. Filter bar — season + type
   ============================================================= */
.filter-bar { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.2rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-pill {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .03em;
  color: var(--text-mute); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.filter-pill:hover { border-color: var(--burgundy); color: var(--ink); }
.filter-pill.is-active { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.product-card.is-filtered-out { display: none; }

/* =============================================================
   9. Selección — irregular editorial grid
   ============================================================= */
.sample-badge {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--burgundy);
  border: 1px solid var(--burgundy); padding: .3rem .7rem; margin-bottom: 1rem;
}

.product-card { display: flex; flex-direction: column; gap: .85rem; grid-column: span 4; }
@media (min-width: 720px) {
  #seleccion [data-products] .product-card:nth-child(1) { grid-column: span 5; }
  #seleccion [data-products] .product-card:nth-child(2) { grid-column: span 4; }
  #seleccion [data-products] .product-card:nth-child(3) { grid-column: span 3; }
}
.product-media { position: relative; overflow: hidden; }
.stock-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: var(--ink); color: var(--white); font-family: var(--sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .75rem;
}
.product-media .product-img {
  width: 100%; height: auto; display: block;
  transition: transform .8s var(--ease-out);
}
.product-card:hover .product-media .product-img { transform: scale(1.02); }
.product-name { font-family: var(--serif); font-size: 1.15rem; margin-top: .2rem; }
.product-phrase { color: var(--text-mute); font-size: .95rem; max-width: 34ch; }
.product-cta { align-self: flex-start; color: var(--ink); }

/* Editorial break — full-width image within the irregular rhythm */
.editorial-break { position: relative; aspect-ratio: 16/7; overflow: hidden; }
.editorial-break img { width: 100%; height: 100%; object-fit: cover; }
.editorial-break-caption {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-family: var(--serif); font-style: italic; color: var(--white);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); max-width: 20ch;
  text-shadow: 0 1px 10px rgba(17,17,17,.35);
}

.editorial-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1vw + 1rem, 1.7rem);
  line-height: 1.35; color: var(--ink); align-self: center;
}
.criteria-text { align-self: center; }
.criteria-text p { color: var(--text-mute); font-size: .98rem; }
.criteria-text h3 { font-size: 1.15rem; margin-bottom: .6rem; }

.product-disclaimer { margin-top: 2.25rem; font-size: .85rem; color: var(--text-mute); max-width: 60ch; }

/* =============================================================
   10. Guías
   ============================================================= */
.guides-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 720px) { .guides-grid { grid-template-columns: repeat(12, 1fr); } }
.guide-card {
  grid-column: span 4;
  padding-top: 1.9rem; border-top: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: .9rem;
}
.guide-card h3 { font-size: 1.2rem; }
.guide-card p { color: var(--text-mute); font-size: .95rem; }

/* =============================================================
   11. Sobre mí — bloque compacto tras el hero
   ============================================================= */
.about-strip { border-top: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.about-grid { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.about-media {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: var(--paper);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--ink-soft); font-size: 1rem; margin-bottom: .9rem; max-width: 60ch; }
@media (min-width: 720px) {
  .about-grid { flex-direction: row; align-items: center; gap: 1.8rem; }
  .about-media { width: 84px; height: 84px; }
  .about-copy p { margin-bottom: .6rem; }
}

/* =============================================================
   12. Final CTA
   ============================================================= */
.cta-band {
  background: var(--ink); color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 1rem + 3vw, 3rem); max-width: 18ch; }
.cta-band p { color: rgba(250,250,247,.68); max-width: 46ch; }
.cta-band .btn-primary { background: var(--burgundy); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--ink); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { padding-block: 3.5rem 2.5rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.footer-note { max-width: 46ch; color: var(--text-mute); font-size: .88rem; margin-top: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a, .footer-links span { font-size: .85rem; color: var(--text-mute); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--text-mute);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   14. Reveal — quiet, single fade, no travel distance
   ============================================================= */
.reveal { opacity: 0; transition: opacity .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; }
.reveal[data-split] { opacity: 1; }

/* =============================================================
   15. Ficha de producto — accordion + sticky CTA
   ============================================================= */
.ficha-hero { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-top: clamp(2rem, 5vw, 3.5rem); }
.ficha-media { position: relative; overflow: hidden; background: var(--white); }
.ficha-media img { width: 100%; height: auto; display: block; }
.ficha-info .kicker { margin-bottom: .8rem; }
.ficha-info h1 { font-size: clamp(2.2rem, 1.4rem + 2.5vw, 3.4rem); }
.ficha-info .product-phrase { font-size: 1.1rem; margin-top: 1rem; max-width: 42ch; }
.ficha-info .btn { margin-top: 1.8rem; }
@media (min-width: 900px) { .ficha-hero { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Gallery variant — main image + thumbnail strip */
.ficha-gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.ficha-gallery-thumbs button {
  width: 64px; height: 64px; padding: 0; overflow: hidden; flex-shrink: 0;
  border: 1.5px solid var(--line); opacity: .55; transition: opacity .3s var(--ease-out), border-color .3s var(--ease-out);
}
.ficha-gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.ficha-gallery-thumbs button.is-active,
.ficha-gallery-thumbs button:hover { opacity: 1; border-color: var(--burgundy); }
.gallery-thumbs-label {
  flex-basis: 100%; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute);
  margin-top: .4rem;
}
.gallery-thumbs-label:first-child { margin-top: 0; }

/* Long-form editorial sections — replaces accordion for real fichas */
.ficha-article { max-width: 680px; margin-top: clamp(2.5rem, 6vw, 4rem); }
.ficha-article h2 {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); font-style: italic;
  margin-top: 2.75rem; margin-bottom: 1rem;
}
.ficha-article h2:first-child { margin-top: 0; }
.ficha-article h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--burgundy); font-weight: 700; margin-top: 1.6rem; margin-bottom: .7rem; }
.ficha-article h3.ficha-subtitle {
  font-family: var(--serif); font-size: clamp(1.05rem, .85rem + .8vw, 1.4rem); font-style: italic;
  text-transform: none; letter-spacing: normal; color: var(--ink); font-weight: 400;
  margin-top: 1.8rem; margin-bottom: .7rem;
}
.ficha-article p { color: var(--ink); line-height: 1.7; margin-bottom: 1rem; }
.ficha-article ul { margin-bottom: 1rem; }
.ficha-article li { position: relative; padding-left: 1.1rem; margin-bottom: .5rem; color: var(--ink); line-height: 1.55; }
.ficha-article li::before { content: "–"; position: absolute; left: 0; color: var(--burgundy); }
.ficha-profile-list { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.5rem; margin-bottom: 1rem; }
.ficha-profile-list dt { font-weight: 600; color: var(--ink); }
.ficha-profile-list dd { color: var(--ink); }
.ficha-verdict-meta { margin-top: 1.2rem; font-size: .9rem; color: var(--text-mute); }
.ficha-verdict-meta strong { color: var(--ink); font-weight: 600; }

.accordion { border-top: 1px solid var(--line-strong); max-width: 720px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.3rem; font-family: var(--serif); font-size: 1.1rem; text-align: left;
}
.accordion-trigger .sign { font-family: var(--sans); font-size: 1.1rem; color: var(--burgundy); transition: transform .4s var(--ease-out); }
.accordion-item.is-open .sign { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out);
}
.accordion-panel-inner { padding-bottom: 1.4rem; color: var(--text-mute); font-size: .96rem; max-width: 62ch; }
.accordion-panel-inner dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.accordion-panel-inner dt { color: var(--ink); font-weight: 500; }

.ficha-sticky-cta {
  position: sticky; bottom: 0; z-index: 300;
  background: var(--bg); border-top: 1px solid var(--line-strong);
  padding-block: 1rem; margin-top: 3rem;
  display: flex; justify-content: center;
}

/* =============================================================
   16. Responsive base adjustments
   ============================================================= */
@media (max-width: 719px) {
  .section { padding-block: 3rem; }
  .hero-media { height: 55vh; }
}
