:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --ink: #151515;
  --muted: #5f5c57;
  --line: #e6e6e6;
  --accent: #1f4a45;
  --accent-soft: #d7e4e1;
  --white: #ffffff;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --header-h: 84px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.35rem var(--pad);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(46vw, 280px);
  overflow: visible;
  line-height: 0;
}

.logo-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  font-size: 0.9rem;
  padding: 0.65rem 0.95rem;
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob,
.grid-fade {
  display: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex: 0 0 auto;
  gap: 0.3rem;
  padding: 1rem var(--pad) 0.85rem;
  text-align: center;
  animation: riseIn 0.9s ease both;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: min(62vw, 340px);
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
  margin: 0;
  animation: sealIn 1.1s ease both;
}

.hero h1 {
  margin: 0 auto;
  width: 100%;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}

.lead {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.hero-showcase {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid var(--line);
  background: #ffffff;
  flex: 0 0 auto;
}

.showcase-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  gap: 0;
}

.showcase-track figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  height: clamp(150px, 22vh, 240px);
  border-right: 1px solid rgba(31, 74, 69, 0.1);
}

.showcase-track figure:last-child {
  border-right: 0;
}

.showcase-track img {
  transition: transform 0.7s ease;
}

.showcase-track figure:hover img {
  transform: scale(1.05);
}

.showcase-track figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.85rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(16, 47, 44, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: var(--accent);
}

.btn-line {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
}

.strip {
  display: block;
  border-bottom: 1px solid var(--line);
}

.strip-item {
  padding: 1.6rem var(--pad);
  text-align: center;
}

.strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.strip-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.catalogo,
.historia,
.operacion,
.contacto {
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.section-note {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product.is-hidden {
  display: none;
}

.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-media span {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.tone-a { background: #e8ece9; }
.tone-b { background: #e7eee8; }
.tone-c { background: #ebe7df; }
.tone-d { background: #e4ebea; }
.tone-e { background: #eceae4; }
.tone-f { background: #e9ece8; }
.tone-g { background: #ebe8e3; }

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.1rem 1.25rem;
  flex: 1;
}

.product-cat {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.product-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.product-link {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  width: fit-content;
}

.product-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.catalog-empty {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.historia {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.historia-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 48ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.facts div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.facts dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.ops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ops article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.ops span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.ops h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
}

.ops p {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contacto-grid > div > p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 36ch;
}

.contacto-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.6rem;
}

.contacto-links a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
}

.contacto-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contacto-form label {
  display: grid;
  gap: 0.4rem;
}

.contacto-form label span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacto-form .full {
  grid-column: 1 / -1;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  outline: none;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  border-color: var(--ink);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes sealIn {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(18px, -14px, 0); }
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    font-size: clamp(4.2rem, 18vw, 8rem);
  }

  .showcase-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-track figure {
    height: clamp(150px, 22vh, 240px);
  }

  .showcase-track figure:nth-child(3) {
    border-right: 0;
  }

  .showcase-track figure:nth-child(n + 4) {
    border-top: 1px solid rgba(31, 74, 69, 0.1);
  }
}

@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .historia-grid,
  .contacto-grid,
  .ops {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .catalog-grid,
  .facts,
  .contacto-form {
    grid-template-columns: 1fr;
  }

  .showcase-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-track figure:nth-child(odd) {
    border-right: 1px solid rgba(31, 74, 69, 0.1);
  }

  .showcase-track figure:nth-child(even) {
    border-right: 0;
  }

  .showcase-track figure:nth-child(n + 3) {
    border-top: 1px solid rgba(31, 74, 69, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
