/* ============================================================
   AHLI — Fichas de producto (web/p/*.html)
   Se apoya en css/styles.css; aquí solo lo específico de ficha.
   Acento por referencia: --acc inyectado en <body> por build.py
   ============================================================ */

.product-page { --acc: var(--ember); }

/* El link "← Colección" debe verse también en móvil
   (styles.css oculta los links de nav no-CTA bajo 640px) */
.product-page .header-nav .back-link { display: inline-block; }

/* ============ HERO DE FICHA ============ */
.ficha-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8.5rem var(--gutter) 4rem;
}
.ficha-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ficha-blob {
  width: 58vmax; height: 58vmax;
  top: -20vmax; right: -18vmax;
  background: radial-gradient(circle at 40% 45%, var(--acc) 0%, rgba(17, 2, 4, 0) 65%);
  opacity: 0.22;
}
.ficha-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.ficha-brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  margin: 0 0 0.4rem;
  opacity: 0.65;
}
.ficha-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 10.5vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  margin: 0 0 1.3rem;
  overflow-wrap: anywhere;
}
.ficha-mito {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  max-width: 30rem;
  margin: 0 0 1.8rem;
  opacity: 0.82;
}
.acc-bar {
  width: 74px;
  height: 6px;
  background: var(--acc);
}

/* ---------- Placa de render ---------- */
.ficha-plate {
  position: relative;
  margin: 0;
  background: var(--ivory);
  border: 1px solid rgba(17, 2, 4, 0.1);
  box-shadow: 0 30px 70px -28px rgba(17, 2, 4, 0.35);
  overflow: hidden;
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}
.ficha-plate > img {
  width: 100%;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}
.ficha-aura {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--ember), var(--sin), var(--myth), var(--ember));
  filter: blur(52px);
  opacity: 0.4;
  will-change: transform, opacity;
}
.ficha-plate-caption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.2rem 1rem;
  border-top: 1px solid rgba(17, 2, 4, 0.08);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(17, 2, 4, 0.62);
}

/* ---------- Placa tipográfica (ANTLIA / ORION, sin render) ---------- */
.ficha-plate--typo {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ember) 0%, var(--sin) 42%, #3d1020 72%, var(--myth) 105%);
  border: none;
}
.ficha-plate--typo-alt {
  background: linear-gradient(210deg, var(--myth) -5%, #23202e 38%, var(--sin) 78%, var(--ember) 108%);
}
.ficha-plate--typo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}
.fplate-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(11rem, 26vw, 19rem);
  line-height: 1;
  color: rgba(242, 237, 216, 0.94);
  text-shadow: 0 10px 60px rgba(17, 2, 4, 0.4);
}
.fplate-name {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(242, 237, 216, 0.9);
}
.fplate-note {
  position: absolute;
  left: 1.4rem;
  bottom: 1.1rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 237, 216, 0.72);
}

/* ============ CUERPO DE FICHA ============ */
.ficha-body {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(4rem, 9vh, 6rem);
}
.ficha-copy-block .eyebrow { color: var(--acc); }
.ficha-copy {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.72;
  margin: 0;
}

/* ---------- Pirámide olfativa ---------- */
.ficha-pyramid {
  margin-top: clamp(3rem, 7vh, 4.5rem);
}
.ficha-pyramid .eyebrow { margin-bottom: 1.1rem; }
.pyr-grid-f {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--abyss);
}
.pyr-col-f {
  padding: 1.3rem 1.4rem 0 0;
}
.pyr-col-f + .pyr-col-f {
  border-left: 1px solid rgba(17, 2, 4, 0.22);
  padding-left: 1.6rem;
}
.pyr-col-f h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 0.8rem;
}
.pyr-col-f ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pyr-col-f li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.45;
}
@media (max-width: 640px) {
  .pyr-grid-f { grid-template-columns: 1fr; }
  .pyr-col-f + .pyr-col-f {
    border-left: none;
    border-top: 1px solid rgba(17, 2, 4, 0.22);
    padding-left: 0;
    margin-top: 1.2rem;
  }
}

/* ---------- Pirámide en definición ---------- */
.badge-open-f {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--abyss);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.ficha-open-note {
  max-width: 34rem;
  font-size: 0.98rem;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Specs ---------- */
.ficha-specs {
  margin: clamp(3rem, 7vh, 4.5rem) 0 0;
  display: grid;
  gap: 1.1rem;
  border-top: 1px solid rgba(17, 2, 4, 0.18);
  padding-top: 1.6rem;
}
.ficha-specs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  align-items: baseline;
}
.ficha-specs dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acc);
  min-width: 6.5rem;
}
.ficha-specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ============ PREV / SIGUIENTE ============ */
.ficha-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 9vh, 6rem);
}
.ficha-nav-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(17, 2, 4, 0.22);
  min-width: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.ficha-nav-next { text-align: right; }
.ficha-nav-link:hover {
  border-color: var(--abyss);
  background: rgba(242, 237, 216, 0.55);
}
.ficha-nav-dir {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.6;
}
.ficha-nav-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}
.ficha-nav-link:hover .ficha-nav-name { color: var(--sin); }
.ficha-nav-all {
  align-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1.5px solid var(--sin);
  padding-bottom: 0.25rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ficha-nav { flex-wrap: wrap; }
  .ficha-nav-link { flex: 1 1 40%; }
  .ficha-nav-all { order: 3; flex: 1 1 100%; text-align: center; align-self: auto; border-bottom: none; margin-top: 0.6rem; }
}

/* ============ HERO RESPONSIVE ============ */
@media (max-width: 899px) {
  .ficha-hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }
  .ficha-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .ficha-hero-art { order: -1; }
  .ficha-plate { max-width: 21rem; }
}
