/* ══════════════════════════════════════════════════════════
   MousseOlive — lookbook
   Paleta e identidad tomadas del catálogo del cliente.
   ══════════════════════════════════════════════════════════ */

:root {
  /* Identidad del cliente */
  --crema: #f7efe3;
  --crema-alta: #fdf9f2;
  --berenjena: #21132d;
  --tinta: #160d1e;          /* berenjena profundo, para el mundo oscuro */
  --dorado: #bc964f;         /* solo sobre oscuro */
  --dorado-tinta: #7a5d26;   /* misma familia, legible sobre crema */
  --granate: #9e1b2f;
  --oliva: #4b491d;

  /* Texto */
  --sobre-crema: #241a2e;
  --sobre-crema-2: #5b5150;
  --sobre-tinta: #f3ebe0;
  --sobre-tinta-2: #c3b4cf;

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --marco: min(1320px, 92vw);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--sobre-crema);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }

::selection { background: var(--berenjena); color: var(--crema); }

.skip {
  position: absolute;
  left: -9999px;
  z-index: 99;
  background: var(--berenjena);
  color: var(--crema);
  padding: 0.9rem 1.4rem;
  text-decoration: none;
}
.skip:focus { left: 0; top: 0; }

:where(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ─────────── Botones ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

.btn--solid {
  background: var(--berenjena);
  color: var(--crema);
  box-shadow: 0 10px 26px -12px rgba(22, 13, 30, 0.7);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--tinta);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(22, 13, 30, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--sobre-crema);
  border-color: rgba(36, 26, 46, 0.28);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--berenjena);
  background: rgba(36, 26, 46, 0.05);
  transform: translateY(-2px);
}

/* ─────────── Cabecera ─────────── */

.masthead {
  width: var(--marco);
  margin: 0 auto;
  padding: 1.9rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.masthead__brand img { width: 46px; height: auto; }

.masthead__link {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(36, 26, 46, 0.3);
  transition: border-color 0.4s var(--ease);
}
.masthead__link:hover { border-color: var(--berenjena); }

/* ═══════════ HERO ═══════════ */

/* La foto ocupa el hero entero y se disuelve en la crema por el lado del
   texto y por abajo: no hay rectángulo, no hay marco, no hay costura. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(580px, 86vh, 900px);
  display: grid;
  align-content: center;
  gap: clamp(2.4rem, 5vw, 3.6rem);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

/* arranca pasado el texto para que el producto caiga en la zona visible */
.hero__media {
  position: absolute;
  inset: 0 0 0 22%;
  z-index: -2;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 48%;
}

/* el velo: crema sólida bajo el texto, transparente sobre el producto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(247, 239, 227, 0) 56%, var(--crema) 93%),
    linear-gradient(96deg,
      var(--crema) 0%,
      var(--crema) 30%,
      rgba(247, 239, 227, 0.9) 41%,
      rgba(247, 239, 227, 0.45) 54%,
      rgba(247, 239, 227, 0) 70%);
}

.hero__type,
.specs {
  width: var(--marco);
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  line-height: 0.99;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--granate);
}
.hero__title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__title .ln > span { display: block; }

.hero__lede {
  margin-top: 1.9rem;
  max-width: 40ch;
  color: var(--sobre-crema-2);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.specs {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(122, 93, 38, 0.28);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem 2rem;
}
.specs li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado-tinta);
}
.specs svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════ MANIFIESTO ═══════════ */

.manifesto {
  width: var(--marco);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 940px) {
  .manifesto {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
  .manifesto__ornament { grid-column: 1 / -1; }
}

.manifesto__claim {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.manifesto__claim em {
  font-style: italic;
  color: var(--granate);
}

.manifesto__body {
  display: grid;
  gap: 1.3rem;
  max-width: 62ch;
  color: var(--sobre-crema-2);
}
/* el gancho abre la columna: mismo texto, más peso visual */
.manifesto__body p:first-child {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  color: var(--berenjena);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(122, 93, 38, 0.3);
}

.manifesto__ornament {
  width: 210px;
  height: auto;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  opacity: 0.85;
}

/* ═══════════ LA COLECCIÓN (mundo oscuro) ═══════════ */

.collection {
  position: relative;
  isolation: isolate;
  background: var(--tinta);
  color: var(--sobre-tinta);
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
}

/* grano finísimo: da materia impresa al fondo plano */
.collection::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
}

/* halo cálido en la entrada: evita el negro plano sin aclarar el mundo */
.collection::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(90% 100% at 50% 0%, rgba(88, 52, 118, 0.42), transparent 72%);
}

.collection__intro {
  width: var(--marco);
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .collection__intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 7vw, 7.5rem);
    align-items: end;
  }
}

