/* Nicho — rediseño 2026 */
:root {
  --ivory: #f4efe7;
  --sand: #e9e1d4;
  --ink: #1e1a16;
  --ink-soft: #5b5249;
  --gold: #bcac90;        /* color del logo (archivo original) */
  --gold-deep: #7d6a4c;   /* dorado legible sobre marfil */
  --night: #161311;
  --night-2: #211d19;
  --cream: #efe8dc;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --pad: 20px;
  --side: max(var(--pad), (100vw - min(86vw, 1320px)) / 2);
  --section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, p { margin: 0; }

.wrap { padding-inline: var(--side); }
.dark { background: var(--night); color: var(--cream); -webkit-font-smoothing: antialiased; }

.logo { display: block; width: auto; height: 22px; aspect-ratio: 398.04 / 55.49; flex-shrink: 0; overflow: visible; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 76px; padding-inline: var(--side);
  color: var(--ink);
  /* Sobre la portada el menú cae encima de las hojas de olivo: el marfil translúcido lo mantiene legible */
  background: rgb(244 239 231 / .9);
  transition: background-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease);
}
.site-header.is-light {
  height: 64px;
  background: rgb(244 239 231 / .96);
  color: var(--ink);
}
.brand { display: block; text-decoration: none; }
.brand .logo { height: 20px; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a, .mobile-nav a {
  font: 500 15px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { background-size: 100% 1px; }

.menu-toggle {
  display: none;
  font: 500 15px/1 var(--sans); color: inherit;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
}
.mobile-nav {
  position: fixed; inset: 64px 0 auto 0; z-index: 19;
  display: grid; gap: 4px; padding: 16px var(--side) 28px;
  background: var(--ivory); color: var(--ink);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 24px 40px -24px rgb(0 0 0 / .25);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font: 400 28px/1.3 var(--serif); padding-block: 6px; background: none; }

/* ---------- Enlace con subrayado en onda ---------- */
.wave {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'%3E%3Cpath d='M0 3 Q6 0 12 3 T24 3' fill='none' stroke='%23bcac90' stroke-width='1.2'/%3E%3C/svg%3E");
  display: inline-block;
  text-decoration: none;
  padding-bottom: 10px;
  background: var(--wave) 0 100% / 24px 6px repeat-x;
}
.wave:hover { animation: wave-flow .9s linear infinite; }
@keyframes wave-flow { to { background-position-x: 24px; } }

/* ---------- Nicho (arco) ---------- */
/* El nombre es literal: un nicho es el hueco en arco donde se exhibe una pieza. */
.niche {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--sand);
}
.niche img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero (común) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: var(--ivory);
  --tone: var(--ink);
}
.hero[data-tone="cream"] { --tone: var(--cream); }
.hero-slides { position: absolute; inset: 0; overflow: hidden; background: #b89a74; }
/* Fundido lento entre fotos; la activa se asienta con un acercamiento mínimo */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero-photo.is-active { opacity: 1; transform: none; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 34px; height: 18px; padding: 0;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.hero-dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--tone); opacity: .45;
  transition: opacity .4s var(--ease), background-color 1.2s var(--ease), height .4s var(--ease);
}
.hero-dots button[aria-pressed="true"]::before { opacity: 1; height: 2px; }
.hero-dots button:focus-visible { outline: 1px solid var(--tone); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ventana: un muro marfil con una ventana en arco; al bajar, la ventana se abre hasta ocupar la pantalla */
.hero--ventana { display: block; height: 230svh; overflow: visible; background: var(--ivory); }
.ventana-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ventana-window { position: absolute; inset: 0; clip-path: var(--clip, inset(20% 33% 18% 33% round 999px 999px 0 0)); background: #b89a74; }
.ventana-pan { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--sc, 1)); transform-origin: 50% 50%; transition: transform 1.4s var(--ease); }
.ventana-pan.is-scrubbing { transition: none; }
.ventana-caption {
  position: absolute; left: var(--cap-x, 0); top: var(--cap-y, 80%);
  display: grid; justify-items: start; gap: 16px;
  width: max-content;
  opacity: var(--cap-o, 1);
}
.hero--ventana[data-align="centro"] .ventana-caption { justify-items: center; }
.hero--ventana[data-align="centro"] .ventana-word { text-indent: .3em; }
.ventana-word { font-size: clamp(36px, 3.6vw, 64px); letter-spacing: .3em; text-indent: 0; }
.ventana-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 32px; opacity: var(--dots-o, 0); --tone: var(--cream); }

/* Referencia: la foto de la etiqueta, fija, con el bloque en la mitad libre (como la referencia de Matías) */
.ref-block {
  position: absolute;
  left: 27%; top: 46%;
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 22px;
  width: max-content;
  color: var(--tone);
  transition: color 1.4s var(--ease);
}

