@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

/* ═══════════════════════════════════════════════
   NEXO GENUINE · Home
   Paleta tomada del esquema: granate, crema, oro
   ═══════════════════════════════════════════════ */
:root {
  --granate: #5a1e25;
  --granate-oscuro: #43161b;
  --crema: #efe9dc;
  --oro: #c9a15c;
  --oro-claro: #f0d9a8;
  --tinta: #2b2320;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--crema);
  color: var(--tinta);
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* ── Pre-header ────────────────────────────────── */
.pre-header {
  width: 100%;
  background-color: #3F5248;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.18em;
}

.pre-header__text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #C49A83;
  text-transform: uppercase;
}

/* ── Nav principal horizontal ────────────────── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  padding: 0 clamp(1rem, 3vw, 3rem);
  background: var(--crema);
  border-bottom: 1px solid rgba(201, 161, 92, .3);
  box-shadow: 0 2px 16px rgba(43, 22, 25, .08);
  height: 64px;
}

/* Acciones derecha nav (buscador + switch de idioma) */
.main-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .85rem;
}

/* Buscador (derecha) */
.main-nav__search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-form__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(201, 161, 92, .45);
  border-radius: 999px;
  padding: .35em .9em;
  background: rgba(201, 161, 92, .06);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.search-form__inner:focus-within {
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(201, 161, 92, .18);
}

.search-form__icon {
  width: 16px;
  height: 16px;
  color: var(--granate);
  flex-shrink: 0;
  opacity: .7;
}

.search-form__input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--tinta);
  width: 140px;
  transition: width .3s ease;
}

.search-form__input::placeholder {
  color: rgba(43, 35, 32, .45);
}

.search-form__input:focus {
  width: 200px;
}

/* Oculta el botón nativo de limpiar en Chrome */
.search-form__input::-webkit-search-cancel-button {
  display: none;
}

/* Accesibilidad: ocultar visualmente */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Switch de Idioma (ES / EN) ────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  user-select: none;
  flex-shrink: 0;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
  line-height: 1;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 1px;
}

/* Variante Desktop Nav */
.lang-switch--nav {
  border: 1px solid rgba(201, 161, 92, .45);
  background: rgba(201, 161, 92, .06);
  box-shadow: inset 0 1px 2px rgba(43, 22, 25, .04);
}

.lang-switch--nav .lang-switch__btn {
  color: var(--granate);
  opacity: .65;
}

.lang-switch--nav .lang-switch__btn:hover {
  opacity: 1;
  color: var(--oro);
}

.lang-switch--nav .lang-switch__btn.is-active {
  background: var(--granate);
  color: #fff;
  opacity: 1;
  font-weight: 600;
  box-shadow: 0 1px 5px rgba(90, 30, 37, .35);
}

/* Variante Mobile Off-Canvas Drawer */
.mob-drawer__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem 1.25rem 1.6rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid rgba(196, 154, 131, .18);
}

.mob-drawer__lang-label {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C49A83;
  opacity: .85;
}

.lang-switch--mob {
  border: 1px solid rgba(196, 154, 131, .35);
  background: rgba(0, 0, 0, .2);
}

.lang-switch--mob .lang-switch__btn {
  color: #C49A83;
  opacity: .7;
}

.lang-switch--mob .lang-switch__btn:hover {
  opacity: 1;
  color: #fff;
}

.lang-switch--mob .lang-switch__btn.is-active {
  background: #C49A83;
  color: #2b2320;
  opacity: 1;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* Transición suave al alternar idioma */
.i18n-transitioning main,
.i18n-transitioning .hero,
.i18n-transitioning .mundo,
.i18n-transitioning .main-nav__list,
.i18n-transitioning .mob-nav {
  opacity: .85;
  transition: opacity .12s ease;
}

/* Lista principal (centro) */
.main-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.6rem, 2vw, 2rem);
}

/* Item */
.main-nav__item {
  position: relative;
}

/* Enlace de nivel 1 */
.main-nav__link {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--granate);
  text-decoration: none;
  letter-spacing: .04em;
  padding: .35em .1em;
  position: relative;
  transition: color .25s ease;
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.main-nav__item:hover .main-nav__link,
.main-nav__item:focus-within .main-nav__link {
  color: var(--oro);
}

.main-nav__item:hover .main-nav__link::after,
.main-nav__item:focus-within .main-nav__link::after {
  transform: scaleX(1);
}


/* Dropdown */
.main-nav__dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 160px;
  background: #4D5B51;
  border-radius: 10px;
  padding: 1rem 0;
  box-shadow: 0 12px 32px rgba(43, 22, 25, .22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 80;
}

/* Puntero triangular */
.main-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #4D5B51;
}

/* Puente invisible para evitar pérdida del hover */
.main-nav__dropdown::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.main-nav__item:hover .main-nav__dropdown,
.main-nav__item:focus-within .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Links del dropdown */
.main-nav__dropdown li a {
  display: block;
  padding: .85em 1.8em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: #BCBBA4;
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

.main-nav__dropdown li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* Logo imagen (derecha) */
.main-nav__logo-img {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: opacity .2s ease;
}

.main-nav__logo-img:hover {
  opacity: .8;
}

.main-nav__logo-img img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Sección 1 · Hero vitrina ──────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  padding: 3rem 0;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hotspot polygon {
  fill: rgba(255, 255, 255, 0);
  stroke: rgba(240, 217, 168, 0);
  stroke-width: 3;
  cursor: pointer;
  transition: fill .3s ease, stroke .3s ease, filter .3s ease;
  pointer-events: all;
}

.hotspot:hover polygon,
.hotspot:focus polygon {
  fill: rgba(255, 255, 255, 0);
  stroke: rgba(240, 217, 168, 0);
  filter: none;
}

.hotspot:focus {
  outline: none;
}

/* Ocultar enlaces a las marcas en el 2do, 3ero y 4to slide */
.hero-vitrina.is-secondary-slide .hotspot--brand {
  display: none !important;
  pointer-events: none !important;
}

/* Tooltip que sigue al cursor sobre la vitrina */
.hero__tooltip {
  position: fixed;
  z-index: 40;
  padding: .45em 1em;
  border: 1px solid var(--oro);
  border-radius: 999px;
  background: rgba(43, 22, 25, .85);
  backdrop-filter: blur(4px);
  color: var(--oro-claro);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity .2s ease;
  pointer-events: none;
}

.hero__tooltip.is-visible {
  opacity: 1;
}

/* ── Vitrina ShowRoom (Página marcas) ───────────── */
body.page-marcas {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  overflow-y: auto;
  overflow-x: hidden;
}

body.page-marcas .band--footer {
  margin-top: auto;
}

.hero-vitrina {
  flex: 1 0 auto;
  width: 100%;
  aspect-ratio: 1600 / 897;
  min-height: calc(100vh - 120px);
  min-height: calc(100dvh - 120px);
  position: relative;
  overflow: hidden;
  background: #000;
  user-select: none;
}

.hero-vitrina__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Slide para el Hero: transición suave con efecto desvanecer (fade) */
.hero-vitrina__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-vitrina__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.55s ease-in-out, visibility 0.55s ease-in-out;
  pointer-events: none;
}

