/* Secciones propias del Inicio: hero, quiénes somos y sustentabilidad. */
/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.hero-media,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media {
  z-index: -2;
}
.hero-media video {
  object-position: 18% 50%;
  filter: brightness(1.35) saturate(0.95) contrast(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.55) 0%, rgba(14, 13, 12, 0.22) 24%, rgba(14, 13, 12, 0.18) 50%, rgba(14, 13, 12, 0.4) 76%, rgba(14, 13, 12, 0.8) 100%),
    linear-gradient(90deg, rgba(14, 13, 12, 0.82) 0%, rgba(14, 13, 12, 0.7) 25%, rgba(14, 13, 12, 0.48) 50%, rgba(14, 13, 12, 0.24) 75%, rgba(14, 13, 12, 0.1) 100%);
}
@media (max-width: 767.98px) {
  .hero-veil {
    background: linear-gradient(180deg, rgba(14, 13, 12, 0.55) 0%, rgba(14, 13, 12, 0.3) 24%, rgba(14, 13, 12, 0.35) 50%, var(--scrim) 76%, rgba(14, 13, 12, 0.85) 100%),
      linear-gradient(90deg, rgba(14, 13, 12, 0.7) 0%, rgba(14, 13, 12, 0.5) 100%);
  }
}
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain-light);
  opacity: 0.06;
}
.hero-inner {
  width: 100%;
  padding-top: 8rem;
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  max-width: 12ch;
}
.hero-sub {
  margin: 1.75rem 0 2rem;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-on-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
}
.hero .link-arrow {
  text-decoration-color: var(--gold);
}

.video-toggle {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 232, 220, 0.55);
  border-radius: 50%;
  background: var(--scrim);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out);
}
@media (hover: hover) {
.video-toggle:hover {
  background: rgba(14, 13, 12, 0.85);
  border-color: var(--text-on-dark);
}
}
.video-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
.video-toggle .icon-play,
.video-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}
.video-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}
.about h2 {
  margin-bottom: 2rem;
}
.about .lede {
  margin-bottom: 1.25rem;
}
.about-next {
  max-width: 62ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}
/* DISTINCIÓN (versión compacta del Inicio) */
.dist {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-brown);
}
.dist-head {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.dist-intro h2 {
  margin: 0 0 1.5rem;
}
.dist-lede {
  max-width: 44ch;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.55;
}
.dist-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bone-2);
}
.dist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.dist-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.dist-cell {
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 2px;
  background: var(--bone-2);
}
.dist-cell p:not(.dist-capacity) {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}
.dist-cell--figure {
  --dist-fg: var(--bone);
  --dist-label: var(--bone);
  --dist-sub: var(--text-on-dark);
  background: var(--black);
  color: var(--text-on-dark);
}
@media (min-width: 768px) {
  .dist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dist-cell--figure {
    grid-column: 1 / -1;
  }
}
@media (min-width: 992px) {
  .dist-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
  .dist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .dist-cell--figure {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
  }
  .dist-cell--figure .dist-capacity {
    margin-block: 1rem 2rem;
  }
}
.figure-press {
  position: relative;
  min-height: 22rem;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}
.figure-press img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
@media (max-width: 991.98px) {
  .figure-press {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* ---------- sustainability ---------- */
.sust {
  padding: 0;
  overflow: hidden;
}
.sust-grid {
  display: grid;
}
.sust-photo {
  position: relative;
  min-height: clamp(22rem, 90vw, 30rem);
}
.sust-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bone-2);
}
.sust-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.sust-seal {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: -3rem;
  width: 9.25rem;
  padding: 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--bone);
  transform: rotate(-6deg);
  box-shadow: 0 0 0 5px var(--bone), 0 0 0 6px rgba(74, 52, 38, 0.55), 0 18px 34px -12px rgba(0, 0, 0, 0.55);
}
.sust-seal::after {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1px solid var(--rule-brown);
  border-radius: 2px;
  pointer-events: none;
}
.sust-seal img {
  width: 100%;
  height: auto;
}
.sust-text {
  display: flex;
  flex-direction: column;
  padding: 5rem var(--gutter) clamp(3rem, 7vw, 5rem);
}
.sust-text h2 {
  margin-bottom: 1.75rem;
}
.sust-text .lede {
  margin-bottom: 1.25rem;
}
.sust-text .link-arrow {
  align-self: flex-start;
}

@media (min-width: 992px) {
  .sust-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .sust-photo {
    min-height: clamp(38rem, 54vw, 56rem);
  }
  .sust-seal {
    right: calc(-1 * clamp(2rem, 3.5vw, 3.25rem));
    bottom: clamp(2.5rem, 6vw, 5rem);
    width: clamp(9.5rem, 13vw, 12rem);
  }
  .sust-text {
    justify-content: center;
    padding: clamp(5rem, 8vw, 7.5rem) var(--gutter) clamp(5rem, 8vw, 7.5rem) clamp(5rem, 8vw, 8rem);
    max-width: 46rem;
  }
}
.js .sust-frame {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 800ms var(--ease-out);
}
.js .sust-photo.is-in .sust-frame {
  clip-path: inset(0 0 0 0);
}
.js .sust-seal {
  opacity: 0;
  transform: rotate(-14deg) scale(1.25);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: 700ms;
}
.js .sust-photo.is-in .sust-seal {
  opacity: 1;
  transform: rotate(-6deg) scale(1);
}

/* ---------- franja LWG Gold, borde inferior del hero ---------- */
.hero { --lwg-h: 7.25rem; }
.hero-lwg {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.55), rgba(14, 13, 12, 0.88));
  border-top: 1px solid var(--rule-gold);
  animation: lwg-in 700ms var(--ease-out) both;
}
@keyframes lwg-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-lwg { animation: none; }
}
.hero-lwg-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: var(--lwg-h);
  padding-block: 0.75rem;
}
.hero-lwg-seal {
  flex: none;
  width: auto;
  height: 4.25rem;
  padding: 0.3rem 0.45rem;
  border-radius: 3px;
  background: var(--bone);
}
.hero-lwg-copy p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-on-dark);
}
.hero-lwg-copy strong {
  color: var(--bone);
  font-weight: 600;
}
.hero-lwg-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--bone);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
  transition: color var(--fast) var(--ease-out);
}
@media (hover: hover) {
.hero-lwg-link:hover { color: var(--foil); }
}
.hero-lwg-link:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
@media (min-width: 768px) {
  .hero { --lwg-h: 6rem; }
  .hero-lwg-seal { height: 4rem; }
  .hero-lwg-copy p { font-size: 0.9rem; }
}
.hero .video-toggle { bottom: calc(var(--lwg-h) + 1rem); }
