/* =====================================================================
   AGROMECÁNICA YECLA · Hoja de estilos — edición "Agro-Tech NH"
   Enfoque: MOBILE-FIRST + tema oscuro futurista.
   Paleta corporativa: azul New Holland + ámbar/naranja del logotipo AY
   (engranaje naranja→ámbar arriba, azul marino→azul abajo).
   Patrones adaptados de 21st.dev: haces de luz del hero (tailark
   hero-section-9) y carrusel infinito de tarjetas (ruixen testimonials).
   ===================================================================== */

/* ---------- 1. VARIABLES DE DISEÑO (design tokens) ---------- */
:root {
  /* Fondos oscuros (azul marino profundo, familia New Holland) */
  --bg:        #060d1a;               /* fondo base (azul-negro) */
  --bg-2:      #0a1424;               /* secciones alternas */
  --bg-3:      #0e1b30;               /* paneles elevados */

  /* Azules New Holland (parte inferior del engranaje AY) */
  --azul-oscuro: #0a2a52;
  --azul:        #1464c8;
  --azul-claro:  #4a9df0;
  --azul-dim:    rgba(74,157,240,.35);

  /* Ámbar/naranja corporativo (parte superior del engranaje AY) */
  --ambar:       #ffc20e;
  --naranja:     #f7941d;
  --ambar-dim:   rgba(255,194,14,.35);

  /* Compatibilidad con nombres anteriores */
  --amarillo:    #ffc20e;
  --rojo:        #f7941d;             /* las llamadas usan el naranja de marca */
  --rojo-hover:  #e8830d;

  /* Texto */
  --texto:     #ecf2fa;               /* texto principal */
  --texto-2:   #a3b3c9;               /* texto secundario */

  /* Cristal (glassmorphism) */
  --panel:     rgba(255,255,255,.04);
  --panel-2:   rgba(255,255,255,.07);
  --line:      rgba(255,255,255,.10);
  --line-azul: rgba(74,157,240,.5);
  --line-ambar: rgba(255,194,14,.5);

  /* Tipografía */
  --font-titulo: 'Space Grotesk', system-ui, sans-serif;
  --font-texto:  'Barlow', system-ui, sans-serif;

  /* Formas y brillos */
  --radio:      12px;
  --radio-lg:   20px;
  --sombra:     0 10px 30px rgba(0,0,0,.5);
  --glow-azul:  0 0 28px var(--azul-dim);
  --glow-ambar: 0 0 28px var(--ambar-dim);
  --glow-cta:   0 8px 28px rgba(247,148,29,.4);

  /* Layout */
  --max-ancho: 1180px;
  --header-h:  76px;
}

/* ---------- 2. RESET Y BASES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-texto);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-titulo); line-height: 1.12; letter-spacing: -.01em; }

::selection { background: var(--ambar); color: #0a1424; }

/* Barra de scroll fina y oscura (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2c47; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #27405f; }

.container {
  width: 100%;
  max-width: var(--max-ancho);
  margin-inline: auto;
  padding-inline: 20px;
}

.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Animación de aparición al hacer scroll (activada por JS) */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 3. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radio);
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .25s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--lg    { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* CTA principal (naranja→ámbar, como la corona del engranaje AY) */
.btn--primary {
  background: linear-gradient(135deg, var(--naranja), var(--ambar));
  color: #0a1424;
  box-shadow: var(--glow-cta);
}
.btn--primary:hover { box-shadow: 0 10px 34px rgba(255,194,14,.55); }

/* Botón cristal (sobre fondos oscuros) */
.btn--ghost {
  background: var(--panel);
  color: var(--texto);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--line-azul); color: var(--azul-claro); box-shadow: var(--glow-azul); }

/* Botón de llamada (azul New Holland) */
.btn--urgencia {
  background: linear-gradient(135deg, var(--azul), var(--azul-claro));
  color: #fff;
  box-shadow: 0 8px 26px rgba(20,100,200,.45);
}
.btn--urgencia:hover { box-shadow: 0 10px 34px rgba(74,157,240,.6); }
.btn--urgencia__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.btn--urgencia__label small { font-size: 10px; font-weight: 700; letter-spacing: .5px; opacity: .9; }
.btn--urgencia__label strong { font-size: 15px; }