.hero-vitrina__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.hero-vitrina__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

picture.hero-vitrina__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

picture.hero-vitrina__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-vitrina__hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-vitrina__hotspots--desktop {
  display: block;
}

.hero-vitrina__hotspots--mobile {
  display: none;
}

/* Las flechas de control del banner */
button.back, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(18, 14, 15, 0.55);
  border: 1px solid rgba(220, 195, 140, 0.35);
  color: #f7eed7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 0;
}

button.back {
  left: 1.5rem;
}

button.next {
  right: 1.5rem;
}

button.back:hover, button.next:hover {
  background-color: rgba(35, 20, 24, 0.88);
  border-color: rgba(220, 195, 140, 0.9);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 25px rgba(220, 195, 140, 0.3);
}

button.back:focus-visible, button.next:focus-visible {
  outline: 2px solid #dcc38c;
  outline-offset: 2px;
}

/* Indicadores discretos de las 4 vistas */
.hero-vitrina__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 20;
  padding: 0.35rem 0.8rem;
  background: rgba(15, 12, 13, 0.5);
  border: 1px solid rgba(220, 195, 140, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.hero-vitrina__dot {
  width: 24px;
  height: 4px;
  border-radius: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.hero-vitrina__dot:hover {
  background: rgba(220, 195, 140, 0.7);
}

.hero-vitrina__dot.is-active {
  width: 24px;
  background: #dcc38c;
  box-shadow: 0 0 10px rgba(220, 195, 140, 0.55);
}

.hero-vitrina__dot:focus-visible {
  outline: 2px solid #dcc38c;
  outline-offset: 2px;
}

/* Versión móvil: Vitrina Showroom para imágenes verticales (1080x1920) */
@media (max-width: 860px) and (max-aspect-ratio: 1600/897), (max-width: 640px) {
  .hero-vitrina {
    width: 100%;
    aspect-ratio: 1080 / 1920;
    height: auto;
    min-height: calc(100svh - 96px);
    flex: none;
  }

  .hero-vitrina__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    transform: none;
    aspect-ratio: auto;
  }

  .hero-vitrina__img,
  picture.hero-vitrina__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-vitrina__hotspots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: manipulation;
  }

  .hero-vitrina__hotspots--desktop {
    display: none !important;
  }

  .hero-vitrina__hotspots--mobile {
    display: block !important;
  }

  button.back, button.next {
    width: 40px;
    height: 40px;
  }

  button.back {
    left: 0.75rem;
  }

  button.next {
    right: 0.75rem;
  }

  .hero-vitrina__dots {
    bottom: 1rem;
    gap: 0.45rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-vitrina__dot {
    width: 18px;
    height: 3px;
  }

  .hero-vitrina__dot.is-active {
    width: 18px;
  }
}

/* ── Vitrinas individuales de marcas ───────────── */
.page-vitrina-single {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

.page-vitrina-single .pre-header {
  flex: 0 0 auto;
  width: 100%;
  padding: 6px 16px;
  letter-spacing: 0.16em;
}

.page-vitrina-single .pre-header__text {
  font-size: 0.92rem;
}

.page-vitrina-single .main-nav {
  flex: 0 0 auto;
  position: relative !important;
  top: auto !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 56px;
}

.vitrina-single {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.vitrina-single__link,
.vitrina-single picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-decoration: none;
}

.vitrina-single__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border: none;
}

.page-vitrina-single .band--footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 1.5rem;
  margin: 0;
}

/* En móvil, encuadre centrado para las imágenes verticales */
@media (max-width: 860px) and (max-aspect-ratio: 1600/897), (max-width: 640px) {
  .vitrina-single__img,
  .vitrina-matarrania__img,
  .vitrina-lamia__img {
    object-position: center center;
  }
}

/* ── Franja separadora hero ─────────────────────── */
.band {
  background: #4D5B51;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.band__label,
.band__sub {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  color: #C49A83;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.band__label {
  font-size: 1rem;
  text-transform: uppercase;
}

.band__sub {
  font-size: 1.33rem;
  font-style: italic;
}

.band__divider {
  color: #C49A83;
  opacity: .5;
  font-size: 1rem;
}

.band--footer {
  height: auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: center;
}

.band--footer p {
  color: var(--crema);
  font-family: var(--font-serif);
  font-size: .95rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ── Sección 2 · Un mundo de bienestar ─────────── */
.mundo {
  position: relative;
  background: url("../img/img-fondo-video.webp") center / cover no-repeat;
}

.mundo::before {
  /* velo cálido para legibilidad del heading */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(239, 233, 220, .55) 0%, rgba(239, 233, 220, .15) 45%, rgba(67, 22, 27, .35) 100%);
}

.mundo__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.mundo__heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--tinta);
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(239, 233, 220, .8);
}

.mundo__subheading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  line-height: 1.25;
  color: var(--tinta);
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(239, 233, 220, .8);
  margin-top: calc(-1 * clamp(1.5rem, 3.8vw, 3rem));
}

.mundo__door {
  width: min(560px, 82vw);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(43, 22, 25, .45);
  margin-bottom: 3rem;
}

.mundo__door video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 10;
  /* vídeo recortado a proporción intermedia 9:10 */
  object-fit: cover;
  /* red de seguridad si se sustituye el archivo */
}

/* ═══════════════════════════════════════════════
   PLANTILLA · Archivo de marcas
   ═══════════════════════════════════════════════ */

/* ── Cabecera de página + migas de pan ─────────── */
.page-head {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 0;
  text-align: center;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35em;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--granate);
}

.breadcrumbs li+li::before {
  content: "›";
  margin-right: .5em;
  color: var(--oro);
}

.breadcrumbs a {
  color: var(--granate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}

.breadcrumbs a:hover {
  color: var(--oro);
  border-color: var(--oro);
}

.breadcrumbs [aria-current="page"] {
  color: var(--tinta);
  opacity: .65;
}

.page-title {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--granate);
  line-height: 1.05;
}

.page-subtitle {
  margin: .8rem auto 0;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--tinta);
  opacity: .8;
}

