@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --green: #429141;
  --green-dark: #2f6a2f;
  --green-light: #eaf4e8;
  --ink: #1c1c1c;
  --gray: #5f5e5a;
  --gray-light: #8a8a86;
  --white: #ffffff;
  --border: #e3e1da;
  --radius: 8px;
  --max-width: 1180px;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, .brand-word {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

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

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

/* ===== Franja industrial (elemento de firma) ===== */
.stripe-divider {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--green),
    var(--green) 14px,
    var(--green-dark) 14px,
    var(--green-dark) 28px
  );
}

/* ===== Header ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-link img { height: 62px; width: auto; transition: transform 0.2s; }
.logo-link:hover img { transform: scale(1.03); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--green-dark);
  border-color: var(--green);
}

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  border-radius: 3px;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}

.lang-switch img:hover,
.lang-switch img.active-lang {
  opacity: 1;
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  background: var(--green);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero p {
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-white {
  background: var(--white);
  color: var(--green-dark);
}

.btn-white:hover { background: var(--green-light); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}

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

/* ===== Icon strip ===== */
.icon-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 24px;
  background: var(--green-light);
}

.icon-strip img { height: 42px; width: auto; opacity: 0.85; }

/* ===== Section ===== */
section.block {
  padding: 64px 24px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray);
  font-size: 15px;
}

/* ===== Category grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.category-card .icon-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.category-card img { height: 56px; width: auto; margin: 0 auto; }

.category-card i {
  font-size: 34px;
  color: var(--green);
}

.icon-wrap svg {
  color: var(--green);
}

.category-card h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 12px;
  color: var(--gray-light);
}

/* ===== Catalog: clickable categories, open-ended, detail panels ===== */
.category-card { cursor: pointer; position: relative; }

.category-card.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-light);
}

.category-card-more {
  border-style: dashed;
  color: var(--gray);
  display: block;
  cursor: default;
}

.category-card-more:hover { border-color: var(--gray-light); transform: none; }
.category-card-more .icon-wrap { color: var(--gray-light); }
.category-card-more h3 { color: var(--gray); }

