﻿/* ============================================================
   ORIGEN COMERCIAL â€” Design System & Styles
   Premium Agroindustrial Landing Page
   ============================================================ */

/* ======== Google Fonts ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ======== CSS Custom Properties (Design Tokens) ======== */
:root {
  /* Primary Palette */
  --verde-profundo: #1a3a2a;
  --verde-fresco: #3d8b5f;
  --verde-hover: #2e7049;
  --verde-claro: #e8f5ee;
  --verde-overlay: rgba(26, 58, 42, 0.85);

  /* Neutrals */
  --blanco-sanitario: #f8faf9;
  --blanco-puro: #ffffff;
  --gris-acero: #6b7b8d;
  --gris-claro: #e2e8f0;
  --gris-ultra-claro: #f1f5f9;
  --beige-vegetal: #f0ebe3;
  --metal-frio: #9ca8b5;
  --negro-profundo: #0d1b14;
  --negro-suave: #1e2d24;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Manrope', 'Inter', sans-serif;

  /* Font Sizes â€” Fluid */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --text-4xl: clamp(2.2rem, 1.6rem + 3vw, 3.8rem);
  --text-5xl: clamp(2.8rem, 2rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing â€” 4px scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 27, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 27, 20, 0.08);
  --shadow-lg: 0 8px 32px rgba(13, 27, 20, 0.1);
  --shadow-xl: 0 16px 48px rgba(13, 27, 20, 0.12);
  --shadow-card: 0 2px 12px rgba(13, 27, 20, 0.06), 0 0 0 1px rgba(13, 27, 20, 0.03);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-hero: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-Index Scale */
  --z-behind: -1;
  --z-base: 1;
  --z-overlay: 10;
  --z-sticky: 20;
  --z-navbar: 50;
  --z-loader: 100;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-padding: clamp(1.25rem, 3vw, 3rem);
}

/* ======== Reset & Base ======== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.65;
  color: var(--negro-profundo);
  background: var(--blanco-sanitario);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ======== Utility ======== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======== Preloader ======== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--verde-profundo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__brand {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--blanco-sanitario);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

.preloader__bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--verde-fresco);
  border-radius: var(--radius-full);
  transition: width 0.15s linear;
}

.preloader__percent {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--metal-frio);
  margin-top: var(--space-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* ======== Navbar ======== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-4) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(13, 27, 20, 0.06);
  padding: var(--space-3) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--blanco-puro);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.navbar.scrolled .navbar__logo {
  color: var(--verde-profundo);
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--verde-fresco);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--blanco-puro);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.navbar__link:hover {
  color: var(--blanco-puro);
}

.navbar.scrolled .navbar__link {
  color: var(--gris-acero);
}

.navbar.scrolled .navbar__cta,
.navbar.scrolled .navbar__cta:hover {
  color: var(--blanco-puro);
}

.navbar.scrolled .navbar__link:hover {
  color: var(--verde-profundo);
}

.navbar__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blanco-puro);
  background: var(--verde-fresco);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.navbar__cta:hover {
  background: var(--verde-hover);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 60;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--blanco-puro);
  border-radius: 2px;
  transition: var(--transition-base);
}

.navbar.scrolled .navbar__hamburger span {
  background: var(--verde-profundo);
}

/* Mobile nav */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.navbar.menu-open {
  height: 100dvh;
  background: #1A3B2B !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.navbar.menu-open .navbar__mobile-menu {
  opacity: 1;
  visibility: visible;
}

.navbar__mobile-menu a {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 500;
  color: var(--blanco-puro);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.navbar__mobile-menu a:hover {
  opacity: 0.7;
}

.navbar.menu-open .navbar__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.menu-open .navbar__hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar.menu-open .navbar__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    display: flex;
  }
}

/* ======== Hero Scrollytelling ======== */
.hero {
  position: relative;
  height: 380vh;
  width: 100%;
}

.hero__canvas-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--verde-profundo);
}

.hero__canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

/* Gradient overlays for atmosphere */
.hero__gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(26, 58, 42, 0.5) 0%, transparent 100%);
  z-index: var(--z-overlay);
  pointer-events: none;
}

.hero__gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to top, rgba(26, 58, 42, 0.4) 0%, transparent 100%);
  z-index: var(--z-overlay);
  pointer-events: none;
}

