/* =============================================
   Lumilagro Termos Promocionales — Enhanced UI
   ============================================= */

:root {
  --color-primary: #ed4438;
  --color-primary-dark: #c9362c;
  --color-primary-light: #ff6b60;
  --color-header: #263239;
  --color-header-dark: #1a2328;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-border: #e2e8f0;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --header-height: 80px;
  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(237, 68, 56, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(237, 68, 56, 0.45);
}

.btn-primary svg {
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  background: var(--color-header);
  transition: var(--transition);
  overflow: visible;
}

.site-header.scrolled {
  background: rgba(38, 50, 57, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: visible;
}

.logo img {
  height: 55px;
  width: auto;
  transition: transform var(--transition);
}

.logo:hover img {
  transform: scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  transition: color var(--transition);
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--color-primary);
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
  width: calc(100% - 1.75rem);
}

.nav-cta {
  background: var(--color-primary) !important;
  border-radius: 50px;
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
}

.dropdown a:hover {
  background: var(--color-bg-subtle);
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---- Hero Slider ---- */
.hero {
  position: relative;
  margin-top: var(--header-height);
  width: 100%;
  aspect-ratio: 3200 / 1300;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: var(--color-header);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Split layout — product slides */
.slide-split {
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
  height: 100%;
}

.slide-split-text {
  display: flex;
  align-items: center;
  background: var(--color-header);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.slide-split-text::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, var(--color-header) 0%, transparent 100%);
  pointer-events: none;
}

.slide-split-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #e8eaed 0%, #f5f6f8 50%, #dfe2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.slide.active .slide-product-img {
  transform: scale(1);
}

.slide-split-media--contain {
  padding: 2.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-split-media--contain .slide-product-img--fit {
  display: block;
  width: auto;
  height: auto;
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  object-position: center center;
  flex: 0 0 auto;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.slide.active .slide-split-media--contain .slide-product-img--fit {
  transform: scale(1);
}

/* Banner slides — full bleed (sin scale ken-burns: evita suavizar/pixelar) */
.slide--banner .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  /* Prefer sharper resampling when the browser scales the bitmap */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Banner 1: arte 2:1 del adjunto — cover sin estirar (no 100% 100%) */
.slide--banner-oficina .slide-bg,
.slide--banner-oficina .slide-bg-cover {
  background-size: cover;
  background-position: center center;
}

/* Solo banner Total Black: fondo adaptativo + copy HTML (estilo imagen referencia) */
.slide-bg-total-black {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: #141414;
  transform: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.slide-content--total-black {
  position: absolute;
  inset: 0;
  z-index: 3;
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.25rem, 3.5vw, 2.75rem) 38% clamp(1.25rem, 3.5vw, 2.75rem) clamp(1.5rem, 5vw, 4rem);
  pointer-events: none;
  box-sizing: border-box;
}

.slide-title--total-black {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.7vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 0.75rem;
  max-width: none;
  width: 100%;
}

.slide-desc--total-black {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.8125rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 40ch;
}

.btn--total-black {
  pointer-events: auto;
  align-self: flex-start;
  background: #ee2d31;
  border-color: #ee2d31;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.75rem;
  box-shadow: none;
}

.btn--total-black:hover {
  background: #d42529;
  border-color: #d42529;
}

.slide.active .slide-bg {
  transform: none;
}

/* Ken-burns solo en slides con foto de producto (no banners con texto raster) */
.slide:not(.slide--banner) .slide-bg {
  transform: scale(1.02);
  transition: transform 8s ease;
}

.slide:not(.slide--banner).active .slide-bg {
  transform: scale(1);
}

.slide-banner-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(38, 50, 57, 0.88) 0%,
    rgba(38, 50, 57, 0.55) 50%,
    rgba(38, 50, 57, 0.35) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.slide--banner .container.slide-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content-center {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
  align-items: center;
}

/* Solo banner 4: más aire y botón más chico (mismo alto que el resto del hero) */
.slide--banner-marca .slide-bg {
  background-size: cover;
  background-position: center 42%;
}

.slide--banner-marca .slide-content--marca {
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.75rem, 6vw, 3rem);
  box-sizing: border-box;
  max-width: 560px;
  justify-content: center;
}

.slide--banner-marca .slide-content--marca .slide-title {
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  margin-bottom: 0.75rem;
  padding-inline: 0.25rem;
}

.slide--banner-marca .slide-content--marca .slide-desc {
  font-size: clamp(0.875rem, 1.3vw, 0.95rem);
  margin-bottom: 1rem;
}

.slide--banner-marca .slide-content--marca .btn {
  width: auto;
  max-width: none;
  align-self: center;
  padding: 0.42rem 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  gap: 0.3rem;
}

.slide--banner-marca .slide-content--marca .btn svg {
  width: 12px;
  height: 12px;
}

.slide-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.4rem 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.slide-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.75;
  max-width: 46ch;
}

.slide-content .btn {
  align-self: flex-start;
}

.slide-content-center .btn {
  align-self: center;
}

/* Hero controls */
.hero-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
  pointer-events: none;
}

