/* ============================================================
   ILMIN PARFUMS — sistema web
   Paleta y tipografía congeladas en brand-state.md.
   ============================================================ */

:root {
  --noir: #242220;          /* Noir Fumé — fondo oscuro principal */
  --charcoal: #4A4644;      /* Charcoal ILMIN — superficies secundarias */
  --saten: #342F29;         /* Satén — negro cálido, overlays */
  --mostaza: #C9913F;       /* Oro Mostaza — acento gráfico, filetes */
  --foil: #E0C084;          /* Oro Foil — texto dorado SOLO sobre oscuro */
  --blanc: #F5F3EF;         /* Blanc Porcelaine — papel, texto sobre oscuro */

  --ink-soft: rgba(245, 243, 239, 0.72);
  --ink-faint: rgba(245, 243, 239, 0.45);
  --hairline: rgba(201, 145, 63, 0.28);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --w-content: 1240px;
  --pad-x: clamp(20px, 5vw, 72px);
  --head-h: 76px;

  --ease-ilmin: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
/* Lenis 1.1.x añade solo la clase `lenis` al <html>; con scroll-behavior:smooth
   activo, su scrollTo por frame reinicia la animación nativa y el scroll se
   atasca. Cuando Lenis maneja el scroll, el nativo debe ser instantáneo. */
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
strong { font-weight: 500; }

::selection { background: var(--mostaza); color: var(--noir); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.wrap {
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- tipos ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

h1.display { font-size: clamp(34px, 6.2vw, 88px); }
h2.display { font-size: clamp(26px, 3.6vw, 52px); }
h3.display { font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0.08em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--foil);
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 34em;
}

.filete {
  width: 72px;
  height: 1px;
  border: 0;
  background: var(--mostaza);
}

/* placeholder legal discreto: [DOMINIO] [IG] [EMAIL] */
.ph {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  color: var(--foil);
  border: 1px dashed rgba(224, 192, 132, 0.35);
  border-radius: 2px;
  padding: 0.05em 0.45em;
  white-space: nowrap;
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--hairline);
  color: var(--blanc);
  transition: border-color 0.45s var(--ease-ilmin), background-color 0.45s var(--ease-ilmin), color 0.45s var(--ease-ilmin);
}

.btn::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.45s var(--ease-ilmin);
}

.btn:hover { border-color: var(--mostaza); }
.btn:hover::after { transform: translateX(5px); }

.btn--solid {
  background: var(--mostaza);
  border-color: var(--mostaza);
  color: var(--noir);
  font-weight: 500;
}
.btn--solid:hover { background: var(--foil); border-color: var(--foil); }

.btn--bare { border: 0; padding: 6px 0; color: var(--foil); }

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--head-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.5s var(--ease-ilmin), border-color 0.5s var(--ease-ilmin);
  border-bottom: 1px solid transparent;
}

.site-head.is-solid {
  background: var(--noir);
  border-bottom-color: rgba(201, 145, 63, 0.18);
}

.site-head .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link { display: inline-flex; align-items: center; color: var(--blanc); }
.brand-link svg { height: 58px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }

.site-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.35s var(--ease-ilmin);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--mostaza);
  transition: right 0.45s var(--ease-ilmin);
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blanc); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }

.site-nav .nav-cta {
  border: 1px solid var(--hairline);
  padding: 10px 18px;
  color: var(--foil);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { border-color: var(--mostaza); color: var(--foil); }

@media (max-width: 720px) {
  .site-nav .nav-cta { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { letter-spacing: 0.12em; font-size: 10px; }
  .brand-link svg { height: 40px; }
}
@media (max-width: 400px) {
  .site-nav { gap: 10px; }
  .site-nav a { letter-spacing: 0.08em; }
  .brand-link svg { height: 34px; }
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--saten);
  border-top: 1px solid rgba(201, 145, 63, 0.18);
  padding: 72px 0 40px;
  margin-top: 0;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 48px;
}

.foot-brand { color: var(--blanc); }
.foot-brand svg { height: 72px; width: auto; }

.foot-claim {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--foil);
  text-transform: none; /* el claim se escribe tal cual, con punto */
  padding-bottom: 40px;
}

.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-nav a {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.35s;
}
.foot-nav a:hover { color: var(--blanc); }

.foot-legal {
  border-top: 1px solid rgba(245, 243, 239, 0.08);
  padding-top: 28px;
  display: grid;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink-faint);
  max-width: 62em;
  line-height: 1.8;
}

.foot-legal a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.foot-legal a:hover { color: var(--foil); }