/* ── Grid de marcas: 2 columnas × 3 filas ──────── */
.brands-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.5rem);
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(201, 161, 92, .35);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--tinta);
  box-shadow: 0 6px 18px rgba(43, 22, 25, .08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(43, 22, 25, .18);
  border-color: var(--oro);
}

.brand-card__logo {
  display: grid;
  place-items: center;
  height: 170px;
  padding: 1.2rem;
  background: var(--crema);
  border-bottom: 1px solid rgba(201, 161, 92, .25);
}

.brand-card__logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: multiply;
  /* funde el fondo del recorte con la crema */
  transition: transform .35s ease;
}

.brand-card:hover .brand-card__logo img {
  transform: scale(1.05);
}

.brand-card h2 {
  padding: 1.2rem 1.4rem 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--granate);
}

.brand-card p {
  padding: .5rem 1.4rem 0;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.55;
  flex-grow: 1;
}

.brand-card__cta {
  padding: 1rem 1.4rem 1.3rem;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro);
  transition: letter-spacing .3s ease, color .3s ease;
}

.brand-card:hover .brand-card__cta {
  color: var(--granate);
  letter-spacing: .3em;
}

@media (max-width: 720px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Animación de entrada ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Responsive · Mobile nav ────────────────────── */

/* Botón hamburguesa y drawer — ocultos en desktop */
.mob-menu-btn,
.mob-backdrop,
.mob-drawer {
  display: none;
}

@media (max-width: 980px) {

  /* Nav: solo logo + hamburguesa */
  .main-nav {
    grid-template-columns: 1fr auto;
  }

  .main-nav__list,
  .main-nav__search,
  .main-nav__actions {
    display: none !important;
  }

  /* Botón hamburguesa */
  .mob-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background .2s ease;
  }

  .mob-menu-btn:hover {
    background: rgba(201, 161, 92, .12);
  }

  .mob-menu-btn__bar {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--granate);
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
    transform-origin: center;
  }

  /* Animación → X */
  .mob-menu-btn.is-open .mob-menu-btn__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mob-menu-btn.is-open .mob-menu-btn__bar:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .mob-menu-btn.is-open .mob-menu-btn__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Backdrop */
  .mob-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(43, 22, 25, .45);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
  }

  .mob-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer lateral derecho */
  .mob-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    width: min(300px, 82vw);
    height: 100dvh;
    background: #3F5248;
    padding: 5rem 0 2rem;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22, .8, .3, 1);
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
  }

  .mob-drawer.is-open {
    transform: translateX(0);
  }

  /* Lista mobile */
  .mob-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
  }

  .mob-nav__item {
    border-bottom: 1px solid rgba(196, 154, 131, .15);
  }

  .mob-nav__item:first-child {
    border-top: 1px solid rgba(196, 154, 131, .15);
  }

  /* Links directos */
  .mob-nav__link {
    display: block;
    padding: 1rem 1.6rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #C49A83;
    text-decoration: none;
    letter-spacing: .06em;
    transition: color .2s ease, padding-left .2s ease;
  }

  .mob-nav__link:hover {
    color: #fff;
    padding-left: 2rem;
  }

  /* Botón toggle acordeón */
  .mob-nav__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    background: none;
    border: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #C49A83;
    letter-spacing: .06em;
    cursor: pointer;
    text-align: left;
    transition: color .2s ease;
  }

  .mob-nav__toggle:hover {
    color: #fff;
  }

  /* Chevron del toggle */
  .mob-nav__toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .3s ease;
    flex-shrink: 0;
  }

  .mob-nav__toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
  }

  /* Submenu acordeón */
  .mob-nav__sub {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.22, .8, .3, 1);
    background: rgba(0, 0, 0, .12);
  }

  .mob-nav__sub.is-open {
    max-height: 400px;
  }

  .mob-nav__sub li a {
    display: block;
    padding: .7rem 2.4rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: rgba(196, 154, 131, .75);
    text-decoration: none;
    letter-spacing: .05em;
    transition: color .2s ease, padding-left .2s ease;
  }

  .mob-nav__sub li a:hover {
    color: #fff;
    padding-left: 3rem;
  }

  .hero__tooltip {
    display: none;
  }
}

/* Ocultar drawer en desktop */
@media (min-width: 861px) {

  .mob-backdrop,
  .mob-drawer {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   PLANTILLA · Single de marca (pagina 3)
   ═══════════════════════════════════════════════ */

/* ── Logo firma ────────────────────────────────── */
.firma-logo {
  display: grid;
  place-items: center;
  margin: 1.8rem auto 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: var(--tinta);
  mix-blend-mode: multiply;
  opacity: 0.5;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Intro: texto · escaparate · fundadora ─────── */
.firma-intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3rem);
}

.firma-intro__titulo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.95rem, 4.25vw, 2.95rem);
  color: var(--granate);
  text-align: center;
  margin-bottom: 0.5rem;
}