.hero-controls > * {
  pointer-events: auto;
}

.hero-nav-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.hero-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.hero-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.06);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--color-primary);
  width: 40px;
}

.hero-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 11;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.1s linear;
}

/* ---- Feature Cards ---- */
.features {
  padding: 6rem 0;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card--reverse .feature-image {
  order: 2;
}

.feature-card--reverse .feature-body {
  order: 1;
}

.feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-image-img--left {
  object-position: left center;
}

.feature-card:hover .feature-image img {
  transform: scale(1.04);
}

.feature-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: -1;
}

.feature-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.feature-body p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ---- Showcase ---- */
.showcase {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-bg) 100%);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.showcase-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.showcase-text > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.showcase-list {
  margin-bottom: 2rem;
}

.showcase-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--color-text);
  font-weight: 500;
}

.showcase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.showcase-visual img {
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.1));
  transition: transform 0.5s ease;
}

.showcase-visual:hover img {
  transform: translateY(-8px);
}

.showcase-glow {
  display: none;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-header) 0%, var(--color-header-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(237, 68, 56, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* ---- Footer ---- */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: opacity var(--transition);
}

.footer-credit:hover {
  opacity: 0.7;
}

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

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(237, 68, 56, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product catalog: always show cards (avoid invisible items after filter/hash) */
.products-grid .reveal,
.products-grid .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .feature-card,
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-card--reverse .feature-image,
  .feature-card--reverse .feature-body {
    order: unset;
  }

  .showcase-visual {
    order: -1;
  }

  .showcase-visual img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-header);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    height: 100vh;
    background: #fff;
    padding: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 1rem) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 1002;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }

  .main-nav.open {
    right: 0;
    pointer-events: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    z-index: 1000;
  }

  body.nav-open::before {
    content: none;
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a {
    color: var(--color-text);
    padding: 0.875rem 0;
    min-height: 44px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
  }

  .nav-list > li > a::after {
    display: none;
  }

  .nav-cta {
    margin: 1rem 0 0;
    text-align: center;
    justify-content: center;
  }

  /* Productos: submenú siempre visible en mobile */
  .has-dropdown .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 0 0.35rem 0.75rem;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
    display: block !important;
  }

  .has-dropdown .dropdown a {
    padding: 0.65rem 0;
    min-height: 40px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
  }

  .hero {
    /* Misma proporción 3200×1300 que los banners */
    aspect-ratio: 3200 / 1300;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-slider {
    min-height: 0;
    height: 100%;
    position: relative;
  }

  .slide {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .slide--banner .slide-bg,
  .slide--banner .slide-bg-cover {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
    transform: none;
  }

  .slide--banner-marca .slide-bg,
  .slide--banner-marca .slide-bg-cover {
    background-size: cover;
    background-position: center 40%;
    background-color: #1a1a1a;
  }

  .slide-bg-total-black {
    background-size: cover;
    background-position: 82% center;
    background-color: #141414;
  }

  .slide-content--total-black {
    justify-content: flex-end;
    padding: 1.25rem 1.25rem 4.75rem;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.55) 58%, transparent 100%);
  }

  .slide-title--total-black {
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    max-width: none;
  }

  .slide-desc--total-black {
    font-size: 0.875rem;
    max-width: 38ch;
    margin-bottom: 1.1rem;
  }

  .slide.active .slide--banner .slide-bg,
  .slide.active .slide-bg {
    transform: none;
  }

  .slide--banner {
    min-height: 0;
  }

  .hero-controls {
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-progress {
    height: 3px;
  }

  .slide-split {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    height: 100%;
  }

  .slide-split-text {
    padding: 2.5rem 1.5rem 2rem;
    order: 1;
  }

  .slide-split-text::after {
    display: none;
  }

  .slide-split-media {
    order: 0;
    min-height: 280px;
  }

  .slide-product-img {
    object-position: 50% 40%;
  }

  .slide-split-media--contain {
    padding: 1.25rem 1.5rem;
  }

  .slide-split-media--contain .slide-product-img--fit,
  .slide-split-media--contain .slide-product-img--mirror {
    max-height: 85%;
    max-width: 92%;
  }

  .slide--banner .slide-content {
    justify-content: flex-end;
    padding-bottom: 5rem;
  }

  .slide--banner-marca .slide-content--marca {
    justify-content: flex-end;
    padding: 3.5rem 1.5rem 4.75rem;
  }

  .slide--banner-marca .slide-content--marca .slide-title {
    font-size: clamp(1.05rem, 4.2vw, 1.3rem);
    line-height: 1.25;
    margin-bottom: 0.55rem;
    padding-inline: 0.5rem;
  }

  .slide--banner-marca .slide-content--marca .slide-desc {
    font-size: 0.8125rem;
    margin-bottom: 0.7rem;
  }

  .slide--banner-marca .slide-content--marca .btn {
    width: auto;
    padding: 0.35rem 0.85rem;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .slide--banner-marca .slide-content--marca .btn svg {
    width: 11px;
    height: 11px;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-dot {
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    padding: 20px 8px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-dot::after {
    content: '';
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
  }

  .hero-dot.active {
    width: auto;
  }

  .hero-dot.active::after {
    width: 40px;
    background: var(--color-primary);
  }

  .hero-dot:hover:not(.active)::after {
    background: rgba(255, 255, 255, 0.6);
  }

  .hero-counter {
    display: none;
  }

  .features {
    padding: 4rem 0;
  }

  .feature-card {
    margin-bottom: 4rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .product-card .btn {
    align-self: stretch;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .product-card-carousel-btn {
    width: 44px;
    height: 44px;
  }

  .product-card-carousel-dots button {
    width: 44px;
    height: 44px;
    background: transparent;
    position: relative;
  }

  .product-card-carousel-dots button::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--color-border);
  }

  .product-card-carousel-dots button.active::after,
  .product-card-carousel-dots button:hover::after {
    background: var(--color-primary);
  }

  .filter-btn {
    min-height: 44px;
    padding: 0.75rem 1.125rem;
  }

  .clients-carousel-btn {
    width: 44px;
    height: 44px;
  }

  .clients-carousel-dots button {
    width: 44px;
    height: 44px;
    background: transparent;
    position: relative;
  }

  .clients-carousel-dots button::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--color-border);
  }

  .clients-carousel-dots button.active::after,
  .clients-carousel-dots button:hover::after {
    background: var(--color-primary);
  }

  .quote-contact-list a {
    min-width: 0;
  }

  .quote-contact-list a span:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .builder-intro-text h2 {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }

  .builder-intro-text h2 br {
    display: none;
  }

  .scroll-top {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo img {
    height: 44px;
  }

  .slide-title {
    font-size: 1.375rem;
  }

  .slide-desc {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .hero .btn,
  .page-hero .btn,
  .cta-banner .btn,
  .feature-body .btn {
    width: 100%;
    justify-content: center;
  }

  .slide--banner-marca .slide-content--marca .btn {
    width: auto;
  }

  .feature-body .btn + .btn {
    margin-top: 0.5rem;
  }

  .clients-carousel-slide {
    flex: 0 0 100%;
  }

  .clients-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .config-success {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .config-success .btn {
    width: 100%;
    margin: 0.35rem 0;
  }

  .slide-split-media {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .slide-product-img,
  .slide--banner .slide-bg {
    transform: none !important;
  }

  .slide-product-img--mirror,
  .slide-product-img--fit {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   Inner pages — Quienes somos
   ============================================= */

.page-hero {
  position: relative;
  margin-top: var(--header-height);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-header) 0%, var(--color-header-dark) 100%);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(237, 68, 56, 0.18) 0%, transparent 65%);
  border-radius: 50%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.page-hero-content .section-label {
  color: var(--color-primary-light);
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
}

.page-hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.5;
}

.about-intro {
  padding: 5rem 0;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro-text p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

.about-intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-intro-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
  display: block;
}

.about-intro-image-img--left {
  object-position: left center;
}

.about-intro-image:hover img {
  transform: scale(1.03);
}

.about-intro-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100px;
  height: 100px;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-why {
  padding: 5rem 0;
  background: var(--color-bg-subtle);
}

.about-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-why-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: left center;
}

.about-why-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.about-why-body > p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-benefits li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-primary);
}

.about-benefits strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.about-benefits span {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.about-cta-text {
  padding: 4rem 0;
  text-align: center;
}

.about-cta-text blockquote {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.about-cta-text blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.about-cta-text cite {
  font-style: normal;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.clients-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.clients-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.clients-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  min-height: 100px;
}

.client-logo:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.client-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}

.client-logo:hover img {
  filter: grayscale(0%);
}

.clients-more {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

/* Clientes page */
.page-hero--clients {
  padding: 6rem 0 4.5rem;
}

.page-hero--clients .page-hero-content h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.page-hero-arrow {
  display: block;
  margin: 0 auto;
  opacity: 0.85;
  animation: hero-arrow-bounce 2s ease-in-out infinite;
}

@keyframes hero-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-arrow {
    animation: none;
  }
}

.clients-showcase {
  padding: 4.5rem 0 3rem;
  background: var(--color-bg);
}

.clients-showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.clients-carousel {
  margin: 2.5rem 0 3rem;
}

.clients-carousel-viewport {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.clients-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.clients-carousel-slide {
  flex: 0 0 calc(100% / 5);
  padding: 0 0.75rem;
}

.clients-carousel-slide figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 120px;
  padding: 1.5rem;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.clients-carousel-slide figure:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.clients-carousel-slide img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(25%);
  transition: filter var(--transition);
}

.clients-carousel-slide figure:hover img {
  filter: grayscale(0%);
}

.clients-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.clients-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-subtle);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.clients-carousel-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.clients-carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.clients-carousel-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.clients-carousel-dots button.active,
.clients-carousel-dots button:hover {
  background: var(--color-primary);
  transform: scale(1.15);
}

.clients-grid--static {
  display: none;
}

.clients-trust {
  padding: 3rem 0 4.5rem;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
}

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

.clients-trust-item {
  text-align: center;
  padding: 1.5rem;
}

.clients-trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-header);
}