/* Hero text overlays */
.hero__overlay {
  position: absolute;
  z-index: var(--z-overlay);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-hero), transform var(--transition-hero), filter var(--transition-hero);
  filter: blur(4px);
  pointer-events: none;
}

.hero__overlay.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

/* Phase 1 â€” Origin */
.hero__phase-1 {
  top: 15%;
  left: var(--container-padding);
  max-width: 600px;
}

.hero__badge-container {
  top: auto !important;
  bottom: 10%;
  left: 10vw; /* Desplazamiento exacto para caer sobre el fondo gris y coincidir con la línea roja */
}

@media (max-width: 768px) {
  .hero__badge-container {
    left: var(--container-padding);
  }
}

.hero__title {
  font-family: var(--font-accent);
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--blanco-puro);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--blanco-puro);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-4);
  background: var(--verde-profundo);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(26, 58, 42, 0.4);
}

/* Phase 2 â€” Processing */
.hero__phase-2 {
  top: 12%;
  right: var(--container-padding);
  max-width: 520px;
  text-align: right;
}

/* Phase 3 â€” Final product */
.hero__phase-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  text-align: center;
  max-width: 700px;
  width: 90%;
}

.hero__phase-3.active {
  transform: translateX(-50%) translateY(0);
}

.hero__phase-3 .hero__title {
  font-size: var(--text-4xl);
}

/* Phase 4 â€” CTA */
.hero__phase-4 {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.hero__phase-4.active {
  transform: translateX(-50%) translateY(0);
}

.hero__cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background: var(--verde-fresco);
  color: var(--blanco-puro);
  box-shadow: 0 4px 20px rgba(61, 139, 95, 0.3);
}

.btn--primary:hover {
  background: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61, 139, 95, 0.4);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco-puro);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--verde-profundo);
  color: var(--blanco-puro);
}

.btn--dark:hover {
  background: var(--negro-suave);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {

  .hero__phase-1 {
    top: auto;
    bottom: 32%;
    left: var(--container-padding);
    right: var(--container-padding);
    text-align: left;
    max-width: 100%;
  }

  .hero__phase-2 {
    top: auto;
    bottom: 12%;
    left: var(--container-padding);
    right: var(--container-padding);
    text-align: left;
    max-width: 100%;
  }

  .hero__phase-2 {
    text-align: left;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__phase-3 {
    bottom: 12%;
  }

  .hero__phase-3 .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__phase-4 {
    bottom: 6%;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }
}

/* ======== Diferenciales decorative arrows ======== */
.diferenciales-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}

.diferenciales-arrows__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Section header sits above the arrows */
#diferenciales .container {
  position: relative;
  z-index: 2;
}

/* Enough top padding so arrows (200px tall) don't overlap the title */
#diferenciales {
  padding-top: 240px;
}

@media (max-width: 768px) {
  .diferenciales-arrows {
    height: 130px;
  }
  #diferenciales {
    padding-top: 160px;
  }
}

/* ======== Section Base ======== */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--alt {
  background: var(--beige-vegetal);
}

.section--dark {
  background: var(--verde-profundo);
  color: var(--blanco-puro);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--verde-fresco);
  margin-bottom: var(--space-4);
}

.section--dark .section__tag {
  color: rgba(61, 139, 95, 0.8);
}

.section__title {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--negro-profundo);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section--dark .section__title {
  color: var(--blanco-puro);
}

.section__desc {
  font-size: var(--text-lg);
  color: var(--gris-acero);
  line-height: 1.7;
}

.section--dark .section__desc {
  color: rgba(255, 255, 255, 0.65);
}