.firma-intro__columnas-imagenes {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: 100%;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.firma-intro__columnas-imagenes .firma-intro__fundadora {
  justify-self: end;
  width: 100%;
  max-width: 280px;
  margin: 0;
}

.firma-intro__columnas-imagenes .firma-intro__escaparate {
  justify-self: start;
  width: 100%;
  max-width: 480px;
  margin: 0;
}

.firma-intro__texto {
  font-family: var(--font-serif);
  font-size: clamp(1.025rem, 1.8vw, 1.325rem);
  line-height: 1.6;
  color: var(--tinta);
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.firma-intro__texto h1 {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--granate);
  margin-bottom: .6em;
  line-height: 1.1;
}

.firma-intro__texto p {
  margin-bottom: 1.2rem;
}

.firma-intro__texto p:last-child {
  margin-bottom: 0;
}

/* ── Marcas: Textos intro personalizados ───── */
.firma-intro__texto--helen,
.firma-intro__texto--matarrania {
  text-align: center;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.firma-intro__texto--lamia {
  text-align: center;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.firma-intro__texto--maminat {
  text-align: center;
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Matarrania: Banner Poético con Fondo Botánico ───── */
.matarrania-poetica-banner {
  position: relative;
  max-width: 660px;
  width: 100%;
  margin: 2.8rem auto 0 auto;
  background-color: #f7f3ec;
  background-image: url('../img/descripción-poetica.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  padding: 4.8rem 4.2rem 7.2rem 4.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.matarrania-poetica-banner__content {
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.matarrania-poetica-banner__content p {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0.01em;
  color: #2b2622;
  margin: 0 0 1.15rem 0;
  text-align: center;
}

.matarrania-poetica-banner__content p:last-child {
  margin-bottom: 0;
}

/* ── Helen Bellart: Banner Poético con Fondo Acuarela ───── */
.helen-poetica-banner {
  position: relative;
  max-width: 660px;
  width: 100%;
  margin: 2.8rem auto 0 auto;
  background-color: #f6fbfa;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  padding: 5.5rem 5rem 6.8rem 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.helen-poetica-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/img-description-hellen-bellart.webp?v=2');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.helen-poetica-banner__content {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  text-align: left;
}

.helen-poetica-banner__content p {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(0.88rem, 1.18vw, 1rem);
  font-weight: 400;
  line-height: 1.56;
  letter-spacing: 0.01em;
  color: #1e2836;
  margin: 0 0 1.15rem 0;
  text-align: left;
}

.helen-poetica-banner__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .firma-intro__texto--helen,
  .firma-intro__texto--matarrania,
  .firma-intro__texto--lamia,
  .firma-intro__texto--maminat {
    max-width: 100%;
    width: 100%;
  }

  /* Reducción de ancho y aumento de 2px de tipografía optimizado para móvil */
  .helen-intro__text,
  .matarrania-intro__text,
  .lamia-intro__text,
  .maminat-intro__text,
  .marca-intro__text {
    font-size: calc(clamp(1.025rem, 1.8vw, 1.325rem) + 2px);
    line-height: 1.68;
    letter-spacing: 0.01em;
    margin: 0 auto;
  }

  .helen-intro__text,
  .matarrania-intro__text,
  .marca-intro__text {
    max-width: 290px;
    width: 82%;
  }

  .maminat-intro__text,
  .lamia-intro__text {
    max-width: 100%;
    width: 100%;
  }

  .helen-intro__text p,
  .matarrania-intro__text p,
  .lamia-intro__text p,
  .maminat-intro__text p,
  .marca-intro__text p {
    margin-bottom: 1.2rem;
  }

  .helen-intro__banner,
  .matarrania-intro__banner {
    max-width: 420px;
    width: 100%;
    margin: 2rem auto 0 auto;
  }

  .helen-intro__banner img,
  .matarrania-intro__banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .matarrania-poetica-banner {
    max-width: 100%;
    width: 100%;
    margin: 2rem auto 0 auto;
    padding: 3.8rem 1.6rem 5.2rem 1.6rem;
    background-size: cover;
    background-position: center;
  }

  .matarrania-poetica-banner__content {
    max-width: 100%;
  }

  .matarrania-poetica-banner__content p {
    font-size: clamp(0.82rem, 3.4vw, 0.92rem);
    line-height: 1.5;
    margin-bottom: 0.95rem;
  }

  .helen-poetica-banner {
    max-width: 100%;
    width: 100%;
    margin: 2rem auto 0 auto;
    padding: 3.8rem 1.6rem 5.2rem 1.6rem;
  }

  .helen-poetica-banner::before {
    background-size: cover;
    background-position: center;
    opacity: 0.35;
  }

  .helen-poetica-banner__content {
    max-width: 100%;
    text-align: left;
  }

  .helen-poetica-banner__content p {
    font-size: clamp(0.82rem, 3.4vw, 0.92rem);
    line-height: 1.5;
    margin-bottom: 0.95rem;
    text-align: left;
  }

  /* Escaparates de marcas: mucho más grandes y optimizados en móvil */
  .firma-intro__columnas-imagenes .firma-intro__escaparate--helen,
  .firma-intro__columnas-imagenes .firma-intro__escaparate--matarrania,
  .firma-intro__columnas-imagenes .firma-intro__escaparate--lamia,
  .firma-intro__columnas-imagenes .firma-intro__escaparate--maminat,
  .firma-intro__columnas-imagenes .firma-intro__escaparate--wide {
    max-width: calc(100% + 1.5rem) !important;
    width: calc(100% + 1.5rem);
    margin: 0.8rem -0.75rem 0 -0.75rem;
    justify-self: center;
  }

  .firma-intro__escaparate--helen .firma-frame,
  .firma-intro__escaparate--matarrania .firma-frame,
  .firma-intro__escaparate--lamia .firma-frame,
  .firma-intro__escaparate--maminat .firma-frame,
  .firma-intro__escaparate--wide .firma-frame {
    aspect-ratio: auto !important;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    overflow: hidden;
  }

  .firma-intro__escaparate--helen img,
  .firma-intro__escaparate--matarrania img,
  .firma-intro__escaparate--lamia img,
  .firma-intro__escaparate--maminat img,
  .firma-intro__escaparate--wide img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
  }
}

/* Escaparates de marcas (general) */
.firma-intro__escaparate--helen .firma-frame,
.firma-intro__escaparate--matarrania .firma-frame,
.firma-intro__escaparate--lamia .firma-frame,
.firma-intro__escaparate--maminat .firma-frame,
.firma-intro__escaparate--wide .firma-frame {
  aspect-ratio: auto;
}

.firma-intro__escaparate--helen img,
.firma-intro__escaparate--matarrania img,
.firma-intro__escaparate--lamia img,
.firma-intro__escaparate--maminat img,
.firma-intro__escaparate--wide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Soporte para fundadora y escaparate individuales */
.firma-intro__fundadora {
  max-width: 240px;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.firma-intro__escaparate {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

/* Marcos de imagen (escaparate / fundadora) */
.firma-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(201, 161, 92, .4);
  box-shadow: 0 14px 34px rgba(43, 22, 25, .14);
  background: linear-gradient(150deg, #e7e0cf 0%, #cfd4bc 100%);
}

.firma-intro__escaparate .firma-frame {
  aspect-ratio: 4 / 3;
}

.firma-frame--transparent {
  background: transparent;
  border: none;
  box-shadow: none;
}

.firma-intro__fundadora .firma-frame {
  aspect-ratio: 3 / 4;
}

.firma-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firma-frame figcaption,
.firma-frame .firma-frame__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(#80C1B4);
  opacity: .75;
}

/* ── Grid de productos: fila de 3 + fila de 4 ──── */
.productos {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem clamp(3.5rem, 8vw, 6rem);
}

.productos__titulo {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--Holiday);
  text-align: center;
  margin-bottom: .5rem;
}

.productos__fila {
  display: grid;
  gap: clamp(1.2rem, 3.5vw, 2.2rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.productos__fila--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.productos__fila--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1160px;
}

.productos__fila--4 .producto__media {
  aspect-ratio: 4 / 3.37;
}

.producto__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(155deg, #b9c7a3 0%, #93a97e 100%);
  box-shadow: 0 8px 20px rgba(43, 22, 25, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.page-matarrania .producto__media {
  background: #31AE6A;
}

.producto:hover .producto__media {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(43, 22, 25, .2);
}

.producto__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.producto__media>span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(43, 22, 25, .3);
}

.producto__info-btn {
  position: absolute;
  right: .75rem;
  bottom: .55rem;
  border: none;
  background: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .6);
  cursor: pointer;
  transition: color .25s ease, transform .25s ease, text-shadow .25s ease;
}

.producto__info-btn:hover {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
  transform: scale(1.08);
}

.producto__info-btn[aria-expanded="true"] {
  color: #ffffff;
}

.producto__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: .6rem .15rem 0;
}

.producto__meta h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .95rem;
  color: var(--tinta);
  text-align: center;
}

.producto__subtitulo {
  display: block;
  font-family: var(--font-serif);
  color: #078429;
  font-weight: 400;
  font-size: .95rem;
  margin-top: .15rem;
}

.producto__cta-img {
  display: block;
  max-width: 104px;
  width: 100%;
  opacity: .75;
  transition: opacity .25s ease, transform .25s ease;
  cursor: pointer;
}

.producto__cta-img[src*="img-ir-producto-hellen"] {
  max-width: 156px;
}

.producto__cta-img[src*="img-ir-producto-lamia"] {
  max-width: 187px;
}

.producto__cta-img[src$="img-ir-producto.png"] {
  max-width: 187px;
}

.producto__cta-img[src*="img-ir-producto-marrimiata"] {
  max-width: 187px;
}

.producto__cta-img:hover {
  opacity: 1;
  transform: scale(1.06);
}

.producto__media-link {
  display: block;
  text-decoration: none;
}

.producto__nombre-link {
  text-decoration: none;
}

.producto__nombre-link h3 {
  transition: color .25s ease;
}

.producto__nombre-link:hover h3 {
  color: var(--oro);
}

/* ── Ocultar desplegables inline (ahora en Modal Popup) ── */
.producto-desplegable {
  display: none !important;
}

/* ── Botón Volver Atrás (Páginas de marcas) ──── */
.productos__volver {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  width: 100%;
}

.btn-volver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 2.2rem;
  min-height: 44px;
  background: #3F5248;
  color: #efe9dc;
  border: 1px solid rgba(196, 154, 131, 0.45);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(43, 22, 25, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-volver:hover {
  background: #2D3D34;
  color: #ffffff;
  border-color: #C49A83;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(43, 22, 25, 0.18);
}

.btn-volver:active {
  transform: translateY(0);
}

.btn-volver__icon {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.btn-volver:hover .btn-volver__icon {
  transform: translateX(-4px);
}

@media (max-width: 600px) {
  .btn-volver {
    width: 100%;
    max-width: 280px;
    padding: 0.8rem 1.5rem;
    font-size: 0.88rem;
  }
}

/* ═══════════════════════════════════════════════
   MODAL +INFO · Popup de información de producto
   ═══════════════════════════════════════════════ */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  padding: 1.2rem;
}

.info-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info-modal {
  background: var(--crema, #f4efe6) url('../img/img-fondo-productos-maminat.webp') center/cover no-repeat;
  width: 100%;
  max-width: 1180px;
  max-height: 92vh;
  border-radius: 0;
  border: none;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  transform: translateY(25px) scale(0.97);
  transition: transform .35s ease;
}

.info-modal-backdrop.is-open .info-modal {
  transform: translateY(0) scale(1);
}

.info-modal__header {
  display: none !important;
}

.info-modal__close {
  pointer-events: auto;
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.2rem);
  right: clamp(0.8rem, 2vw, 1.2rem);
  z-index: 30;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.info-modal__close:hover {
  background: rgba(0, 0, 0, 0.16);
  color: #000;
  transform: scale(1.08);
}

.info-modal__bottom-bar {
  display: none !important;
}

.info-modal__body .producto-desplegable__inner {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: start;
}

.info-modal__body img {
  max-width: 240px;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}

.info-modal__body img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
}

@media (max-width: 768px) {
  .info-modal__body .producto-desplegable__inner {
    grid-template-columns: 1fr;
  }

  .info-modal__body img {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════════
   LIGHTBOX / AMPLIAR IMAGEN DEL MODAL
   ═══════════════════════════════════════════════ */
.image-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 1.5rem;
}

.image-zoom-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-zoom-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-zoom-container img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  transform: scale(0.95);
  transition: transform .3s ease;
}

.image-zoom-backdrop.is-open .image-zoom-container img {
  transform: scale(1);
}

.image-zoom-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}


.producto-desplegable__inner>p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--tinta);
}

.producto-desplegable__related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.producto-desplegable__related .producto__media {
  aspect-ratio: 1 / 1;
}

.producto-desplegable__related figcaption {
  margin-top: .4rem;
  text-align: center;
  font-size: .82rem;
  color: var(--tinta);
}

/* ── Responsive single de marca ────────────────── */
@media (max-width: 900px) {
  .productos__fila--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .firma-intro__columnas-imagenes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .firma-intro__columnas-imagenes .firma-intro__fundadora,
  .firma-intro__columnas-imagenes .firma-intro__escaparate {
    justify-self: center;
    max-width: 260px;
  }

  .productos__fila--3,
  .productos__fila--4 {
    grid-template-columns: 1fr;
  }

  .producto-desplegable__inner {
    grid-template-columns: 1fr;
  }
}

/* ── Estilos del nuevo Hero y Swiper Slider ─────── */
.hero__container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero__logo-wrapper {
  margin-bottom: 2.5rem;
  text-align: center;
  animation: fadeInDown 1s ease both;
  padding: 0 1rem;
}

.hero__logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* ═══════════════════════════════════════════════
   CARRUSEL CIRCULAR 3D ESTILO GOOGLE LABS (GALERÍA)
   ═══════════════════════════════════════════════ */
.home-carousel__container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 360px;
  margin: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  animation: fadeInUp 1s ease both 0.3s;
}

.home-carousel__container.is-dragging,
.home-carousel__container:active {
  cursor: grabbing;
}

.home-carousel__circle {
  position: absolute;
  top: 148px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, 0);
  pointer-events: none;
}

