:root,
[data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --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;

  --color-bg: #f7f8f7;
  --color-surface: #ffffff;
  --color-surface-2: #eef2ee;
  --color-surface-offset: #e6ebe6;
  --color-border: rgba(12, 20, 14, 0.12);
  --color-divider: rgba(12, 20, 14, 0.08);
  --color-text: #0b120d;
  --color-text-muted: #4c5a50;
  --color-text-faint: #79857b;
  --color-text-inverse: #f8fff9;

  --color-primary: #18c55f;
  --color-primary-hover: #14a84f;
  --color-primary-active: #10823d;
  --color-primary-highlight: rgba(24, 197, 95, 0.12);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 8px 24px rgba(10, 16, 12, 0.06);
  --shadow-md: 0 20px 50px rgba(10, 16, 12, 0.12);

  --content: 1200px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'General Sans', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --color-bg: #060807;
  --color-surface: #0d110f;
  --color-surface-2: #121714;
  --color-surface-offset: #171d19;
  --color-border: rgba(235, 245, 238, 0.12);
  --color-divider: rgba(235, 245, 238, 0.08);
  --color-text: #eff7f1;
  --color-text-muted: #a5b3a9;
  --color-text-faint: #6b756d;
  --color-text-inverse: #061008;

  --color-primary: #77fe01;
  --color-primary-hover: #44e485;
  --color-primary-active: #17b256;
  --color-primary-highlight: rgba(34, 216, 107, 0.12);

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Accesibilidad */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #041008;
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* Layout */
.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

/* Tipografía y etiquetas */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.section-copy {
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 84%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 78px;
}

.brand {
display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo {
  height: 40px;          /* Ajusta según se vea mejor en el header */
  width: auto;           /* Mantiene proporción 400x101 */
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

nav a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

nav a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  background: var(--color-surface);
  color: var(--color-text);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #041008;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Hero */
.hero {
  padding: clamp(var(--space-12), 10vw, var(--space-24)) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: var(--space-5) 0 var(--space-5);
  max-width: 11ch;
}

.hero-copy p {
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-metrics {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.metric {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  font-size: var(--text-lg);
  font-family: var(--font-display);
}

.metric span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-surface) 92%, transparent),
    var(--color-surface-2)
  );
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.floating-tag {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  background: rgba(4, 10, 6, 0.72);
  color: #eff7f1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  font-size: var(--text-sm);
}

/* Productos */
.market {
  background: var(--color-surface);
}

.products-grid {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: var(--space-6);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
}

.product-body h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
}

.product-body p {
  color: var(--color-text-muted);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
}

.price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
}

/* Multimedia */
.media-layout {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.media-card iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.media-body {
  padding: var(--space-5);
}

.media-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.media-body p {
  color: var(--color-text-muted);
}

/* CTA */
.cta-band {
  margin-top: var(--space-12);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)),
    var(--color-surface)
  );
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-band h3 {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  max-width: 14ch;
}

/* Footer */
.footer {
  background: #020403;
  color: #e8f3eb;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: var(--space-8);
}

.footer p,
.footer a {
  color: rgba(232, 243, 235, 0.8);
}

.footer a:hover {
  color: var(--color-primary);
}

.footer h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.footer-description {
  margin-top: 1rem;
  max-width: 34ch;
}

.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 243, 235, 0.55);
  font-size: var(--text-xs);
}

/* Responsive */
@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero-grid,
  .products-grid,
  .media-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 72px;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-secondary {
    display: none;
  }

  .cta-band {
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
/* Botón de menú (por defecto oculto en desktop) */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* Estado activo, cuando se abre el menú */
.nav-open .nav-toggle {
  background: var(--color-primary);
  color: #041008;
}

/* Desktop */
@media (min-width: 981px) {
  nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile */
@media (max-width: 980px) {
  .header-inner {
    gap: var(--space-3);
  }

  /* Mostrar botón menú, ocultar nav por defecto */
  .nav-toggle {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
    display: none;
    flex-direction: column;
    gap: var(--space-3);
  }

  nav a {
    font-size: var(--text-base);
  }

  /* Cuando el body tenga la clase nav-open, mostramos el menú */
  .nav-open nav {
    display: flex;
  }
}