/* ======== Featured Collection ======== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blanco-puro);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.featured-card__image-wrapper {
  overflow: hidden;
  position: relative;
}

.featured-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f5f0ea;
  transition: transform var(--transition-slow);
}

.featured-card:hover .featured-card__image {
  transform: scale(1.05);
}



.featured-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--verde-profundo);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.featured-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.featured-card__name {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--negro-profundo);
  margin-bottom: var(--space-2);
}

.featured-card__desc {
  font-size: var(--text-sm);
  color: var(--gris-acero);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.featured-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.featured-card__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--verde-fresco);
  background: var(--verde-claro);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ======== Products Grid ======== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blanco-puro);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

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

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--gris-ultra-claro);
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
  transform: scale(1.03);
}

.product-card__image-wrapper {
  overflow: hidden;
  position: relative;
}

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--verde-profundo);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.product-card__body {
  padding: var(--space-6);
}

.product-card__name {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--negro-profundo);
  margin-bottom: var(--space-2);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--gris-acero);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-card__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--verde-fresco);
  background: var(--verde-claro);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ======== Differentials ======== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.diff-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(13, 27, 20, 0.04);
  transition: all var(--transition-base);
}

.diff-card:hover {
  background: var(--blanco-puro);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section--dark .diff-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .diff-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.diff-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.section--dark .diff-card__icon {
  background: rgba(61, 139, 95, 0.15);
}

.diff-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--verde-fresco);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diff-card__title {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--negro-profundo);
  margin-bottom: var(--space-2);
}

.section--dark .diff-card__title {
  color: var(--blanco-puro);
}

.diff-card__text {
  font-size: var(--text-base);
  color: var(--gris-acero);
  line-height: 1.65;
}

.section--dark .diff-card__text {
  color: rgba(255, 255, 255, 0.6);
}

/* ======== Process Timeline ======== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.process-step__number {
  font-family: var(--font-accent);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--verde-claro);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.section--dark .process-step__number {
  color: rgba(61, 139, 95, 0.15);
}

.process-step__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--verde-fresco);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.process-step__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blanco-puro);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step__title {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--gris-acero);
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}

.section--dark .process-step__desc {
  color: rgba(255, 255, 255, 0.6);
}

.highlight-badge {
  background-color: #ffffff;
  color: #000000;
  font-weight: 800;
  padding: 0.1em 0.4em;
  border-radius: 2px;
  display: inline-block;
}

/* Arrow between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--verde-fresco);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* ======== Sectors ======== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--blanco-puro);
  border: 1px solid var(--gris-claro);
  transition: all var(--transition-base);
  cursor: pointer;
}

.sector-card:hover {
  border-color: var(--verde-fresco);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sector-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: background var(--transition-base);
}

.sector-card:hover .sector-card__icon {
  background: var(--verde-fresco);
}

.sector-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--verde-fresco);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-base);
}

.sector-card:hover .sector-card__icon svg {
  stroke: var(--blanco-puro);
}

.sector-card__name {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--negro-profundo);
  margin-bottom: var(--space-1);
}

.sector-card__desc {
  font-size: var(--text-sm);
  color: var(--gris-acero);
}

/* ======== Benefits / Stats ======== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.benefit-item {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-item__value {
  font-family: var(--font-accent);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--verde-fresco);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.benefit-item__label {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--blanco-puro);
  margin-bottom: var(--space-2);
}

.benefit-item__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ======== Social Proof ======== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--blanco-puro);
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  color: var(--negro-profundo);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-accent);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--verde-claro);
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--verde-fresco);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--negro-profundo);
}

.testimonial-card__role {
  font-size: var(--text-sm);
  color: var(--gris-acero);
}

/* ======== Contact / CTA Section ======== */
.cta-section {
  text-align: center;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--verde-profundo) 0%, #1a4a32 50%, var(--verde-profundo) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 139, 95, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--blanco-puro);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.cta-section__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-10);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ======== Footer ======== */
.footer {
  background: var(--negro-profundo);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--blanco-puro);
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.footer__col-title {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--blanco-puro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--verde-fresco);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.footer__social a:hover {
  background: var(--verde-fresco);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.6);
}

.footer__social a:hover svg {
  fill: var(--blanco-puro);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
  }
}

/* ======== Scroll Animations ======== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-hero), transform var(--transition-hero);
}

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

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

/* ======== Reduced Motion ======== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .hero__overlay {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ======== Scrollbar ======== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--blanco-sanitario);
}

::-webkit-scrollbar-thumb {
  background: var(--metal-frio);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gris-acero);
}

/* =============
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============= */

