:root {
  --papel: #ebe3d0;
  --papel-2: #e4dbc6;
  --tinta: #2b2318;
  --suave: #5c5346;
  --olivo: #3b4a2d;
  --olivo-2: #2c3722;
  --linea: rgba(43, 35, 24, 0.18);
  --serif: "EB Garamond", Palatino, "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--papel); }
body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.42;
  overflow-x: hidden;
}
body.menu-abierto { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.grano {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lamina {
  width: 1240px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  position: relative;
}

/* ========== HEADER ~78px ========== */
.banda-header {
  height: 78px;
  border-bottom: 1px solid var(--linea);
  background: var(--papel);
  position: relative;
  z-index: 60;
}
.fila-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sello-link {
  flex-shrink: 0;
  line-height: 0;
}
.sello-link:hover img { opacity: 0.88; }
.marca img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.marca-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.marca-nom {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.marca-lema {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olivo);
}
.menu { display: flex; gap: 26px; }
.menu a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--suave);
}
.menu a.ahora {
  color: var(--tinta);
  box-shadow: inset 0 -1px 0 var(--tinta);
}
.hamb {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--linea);
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.hamb i {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0;
  background: var(--tinta);
}

/* ========== HERO — columna tipográfica alineada a la ilustración ========== */
.banda-hero {
  position: relative;
  height: 640px;
  overflow: hidden;
}
.hero-grabado {
  position: absolute;
  z-index: 0;
  left: 28%;
  right: -12px;
  top: -48px;
  bottom: -80px;
  overflow: hidden;
}
.hero-grabado img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 44%;
  mix-blend-mode: multiply;
}
.hero-lamina {
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-texto {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 100%;
  padding: 0;
}
.hero-kicker {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olivo);
  line-height: 1;
}
.hero-texto h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero-lead {
  margin: 18px 0 0;
  color: var(--suave);
  font-size: 16px;
  line-height: 1.5;
  max-width: none;
}
.hero-texto .boton { margin-top: 26px; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--olivo);
  color: #f2ead8;
  font-family: var(--sans);
  font-size: 14px;
  padding: 9px 18px;
  border: 0;
}
.boton:hover { background: var(--olivo-2); }

/* ========== PRINCIPIOS ~152px ========== */
.banda-principios {
  height: 168px;
  background: var(--papel-2);
}
.fila-4 {
  height: 168px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.principio {
  text-align: center;
  border-right: 1px solid var(--linea);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.principio:last-child { border-right: 0; }
.principio img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.principio span {
  font-size: 16px;
  color: var(--tinta);
}

/* ========== PRODUCTOS ~300px ========== */
.banda-productos {
  height: 330px;
  padding-top: 24px;
}
.titulo-banda { text-align: center; margin: 0 0 10px; }
.titulo-banda h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}
.floron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 110px;
  margin: 6px auto 0;
  color: var(--olivo);
}
.floron b { flex: 1; height: 1px; background: currentColor; opacity: .45; font-size: 0; }
.floron svg { width: 13px; height: 13px; }
.fila-productos {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: 6px 0 0;
}
.producto { text-align: center; width: 200px; }
.producto img {
  width: 176px;
  height: 176px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.producto strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: var(--tinta);
}