.carousel-card-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  transform-origin: center center;
  pointer-events: auto;
  will-change: transform;
  cursor: pointer;
}

.carousel-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s ease, 
              opacity 0.35s ease, 
              border-color 0.35s ease;
  opacity: 0.75;
  transform: scale(0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.carousel-card.is-centered {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(201, 161, 92, 0.85);
}

.carousel-card:hover {
  opacity: 1;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.carousel-card__image {
  width: 100%;
  height: 230px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #161616;
}

.carousel-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.carousel-card:hover .carousel-card__image img {
  transform: scale(1.03);
}

/* Ajuste especial para imagen 10 con texto para que no se pegue a los bordes */
.carousel-card__image--gallery-10,
.carousel-card-wrapper[data-index="9"] .carousel-card__image {
  background: #465337;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-card__image--gallery-10 img,
.carousel-card-wrapper[data-index="9"] .carousel-card__image img,
.carousel-card__image img[src*="img-gallery-10.webp"] {
  object-fit: contain;
  padding: 0.35rem clamp(0.75rem, 2.5vw, 1.4rem);
  box-sizing: border-box;
}

/* ── Botones de navegación circulares flotantes ──── */
.home-carousel__nav-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 161, 92, 0.45);
  color: #3F5248;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: all 0.25s ease;
}

.home-carousel__nav-btn--prev {
  left: 20px;
}

.home-carousel__nav-btn--next {
  right: 20px;
}

.home-carousel__nav-btn:hover {
  background: #3F5248;
  color: #efe9dc;
  border-color: #3F5248;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

/* ── Paginación / Dots ──── */
.home-carousel__pagination {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 60;
}

.home-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.home-carousel__dot.is-active {
  width: 24px;
  border-radius: 12px;
  background: #c9a15c;
  border-color: #c9a15c;
  box-shadow: 0 0 10px rgba(201, 161, 92, 0.6);
}

/* ── Responsive ──── */
@media (max-width: 992px) {
  .home-carousel__container {
    height: 320px;
  }
  .carousel-card-wrapper {
    width: 300px;
  }
  .carousel-card__image {
    height: 195px;
  }
  .home-carousel__circle {
    top: 130px;
  }
  .home-carousel__nav-btn {
    width: 40px;
    height: 40px;
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 600px) {
  .home-carousel__container {
    height: 280px;
  }
  .carousel-card-wrapper {
    width: 250px;
  }
  .carousel-card__image {
    height: 165px;
  }
  .home-carousel__circle {
    top: 110px;
  }
  .home-carousel__nav-btn {
    width: 36px;
    height: 36px;
    left: 6px;
    right: 6px;
  }
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adaptación responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .hero__swiper {
    height: 180px;
  }

  .hero__swiper .swiper-slide {
    width: calc(66.666% - 10px);
    margin-right: 15px;
  }

  .hero__logo {
    max-width: 220px;
  }
}

/* Página de producto single: Imagen de fondo */
.page-firma {
  background-image: url('../img/img-fondo-product-single.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Pie de foto de la fundadora */
.fundadora-caption {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  color: #078429 !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  margin-top: 0.6rem !important;
  text-align: center !important;
  display: block !important;
}

/* ═══════════════════════════════════════════════
   MODAL NEXO · Popup de producto
   ═══════════════════════════════════════════════ */
.nexo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(200, 200, 195, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  padding: 1rem;
}

.nexo-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nexo-modal {
  background: #dedad4;
  border: 1.5px solid #5a7a5a;
  border-radius: 6px;
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.nexo-modal-backdrop.is-open .nexo-modal {
  transform: translateY(0) scale(1);
}

.nexo-modal__body {
  padding: 2rem 2.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nexo-modal__intro {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: .6rem;
}

.nexo-modal__brand-logo {
  max-width: 200px;
  width: 80%;
  margin: .2rem auto .8rem;
  display: block;
  mix-blend-mode: multiply;
}

.nexo-modal__important {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.55;
  margin-bottom: .6rem;
}

.nexo-modal__nexo-logo {
  max-width: 130px;
  width: 60%;
  margin: 0 auto .8rem;
  display: block;
}

.nexo-modal__gift {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: .8rem;
}

.nexo-modal__gift strong {
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
}

.nexo-modal__code {
  background: #3a7a5a;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .45em 1.4em;
  border-radius: 4px;
  margin-bottom: .5rem;
  user-select: all;
}

.nexo-modal__copy-btn {
  background: #4a9a6a;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .05em;
  padding: .35em 1.1em;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  margin-bottom: .9rem;
}

.nexo-modal__copy-btn:hover {
  background: #3a7a5a;
}

.nexo-modal__copy-btn.copied {
  background: #2d5e45;
  transform: scale(.97);
}

.nexo-modal__tip {
  font-family: var(--font-sans);
  font-size: .72rem;
  color: #555;
  line-height: 1.45;
  border-top: 1px solid rgba(90, 120, 90, .25);
  padding-top: .7rem;
  width: 100%;
}

.nexo-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 2.2rem 1.1rem;
  border-top: 1px solid rgba(90, 120, 90, .2);
}

.nexo-modal__cancel {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: color .2s ease;
}

.nexo-modal__cancel:hover {
  color: #000;
}

.nexo-modal__sigue {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color .2s ease;
}

.nexo-modal__sigue:hover {
  color: #000;
}

/* Cursor pointer en CTA de producto */
.producto__cta-img {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PÁGINA HISTORIA
   ═══════════════════════════════════════════════════════════════════════════ */
body.page-historia {
  background-color: #CAD3C7;
  color: #2b332a;
}

.historia-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.historia-header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 2rem auto 2.5rem;
  width: 100%;
}

.historia-header-logo img {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.historia-hero {
  width: 100%;
  margin-bottom: 3.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(40, 50, 40, 0.15);
}

.historia-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.historia-block {
  margin-bottom: 3.5rem;
}

.historia-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: #4a5749;
  margin-bottom: 0.35rem;
}

.historia-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: #1e261d;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.historia-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2e372c;
}

.historia-text p {
  margin-bottom: 1.1rem;
}

.historia-text p:last-child {
  margin-bottom: 0;
}

.historia-divider-icon {
  text-align: center;
  margin: 3.5rem 0;
}

.historia-divider-icon img {
  width: 120px;
  height: auto;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 860px) {
  .historia-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .historia-grid__img {
    order: -1;
  }
}

.historia-grid__img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(30, 40, 30, 0.12);
}

.historia-grid__img img {
  width: 100%;
  height: auto;
  display: block;
}

.historia-closing {
  max-width: 820px;
  margin: 4.5rem auto 0;
  text-align: center;
}

.historia-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.65rem;
  color: #1e261d;
  margin-top: 2rem;
}

.producto__cta-img {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   PÁGINA STAFF
   ═══════════════════════════════════════════════ */
.page-staff {
  background-color: #b5c2b4;
  color: #2b2320;
}

.staff-page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Tarjeta contenedora superior de los 9 miembros */
.staff-header-wrapper {
  width: 100%;
}

.staff-header-card {
  background-color: #eff2eb;
  border-radius: 4px;
  padding: 1.25rem 0.75rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1.75fr 1fr 1fr 1.75fr;
  gap: 0.5rem;
  align-items: start;
}

.staff-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.staff-member__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background-color: #ddd;
}

.staff-member--wide .staff-member__img-wrap {
  aspect-ratio: 16 / 10;
}

.staff-member__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-member__name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: #23201e;
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.staff-member__role {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: #4a4d49;
  line-height: 1.2;
  font-weight: 400;
  max-width: 130px;
}

/* Sección de la composición inferior */
.staff-composition-section {
  width: 100%;
  margin-top: 1rem;
}

.staff-composition-container {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 2rem;
}

.staff-col--left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.staff-stamp-wrapper {
  width: 100%;
}

.staff-stamp-img {
  max-width: 190px;
  height: auto;
  display: block;
}

.staff-iso-wrapper {
  width: 100%;
  padding-left: 0.5rem;
}

.staff-iso-img {
  max-width: 75px;
  height: auto;
  display: block;
}

.staff-col--center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.staff-central-img-wrapper {
  width: 100%;
  max-width: 900px;
}

.staff-central-img {
  width: 100%;
  height: auto;
  display: block;
}

.staff-col--right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.staff-logo-right-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.staff-logo-right-img {
  max-width: 190px;
  height: auto;
  display: block;
}

.staff-contact-text {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: #2b2320;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.staff-contact-text a {
  color: #1a4b8c;
  text-decoration: underline;
}

/* Media Queries para Responsive */
@media (max-width: 1120px) {
  .staff-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem 1rem;
  }

  .staff-member--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .staff-composition-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
  }

  .staff-col--left {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .staff-col--right {
    justify-content: center;
  }

  .staff-logo-right-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .staff-contact-text {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
    text-align: center;
  }

  .staff-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1rem;
  }

  .staff-member--wide {
    grid-column: span 2;
  }
}

@media (max-width: 580px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .staff-member--wide {
    grid-column: span 2;
  }

  .staff-page {
    padding: 1rem 0.75rem 3rem;
  }

  .staff-header-card {
    padding: 1rem 0.75rem;
  }
}

/* ═══════════════════════════════════════════════
   PÁGINAS SHOWCASE: GALERÍA, BLOG Y VITRINAS (MAMINAT, HELEN BELLART)
   Mayor altura para imágenes en escritorio y móvil sin recortar texto
   ═══════════════════════════════════════════════ */
body.page-showcase,
body.page-blog,
body.page-galeria,
body.page-vitrina-helen,
body.page-vitrina-maminat {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto !important;
  background: #000;
  overflow-y: auto !important;
  overflow-x: hidden;
}

body.page-showcase .blog-fullscreen,
body.page-showcase .galeria-fullscreen,
body.page-showcase .vitrina-single,
body.page-blog .blog-fullscreen,
body.page-galeria .galeria-fullscreen,
body.page-vitrina-helen .vitrina-single,
body.page-vitrina-maminat .vitrina-single {
  flex: 1 0 auto;
  width: 100%;
  height: auto;
  position: relative;
  background: #000;
}

body.page-showcase .blog-fullscreen picture,
body.page-showcase .galeria-fullscreen picture,
body.page-showcase .vitrina-single picture,
body.page-showcase .vitrina-single__link,
body.page-blog .blog-fullscreen picture,
body.page-galeria .galeria-fullscreen picture,
body.page-vitrina-helen .vitrina-single picture,
body.page-vitrina-helen .vitrina-single__link,
body.page-vitrina-maminat .vitrina-single picture,
body.page-vitrina-maminat .vitrina-single__link {
  display: block;
  width: 100%;
  height: auto;
}

/* Versión de escritorio: relación de aspecto 16:9 con mayor altura para mostrar imagen completa sin recortar texto superior */
body.page-showcase .blog-fullscreen__img,
body.page-showcase .galeria-fullscreen__img,
body.page-showcase .vitrina-single__img,
body.page-showcase .vitrina-helen-bellart__img,
body.page-showcase .vitrina-maminat__img,
body.page-showcase .vitrina-lamia__img,
body.page-showcase .vitrina-matarrania__img,
body.page-blog .blog-fullscreen__img,
body.page-galeria .galeria-fullscreen__img,
body.page-vitrina-helen .vitrina-helen-bellart__img,
body.page-vitrina-maminat .vitrina-maminat__img,
body.page-vitrina-lamia .vitrina-lamia__img,
body.page-vitrina-matarrania .vitrina-matarrania__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top !important;
  display: block;
}