.clients-trust-item span {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .clients-carousel {
    display: none;
  }

  .clients-grid--static {
    display: grid;
  }
}

@media (max-width: 1024px) {
  .clients-carousel-slide {
    flex: 0 0 calc(100% / 3);
  }

  .clients-trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .page-hero--clients {
    padding: 4.5rem 0 3.5rem;
  }

  .clients-showcase {
    padding: 3.5rem 0 2.5rem;
  }

  /* Mobile: grilla en 2 columnas en lugar del carrusel */
  .clients-carousel {
    display: none;
  }

  .clients-grid--static {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .clients-carousel-slide {
    flex: 0 0 calc(100% / 2);
  }

  .clients-carousel-slide figure {
    min-height: 100px;
    padding: 1rem;
  }

  .clients-carousel-slide img {
    max-height: 50px;
  }
}

@media (max-width: 1024px) {
  .about-intro-grid,
  .about-why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-why-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 4rem 0 3rem;
  }

  .about-intro,
  .about-why,
  .clients-section {
    padding: 3.5rem 0;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* =============================================
   Lumilagro page
   ============================================= */

.page-hero--lumilagro .page-hero-content {
  max-width: 640px;
}

.page-hero--lumilagro .btn {
  margin-top: 0.5rem;
}

.lumilagro-tech {
  padding: 5rem 0;
  background: var(--color-bg-subtle);
}

.lumilagro-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lumilagro-tech-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.lumilagro-tech-body > p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.lumilagro-tech-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lumilagro-tech-visual img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

.lumilagro-tech-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(237, 68, 56, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.lumilagro-collections {
  padding: 5rem 0;
}

.lumilagro-collections-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.lumilagro-collections-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0.5rem 0 1rem;
}

.lumilagro-collections-header p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.lumilagro-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.lumilagro-collection-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.lumilagro-collection-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.lumilagro-collection-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1.5rem;
  background: #fff;
}

.lumilagro-collection-image img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.lumilagro-collection-card:hover .lumilagro-collection-image img {
  transform: scale(1.05);
}

.lumilagro-collection-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.lumilagro-collection-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.lumilagro-collection-body p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.lumilagro-collection-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.lumilagro-bridge {
  padding: 5rem 0;
  background: var(--color-header);
  color: #fff;
}

.lumilagro-bridge-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lumilagro-bridge-text .section-label {
  color: var(--color-primary-light);
}

.lumilagro-bridge-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.25;
}

