/* =========================================================
   Lautaro Raineri — Productor de Alfalfa
   Estilo "Rústico Refinado": serif robusta (Domine) + sans
   racional (Work Sans), paleta del ciclo de la alfalfa
   (verde bosque + oro cosecha), profundidad por capas de
   color y bordes de 1px en lugar de sombras.
   Ritmo de espaciado en múltiplos de 8px. Mobile-first.

   Índice
     1. Tokens (claro / oscuro)
     2. Reset y base
     3. Utilidades de tipografía
     4. Botones y formularios
     5. Header y navegación
     6. Hero
     7. Secciones y componentes
     8. Contacto y footer
     9. Acciones flotantes
    10. Breakpoints
    11. Movimiento reducido e impresión
   ========================================================= */

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  /* ---- Superficies (blanco cálido / beige) ---- */
  --surface: #fff8f0;
  --surface-lowest: #ffffff;
  --surface-low: #f9f3ea;
  --surface-container: #f3ede4;
  --surface-high: #ede7df;
  --surface-highest: #e8e2d9;

  /* ---- Texto (marrón tierra, no negro puro) ---- */
  --on-surface: #1d1b16;
  --on-surface-variant: #424842;

  /* ---- Verde bosque (primario) ---- */
  --primary: #163521;
  --primary-container: #2d4c36;
  --on-primary: #ffffff;

  /* ---- Oro cosecha (secundario, acento) ---- */
  --secondary: #6b5500;
  --secondary-container: #fed65b;
  --on-secondary-container: #4a3b00;

  /* ---- Líneas y bordes ---- */
  --outline: #727972;
  --outline-variant: #c2c8c0;
  --rustic-border: #d1cdc0;

  --error: #ba1a1a;

  /* ---- Paneles invertidos (verde oscuro sobre claro) ---- */
  --invert-bg: #163521;
  --invert-fg: #ffffff;
  --invert-fg-dim: rgba(255, 255, 255, 0.8);
  --invert-border: rgba(255, 255, 255, 0.55);
  --invert-hover: rgba(255, 255, 255, 0.12);

  /* ---- Botón claro sobre panel invertido ---- */
  --btn-light-bg: #ffffff;
  --btn-light-fg: #163521;
  --btn-light-hover: #ede7df;

  /* ---- Campos de formulario ---- */
  --field-bg: #fbf9f4;
  --field-fg: #1d1b16;
  --field-border: #cfd6c8;
  --field-placeholder: #6d746a;

  /* ---- Velo del hero ---- */
  --scrim-from: rgba(22, 53, 33, 0.92);
  --scrim-to: rgba(22, 53, 33, 0.55);

  /* ---- Grano de papel ---- */
  --texture-blend: multiply;
  --texture-opacity: 0.5;

  /* ---- Anillo de foco (se redefine dentro de paneles oscuros) ---- */
  --focus: #163521;

  /* ---- Tipografía ---- */
  --font-head: 'Domine', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Escala de espaciado (múltiplos de 8px) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* ---- Formas: suave (0.25rem), nada de "píldora" ---- */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;

  --max-width: 1280px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;

  /* Alto real del header; main.js lo actualiza al cargar y al redimensionar. */
  --header-h: 74px;
}