/* ---------- 4. TOPBAR ---------- */
.topbar {
  background: rgba(6,13,26,.92);
  border-bottom: 1px solid var(--line);
  color: var(--texto-2);
  font-size: 13px;
}
.topbar__inner { display: flex; gap: 18px; justify-content: center; padding: 7px 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: var(--ambar); }

/* ---------- 5. HEADER (sticky, cristal) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,13,26,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.header.is-scrolled { background: rgba(6,13,26,.92); box-shadow: 0 8px 30px rgba(0,0,0,.55); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--header-h); }

/* Logo (imagen del engranaje AY + nombre) */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-titulo); }
.logo__img { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(74,157,240,.25)); }
.logo__text { font-size: 19px; font-weight: 700; color: var(--texto); letter-spacing: -.3px; line-height: 1.05; }
.logo__text strong { color: var(--ambar); }
.logo--light .logo__text { color: var(--texto); }
.logo--light .logo__text strong { color: var(--ambar); }

/* Navegación */
.nav__list { list-style: none; display: flex; gap: 6px; }
.nav__list a {
  display: block; padding: 10px 14px; border-radius: var(--radio);
  font-weight: 600; font-size: 15px; color: var(--texto-2);
  transition: background-color .15s ease, color .15s ease;
}
.nav__list a:hover { background: var(--panel-2); color: var(--ambar); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.btn--urgencia__label small { display: none; }

/* Botón hamburguesa */
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radio); cursor: pointer;
}
.menu-toggle span { height: 2.5px; width: 100%; background: var(--texto); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 6. HERO (rejilla tech + auroras azul/ámbar + foto) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  /* Velo en dos direcciones: oscurece la izquierda (donde va el texto)
     y funde el pie con la franja de datos; la foto real respira a la derecha */
  background:
    linear-gradient(90deg, rgba(6,13,26,.93) 0%, rgba(6,13,26,.62) 48%, rgba(6,13,26,.32) 100%),
    linear-gradient(180deg, rgba(6,13,26,.3), rgba(6,13,26,.35) 55%, rgba(6,13,26,.96) 100%),
    url('../assets/hero.jpg') center/cover no-repeat,
    radial-gradient(circle at 30% 20%, #10305e, var(--bg) 70%);
}

/* Rejilla tecnológica (se desvanece hacia los bordes) */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,157,240,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,157,240,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

/* Auroras flotantes: ámbar arriba-derecha y azul abajo-izquierda,
   como las dos mitades del engranaje AY (patrón hero tailark, adaptado) */
.hero::after {
  content: "";
  position: absolute; inset: -30% -15%;
  background:
    radial-gradient(38rem 38rem at 85% 12%, rgba(255,194,14,.16), transparent 65%),
    radial-gradient(44rem 44rem at 8% 95%, rgba(20,100,200,.28), transparent 65%);
  filter: blur(40px);
  animation: aurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-3rem, 2rem) scale(1.12); }
}

.hero__content { position: relative; z-index: 2; padding: 72px 20px; max-width: 780px; }

/* Píldora de cristal con punto ámbar parpadeante */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 12px;
  color: var(--ambar);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 10px var(--ambar);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: .35; } }

/* Titular con degradado de texto (blanco → ámbar) */
.hero__title {
  font-size: clamp(32px, 7vw, 58px);
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(115deg, #ffffff 45%, #ffd35c 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__subtitle { font-size: clamp(16px, 2.5vw, 20px); max-width: 580px; margin-bottom: 32px; color: var(--texto-2); }
.hero__subtitle strong { color: var(--texto); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 7. FRANJA DE DATOS ---------- */
.stats {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--line);
  color: #fff;
}
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; padding: 30px 20px; text-align: center; }
.stat { padding: 12px 6px; }
.stat__num {
  display: block;
  font-family: var(--font-titulo); font-weight: 700;
  font-size: clamp(24px, 5.4vw, 36px);
  color: var(--ambar);
  text-shadow: 0 0 18px var(--ambar-dim);
}
.stat__label { font-size: 14px; color: var(--texto-2); }

/* ---------- 8. SECCIONES GENÉRICAS ---------- */
.section { padding: 68px 0; position: relative; }
.section--muted { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--dark  {
  background:
    radial-gradient(circle at 85% 10%, rgba(20,100,200,.14), transparent 45%),
    var(--bg);
  color: #fff;
}

.section__head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-weight: 700; font-size: 12px;
  color: var(--ambar); margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--ambar); }
