/* ===================================================
   KROI — Design tokens
   =================================================== */
:root {
  --gold: #FAB518;
  --gold-light: #E7A721;
  --terracotta: #DF730D;
  --ink: #1D1E1C;
  --ink-soft: #5B554C;
  --bg: #FFFFFF;
  --bg-soft: #FBF6EA;
  --line: rgba(29,30,28,0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--ink);
  max-width: 720px;
}

.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 18px;
}

/* ===================================================
   Buttons
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--ink); color: var(--gold); }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(29,30,28,0.2); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ===================================================
   Nav
   =================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; }
.nav-logo { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-right: auto;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--terracotta); }
.nav-links a.active { opacity: 1; color: var(--terracotta); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* ===================================================
   Hero
   =================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 32px 100px;
  overflow: hidden;
}
.hero-braid-bg {
  position: absolute;
  inset: 0;
  color: var(--gold-light);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-braid-bg svg { width: 100%; height: 100%; }
.hero-inner, .hero-photo { position: relative; z-index: 1; }
.hero-logo { height: 56px; width: auto; margin-bottom: 30px; }
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-title-accent { color: var(--terracotta); }
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: 0 30px 60px rgba(29,30,28,0.14);
  transform: rotate(2deg);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===================================================
   Braid dividers (signature motif — used between all sections)
   =================================================== */
.braid-divider { color: var(--ink); background: var(--bg); line-height: 0; opacity: 0.85; }
.braid-divider svg { width: 100%; height: 44px; display: block; }

/* ===================================================
   Page header (banner used on interior pages)
   =================================================== */
.page-header { background: var(--bg-soft); padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.page-header .section-lead { margin-top: 16px; }

/* ===================================================
   Landing — tab teasers
   =================================================== */
.tab-teasers { background: var(--bg); padding: 60px 0 100px; }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.teaser-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(29,30,28,0.1);
  border-color: var(--terracotta);
}
.teaser-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.08em;
}
.teaser-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 10px 0 8px;
}
.teaser-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ===================================================
   Nosotros — brand evolution panel
   =================================================== */
.brand-evolution {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  margin: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  text-align: center;
}
.brand-evolution img { height: 68px; width: auto; }
.brand-evolution .evo-arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--terracotta);
}
.brand-evolution-caption {
  flex-basis: 100%;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.brand-evolution-caption strong { color: var(--ink); }

/* ===================================================
   Historia
   =================================================== */
.historia { background: var(--bg); padding: 60px 0 100px; }
.timeline { margin-top: 10px; display: flex; flex-direction: column; gap: 44px; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--terracotta);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.timeline-content h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}
.timeline-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}
.legacy-logo {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.legacy-logo img { height: 34px; width: auto; }
.legacy-logo span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===================================================
   Productos
   =================================================== */
.productos { background: var(--bg); padding: 50px 0 100px; }

.product-group { margin-top: 56px; }
.product-group-first { margin-top: 0; }
.product-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.product-group-header h3 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
}
.product-group-header h3 span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(29,30,28,0.1); }
.product-card-img {
  aspect-ratio: 4/3.4;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: 16px 18px 20px; }
.product-card-body h4 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-spec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.product-spec span:last-child { color: var(--terracotta); font-weight: 500; }

/* ===================================================
   Dónde comprar
   =================================================== */
.donde-comprar { background: var(--bg-soft); padding: 90px 0 80px; text-align: center; }
.donde-comprar .section-inner { display: flex; flex-direction: column; align-items: center; }
.donde-comprar .section-title, .donde-comprar .section-lead { text-align: center; }
.retailer-groups {
  margin-top: 48px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.retailer-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 280px;
}
.retailer-badge {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
}
.retailer-badge-primary {
  font-size: 19px;
  color: var(--bg);
  background: var(--ink);
  padding: 14px 30px;
}
.retailer-subrow { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.retailer-badge-sub {
  font-size: 14.5px;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 20px;
}

/* ===================================================
   Social
   =================================================== */
.social { background: var(--bg); padding: 70px 0 90px; }
.social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-link:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.footer-social { display: flex; gap: 14px; margin-left: auto; }
.footer-social a { color: var(--ink-soft); display: flex; transition: color 0.15s ease; }
.footer-social a:hover { color: var(--terracotta); }

/* ===================================================
   Contacto
   =================================================== */
.contacto { background: var(--bg); padding: 90px 0 100px; }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
}
.contacto-item { display: flex; flex-direction: column; gap: 6px; }
.contacto-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11.5px;
  color: var(--terracotta);
}
.contacto-value {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
}
.contacto-value a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contacto-value a:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ===================================================
   Footer
   =================================================== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-logo { height: 26px; width: auto; }
.footer-inner p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===================================================
   Reveal on scroll
   =================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-photo { order: -1; max-width: 340px; margin: 0 auto; }
  .contacto-inner { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .brand-evolution { padding: 30px 24px; gap: 22px; }
  .brand-evolution img { height: 52px; }
}

@media (max-width: 520px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    margin: 0;
  }
  .section-inner { padding: 0 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
}