/* ======== Hamburger Animation ======== */
@media (max-width: 768px) {
  .navbar__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .navbar__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .navbar__mobile-menu.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ======== Tablet (â‰¤ 1024px) ======== */
@media (max-width: 1024px) {
  .section {
    padding: var(--space-16) 0;
  }

  .section__header {
    margin-bottom: var(--space-10);
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .diff-card {
    padding: var(--space-6);
  }

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

/* ======== Mobile (â‰¤ 768px) ======== */
@media (max-width: 768px) {
  /* -- Navbar -- */
  .navbar__logo {
    font-size: var(--text-base);
    gap: var(--space-2);
  }

  .navbar__logo-icon {
    width: 32px;
    height: 32px;
  }

  /* -- Hero -- */
  .hero {
    height: 280vh;
  }

  .hero__phase-1 {
    max-width: 90%;
  }

  .hero__phase-2 {
    max-width: 90%;
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  /* -- Section -- */
  .section {
    padding: var(--space-12) 0;
  }

  .section__header {
    margin-bottom: var(--space-8);
    padding: 0 var(--space-2);
  }

  .section__title {
    font-size: var(--text-2xl);
    line-height: 1.2;
  }

  .section__desc {
    font-size: var(--text-base);
  }

  /* -- Grids -- */
  .diff-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .diff-card {
    padding: var(--space-5);
  }

  .sectors-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .sector-card {
    flex-direction: row;
    text-align: left;
    padding: var(--space-5) var(--space-6);
    gap: var(--space-4);
  }

  .sector-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

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

  .testimonial-card {
    padding: var(--space-6);
  }

  /* -- Buttons & Touch -- */
  .btn {
    font-size: var(--text-sm);
    padding: var(--space-4) var(--space-6);
    min-height: 48px;
    justify-content: center;
  }

  .hero__cta-group .btn {
    width: 100%;
    text-align: center;
  }

  /* -- CTA Section -- */
  .cta-section {
    padding: var(--space-12) 0;
  }

  .cta-section__title {
    font-size: var(--text-2xl);
  }

  .cta-section__desc {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-section__buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* -- Footer -- */
  .footer {
    padding: var(--space-8) 0 var(--space-6);
  }

  .footer__inner {
    gap: var(--space-6);
  }

  .footer__brand {
    max-width: 100%;
    text-align: center;
  }

  .footer__inner > div {
    width: 100%;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .footer__social {
    justify-content: center;
  }

  /* -- WhatsApp Float -- */
  .wa-float {
    bottom: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }

  /* -- Hero Badge Logo -- */
  .hero__badge-container img {
    width: 120px !important;
  }
}

/* ======== Small Mobile (â‰¤ 480px) ======== */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero {
    height: 250vh;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__phase-3 .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__tag {
    font-size: 0.65rem;
    padding: var(--space-2) var(--space-4);
    letter-spacing: 0.12em;
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section__title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .featured-card__body {
    padding: var(--space-4);
  }

  .featured-card__name {
    font-size: var(--text-base);
  }

  .product-card__body {
    padding: var(--space-4);
  }

  .product-card__name {
    font-size: var(--text-lg);
  }

  .process-step {
    padding: var(--space-5) var(--space-2);
  }

  .process-step__number {
    font-size: var(--text-3xl);
  }

  .process-step__icon {
    width: 52px;
    height: 52px;
  }

  .benefit-item {
    padding: var(--space-6) var(--space-4);
  }

  .benefit-item__value {
    font-size: var(--text-3xl);
  }

  .navbar__mobile-menu a {
    font-size: var(--text-xl);
  }
}
/* ---- Origen Comercial Mobile Header Tweak ---- */
@media (max-width: 768px) {
  /* Hide text next to logo in navbar */
  .navbar__logo-text {
    display: none !important;
  }

  /* Hide hero text elements */
  .hero__phase-1:not(.hero__badge-container) {
    display: none !important;
  }

  /* Reposition badge container to the top and center */
  .hero__phase-1.hero__badge-container, .hero__badge-container {
    top: 15% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    align-items: center !important;
    width: 100% !important;
  }

    /* Make logo large */
  .hero__badge-container img {
    display: none !important;
  }
  .hero__badge-container .mobile-logo-svg {
    display: block !important;
    width: 110% !important; /* Increase overall width significantly */
    max-width: 500px !important;
    transform: translateX(8%); /* Shift it right into the empty space */
  }

  /* Hide the DESDE 1995 tag */
  .hero__badge-container .hero__tag {
    display: none !important;
  }
}