.section__title {
  font-size: clamp(26px, 5vw, 40px); font-weight: 700; color: #fff;
}
.section__title--light { color: #fff; }
.section__lead { margin-top: 12px; color: var(--texto-2); font-size: 17px; }
.section--dark .section__lead { color: var(--texto-2); }

/* ---------- 9. TARJETAS DE SERVICIOS (cristal + azul/ámbar) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radio-lg);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-azul);
  box-shadow: var(--glow-azul), var(--sombra);
  background: var(--panel-2);
}
.card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(74,157,240,.10);
  border: 1px solid rgba(74,157,240,.3);
  color: var(--azul-claro);
  margin-bottom: 18px;
  box-shadow: inset 0 0 18px rgba(74,157,240,.08);
}
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.card__text { color: var(--texto-2); font-size: 15.5px; }
.card__cta { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--ambar); }
.card__cta:hover { text-shadow: 0 0 12px var(--ambar-dim); }

/* Tarjeta destacada (plantadoras propias): ámbar, como la corona del logo */
.card--highlight {
  background: linear-gradient(160deg, rgba(255,194,14,.14), rgba(247,148,29,.03) 60%);
  border-color: var(--line-ambar);
  box-shadow: var(--glow-ambar);
}
.card--highlight:hover { border-color: var(--ambar); box-shadow: var(--glow-ambar), var(--sombra); }
.card--highlight .card__icon {
  background: rgba(255,194,14,.14);
  border-color: rgba(255,194,14,.35);
  color: var(--ambar);
  box-shadow: inset 0 0 18px rgba(255,194,14,.1);
}
.card--highlight .card__text { color: var(--texto-2); }
.card--highlight .card__cta { color: var(--ambar); }

/* ---------- 9b. VISOR INTERACTIVO 3D (T7 Blue Power) ----------
   Portado del "Interactive 3D Tractor Slider": crossfade entre fotos
   según la posición del cursor + inclinación de perspectiva. Las fichas
   usan el patrón "spotlight card" de 21st.dev (halo que sigue al ratón). */
.showcase { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.showcase__title { text-align: left; margin-bottom: 0; }
.showcase__accent {
  background: linear-gradient(115deg, var(--azul-claro), var(--ambar));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.showcase__info { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.showcase__info .section__eyebrow { margin-bottom: 0; }
.showcase__lead { color: var(--texto-2); max-width: 44ch; }
.showcase__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fichas de datos con spotlight */
.specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radio-lg); overflow: hidden;
  width: 100%;
}
.spec {
  position: relative;
  background: var(--bg-3);
  padding: 16px 18px;
  overflow: hidden;
}
.spec::before {                       /* spotlight que sigue al cursor (21st.dev) */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(74,157,240,.16), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.spec:hover::before { opacity: 1; }
.spec__label {
  display: block;
  font-family: var(--font-titulo); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--texto-2); margin-bottom: 5px;
}
.spec__value { font-family: var(--font-titulo); font-size: 16px; font-weight: 700; color: #fff; }

/* Visor */
.showcase__viewer { width: 100%; }
.viewer { position: relative; max-width: 620px; margin-inline: auto; perspective: 1100px; }
.viewer__glow {
  position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(74,157,240,.28), transparent 70%);
  filter: blur(32px);
  animation: float-glow 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-glow { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
.viewer__stage {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radio-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.viewer__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  will-change: opacity, transform;
}
.viewer__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,13,26,.25) 0%, transparent 30%, transparent 70%, rgba(6,13,26,.45) 100%);
  pointer-events: none;
}
.viewer__chip {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-titulo); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--texto);
  background: rgba(6,13,26,.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; pointer-events: none;
}
.viewer__bar {
  position: relative; width: 200px; height: 3px;
  background: rgba(255,255,255,.12); border-radius: 999px;
  margin: 20px auto 0;
}
.viewer__knob {
  position: absolute; top: -3.5px; left: 15%;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--ambar);
  box-shadow: 0 0 12px var(--ambar);
  transform: translateX(-50%);
}
.viewer__hint {
  margin-top: 10px; text-align: center;
  font-family: var(--font-titulo); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--texto-2);
  animation: hint-pulse 3s ease-in-out infinite;
}
@keyframes hint-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- 10. FRANJA CTA INTERMEDIA ---------- */
.cta-band {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,194,14,.16), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(20,100,200,.22), transparent 50%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  color: var(--texto);
}
.cta-band__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 44px 20px; }
.cta-band__title {
  font-size: clamp(24px, 5vw, 34px); font-weight: 700;
  background: linear-gradient(115deg, #fff 40%, var(--ambar));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta-band__text { font-size: 17px; max-width: 540px; color: var(--texto-2); }

/* ---------- 11. SELLOS OFICIALES NEW HOLLAND ---------- */
.nh-badges { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 54px; }
.nh-badge {
  display: flex; align-items: center; gap: 18px;
  background: #ffffff;               /* los logotipos oficiales van sobre blanco */
  border-radius: var(--radio-lg);
  padding: 20px 22px;
  box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .25s ease;
}
.nh-badge:hover { transform: translateY(-4px); box-shadow: var(--glow-azul), var(--sombra); }
.nh-badge__img { height: 74px; width: auto; flex-shrink: 0; }
.nh-badge__text { color: #0a2a52; }
.nh-badge__text strong { display: block; font-family: var(--font-titulo); font-size: 16px; }
.nh-badge__text span { font-size: 14px; color: #4a5a72; }

/* ---------- 12. MARQUEE INFINITO (especialidades y testimonios) ----------
   Patrón adaptado del carrusel de 21st.dev: la pista se duplica por JS
   y se desplaza en bucle; se pausa al pasar el ratón. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex; align-items: stretch; gap: 14px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee--slow .marquee__track { animation-duration: 45s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Píldoras de especialidades */
.brands { list-style: none; margin-bottom: 54px; }
.brand {
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 28px; text-align: center; white-space: nowrap;
  font-family: var(--font-titulo); font-weight: 600; font-size: 15px;
  color: var(--texto-2);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.brand:hover { color: var(--ambar); border-color: var(--line-ambar); box-shadow: var(--glow-ambar); }

/* ---------- 12b. GALERÍA DEL TALLER (bento con fotos reales) ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gallery__item {
  position: relative; margin: 0;
  border-radius: var(--radio-lg); overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  background: var(--bg-3);
}
.gallery__item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {                 /* degradado para que la leyenda se lea */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,8,18,.78) 100%);
  pointer-events: none;
}
.gallery__caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  color: var(--texto);
}
.gallery__caption strong {
  display: block; font-family: var(--font-titulo); font-size: 17px; color: #fff;
}
.gallery__caption span { font-size: 14px; color: var(--texto-2); }

/* ---------- 13. TESTIMONIOS (carrusel infinito de cristal) ---------- */
.testimonials { display: flex; gap: 18px; }
.testimonial {
  width: 340px; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radio-lg);
  padding: 26px 24px;
  backdrop-filter: blur(8px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.testimonial:hover { border-color: var(--line-azul); box-shadow: var(--glow-azul); }
.testimonial__stars { color: var(--ambar); font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; text-shadow: 0 0 12px var(--ambar-dim); }
.testimonial blockquote { font-size: 16px; color: var(--texto); margin-bottom: 16px; }
.testimonial figcaption strong { display: block; font-family: var(--font-titulo); color: #fff; }
.testimonial figcaption span { color: var(--texto-2); font-size: 14px; }

/* ---------- 14. ESPECIALIDADES (vendimiadoras + plantadoras) ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radio-lg);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { border-color: var(--line-azul); box-shadow: var(--glow-azul), var(--sombra); }
.feature__title { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.feature__text { color: var(--texto-2); font-size: 16px; }
.feature__list { list-style: none; display: grid; gap: 10px; margin: 20px 0 20px; }
.feature__list li {
  position: relative; padding-left: 28px;
  color: var(--texto); font-size: 15.5px;
}
.feature__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--azul-claro);
  text-shadow: 0 0 10px var(--azul-dim);
}
.feature__note {
  font-size: 15px; color: var(--texto-2); font-style: italic;
  border-left: 3px solid var(--azul); padding-left: 14px;
  margin-bottom: 24px;
}
.feature .btn { margin-top: auto; }

/* Variante ámbar (plantadoras, producto propio) */
.feature--ambar:hover { border-color: var(--line-ambar); box-shadow: var(--glow-ambar), var(--sombra); }
.feature--ambar .card__icon {
  background: rgba(255,194,14,.14); border-color: rgba(255,194,14,.35);
  color: var(--ambar); box-shadow: inset 0 0 18px rgba(255,194,14,.1);
}
.feature--ambar .feature__list li::before { color: var(--ambar); text-shadow: 0 0 10px var(--ambar-dim); }
.feature--ambar .feature__note { border-left-color: var(--ambar); }

/* ---------- 15. CONTACTO + FORMULARIO ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 36px; }
.contact__lead { color: var(--texto-2); margin: 14px 0 24px; font-size: 17px; }
.contact__list { list-style: none; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list .icon { color: var(--ambar); filter: drop-shadow(0 0 6px var(--ambar-dim)); }
.contact__list a:hover { color: var(--ambar); }

/* Formulario de cristal */
.form {
  background: var(--bg-3); color: var(--texto);
  border: 1px solid var(--line);
  border-radius: var(--radio-lg); padding: 28px 24px;
  box-shadow: var(--sombra);
}
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form__field { display: block; }
.form__field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--texto); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; font-family: inherit; font-size: 16px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radio);
  background: rgba(255,255,255,.05); color: var(--texto);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: rgba(236,242,250,.35); }