/* ============================================================
   HOME
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--noir) 0%, rgba(36, 34, 32, 0.35) 34%, rgba(36, 34, 32, 0.12) 60%, rgba(36, 34, 32, 0.3) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--head-h) + 24px);
  padding-bottom: clamp(64px, 12vh, 130px);
}

.hero-mark { margin-bottom: clamp(20px, 4vh, 44px); color: var(--blanc); }
.hero-mark svg { height: clamp(72px, 10vw, 118px); width: auto; }

.hero-eyebrow { margin-bottom: 26px; }

.hero-title { max-width: 9.5em; }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: inline-block; }

.hero-lede { margin-top: 28px; }

.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-scrollcue {
  position: absolute;
  right: var(--pad-x);
  bottom: 40px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}

.hero-scrollcue::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--mostaza), transparent);
}

@media (max-width: 720px) {
  .hero-scrollcue { display: none; }
  .hero-mark svg { height: 58px; }
  .hero-inner { padding-bottom: 48px; }
  .hero-media img { object-position: 74% center; }
  .hero-media::after {
    background:
      linear-gradient(to top, var(--noir) 0%, rgba(36, 34, 32, 0.55) 40%, rgba(36, 34, 32, 0.35) 70%, rgba(36, 34, 32, 0.45) 100%);
  }
}

/* --- esencia --- */

.esencia {
  position: relative;
  padding: clamp(110px, 18vh, 200px) 0;
  overflow: hidden;
}

.esencia-tex {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.esencia .wrap { position: relative; display: grid; gap: 34px; }

.esencia-lines {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.35;
  max-width: 24em;
}

.esencia-lines .ln { display: block; overflow: hidden; }
.esencia-lines .ln > span { display: inline-block; }
.esencia-lines .ln em { font-style: normal; color: var(--foil); }

/* --- familias / puertas --- */

.familias {
  padding: clamp(90px, 14vh, 160px) 0 clamp(60px, 8vh, 100px);
  background-color: var(--noir);
}

.familias-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 8vh, 90px); }

.familias-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.familias-visual {
  position: sticky;
  top: calc(var(--head-h) + 32px);
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--head-h) - 64px);
  overflow: hidden;
}

.familias-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease-ilmin);
}

.familias-visual img.is-active { opacity: 1; }

.familias-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 145, 63, 0.18);
  pointer-events: none;
}

.puertas { border-top: 1px solid rgba(245, 243, 239, 0.1); }

.puerta { border-bottom: 1px solid rgba(245, 243, 239, 0.1); }

.puerta-link {
  display: grid;
  gap: 10px;
  padding: clamp(26px, 4.5vh, 44px) 0;
  transition: padding-left 0.5s var(--ease-ilmin);
}

.puerta-link:hover { padding-left: clamp(8px, 1.5vw, 22px); }

.puerta-name {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.puerta-name .display { transition: color 0.5s var(--ease-ilmin); }
.puerta-link:hover .puerta-name .display { color: var(--foil); }

.puerta-count {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}

.puerta-frase {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 26em;
}

@media (max-width: 880px) {
  .familias-body { grid-template-columns: 1fr; }
  .familias-visual { display: none; }
}

/* --- contador 72 --- */

.contador {
  padding: clamp(110px, 16vh, 190px) 0 0;
  text-align: center;
  overflow: hidden;
}

.contador-num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--blanc);
  font-variant-numeric: tabular-nums;
}

.contador-label {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--foil);
  margin-top: 10px;
  padding-left: 0.42em; /* compensa el tracking */
}

.contador-lede { margin: 26px auto 0; }

.contador .btn { margin-top: 40px; }

/* marquee */

.marquee {
  margin-top: clamp(70px, 10vh, 120px);
  border-top: 1px solid rgba(245, 243, 239, 0.1);
  border-bottom: 1px solid rgba(245, 243, 239, 0.1);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 160s linear infinite;
}

.marquee-track span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.marquee-track b {
  font-weight: 400;
  color: var(--mostaza);
  padding: 0 18px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- extracto de historia --- */

.hist-extracto {
  padding: clamp(110px, 16vh, 190px) 0;
}

.hist-extracto .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hist-extracto figure {
  position: relative;
  overflow: hidden;
}

.hist-extracto figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.06);
}

.hist-extracto-txt { display: grid; gap: 26px; justify-items: start; }