.catalog-hint {
  text-align: center;
  font-size: 13px;
  color: var(--gray-light);
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.category-detail {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto 20px;
  background: var(--green-light);
  border-radius: 12px;
  padding: 28px;
  animation: fadeUp 0.35s ease-out;
}

.category-detail.open { display: block; }

.category-detail h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-brands {
  font-family: 'Open Sans', sans-serif;
  text-transform: none;
  font-weight: 400;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.product-placeholder {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.product-placeholder .ph-icon {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: 0.7;
  margin-bottom: 10px;
}

.product-placeholder .ph-icon img { height: 36px; width: auto; }

.product-placeholder p {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.product-placeholder span {
  font-size: 11px;
  color: var(--gray-light);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-card .pc-photo {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
}

.product-card .pc-photo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-card p {
  font-size: 13px;
  color: var(--ink);
  margin: 10px 10px 2px;
}

.product-card .brand-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Brand grid ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.brand-grid .brand-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.brand-grid img { max-height: 40px; max-width: 100%; width: auto; }

/* ===== About / two-column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.two-col h2 { font-size: 24px; margin-bottom: 16px; }
.two-col p { color: var(--gray); margin-bottom: 14px; font-size: 15px; }

.stat-box {
  background: var(--green-light);
  border-radius: 12px;
  padding: 24px;
}

.stat-box .stat-year {
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.stat-box .stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== International strip ===== */
.intl-strip {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 40px 24px;
}

.intl-strip h2 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.intl-strip p { color: #cfcfcc; font-size: 14px; max-width: 520px; margin: 0 auto; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-light);
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 24px;
}

.breadcrumb a { color: var(--green-dark); }

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
}

.contact-info svg { color: var(--green); flex-shrink: 0; }

.contact-info p,
.contact-info a.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
}

.contact-info a.contact-link {
  color: var(--ink);
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.contact-info a.contact-link:hover {
  background: var(--green-light);
  color: var(--green-dark);
  transform: translateX(3px);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input, textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}

button[type="submit"] {
  align-self: flex-start;
}

.form-message {
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-message.success { color: var(--green-dark); }
.form-message.error { color: #a32d2d; }

/* ===== Footer ===== */
footer {
  background: var(--green-light);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brands {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 0.7;
}

.footer-brands img { height: 20px; width: auto; }

.footer-meta {
  font-size: 12px;
  color: var(--gray-light);
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.95;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--gray-light);
  display: flex;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--green-dark);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .footer-top-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.text-highlight {
  color: var(--green-dark);
  font-weight: 600;
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray-light);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.credit:hover {
  opacity: 1;
  color: var(--green-dark);
}

/* ===== Language visibility ===== */
.lang-block { display: none; }
.lang-block.active { display: block; }

/* ===== Scroll reveal ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-stagger.revealed > * {
  animation: fadeUp 0.6s ease-out backwards;
}

.reveal-stagger.revealed > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { animation-delay: 0.06s; }
.reveal-stagger.revealed > *:nth-child(3) { animation-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(4) { animation-delay: 0.18s; }
.reveal-stagger.revealed > *:nth-child(5) { animation-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(6) { animation-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(7) { animation-delay: 0.36s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ===== Marquee (marcas y productos en movimiento) ===== */
.full-bleed {
  width: calc(100vw - var(--scrollbar-w, 0px));
  margin-left: calc((100vw - var(--scrollbar-w, 0px)) / -2 + 50%);
  margin-right: calc((100vw - var(--scrollbar-w, 0px)) / -2 + 50%);
}

.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  will-change: transform;
  animation-name: scrollLeft;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--marquee-duration, 28s);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}

.marquee-track img { height: 32px; width: auto; opacity: 0.75; transition: opacity 0.2s; }
.marquee-track img:hover { opacity: 1; }

/* Franja de productos: más alta, tarjetas de foto en vez de íconos sueltos */
.icon-strip {
  padding: 26px 0;
}

.marquee-tile {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.marquee-tile img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  opacity: 1;
}

/* ===== Hover polish ===== */
.brand-grid .brand-tile {
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.brand-grid .brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(66,145,65,0.12);
}

.btn { transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s; }
.btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ===== Dinamismo: header compacto al scrollear ===== */
header.scrolled .logo-link img { height: 46px; }
header.scrolled .header-inner { padding: 8px 24px; }
header { transition: box-shadow 0.2s; }
header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

/* Subrayado de menú animado */
nav.main-nav a {
  position: relative;
}
nav.main-nav a.active::after,
nav.main-nav a:hover::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
nav.main-nav a.active::after { transform: scaleX(1); }
nav.main-nav a:hover::after { transform: scaleX(1); }
nav.main-nav a { border-bottom: none; }

/* Zoom sutil en fotos de producto al hover */
.pc-photo, .product-card .pc-photo { overflow: hidden; }
.pc-photo img { transition: transform 0.35s ease-out; }
.product-card:hover .pc-photo img { transform: scale(1.08); }

/* Entrada animada del hero */
.hero-eyebrow, .hero h1, .hero p, .hero .btn {
  animation: heroIn 0.7s ease-out backwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero p { animation-delay: 0.28s; }
.hero .btn { animation-delay: 0.4s; }
.hero .btn:nth-of-type(2) { animation-delay: 0.48s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero p, .hero .btn { animation: none !important; }
}

/* Botón flotante de WhatsApp */
.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  z-index: 90;
  transition: transform 0.25s, opacity 0.25s;
}
.float-whatsapp:hover { transform: scale(1.07); }
.float-whatsapp.float-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px) scale(0.85);
}
.float-whatsapp svg { width: 28px; height: 28px; fill: #fff; }

/* Botón volver arriba */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 86px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 90;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--green); }
.back-to-top svg { color: var(--green-dark); }

@media (max-width: 700px) {
  .float-whatsapp { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .back-to-top { width: 40px; height: 40px; right: 16px; bottom: 74px; }
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { display: block; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .nav-toggle { display: block; order: 1; }
  .lang-switch { order: 2; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 4px 6px; }
  nav.main-nav a { display: block; padding: 8px 4px; width: 100%; }
  section.block { padding: 44px 20px; }
  .hero { padding: 48px 20px 40px; }
}