/* El pie de página siempre queda abajo */
body.page-showcase .band--footer,
body.page-blog .band--footer,
body.page-galeria .band--footer,
body.page-vitrina-helen .band--footer,
body.page-vitrina-maminat .band--footer,
body.page-vitrina-lamia .band--footer,
body.page-vitrina-matarrania .band--footer {
  margin-top: auto;
}

/* ── Vitrinas individuales en PC / Laptop (pantalla completa, sin desbordamiento de header) ── */
@media (min-width: 861px) {
  body.page-vitrina-single {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #000 !important;
  }

  body.page-vitrina-single .pre-header {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 6px 16px !important;
  }

  body.page-vitrina-single .main-nav {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    box-sizing: border-box !important;
  }

  body.page-vitrina-single .vitrina-single {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.page-vitrina-single .vitrina-single__link,
  body.page-vitrina-single .vitrina-single picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Mantener altura sin sacrificar ancho y viceversa: cubre el contenedor sin recortar la vitrina ni desbordar */
  body.page-vitrina-single .vitrina-single__img,
  body.page-vitrina-single .vitrina-matarrania__img,
  body.page-vitrina-single .vitrina-lamia__img,
  body.page-vitrina-single .vitrina-helen-bellart__img,
  body.page-vitrina-single .vitrina-maminat__img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  body.page-vitrina-single .band--footer {
    flex: 0 0 auto !important;
    position: relative !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.5rem 1.5rem !important;
  }
}

/* ── Versión móvil y tablet (<= 860px): relación 941/1672 con altura completa sin recorte de texto ── */
@media (max-width: 860px) {
  body.page-showcase,
  body.page-blog,
  body.page-galeria,
  body.page-vitrina-helen,
  body.page-vitrina-maminat {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto !important;
    overflow-x: hidden;
  }

  body.page-showcase .blog-fullscreen,
  body.page-showcase .galeria-fullscreen,
  body.page-showcase .vitrina-single,
  body.page-blog .blog-fullscreen,
  body.page-galeria .galeria-fullscreen,
  body.page-vitrina-helen .vitrina-single,
  body.page-vitrina-maminat .vitrina-single {
    flex: none;
    width: 100%;
    height: auto;
  }

  body.page-showcase .blog-fullscreen picture,
  body.page-showcase .galeria-fullscreen picture,
  body.page-showcase .vitrina-single picture,
  body.page-showcase .vitrina-single__link,
  body.page-blog .blog-fullscreen picture,
  body.page-galeria .galeria-fullscreen picture,
  body.page-vitrina-helen .vitrina-single picture,
  body.page-vitrina-helen .vitrina-single__link,
  body.page-vitrina-maminat .vitrina-single picture,
  body.page-vitrina-maminat .vitrina-single__link {
    display: block;
    width: 100%;
    height: auto;
  }

  body.page-showcase .blog-fullscreen__img,
  body.page-showcase .galeria-fullscreen__img,
  body.page-showcase .vitrina-single__img,
  body.page-showcase .vitrina-helen-bellart__img,
  body.page-showcase .vitrina-maminat__img,
  body.page-showcase .vitrina-lamia__img,
  body.page-showcase .vitrina-matarrania__img,
  body.page-blog .blog-fullscreen__img,
  body.page-galeria .galeria-fullscreen__img,
  body.page-vitrina-helen .vitrina-helen-bellart__img,
  body.page-vitrina-maminat .vitrina-maminat__img,
  body.page-vitrina-lamia .vitrina-lamia__img,
  body.page-vitrina-matarrania .vitrina-matarrania__img {
    width: 100%;
    height: auto;
    aspect-ratio: 941 / 1672;
    object-fit: cover;
    object-position: center top !important;
    display: block;
  }
}

/* ══════════════════════════════════════════════════════════════
   BARRA FIJA DE COMPARTIR EN REDES SOCIALES (VERTICAL / CUADRADA)
   Adaptable, personalizable y 100% responsiva
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Dimensiones y estructura (personalizable) */
  --share-size: 44px;
  --share-radius: 0px;            /* Cuadrados perfectos (0px) o redondeable (ej: 4px) */
  --share-gap: 3px;               /* Separación vertical entre botones */
  --share-z-index: 9999;          /* Encima del resto de elementos */
  --share-icon-size: 20px;
  --share-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  --share-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Colores oficiales de plataformas */
  --share-bg-facebook: #1877f2;
  --share-bg-x: #0f1419;
  --share-bg-whatsapp: #25d366;
  --share-bg-linkedin: #0a66c2;
  --share-bg-email: #5a1e25;      /* Granate corporativo Nexo Genuine */

  /* Colores de texto/icono */
  --share-color-icon: #ffffff;

  /* Tooltip flotante */
  --share-tooltip-bg: #1c1917;
  --share-tooltip-color: #ffffff;
}