.form__field select option { background: var(--bg-3); color: var(--texto); }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(74,157,240,.2);
}
.form__field textarea { resize: vertical; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--texto-2); margin-bottom: 18px; }
.form__check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ambar); }
.form__check a { color: var(--azul-claro); text-decoration: underline; }
/* Estado de error (lo activa el JS) */
.form__field input.is-error, .form__field select.is-error { border-color: #ff6b5e; box-shadow: 0 0 0 3px rgba(255,107,94,.18); }
.form__feedback { margin-top: 16px; padding: 14px 16px; border-radius: var(--radio); background: rgba(74,157,240,.12); color: var(--azul-claro); font-weight: 600; }

/* ---------- 16. FOOTER ---------- */
.footer { background: #040a14; border-top: 1px solid var(--line); color: var(--texto-2); padding-top: 54px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 44px; }
.footer__about { margin: 16px 0; font-size: 15px; max-width: 340px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radio); background: var(--panel); border: 1px solid var(--line);
  color: var(--texto);
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.footer__social a:hover { border-color: var(--line-ambar); color: var(--ambar); box-shadow: var(--glow-ambar); }
.footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 16px; }
.footer__title--mt { margin-top: 24px; }
.footer__links { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer__links a:hover { color: var(--ambar); }
.footer__links--plain li { color: var(--texto-2); }

.footer__bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; }
.footer__bottom-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.footer__legal { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer__legal a:hover { color: var(--ambar); }

/* ---------- 17. BOTÓN FLOTANTE DE LLAMADA (solo móvil) ---------- */
.fab-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--naranja), var(--ambar)); color: #0a1424;
  font-family: var(--font-titulo); font-weight: 700;
  padding: 14px 18px; border-radius: 999px;
  box-shadow: var(--glow-cta);
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.fab-call .icon { width: 22px; height: 22px; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(247,148,29,.4); }
  50%      { box-shadow: 0 8px 38px rgba(255,194,14,.7); }
}

/* =====================================================================
   18. BREAKPOINTS RESPONSIVOS (vamos ampliando desde móvil)
   ===================================================================== */

/* --- Tablet (≥ 600px) --- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .btn--urgencia__label small { display: block; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px 20px; }
  .footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .nh-badges { grid-template-columns: 1fr 1fr; }
}

/* --- Escritorio (≥ 900px) --- */
@media (min-width: 900px) {
  .section { padding: 92px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .showcase { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .contact { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .fab-call { display: none; } /* en escritorio ya está el botón del header */
  .nh-badges { max-width: 900px; margin-inline: auto; }
  .gallery { grid-template-columns: 1.35fr 1fr; grid-auto-rows: 280px; }
  .gallery__item--tall { grid-row: span 2; min-height: 0; }
  .features { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* --- Navegación de escritorio vs. menú móvil --- */
@media (max-width: 979px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(6,13,26,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sombra);
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav.is-open { max-height: 320px; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 12px 16px; }
  .nav__list a { padding: 14px 12px; border-radius: var(--radio); font-size: 17px; }
}
@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .header { position: sticky; }
}

/* --- Accesibilidad: respeta "reducir movimiento" --- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