.lumilagro-bridge-text p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.lumilagro-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lumilagro-bridge .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.lumilagro-bridge .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.lumilagro-bridge-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lumilagro-bridge-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .lumilagro-tech-grid,
  .lumilagro-bridge-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lumilagro-tech-visual {
    order: -1;
  }

  .lumilagro-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lumilagro-tech,
  .lumilagro-collections,
  .lumilagro-bridge {
    padding: 3.5rem 0;
  }

  .lumilagro-collections-grid {
    grid-template-columns: 1fr;
  }

  .lumilagro-bridge-image {
    order: -1;
  }
}

/* =============================================
   Presupuestar page
   ============================================= */

.page-hero--contact {
  padding: 6rem 0 4.5rem;
}

.page-hero--contact .page-hero-content h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.page-hero--contact .page-hero-sub {
  margin-bottom: 2rem;
}

.quote-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.quote-form-wrap {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quote-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition);
}

.quote-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-block {
  width: 100%;
}

.quote-info-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.quote-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quote-contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.quote-contact-list a:hover {
  color: var(--color-primary);
}

.quote-contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-primary);
}

.quote-contact-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.quote-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .quote-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-hero--contact {
    padding: 4.5rem 0 3.5rem;
  }

  .quote-section {
    padding: 3rem 0 4rem;
  }

  .quote-form-wrap {
    padding: 1.5rem;
  }
}