.ref-word {
  white-space: nowrap;
  font: 400 clamp(40px, 4.4vw, 80px)/1 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
}
.ref-block .hero-dots { margin-top: 18px; }
.ref-word .ch { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.2em); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(.4s + var(--i, 0) * 80ms); }
.ref-word.is-in .ch { opacity: 1; filter: none; transform: none; }
.hero--ref .hero-slides { translate: 0 var(--shift-photo, 0); }


/* ---------- Who we are ---------- */
.who { padding-top: var(--section); }
.who-inner { display: grid; justify-items: center; gap: 28px; text-align: center; }
.logo--gold { height: clamp(26px, 3vw, 38px); color: var(--gold-deep); }
.lead .w { opacity: .22; transition: opacity .5s var(--ease); }
.lead .w.on { opacity: 1; }
.lead {
  max-width: 30em;
  font: 400 clamp(26px, 2.3vw, 34px)/1.32 var(--serif);
  font-variation-settings: "opsz" 48;
  text-wrap: pretty;
}
.band { margin-top: var(--section); }
.band img {
  width: 100%;
  height: clamp(280px, 38vw, 560px);
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 28px;
}

/* ---------- Etiquetas ---------- */
.label {
  font: 500 15px/1.4 var(--serif);
  font-variation-settings: "opsz" 14;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.dark .label { color: var(--gold); }
.label--center { text-align: center; }

/* ---------- What we do ---------- */
.what { padding-block: var(--section); }
.what-inner {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(40px, 8vw, 128px);
  align-items: center;
}
.niche--side { aspect-ratio: 4 / 5.4; }
.niche--side img { object-position: 89% 50%; }
.what-text { display: grid; gap: 28px; max-width: 40em; }
.statement {
  font: 400 clamp(26px, 2.3vw, 34px)/1.32 var(--serif);
  font-variation-settings: "opsz" 48;
  text-wrap: pretty;
}

/* ---------- Our market ---------- */
.market { padding-block: var(--section); overflow: hidden; }
.market-inner {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.market-text { display: grid; gap: 24px; }
.market-copy {
  max-width: 24em;
  font: 400 clamp(26px, 2.3vw, 34px)/1.32 var(--serif);
  font-variation-settings: "opsz" 48;
  color: var(--cream);
  text-wrap: pretty;
}
.market-figure { justify-self: center; width: min(100%, 460px); }
.market-map { display: block; width: 100%; height: auto; overflow: visible; }
.map-context { fill: none; stroke: var(--gold); stroke-opacity: .16; stroke-width: 1; }
.map-country {
  fill: rgb(188 172 144 / 0);
  stroke: var(--gold); stroke-width: 1.4;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s cubic-bezier(.45, 0, .2, 1), fill 1.2s var(--ease) 2s;
}
.map-label { fill: var(--cream); font: italic 400 30px var(--serif); opacity: 0; transition: opacity 1s var(--ease) 2.2s; }
.market-figure.is-in .map-country { stroke-dashoffset: 0; fill: rgb(188 172 144 / .1); }
.market-figure.is-in .map-label { opacity: 1; }

/* Our markets: tipográfica */
.tipo-inner { display: grid; grid-template-columns: 1fr minmax(280px, 30em); column-gap: clamp(40px, 7vw, 112px); row-gap: 28px; align-items: end; }
.tipo-inner .label { grid-column: 1 / -1; }
.tipo-countries {
  display: grid;
  font: 300 clamp(44px, 4.6vw, 84px)/1.05 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: .01em;
  color: var(--cream);
}
.tipo-countries span:last-child { color: var(--gold); padding-left: .6em; }
.tipo-copy { padding-bottom: .4em; }

/* Our markets: foto sangrando a la derecha */
.market--foto { display: grid; grid-template-columns: 1fr 1fr; padding-block: 0; min-height: 86svh; }
.foto-text { display: grid; gap: 24px; align-content: center; padding: var(--section) clamp(32px, 6vw, 96px) var(--section) var(--side); }
.foto-media { position: relative; }
.foto-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

/* ---------- Brands ---------- */
.brands { padding-block: var(--section); }
.brand-grid {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.brand-grid li {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  background: var(--sand);
  border-radius: 24px;
  transition: background-color .5s var(--ease);
}
.brand-grid li:hover { background: #e2d8c8; }
.brand-grid img {
  width: min(var(--w), 72%);
  height: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); }
.contact-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 8vw, 128px);
  align-items: start;
}
.contact-info { display: grid; gap: 20px; }
.contact-title {
  font: 300 clamp(52px, 6vw, 84px)/1 var(--serif);
  font-variation-settings: "opsz" 72;
}
address {
  margin-top: 20px;
  font: 400 18px/1.7 var(--sans);
  font-style: normal;
  color: rgb(239 232 220 / .86);
}
.contact-form { display: grid; gap: 28px; }
.field { display: grid; gap: 6px; }
.field span { font: 500 15px/1.4 var(--sans); color: rgb(239 232 220 / .82); }
.field input, .field textarea {
  font: 400 19px/1.5 var(--sans);
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(188 172 144 / .45);
  border-radius: 0;
  padding: 8px 0 10px;
  resize: vertical;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.submit {
  justify-self: start;
  margin-top: 12px;
  font: 500 16px/1 var(--sans);
  color: var(--night);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 18px 40px;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.submit:hover, .submit:focus-visible { background: var(--cream); }
.submit:disabled { opacity: .6; cursor: progress; }
.field [aria-invalid="true"] { border-bottom-color: #d99a7e; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }
.form-actions .submit { margin-top: 0; }
.form-status { font: 400 16px/1.5 var(--sans); color: rgb(239 232 220 / .86); }
.form-status[data-kind="ok"] { color: var(--gold); }
.form-status[data-kind="error"] { color: #e8b39b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgb(188 172 144 / .18); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 36px;
  color: var(--gold);
}
.footer-inner .logo { height: 16px; }
.footer-inner p { font: 400 15px/1.4 var(--sans); color: rgb(239 232 220 / .8); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Fotos: se descubren como una cortina que sube, y la imagen se asienta mientras tanto */
.js .reveal--curtain { opacity: 1; transform: none; filter: none; }
.js .reveal--curtain img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1), transform 2.2s var(--ease); }
.js .reveal--curtain.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Marcas: entran en cascada */
.js .reveal--stagger { opacity: 1; transform: none; filter: none; }
.js .reveal--stagger li { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease), background-color .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal--stagger.is-in li { opacity: 1; transform: none; }
.brand-grid li img { transition: transform .6s var(--ease); }
.brand-grid li:hover img { transform: translateY(-3px) scale(1.03); }

/* LUXURY: letra por letra, saliendo de un leve desenfoque */

/* Capas de la portada que se mueven con el scroll */

.site-header { transition: background-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease), transform .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal--curtain img, .js .reveal--stagger li, .ref-word .ch,   .hero-photo { transition: opacity .01s; transform: none; }
  .wave:hover { animation: none; }
  .lead .w { opacity: 1; }
  .map-country, .map-label { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .what-inner, .market-inner, .contact-inner { grid-template-columns: 1fr; }
  .niche--side { max-width: 460px; width: 100%; justify-self: center; }
  .market-figure { max-width: 380px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid li.wide { grid-column: span 2; aspect-ratio: 3 / 1; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header { height: 64px; }
  .hero-photo { object-position: var(--pos-m, 50% 50%); }
  .hero-photo { object-position: var(--pos-m, 50% 50%); }
  .ref-block { left: 50%; top: 104px; transform: translateX(-50%); gap: 12px; }
  .hero--ventana { height: 200svh; }
  .ventana-word { font-size: 30px; letter-spacing: .3em; text-indent: .3em; }
  .ventana-caption { justify-items: center; }
  .ref-word { font-size: 34px; letter-spacing: .28em; text-indent: .28em; }
  .hero-dots button { width: 24px; }
  .tipo-inner { grid-template-columns: 1fr; }
  .market--foto { grid-template-columns: 1fr; }
  .foto-media { min-height: 62svh; order: -1; }
  .foto-text { padding: 64px 16px 72px; }
  .brand-grid { gap: 10px; }
  .brand-grid li { border-radius: 18px; }
  .brand-grid img { width: min(var(--w), 74%); }
  .band img { border-radius: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .brand-grid li.wide img { width: min(var(--w), 70%); }
}
.credit {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 100% / 100% 1px no-repeat;
  transition: color .3s var(--ease);
}
.credit:hover, .credit:focus-visible { color: var(--gold); }

/* ---------- Panel para elegir variantes (solo maqueta) ---------- */
.picker {
  position: fixed; left: 50%; bottom: 14px; z-index: 30;
  transform: translateX(-50%);
  display: flex; gap: 22px; align-items: center;
  padding: 10px 18px;
  background: rgb(22 19 17 / .92);
  color: var(--cream);
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .45);
  -webkit-font-smoothing: antialiased;
}
.picker-row { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.picker-row span { color: var(--gold); margin-right: 6px; }
.picker button {
  font: inherit; color: rgb(239 232 220 / .7);
  background: none; border: 0; padding: 6px 8px; border-radius: 999px; cursor: pointer;
}
.picker button:hover { color: var(--cream); }
.picker button[aria-pressed="true"] { color: var(--night); background: var(--gold); }
@media (max-width: 760px) {
  .picker { flex-direction: column; gap: 6px; border-radius: 18px; padding: 10px 12px; width: calc(100% - 24px); align-items: stretch; }
  .picker-row { justify-content: space-between; }
}
/* Las variantes ocultas no se muestran aunque su bloque tenga display propio */
.variants > [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero--ventana { height: 100svh; }
}

/* ---------- Entrada: el logo sobre marfil mientras carga la portada ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--ivory);
  color: var(--gold-deep);
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.loader .logo { height: 26px; animation: loader-breathe 1.8s var(--ease) infinite alternate; }
@keyframes loader-breathe { from { opacity: .35; } to { opacity: 1; } }
.loader.is-done { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .loader .logo { animation: none; } }