.hist-pull {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hist-pull em { font-style: normal; color: var(--foil); }

@media (max-width: 880px) {
  .hist-extracto .wrap { grid-template-columns: 1fr; }
}

/* --- CTA distribución --- */

.dist-cta {
  position: relative;
  padding: clamp(110px, 16vh, 190px) 0;
  background: var(--saten);
  overflow: hidden;
}

.dist-cta-tex {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.dist-cta .wrap {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: start;
}

/* --- epílogo (claim) --- */

.epilogo {
  padding: clamp(130px, 22vh, 240px) 0;
  text-align: center;
}

.epilogo p {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 54px);
  letter-spacing: 0.1em;
  color: var(--foil);
}

.epilogo .ln { display: block; overflow: hidden; }
.epilogo .ln > span { display: inline-block; }

/* ============================================================
   COLECCIÓN
   ============================================================ */

.col-head {
  padding: calc(var(--head-h) + clamp(48px, 9vh, 110px)) 0 clamp(40px, 6vh, 70px);
}

.col-head .wrap { display: grid; gap: 22px; }

.col-count {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* filtros */

.filtros {
  position: sticky;
  top: var(--head-h);
  z-index: 40;
  background: var(--noir);
  border-block: 1px solid rgba(245, 243, 239, 0.1);
}

.filtros .wrap {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0;
}
.filtros .wrap::-webkit-scrollbar { display: none; }

.filtro {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 16px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.35s;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.filtro small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.7;
}

.filtro:hover { color: var(--blanc); }

.filtro[aria-pressed="true"] {
  color: var(--foil);
  border-bottom-color: var(--mostaza);
}

/* grid fotográfico sobre Noir (norma vigente: photography-first;
   el color de referencia solo como microdetalle) */

.muro-section { padding: clamp(36px, 6vh, 64px) 0 clamp(90px, 12vh, 150px); }

.muro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px);
}

@media (max-width: 560px) {
  .muro { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
}

.ref-card { display: block; }
.ref-card.is-hidden { display: none; }

.ref-tile {
  position: relative;
  width: 100%;
  display: block;
  text-align: center; /* norma cliente 2026-08-27: títulos centrados bajo el packshot */
}

.ref-ph {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* glow sutil del color de la referencia, solo al hover */
.ref-glow {
  position: absolute;
  inset: 0;
  /* closest-side: el resplandor llega a cero DENTRO de la caja — nunca se recorta */
  background: radial-gradient(ellipse closest-side at 50% 55%, var(--ref) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-ilmin);
}

.ref-img {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  transform: translateY(0);
  transition: transform 0.7s var(--ease-ilmin);
}

.ref-tile:hover .ref-glow,
.ref-tile:focus-visible .ref-glow { opacity: 0.14; }

.ref-tile:hover .ref-img,
.ref-tile:focus-visible .ref-img { transform: translateY(-5px); }

.ref-num {
  position: absolute;
  top: 8px;
  right: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.ref-meta {
  display: grid;
  gap: 8px;
  padding: 14px 4px 0;
  justify-items: center;
}

.ref-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blanc);
  transition: color 0.45s var(--ease-ilmin);
}

.ref-tile:hover .ref-name,
.ref-tile:focus-visible .ref-name { color: var(--ref); }

/* filete microdetalle: 2px de alto, en el color de la referencia */
.ref-filete {
  width: 26px;
  height: 2px;
  background: var(--ref);
  opacity: 0.75;
  transition: width 0.5s var(--ease-ilmin);
}

.ref-tile:hover .ref-filete,
.ref-tile:focus-visible .ref-filete { width: 44px; }

/* tarjeta tipográfica oscura discreta (sin packshot: IL ORANGE, IL REDOLENCE) */
.ref-ph--tipo {
  display: grid;
  place-items: center;
  background: rgba(52, 47, 41, 0.55);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 239, 0.08);
}

.ref-tipo-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
  line-height: 1.3;
  color: var(--ink-soft);
  transition: color 0.45s var(--ease-ilmin);
}

.ref-card--tipo .ref-tile:hover .ref-tipo-name { color: var(--blanc); }

/* ---------- overlay ficha ---------- */

.ficha {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.ficha.is-open { display: block; }

.ficha-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.82);
  cursor: pointer;
}

.ficha-panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(1080px, calc(100% - 32px));
  height: min(680px, calc(100% - 48px));
  background: var(--noir);
  border: 1px solid rgba(201, 145, 63, 0.25);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  overflow: hidden;
}

.ficha-visual {
  position: relative;
  background: #1D1B19; /* penumbra: apenas más hondo que el Noir */
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* glow sutil del color de la referencia detrás del frasco */
.ficha-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse closest-side at 50% 55%, var(--ref) 0%, transparent 100%);
  opacity: 0.14;
}

.ficha-visual-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ficha-visual img {
  max-width: 80%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45));
}

.ficha-visual .ficha-tipo {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanc);
  text-align: center;
  padding: 0 24px;
}

.ficha-lect {
  padding: clamp(28px, 4.5vh, 52px) clamp(26px, 3.5vw, 54px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ficha-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ficha-nombre {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ficha-filete { width: 76px; height: 2px; background: var(--ref); border: 0; }

.ficha-pers {
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--foil);
}

.ficha-desc { font-size: 15.5px; color: var(--ink-soft); max-width: 38em; }

.ficha-piramide {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(245, 243, 239, 0.1);
  padding-top: 18px;
}

.ficha-piramide > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: baseline;
}

.ficha-piramide dt {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mostaza);
}