/* =============================================
   Productos page
   ============================================= */

.page-hero--compact {
  padding: 4rem 0 3rem;
}

.products-section {
  padding: 3rem 0 5rem;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.products-count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.products-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  padding-top: 1.5rem;
  margin-bottom: -0.25rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.products-section-title:first-child {
  padding-top: 0;
}

.products-section-title.is-hidden {
  display: none;
}

.products-section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 0.625rem;
  border-radius: 2px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
}

.product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1rem;
  background: var(--color-bg);
  min-height: 220px;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.product-card-image img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card-image--duo {
  gap: 0.75rem;
  padding-inline: 1rem;
}

.product-card-image--duo img {
  max-height: 180px;
  max-width: calc(50% - 0.4rem);
}

.product-card-image--stack {
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
}

.product-card-image--stack img {
  max-width: 100%;
  max-height: 240px;
  width: 100%;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.625rem;
  text-transform: capitalize;
}

.product-card-title--sentence {
  text-transform: none;
}

.product-card--specs {
  justify-content: flex-start;
  min-height: 100%;
}

.product-card--specs .product-card-body {
  padding-top: 3rem;
}

.product-card--specs .product-specs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-card--specs .product-specs p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.product-card--specs .product-specs strong {
  color: var(--color-text);
  font-weight: 600;
}