/* Modo oscuro automático: mismos roles, paleta de noche de campo. */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #14170f;
    --surface-lowest: #0d0f09;
    --surface-low: #191d13;
    --surface-container: #1f2418;
    --surface-high: #262c1d;
    --surface-highest: #2d3423;

    --on-surface: #e8e4d7;
    --on-surface-variant: #b6bda9;

    --primary: #a9d0af;
    --primary-container: #c3e3c8;
    --on-primary: #0a2412;

    --secondary: #e6c65c;
    --secondary-container: #4a3b00;
    --on-secondary-container: #ffe08a;

    --outline: #8c9382;
    --outline-variant: #3b4232;
    --rustic-border: #3b4232;

    --error: #ffb4ab;

    --invert-bg: #1a2417;
    --invert-fg: #eaf1e4;
    --invert-fg-dim: rgba(234, 241, 228, 0.78);
    --invert-border: rgba(234, 241, 228, 0.38);
    --invert-hover: rgba(234, 241, 228, 0.1);

    --btn-light-bg: #dfe6d6;
    --btn-light-fg: #14170f;
    --btn-light-hover: #eef3e6;

    --field-bg: #10130c;
    --field-fg: #e8e4d7;
    --field-border: #4a5240;
    --field-placeholder: #8f9782;

    --scrim-from: rgba(6, 10, 5, 0.88);
    --scrim-to: rgba(6, 10, 5, 0.45);

    --texture-blend: screen;
    --texture-opacity: 0.14;

    --focus: #a9d0af;
  }
}

/* =========================================================
   2. Reset y base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-3));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; }
svg { width: 24px; height: 24px; }
/* El atributo hidden tiene que ganarle a cualquier display de componente. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0 0 var(--space-3); color: var(--on-surface-variant); text-wrap: pretty; }
strong { color: var(--on-surface); font-weight: 600; }

/* El sprite de íconos no se dibuja: sólo aporta las definiciones. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.texture-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  mix-blend-mode: var(--texture-blend);
  opacity: var(--texture-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Sólo padding horizontal: el vertical lo ponen los bloques que además
   usan .container (el header y el hero), y un shorthand se lo borraría. */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--margin-mobile);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Aparición al hacer scroll. El estado inicial se aplica sólo con JS
   activo (clase .js en <html>), para que sin JS el contenido se vea. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   3. Utilidades de tipografía
   ========================================================= */
.eyebrow {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 var(--space-3);
}
.eyebrow-center { text-align: center; }

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* =========================================================
   4. Botones y formularios
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  min-height: 48px;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 16px 32px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-container); }

.btn-outline {
  background: transparent;
  border-color: var(--rustic-border);
  color: var(--primary);
}
.btn-outline:hover { background: var(--secondary-container); color: var(--on-secondary-container); border-color: var(--secondary-container); }

.btn-light { background: var(--btn-light-bg); color: var(--btn-light-fg); }
.btn-light:hover { background: var(--btn-light-hover); }

.btn-ghost-light {
  background: transparent;
  border-color: var(--invert-border);
  color: var(--invert-fg);
}
.btn-ghost-light:hover { background: var(--invert-hover); }

.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--invert-fg-dim);
}
.field-opt { font-weight: 400; opacity: 0.75; }

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* 16px evita el zoom automático en iOS */
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--field-fg);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}
.quote-form textarea { resize: vertical; min-height: 72px; }
.quote-form ::placeholder { color: var(--field-placeholder); }
.quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23727972' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
.quote-form input[aria-invalid="true"],
.quote-form textarea[aria-invalid="true"] { border-color: var(--error); }

.form-note { font-size: 12px; color: var(--invert-fg-dim); margin: 0; }