/* Contenedor fijo vertical (Completamente eliminado en versión escritorio) */
.social-share-bar,
.social-share-bar--right {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Botón individual cuadrado */
.social-share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--share-size);
  height: var(--share-size);
  min-width: var(--share-size);
  min-height: var(--share-size);
  aspect-ratio: 1 / 1;
  border-radius: var(--share-radius);
  color: var(--share-color-icon);
  text-decoration: none;
  outline: none;
  cursor: pointer;
  border: none;
  transition: var(--share-transition);
  box-sizing: border-box;
}

/* Iconos SVG dentro de los botones */
.social-share-icon {
  width: var(--share-icon-size);
  height: var(--share-icon-size);
  fill: currentColor;
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Colores de fondo por red social */
.social-share-btn--facebook { background-color: var(--share-bg-facebook); }
.social-share-btn--x        { background-color: var(--share-bg-x); }
.social-share-btn--whatsapp { background-color: var(--share-bg-whatsapp); }
.social-share-btn--linkedin { background-color: var(--share-bg-linkedin); }
.social-share-btn--email    { background-color: var(--share-bg-email); }

/* Efecto hover interactivo */
.social-share-bar:not(.social-share-bar--right) .social-share-btn:hover,
.social-share-bar:not(.social-share-bar--right) .social-share-btn:focus-visible {
  transform: translateX(4px);
  filter: brightness(1.12);
}

.social-share-bar--right .social-share-btn:hover,
.social-share-bar--right .social-share-btn:focus-visible {
  transform: translateX(-4px);
  filter: brightness(1.12);
}

.social-share-btn:hover .social-share-icon,
.social-share-btn:focus-visible .social-share-icon {
  transform: scale(1.15);
}

.social-share-btn:focus-visible {
  outline: 2px solid var(--oro, #c9a15c);
  outline-offset: 2px;
}

/* Tooltip emergente explicativo (Desktop) */
.social-share-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%) translateX(-6px);
  background: var(--share-tooltip-bg);
  color: var(--share-tooltip-color);
  font-family: var(--font-sans, "Jost", sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.social-share-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--share-tooltip-bg) transparent transparent;
}