/* ========== GALERÍA DOCUMENTAL ========== */
.pagina-galeria { padding: 0 0 8px; }
.galeria-intro {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--linea);
}
.intro-txt {
  position: relative;
  z-index: 1;
  width: min(420px, 40%);
  padding-top: 28px;
}
.intro-txt h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}
.intro-txt p {
  margin: 0;
  max-width: 42ch;
  color: var(--suave);
  font-size: 16px;
  line-height: 1.4;
}
.intro-ornato {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.intro-ornato img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 18%, #000 46%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 18%, #000 46%);
}
.franja { border-bottom: 1px solid var(--linea); }
.franja-grid {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: center;
  padding: 14px 0;
}
.franja-txt img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}
.franja-txt h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.franja-txt p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--suave);
  max-width: 22ch;
}
.franja-fotos {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: 168px;
}
.franja-fotos.fotos-3 {
  grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(0, 1fr));
}
.franja-fotos .galeria-shot {
  display: block;
  width: 100%;
  height: 168px;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.franja-fotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.franja-fotos .galeria-shot:hover img { transform: scale(1.015); }

body.lb-abierto { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(43, 35, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px 32px;
}
.lb[hidden] { display: none !important; }
.lb figure { margin: 0; text-align: center; max-width: 92vw; }
.lb-foto {
  max-width: min(920px, 88vw);
  max-height: 74vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.lb figcaption {
  margin-top: 12px;
  color: #f2ead8;
}
.lb-cat {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lb-cap {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}
.lb-cerrar,
.lb-prev,
.lb-next {
  appearance: none;
  background: none;
  border: 0;
  color: #f2ead8;
  cursor: pointer;
  font-family: var(--sans);
  min-height: 44px;
}
.lb-cerrar {
  position: absolute;
  top: 12px;
  right: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  font-family: var(--serif);
  padding: 8px 12px;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ========== HISTORIA ~340px ========== */
.banda-historia {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.historia-grabado {
  position: absolute;
  z-index: 0;
  left: 36%;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}
.historia-grabado img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: multiply;
}
.historia-texto {
  position: relative;
  z-index: 1;
  width: 460px;
  padding-top: 72px;
}
.historia-texto h2 { margin: 0; font-size: 30px; }
.historia-texto .floron { margin-left: 0; }
.historia-texto p {
  margin: 12px 0 0;
  color: var(--suave);
  font-size: 16px;
  line-height: 1.45;
  max-width: 42ch;
}

/* ========== PASOS ~265px ========== */
.banda-pasos {
  height: 300px;
  padding-top: 24px;
}
.fila-pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 220px;
}
.paso {
  text-align: center;
  padding: 8px 18px 0;
  border-right: 1px solid var(--linea);
}
.paso:last-child { border-right: 0; }
.paso img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.paso h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.paso h3 i { font-style: normal; color: var(--olivo); }
.paso p {
  margin: 0;
  font-size: 14px;
  color: var(--suave);
  line-height: 1.38;
}

/* ========== CTA ~168px ========== */
.banda-cta {
  position: relative;
  height: 210px;
  overflow: hidden;
  text-align: center;
}
.banda-cta .centro {
  position: relative;
  z-index: 1;
  padding-top: 42px;
}
.banda-cta h2 { margin: 0; font-size: 28px; }
.banda-cta p {
  margin: 6px 0 12px;
  color: var(--suave);
  font-family: var(--sans);
  font-size: 14px;
}
.ornato {
  position: absolute;
  top: -10%;
  height: 120%;
  width: 30%;
  object-fit: contain;
  object-position: bottom left;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}
.ornato.iz { left: 0; object-position: bottom left; }
.ornato.de { right: 0; object-position: bottom right; }

/* ========== FOOTER ~155px ========== */
.banda-pie {
  height: 248px;
  background: var(--papel-2);
  border-top: 1px solid var(--linea);
  padding-top: 18px;
}
.pie-grid {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0;
  align-items: center;
}
.pie-marca {
  padding-right: 28px;
  border-right: 1px solid var(--linea);
}
.pie-marca img {
  width: 140px;
  height: auto;
  mix-blend-mode: multiply;
}
.pie-datos {
  font-size: 14px;
  color: var(--suave);
  padding: 0 28px;
  border-right: 1px solid var(--linea);
}
.pie-datos p { margin: 4px 0; display: flex; gap: 8px; align-items: center; }
.pie-datos svg { width: 13px; height: 13px; flex-shrink: 0; }
.pie-derecha {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.pie-compa {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}
.pie-compa img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}
.pie-compa span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 8em;
}
.redes {
  display: flex;
  gap: 10px;
  align-items: center;
}
.redes a {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(43,35,24,.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.redes svg { width: 13px; height: 13px; }
.copia {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(43,35,24,.12);
  text-align: center;
  font-size: 12px;
  color: var(--suave);
}

@media (max-width: 1099px) {
  .lamina { width: calc(100% - 40px); max-width: 920px; }
  .banda-header {
    position: sticky;
    top: 0;
    height: 64px;
  }
  .fila-header { height: 64px; }
  .marca { gap: 8px; min-width: 0; }
  .marca img { width: 44px; height: 44px; }
  .marca-nom { font-size: 16px; }
  .marca-lema { font-size: 9px; letter-spacing: 0.12em; }
  .hamb { display: flex; }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--papel);
    border-bottom: 1px solid var(--linea);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: none;
  }
  .menu.is-open { display: flex; }
  .menu a {
    font-size: 15px;
    padding: 12px 24px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .menu a.ahora { box-shadow: inset 3px 0 0 var(--olivo); }

  .banda-hero, .banda-principios, .banda-productos,
  .banda-historia, .banda-pasos, .banda-cta, .banda-pie { height: auto; }
  .fila-4, .fila-pasos { height: auto; }

  .banda-hero {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .hero-lamina {
    height: auto;
    display: block;
  }
  .hero-texto {
    order: 1;
    width: 100%;
    padding: 36px 0 20px;
  }
  .hero-texto h1 { font-size: 34px; line-height: 1.14; }
  .hero-lead { font-size: 16px; max-width: 46ch; }
  .hero-grabado {
    order: 2;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    height: 280px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .hero-grabado img {
    object-position: center 42%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .banda-principios { padding: 10px 0; }
  .fila-4 { grid-template-columns: repeat(4, 1fr); }
  .principio { padding: 10px 6px; }
  .principio img { width: 56px; height: 56px; }
  .principio span { font-size: 13px; }

  .banda-productos { padding: 28px 0 12px; }
  .titulo-banda h2 { font-size: 26px; }
  .galeria-intro { min-height: 200px; padding: 28px 0 20px; }
  .intro-txt { width: min(380px, 50%); padding-top: 16px; }
  .intro-txt h1 { font-size: 28px; }
  .franja-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 12px 16px; }
  .franja-fotos,
  .franja-fotos .galeria-shot { height: 148px; }
  .fila-productos { flex-wrap: wrap; justify-content: center; gap: 12px 8px; }
  .producto { width: 18%; min-width: 110px; }
  .producto img { width: 96px; height: 96px; }

  .banda-historia { overflow: visible; display: flex; flex-direction: column; }
  .historia-texto {
    order: 1;
    width: 100%;
    padding: 28px 0 8px;
  }
  .historia-texto p { max-width: 54ch; }
  .historia-grabado {
    order: 2;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    height: 260px;
    width: 100%;
  }

  .banda-pasos { padding: 28px 0 8px; }
  .fila-pasos {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  .paso { padding: 12px 16px 20px; }

  .banda-cta { padding: 36px 16px; }
  .banda-cta .centro { padding-top: 0; }
  .banda-cta h2 { font-size: 24px; }
  .ornato { max-width: 22%; width: 22%; opacity: 0.7; }

  .boton { min-height: 44px; padding: 10px 18px; }

  .banda-pie { padding: 24px 0 16px; }
  .pie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    align-items: start;
  }
  .pie-marca, .pie-datos { border-right: 0; padding: 0; }
  .pie-marca img { width: 110px; }
  .pie-derecha {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    padding-top: 8px;
    border-top: 1px solid var(--linea);
  }
}

@media (max-width: 759px) {
  .lamina { width: calc(100% - 32px); }
  .marca-lema { display: none; }
  .marca-nom { font-size: 15px; line-height: 1.15; }

  .hero-texto { padding: 28px 0 16px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-texto h1 { font-size: 28px; line-height: 1.16; }
  .hero-lead { font-size: 15px; }
  .hero-grabado { height: 200px; }

  .fila-4 { grid-template-columns: repeat(2, 1fr); }
  .principio {
    border-right: 0;
    border-bottom: 1px solid var(--linea);
    padding: 16px 8px;
  }
  .principio:nth-child(odd) { border-right: 1px solid var(--linea); }
  .principio:nth-last-child(-n+2) { border-bottom: 0; }
  .principio img { width: 52px; height: 52px; }
  .principio span { font-size: 14px; }

  .producto { width: 44%; min-width: 0; }
  .producto img { width: 108px; height: 108px; }

  .galeria-intro { min-height: 180px; padding: 22px 0 16px; }
  .intro-txt {
    width: 100%;
    max-width: 36ch;
    padding-top: 0;
  }
  .intro-txt h1 {
    font-size: 26px;
    color: var(--tinta);
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.92),
      0 0 18px rgba(255, 255, 255, 0.75),
      0 1px 0 rgba(255, 255, 255, 0.95),
      1px 0 0 rgba(255, 255, 255, 0.7),
      -1px 0 0 rgba(255, 255, 255, 0.7),
      0 -1px 0 rgba(255, 255, 255, 0.7);
  }
  .intro-txt p {
    color: var(--tinta);
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.95),
      0 0 20px rgba(255, 255, 255, 0.8),
      0 1px 0 rgba(255, 255, 255, 0.98),
      1px 0 0 rgba(255, 255, 255, 0.75),
      -1px 0 0 rgba(255, 255, 255, 0.75),
      0 -1px 0 rgba(255, 255, 255, 0.75);
  }
  .intro-ornato img {
    object-position: 72% center;
    opacity: 0.88;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 28%, #000 78%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 28%, #000 78%);
  }
  .franja-grid { grid-template-columns: 1fr; padding: 16px 0 18px; }
  .franja-txt { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
  .franja-txt img { grid-row: 1 / span 2; margin: 0; width: 40px; height: 40px; }
  .franja-txt h2 { font-size: 20px; }
  .franja-txt p { max-width: none; }
  .franja-fotos,
  .franja-fotos.fotos-3 {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }
  .franja-fotos .galeria-shot { height: 118px; }
  .franja-fotos .es-principal { grid-column: 1 / -1; height: 200px; }
  .lb { padding: 52px 8px 24px; }
  .lb-foto { max-height: 62vh; }
  .lb-prev, .lb-next { font-size: 28px; }

  .historia-grabado { height: 200px; }
  .historia-texto h2 { font-size: 26px; }

  .fila-pasos { grid-template-columns: 1fr; }
  .paso {
    border-right: 0;
    border-bottom: 1px solid var(--linea);
    padding: 18px 8px;
  }
  .paso:last-child { border-bottom: 0; }

  .ornato { display: none; }
  .banda-cta { padding: 32px 8px; }
  .banda-cta h2 { font-size: 22px; }

  .pie-grid { grid-template-columns: 1fr; text-align: center; }
  .pie-marca { display: flex; justify-content: center; }
  .pie-datos { padding: 0; }
  .pie-datos p { justify-content: center; }
  .pie-derecha {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .pie-compa { text-align: center; }
}

/* ========== WhatsApp flotante ========== */
.wa-flotante {
  position: fixed;
  z-index: 80;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f6b3a;
  color: #f4f0e6;
  box-shadow: 0 6px 18px rgba(43, 35, 24, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.wa-flotante:hover,
.wa-flotante:focus-visible {
  background: #265830;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(43, 35, 24, 0.28);
  outline: none;
}
.wa-flotante svg {
  width: 26px;
  height: 26px;
  display: block;
}
@media (max-width: 759px) {
  .wa-flotante {
    width: 48px;
    height: 48px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .wa-flotante svg { width: 24px; height: 24px; }
}