/* =========================================================
   5. Header y navegación
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--outline-variant), 0 4px 16px rgba(0, 0, 0, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.brand { display: flex; align-items: center; gap: var(--space-2); color: var(--primary); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: var(--primary);
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel desplegable: se ancla al alto real del header, sin medidas mágicas. */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  padding: var(--space-4) var(--margin-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav ul li { border-bottom: 1px solid var(--outline-variant); }
.site-nav ul a {
  display: block;
  padding: var(--space-3) 0;
  font-weight: 500;
  color: var(--on-surface-variant);
}
.site-nav ul a:hover { color: var(--primary); }
.site-nav ul a[aria-current="true"] { color: var(--primary); font-weight: 600; }
.nav-cta { align-self: flex-start; margin-top: var(--space-2); }

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  --focus: #ffffff;
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #163521;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--scrim-from) 0%, var(--scrim-to) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.hero-inner { max-width: 640px; }
.hero .eyebrow { color: var(--secondary-container); }
.hero h1 {
  font-size: 30px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: var(--space-4);
}
.hero-lead {
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48ch;
  margin-bottom: var(--space-6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .btn-light { background: #ffffff; color: #163521; }
.hero .btn-light:hover { background: #ede7df; }
.hero .btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.hero .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}
.hero-facts span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   7. Secciones y componentes
   ========================================================= */
.section { padding: var(--space-7) 0; }
.section-lowest { background: var(--surface-lowest); }
.section-low { background: var(--surface-low); }
.section-high { background: var(--surface-high); }

.section-head { text-align: center; max-width: 60ch; margin: 0 auto var(--space-6); }
.section-head h2 { font-size: 24px; }

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--rustic-border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--surface-container);
}

/* ---------- Grid de valores ---------- */
.value-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.value-card {
  background: var(--surface-highest);
  border: 1px solid var(--rustic-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: background-color 0.25s ease;
}
.value-card:hover { background: var(--surface-container); }
.value-icon { width: 48px; height: 48px; color: var(--secondary); margin-bottom: var(--space-4); }
.value-card h3 { font-size: 20px; margin-bottom: var(--space-2); }
.value-card p { margin: 0; }

/* ---------- Showcase de producto ---------- */
.showcase { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
.showcase-text h2 { font-size: 24px; margin-top: var(--space-3); }
.showcase-text > p { font-size: 18px; line-height: 28px; margin-bottom: var(--space-5); }

.spec-card {
  background: var(--surface-lowest);
  border: 1px solid var(--rustic-border);
  border-left: 4px solid var(--secondary-container);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.spec-card h3 { font-size: 18px; margin-bottom: var(--space-4); }
.spec-list { margin: 0 0 var(--space-4); }
.spec-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--outline-variant);
}
.spec-list > div:first-child { border-top: 1px solid var(--outline-variant); }
.spec-list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.spec-list dd { margin: 0; font-weight: 600; color: var(--on-surface); text-align: right; }
.spec-note { font-size: 13px; margin: 0; }

/* ---------- Lista con viñeta "semilla" ---------- */
.seed-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.seed-list li { position: relative; padding-left: var(--space-5); color: var(--on-surface); }
.seed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
}

/* ---------- Cards de producto ---------- */
.product-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-lowest);
  border: 1px solid var(--rustic-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card .media-img {
  border: none;
  border-bottom: 1px solid var(--rustic-border);
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.product-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-card h3 { font-size: 20px; margin: 0; }
.product-card p { margin: 0; flex: 1; }
.card-link {
  align-self: flex-start;
  margin-top: var(--space-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  border-bottom: 2px solid var(--secondary-container);
  padding-bottom: 2px;
}
.card-link:hover { border-bottom-color: var(--primary); }

/* ---------- Proceso (3 pasos) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-6); position: relative; }
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border: 3px solid var(--surface-high);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}
.step h3 { font-size: 20px; margin-bottom: var(--space-2); }
.step p { margin: 0; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
.about-media .media-img { aspect-ratio: 4 / 5; }
.about-text h2 { font-size: 24px; }

/* ---------- Zona ---------- */
.zone-note {
  border: 1px solid var(--rustic-border);
  border-left: 4px solid var(--secondary-container);
  border-radius: var(--radius);
  background: var(--surface-lowest);
  padding: var(--space-4);
  max-width: 64ch;
  margin: var(--space-5) auto 0;
}
.zone-note strong { display: block; margin-bottom: var(--space-1); color: var(--primary); font-family: var(--font-head); font-size: 18px; }
.zone-note p { margin-bottom: var(--space-4); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--outline-variant); }
.faq-item:first-child { border-top: 1px solid var(--outline-variant); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  color: var(--secondary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 var(--space-4); }

/* =========================================================
   8. Contacto y footer
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.contact-info h2 { font-size: 24px; }
.contact-list { display: flex; flex-direction: column; margin-top: var(--space-4); }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--outline-variant);
}
.contact-list li:first-child { border-top: 1px solid var(--outline-variant); }
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--surface-highest);
  border-radius: var(--radius);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 600; color: var(--primary); }
.contact-list a:hover { color: var(--secondary); }

.contact-cta-box {
  --focus: var(--invert-fg);
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: start;
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.contact-cta-box h3 { color: var(--invert-fg); font-size: 20px; margin: 0; }
.cta-lead { color: var(--invert-fg-dim); margin: 0; }

.quote-form { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-2) 0 0; }

.cta-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--invert-fg-dim);
}
.cta-divider::before, .cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--invert-border);
}

.site-footer { background: var(--surface-highest); border-top: 1px solid var(--outline-variant); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-7) 0 var(--space-5);
}
.footer-about { margin-top: var(--space-3); }
.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-3);
}
.footer-col a { display: block; padding: var(--space-1) 0; color: var(--on-surface-variant); font-size: 15px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-4) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.footer-copy { font-size: 13px; color: var(--on-surface-variant); margin: 0; }
/* Crédito del desarrollador: deliberadamente chico, no compite con el
   contenido del negocio. */
.footer-credit { font-size: 12px; color: var(--outline); }
.footer-credit:hover { color: var(--primary); }

/* =========================================================
   9. Acciones flotantes
   ========================================================= */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.wa-float, .to-top {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.wa-float { background: #25d366; color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover, .to-top:hover { transform: scale(1.08); }
.to-top {
  width: 44px;
  height: 44px;
  background: var(--surface-lowest);
  color: var(--primary);
  border: 1px solid var(--rustic-border);
}
.to-top svg { width: 20px; height: 20px; }

/* =========================================================
   10. Breakpoints
   ========================================================= */
@media (min-width: 768px) {
  .container { padding-inline: var(--margin-desktop); }

  .hero-content { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .hero h1 { font-size: 44px; letter-spacing: -0.02em; }
  .hero-facts { gap: var(--space-3) var(--space-7); }
  .hero-facts strong { font-size: 26px; }

  .value-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

  .showcase { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
  .showcase-text h2 { font-size: 32px; }

  .product-cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .steps::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--outline-variant);
    z-index: 0;
  }

  .about { grid-template-columns: 1fr 1fr; }
  .about-media { order: 2; }
  .about-text { order: 1; }
  .about-text h2 { font-size: 32px; }

  .contact-grid { grid-template-columns: 1.2fr 1fr; }
  .contact-info h2 { font-size: 32px; }

  .section-head h2 { font-size: 32px; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: row; justify-content: center; gap: var(--space-3); }
}

/* El nav en línea mide ~940px: por debajo se mantiene el menú hamburguesa */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    max-height: none;
    background: none;
    border-bottom: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }
  .site-nav ul { flex-direction: row; gap: var(--space-5); }
  .site-nav ul li { border-bottom: none; }
  .site-nav ul a { padding: var(--space-1) 0; font-size: 15px; border-bottom: 2px solid transparent; }
  .site-nav ul a[aria-current="true"] { border-bottom-color: var(--secondary-container); }
  .nav-cta { margin-top: 0; }
}

@media (min-width: 1200px) {
  .hero h1 { font-size: 48px; line-height: 56px; }
  .section { padding: var(--space-8) 0; }
}

/* =========================================================
   11. Movimiento reducido e impresión
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .floating-actions, .texture-overlay, .skip-link, .quote-form, .cta-divider, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: auto; background: none; }
  .hero-bg, .hero-scrim { display: none; }
  .hero h1, .hero-lead, .hero-facts strong, .hero-facts span { color: #000; }
  .section { padding: 16pt 0; }
  .contact-cta-box { background: none; color: #000; border: 1px solid #000; }
  .contact-cta-box h3, .cta-lead { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