.product-card-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
  position: relative;
}

.product-card-carousel-viewport {
  overflow: hidden;
  width: 100%;
  align-self: stretch;
  position: relative;
}

.product-card-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-card-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 0.25rem 0;
}

.product-card-carousel-slide img {
  max-height: 200px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
}

.product-card-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.product-card-carousel-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-card-carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.product-card-carousel-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.product-card-carousel-dots button.active,
.product-card-carousel-dots button:hover {
  background: var(--color-primary);
}

.product-card:hover .product-card-carousel-slide img {
  transform: none;
}

.product-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.product-details {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.product-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  margin-bottom: 0.5rem;
}

.product-details summary::-webkit-details-marker {
  display: none;
}

.product-details summary::after {
  content: ' +';
}

.product-details[open] summary::after {
  content: ' −';
}

.product-details p {
  line-height: 1.6;
  padding-top: 0.25rem;
}

.product-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.products-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

@media (max-width: 768px) {
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .products-filters {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.4rem;
    padding-bottom: 0;
    justify-content: stretch;
  }

  .filter-btn {
    flex: 1 1 calc(25% - 0.4rem);
    min-width: calc(25% - 0.4rem);
    max-width: calc(50% - 0.25rem);
    padding: 0.55rem 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    text-align: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
  }

  .products-count {
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Armá tu termo
   ============================================= */

.builder-hero {
  margin-top: var(--header-height);
  padding: 3rem 0;
  background: var(--color-header);
  text-align: center;
}

.builder-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.builder-intro {
  padding: 4rem 0;
  background: var(--color-bg-subtle);
}

.builder-intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.builder-intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 2rem;
}

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

.builder-step {
  text-align: center;
}

.builder-step img {
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.builder-step p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.builder-models {
  padding: 4rem 0 5rem;
  scroll-margin-top: var(--header-height);
}

.builder-models-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.builder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.builder-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.builder-card img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.builder-card:hover img {
  transform: scale(1.06);
}

.builder-card span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.3;
}

/* Configurador */
.config-page {
  margin-top: var(--header-height);
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
}

.config-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.config-back:hover {
  color: var(--color-primary);
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.config-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  min-height: 360px;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.config-preview {
  max-height: 340px;
  width: auto;
  object-fit: contain;
}

.config-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.config-desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fdecea;
  color: #b3261e;
  font-size: 0.9rem;
  line-height: 1.4;
}

.config-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.config-form legend {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.config-form input[type="text"],
.config-form input[type="email"],
.config-form input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.config-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-file {
  width: 100%;
  font-size: 0.875rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.375rem;
}

.color-options,
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-option,
.radio-option {
  cursor: pointer;
}

.color-option input,
.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-option-label,
.radio-option {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  transition: var(--transition);
}

.color-option input:checked + .color-option-label,
.radio-option:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.color-option:hover .color-option-label,
.radio-option:hover {
  border-color: var(--color-primary);
}

.config-success {
  padding: 2rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.config-success h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.config-success p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.config-success .btn {
  margin: 0.25rem;
}

@media (max-width: 1024px) {
  .builder-intro-grid {
    grid-template-columns: 1fr;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-preview-wrap {
    position: static;
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .builder-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .builder-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