.collection__title {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.collection__lede {
  max-width: 44ch;
  color: var(--sobre-tinta-2);
  font-size: 1.05rem;
  line-height: 1.8;
  padding-bottom: 0.4rem;
}

/* ─── Cada sabor: una doble página ─── */

.flavour {
  width: var(--marco);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .flavour {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    column-gap: clamp(3rem, 7vw, 7.5rem);
  }
  .flavour--flip .flavour__shot { order: 2; }
}

.flavour__shot { position: relative; }
.flavour__shot::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(188, 150, 79, 0.42);
  border-radius: 2px;
  z-index: -1;
}
.flavour--flip .flavour__shot::after {
  inset: 22px 22px -22px -22px;
}
.flavour__shot img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}

.flavour__index {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: rgba(188, 150, 79, 0.65);
}
.flavour__index span {
  font-weight: 600;
  color: var(--dorado);
}

.flavour__name {
  margin-top: 0.9rem;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--crema-alta);
}

.flavour__note {
  margin-top: 1.3rem;
  max-width: 44ch;
  color: var(--sobre-tinta-2);
  line-height: 1.8;
}

.flavour__pair {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(188, 150, 79, 0.3);
  max-width: 44ch;
}
.flavour__pair dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
}
.flavour__pair dd {
  margin-top: 0.5rem;
  color: var(--sobre-tinta);
  font-size: 0.98rem;
}

/* ─── Usos ─── */

.uses {
  width: var(--marco);
  margin: clamp(3.5rem, 8vw, 6.5rem) auto 0;
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid rgba(188, 150, 79, 0.24);
}