/* Tooltip para barra situada a la derecha */
.social-share-bar--right .social-share-tooltip {
  left: auto;
  right: calc(100% + 8px);
  transform: translateY(-50%) translateX(6px);
}

.social-share-bar--right .social-share-tooltip::before {
  right: auto;
  left: 100%;
  border-color: transparent transparent transparent var(--share-tooltip-bg);
}

@media (hover: hover) and (min-width: 769px) {
  .social-share-btn:hover .social-share-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

/* ── Variante monocroma / temática Nexo Genuine (opcional) ── */
.social-share-bar--luxury .social-share-btn {
  background-color: var(--granate, #5a1e25);
  border: 1px solid rgba(201, 161, 92, 0.35); /* borde dorado */
  color: var(--oro-claro, #f0d9a8);
}
.social-share-bar--luxury .social-share-btn:hover {
  background-color: var(--granate-oscuro, #43161b);
  border-color: var(--oro, #c9a15c);
  color: #ffffff;
}

/* ── Adaptabilidad y Responsividad: Ocultar barra flotante en pantallas móviles/tablets ── */
@media screen and (max-width: 860px) {
  .social-share-bar {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   BLOQUE DE COMPARTIR DENTRO DEL MENÚ OFFCANVAS (MOBILE DRAWER)
   ══════════════════════════════════════════════════════════════ */
.mob-drawer__share {
  margin-top: auto;
  padding: 1.5rem 1.6rem 2.2rem 1.6rem;
  border-top: 1px solid rgba(196, 154, 131, .18);
  flex-shrink: 0;
}

.mob-drawer__share-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C49A83;
  opacity: .85;
  margin-bottom: 0.9rem;
}

.mob-drawer__share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mob-drawer__share-bar .social-share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mob-drawer__share-bar .social-share-btn:hover,
.mob-drawer__share-bar .social-share-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.mob-drawer__share-bar .social-share-btn:active {
  transform: scale(0.94);
}

.mob-drawer__share-bar .social-share-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}