:root {
  --green: #005020;
  --green-dark: #003a17;
  --green-deep: #004020;
  --green-mid: #1a6b3a;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --paper: #f5f5f5;
  --paper-soft: #f4f6f4;
  --muted: #5c5c5c;
  --line: #e3e7e3;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  --font-heading: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
  --font-body: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background .25s ease, color .25s ease, transform .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--green {
  background: var(--green);
  color: #fff;
}
.btn--green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.35);
}
.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo {
  height: 52px;
  width: auto;
}
.nav__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.1;
}
.nav__name strong { color: var(--green); }

.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--green); }
.nav__link:hover::after { width: 100%; }
.nav__cta { padding: 10px 20px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.8));
}
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }
.hero__logo {
  height: 168px;
  width: auto;
  margin: 0 auto 28px;
}
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 16px;
  color: var(--green-mid);
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 600;
  max-width: 20ch;
  margin: 0 auto 20px;
  color: var(--ink);
}
.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 52ch;
  margin: 0 auto 34px;
  color: var(--muted);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ink-soft);
  font-size: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--dark {
  background: var(--ink);
  color: #e6e6e6;
}
.section__kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--green-mid);
  margin-bottom: 10px;
}
.section__kicker--light { color: #7fb08f; }
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 18px;
}
.section__title--light { color: #fff; }
.section__intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 42px;
}
.section--dark .section__intro { color: #b9c3b9; }

/* ---------- Materiales ---------- */
.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.mat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mat-card:hover img { transform: scale(1.06); }
.mat-card__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(to top, rgba(0, 20, 8, 0.85), transparent);
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- Historia ---------- */
.historia { text-align: center; }
.historia .section__title { max-width: 24ch; margin-left: auto; margin-right: auto; }
.historia__lead {
  color: #c6cec6;
  max-width: 68ch;
  margin: 0 auto 44px;
  font-size: 1.1rem;
  font-weight: 300;
}
.historia__lead strong { color: #fff; font-weight: 600; }
.historia__meta {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.historia__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.historia__meta strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #7fb08f;
}
.historia__meta span { color: #9aa49a; font-size: 0.85rem; }

/* ---------- Materiales en detalle ---------- */
.detail { display: grid; gap: 56px; }
.detail__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.detail__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.detail__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.detail__text { color: var(--muted); }
.detail__brand {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.02em;
}

/* ---------- Video / Reels ---------- */
.reels {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reel {
  width: 320px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  aspect-ratio: 9 / 16;
  background: #000;
}
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Galería ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s ease;
}
.filter:hover { border-color: var(--green); color: var(--green); }
.filter--active { background: var(--green); color: #fff; border-color: var(--green); }

.gallery {
  column-count: 3;
  column-gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 20, 8, 0.85), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }
.gallery__item.is-hidden { display: none; }

/* ---------- Grid general ---------- */
.grid { display: grid; gap: 40px; }
.grid--contact { grid-template-columns: 1fr 1fr; align-items: start; }

/* ---------- Contacto ---------- */
.contact__lead { color: #b9c3b9; margin-bottom: 26px; }
.contact__list { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7fb08f;
  margin-bottom: 2px;
}
.contact__list span, .contact__list a { color: #e6e6e6; }
.contact__list a:hover { color: #7fb08f; }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: #0a0a0a;
  color: #b9c3b9;
  text-align: center;
  padding: 48px 0;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__logo { height: 72px; width: auto; }
.footer__text { font-size: 0.9rem; }
.footer__copy { font-size: 0.8rem; color: #6f776f; }

/* ---------- Botón WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .materials { grid-template-columns: repeat(2, 1fr); }
  .detail__row { grid-template-columns: 1fr; gap: 24px; }
  .grid--contact { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }

  .nav__menu {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { padding: 12px 0; }
  .nav__cta { margin-top: 8px; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .materials { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery { column-count: 1; }
  .nav__name { font-size: 1rem; }
  .hero__logo { height: 132px; }
  .reel { width: 78vw; }
  .historia__meta { gap: 32px; }
}