.uses__title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.uses__list {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.uses__shot {
  display: block;
  width: clamp(112px, 15vw, 152px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(188, 150, 79, 0.55);
  padding: 5px;
}
.uses__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.uses__list h3 {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
}
.uses__list p {
  margin-top: 0.6rem;
  max-width: 26ch;
  color: var(--sobre-tinta-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════ PROFESIONALES ═══════════ */

.trade {
  width: var(--marco);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7.5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 940px) {
  .trade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

.trade__title {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.trade__body {
  display: grid;
  gap: 1.3rem;
  max-width: 60ch;
  color: var(--sobre-crema-2);
}
.trade__note { color: var(--sobre-crema); }

.trade__actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ═══════════ CONTACTO ═══════════ */

.contact {
  position: relative;
  isolation: isolate;
  background: var(--berenjena);
  color: var(--sobre-tinta);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g2)' opacity='0.05'/%3E%3C/svg%3E");
}

.contact__title {
  width: var(--marco);
  margin: 0 auto;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact__list {
  width: var(--marco);
  margin: clamp(2.5rem, 5vw, 3.6rem) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.contact__list li {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(188, 150, 79, 0.32);
}
.contact__list span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
}
.contact__list a {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  text-decoration: none;
  color: var(--crema-alta);
  justify-self: start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.contact__list a:hover,
.contact__list a:focus-visible { border-color: var(--dorado); }

.colophon {
  width: var(--marco);
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(243, 235, 224, 0.14);
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--sobre-tinta-2);
}
.colophon__mark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--crema-alta);
  margin-bottom: 0.3rem;
}
.colophon__mark sup { font-size: 0.5em; vertical-align: super; }
.colophon__legal { font-size: 0.72rem; opacity: 0.72; }

/* ═══════════ Botón flotante ═══════════ */

.float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  background: var(--berenjena);
  color: var(--crema);
  border: 1px solid rgba(188, 150, 79, 0.5);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px -14px rgba(22, 13, 30, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              visibility 0.5s, background-color 0.4s var(--ease);
}
.float.is-on { opacity: 1; visibility: visible; transform: none; }
.float:hover, .float:focus-visible { background: var(--tinta); }
.float svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--dorado);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════ Movimiento ═══════════
   Dos momentos: la entrada del titular al cargar
   y la aparición de cada sabor al entrar en pantalla.
   Sin JS, todo queda visible.                        */

.js .hero__title .ln > span {
  transform: translateY(105%);
  animation: subir 1.15s var(--ease) forwards;
}
.js .hero__title .ln:nth-child(1) > span { animation-delay: 0.1s; }
.js .hero__title .ln:nth-child(2) > span { animation-delay: 0.22s; }
.js .hero__title .ln:nth-child(3) > span { animation-delay: 0.34s; }

.js .hero__lede,
.js .hero__actions,
.js .specs {
  opacity: 0;
  animation: entrar 1.1s var(--ease) forwards;
}
.js .hero__lede   { animation-delay: 0.55s; }
.js .hero__actions{ animation-delay: 0.66s; }
.js .specs        { animation-delay: 0.78s; }

/* La foto se asienta mientras entra el titular. Nunca parte de opacity:0
   — es el elemento LCP y ocultarlo retrasaría el primer pintado. */
.js .hero__img {
  transform: scale(1.07);
  animation: asentar 2.4s var(--ease) forwards;
}
@keyframes asentar { to { transform: none; } }

@keyframes subir { to { transform: none; } }
@keyframes entrar { from { transform: translateY(18px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

/* la firma de la colección: el tarro asciende y se asienta */
.js .flavour .flavour__shot img {
  transform: scale(1.06) translateY(20px);
  transition: transform 1.5s var(--ease);
}
.js .flavour.is-in .flavour__shot img { transform: none; }

.js .flavour .flavour__shot::after {
  opacity: 0;
  transition: opacity 1.1s var(--ease) 0.25s;
}
.js .flavour.is-in .flavour__shot::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__title .ln > span,
  .js .hero__lede,
  .js .hero__actions,
  .js .specs,
  .js .hero__media,
  .js .hero__img,
  .js .reveal,
  .js .flavour .flavour__shot img,
  .js .flavour .flavour__shot::after {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .float { transition: none; }
}

/* ═══════════ Móvil ═══════════ */

/* En móvil la foto entra en el flujo, a sangre y fundida arriba y abajo */
@media (max-width: 939px) {
  .hero {
    min-height: 0;
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    gap: clamp(1.8rem, 5vw, 2.6rem);
  }
  .hero::before { display: none; }

  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 2;
    height: clamp(290px, 62vw, 430px);
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      var(--crema) 0%,
      rgba(247, 239, 227, 0) 24%,
      rgba(247, 239, 227, 0) 74%,
      var(--crema) 100%);
  }
  .hero__img { object-position: 56% 46%; }

  .hero__type { order: 1; }
  .specs { order: 3; }
}

@media (max-width: 899px) {
  .flavour__shot::after,
  .flavour--flip .flavour__shot::after { inset: 14px -14px -14px 14px; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .btn { width: 100%; padding: 1.05rem 1.5rem; }
  .hero__actions, .trade__actions { gap: 0.7rem; }
  .float span { display: none; }
  .float { padding: 1rem; }
  .float svg { width: 22px; height: 22px; }
}