.ficha-piramide dd { font-size: 14.5px; color: var(--ink-soft); }

.ficha-pie {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(245, 243, 239, 0.1);
}

.ficha-formato {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ficha-cta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foil);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
}
.ficha-cta:hover { border-color: var(--mostaza); }

.ficha-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--blanc);
  background: rgba(36, 34, 32, 0.55);
  border: 1px solid rgba(245, 243, 239, 0.2);
  border-radius: 50%;
  transition: border-color 0.3s, transform 0.3s;
}
.ficha-close:hover { border-color: var(--mostaza); transform: rotate(90deg); }

.ficha-nota-pend {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

@media (max-width: 760px) {
  .ficha-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.8fr) minmax(0, 1.2fr);
    height: calc(100% - 32px);
    width: calc(100% - 20px);
  }
  .ficha-visual img { max-height: 92%; }
}

/* ============================================================
   HISTORIA
   ============================================================ */

.hist-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hist-hero-media { position: absolute; inset: -6% 0; }

.hist-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hist-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--noir) 4%, rgba(36, 34, 32, 0.25) 55%, rgba(36, 34, 32, 0.45) 100%);
}

.hist-hero .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(56px, 10vh, 110px);
  display: grid;
  gap: 22px;
}

.prosa {
  padding: clamp(90px, 13vh, 170px) 0;
}

.prosa .wrap {
  max-width: 760px;
  display: grid;
  gap: 28px;
}

.prosa p {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.prosa p.destacado {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanc);
  padding: 18px 0;
}

.prosa p.destacado em { font-style: normal; color: var(--foil); }

.hist-figure {
  position: relative;
  overflow: hidden;
}

.hist-figure img {
  width: 100%;
  height: clamp(340px, 68vh, 640px);
  object-fit: cover;
  transform: scale(1.05);
}

.hist-figure figcaption {
  position: absolute;
  left: var(--pad-x);
  bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hist-quote {
  padding: clamp(100px, 16vh, 190px) 0;
  text-align: center;
  background: var(--saten);
}

.hist-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 46px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--blanc);
  max-width: 18em;
  margin-inline: auto;
}

.hist-quote blockquote em { font-style: normal; color: var(--foil); }

.hist-quote figcaption {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hist-cierre {
  padding: clamp(90px, 13vh, 160px) 0;
}

.hist-cierre .wrap { display: grid; gap: 26px; justify-items: start; }

/* ============================================================
   CONTACTO
   ============================================================ */

.cont-head {
  position: relative;
  padding: calc(var(--head-h) + clamp(56px, 10vh, 120px)) 0 clamp(48px, 8vh, 90px);
  overflow: hidden;
}

.cont-head-tex {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

/* Las texturas de fondo se disuelven en el Noir: nunca un borde duro. */
.cont-head-tex, .esencia-tex, .dist-cta-tex {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%);
}

.cont-head .wrap { position: relative; display: grid; gap: 22px; }

.cont-grid {
  padding-bottom: clamp(90px, 12vh, 150px);
}

.cont-grid .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 880px) {
  .cont-grid .wrap { grid-template-columns: 1fr; }
}

.cont-form {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(245, 243, 239, 0.1);
  padding: clamp(26px, 3.5vw, 44px);
  background: rgba(52, 47, 41, 0.5);
}

.cont-form h2 { margin-bottom: 4px; }

.campo { display: grid; gap: 8px; }

.campo label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.campo input, .campo textarea {
  font: inherit;
  font-weight: 300;
  color: var(--blanc);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 243, 239, 0.22);
  padding: 10px 2px;
  transition: border-color 0.35s;
}

.campo input:focus, .campo textarea:focus {
  outline: none;
  border-bottom-color: var(--mostaza);
}

.campo textarea { resize: vertical; min-height: 110px; }

.cont-form .btn { justify-self: start; margin-top: 6px; }

.cont-nota { font-size: 13px; color: var(--ink-faint); }

.cont-vias { display: grid; gap: 26px; }

.via {
  border: 1px solid rgba(245, 243, 239, 0.1);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.via h3 { color: var(--blanc); }

.via p { font-size: 15px; color: var(--ink-soft); }

/* canales oficiales */

.canales {
  background: var(--saten);
  padding: clamp(80px, 12vh, 140px) 0;
}

.canales .wrap { display: grid; gap: 26px; max-width: 900px; }

.canales-txt { font-size: 15.5px; color: var(--ink-soft); line-height: 1.85; }

.canales-lista { display: grid; gap: 12px; }

.canales-lista li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(245, 243, 239, 0.08);
  padding-bottom: 12px;
}

.canales-lista li strong {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blanc);
  min-width: 130px;
}

/* ============================================================
   reveals / motion
   ============================================================ */

.js [data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
}
