:root {
  --ink: #12241f;
  --ink-soft: #3f5750;
  --paper: #faf7f0;
  --paper-alt: #f1ece0;
  --sea: #0f3d3e;
  --sea-light: #4a7c72;
  --clay: #c96f43;
  --line: rgba(18, 36, 31, 0.12);
  --radius: 4px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sea);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--sea);
}
.brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); transition: color 0.15s; }
.nav-links a:hover { color: var(--sea); }
.nav-cta {
  background: var(--sea);
  color: var(--paper) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--ink); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
}
.lang-switch:hover { border-color: var(--sea-light); }
.flag { width: 20px; height: 14px; border-radius: 2px; display: block; object-fit: cover; }

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--sea) 0%, #0a2b2c 100%);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("img/productos/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 43, 44, 0.78) 0%, rgba(10, 43, 44, 0.35) 45%, rgba(10, 43, 44, 0.15) 100%),
    radial-gradient(circle at 20% 30%, rgba(201, 111, 67, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(74, 124, 114, 0.25), transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4.5rem;
  width: 100%;
  color: var(--paper);
}
.hero-text { max-width: 620px; }
.hero-content .eyebrow { color: #e8b596; }
.hero-content h1 {
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 17px;
  max-width: 520px;
  color: rgba(250, 247, 240, 0.82);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-logo {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  height: 82%;
  width: auto;
  max-width: 45%;
  object-fit: contain;
  object-position: right center;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover { background: #b45f36; }
.btn-ghost {
  border: 1px solid rgba(250, 247, 240, 0.4);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); }

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section.alt { max-width: 100%; background: var(--paper-alt); }
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-header { margin-bottom: 2.5rem; max-width: 640px; }
.section-header.centered { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-sub { color: var(--ink-soft); margin-top: 0.75rem; font-size: 16px; }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.section-grid.reverse .section-media { order: 2; }
.section-grid.reverse .section-copy { order: 1; }

.section-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
}
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.section-copy p { color: var(--ink-soft); }

.placeholder-img {
  background: repeating-linear-gradient(45deg, var(--paper-alt), var(--paper-alt) 10px, #e6ddc9 10px, #e6ddc9 20px);
  border: 1px dashed var(--line);
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.stat-row {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-row li { display: flex; flex-direction: column; }
.stat-row strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--sea); }
.stat-row span { font-size: 13px; color: var(--ink-soft); }

/* Historia */
.historia-copy {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}
.historia-copy .eyebrow { text-align: center; }
.historia-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 3.5rem auto 0;
}
.mv-item { text-align: left; }
.mv-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--clay);
  margin-bottom: 0.5rem;
}
.mv-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.mv-item p { color: var(--ink-soft); font-size: 15px; }

.goal-list {
  list-style: none;
  max-width: 650px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.goal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.goal-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(18, 36, 31, 0.06);
}
.section.alt .card { background: #fff; }
.card-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 1rem; }
.card p.card-summary { font-weight: 600; margin-bottom: 0.6rem; }
.product-detail { color: var(--ink-soft); font-size: 15px; }

.item-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.item-list li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sea);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.item-list li:hover { border-color: var(--sea-light); }
.item-list li.active {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--paper);
}

.card-media.has-image {
  background-size: cover;
  background-position: center;
  border-style: solid;
}
.card-media.has-image span { display: none; }

.tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.tags span {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.import-strip {
  max-width: 100%;
  background: var(--sea);
  padding: 4rem 1.5rem;
}
.import-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.import-text .eyebrow { color: #e8b596; }
.import-text h3 {
  color: var(--paper);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.85rem;
}
.import-text p {
  color: rgba(250, 247, 240, 0.82);
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.btn-ghost-dark {
  border: 1px solid rgba(250, 247, 240, 0.4);
  color: var(--paper);
}
.btn-ghost-dark:hover { border-color: var(--paper); background: rgba(250, 247, 240, 0.08); }
.import-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.import-media img {
  width: 45%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.market-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.market-row span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sea);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clay);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--paper-alt);
  padding: 2rem;
  border-radius: 10px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--sea-light);
  outline-offset: 1px;
}
.form-note { font-size: 12px; color: var(--ink-soft); font-weight: 400; }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 0.5rem; }
.contact-line { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-line .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  font-weight: 600;
}
.contact-line a { font-size: 16px; font-weight: 500; }
.contact-line a:hover { color: var(--sea); }

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer p:first-child { margin-bottom: 0.4rem; }
.footer-legal { font-size: 12px; opacity: 0.75; }

/* Responsive */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .section-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-grid.reverse .section-media { order: 1; }
  .section-grid.reverse .section-copy { order: 2; }
  .cards { grid-template-columns: 1fr; }
  .import-content { grid-template-columns: 1fr; }
  .import-text p { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .hero-logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
