:root {
  /* Base */
  --bg: #ffffff;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --line: #dce3ec;
  --line-strong: #c3cddb;

  /* Estructura (azul = la escala) */
  --ink: #0d2947;
  --blue: #17509e;
  --blue-2: #2e6fc4;

  /* Acento (rojo = la aguja) */
  --red: #e01f38;
  --red-deep: #b8162c;
  --red-dim: rgba(224, 31, 56, 0.10);

  /* Texto */
  --text: #202a38;
  --text-dim: #5c6879;

  /* Tipografía */
  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(13, 41, 71, 0.06), 0 1px 2px rgba(13, 41, 71, 0.04);
  --shadow-md: 0 10px 30px rgba(13, 41, 71, 0.08);
  --shadow-lg: 0 22px 55px rgba(13, 41, 71, 0.14);

  --radius: 6px;
  --maxw: 1140px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

/* Eyebrow: lectura de instrumento (número rojo + etiqueta azul) */
.vg-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin: 0 0 1rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.vg-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Reveal on scroll (aplicado por main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== NAV ===================== */
.vg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.vg-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-sm);
}

/* ---------- Barra de progreso (estilo aguja de medición) ---------- */
.vg-nav__progress {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 0 3px 3px 0;
  transition: width 0.12s linear;
  z-index: 2;
}
.vg-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vg-nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.vg-nav__dial svg { width: 36px; height: 36px; }
.dial-ring { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.dial-needle {
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 20px 20px;
  animation: vg-tick 4s var(--ease) infinite;
}
.dial-pin { fill: var(--red); }
@keyframes vg-tick {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(22deg); }
}
.vg-nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--ink);
}
.vg-nav__brand-sub {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
}
.vg-nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.vg-nav__links a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
  padding: 0.3rem 0;
}
.vg-nav__links a:not(.vg-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.vg-nav__links a:not(.vg-nav__cta):hover { color: var(--ink); }
.vg-nav__links a:not(.vg-nav__cta):hover::after { width: 100%; }

/* ---------- Indicador de sección activa (scrollspy) ---------- */
.vg-nav__links a.is-active:not(.vg-nav__cta) {
  color: var(--ink);
}
.vg-nav__links a.is-active:not(.vg-nav__cta)::after {
  width: 100%;
  background: var(--blue);
}
.vg-nav__cta.is-active {
  box-shadow: 0 0 0 3px rgba(23, 80, 158, 0.25), 0 6px 16px rgba(224, 31, 56, 0.28);
}
.vg-nav__cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}
.vg-nav__cta:hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 31, 56, 0.28);
}

.vg-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.vg-nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.25s; }

/* ===================== HERO ===================== */
.vg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}
/* atmósfera: cuadrícula técnica muy tenue */
.vg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-alt) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-alt) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
  opacity: 0.6;
  z-index: -1;
}
.vg-hero__inner { max-width: 580px; }
.vg-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05;
  margin: 0 0 1.3rem;
  color: var(--ink);
  font-weight: 700;
}
.vg-hero__title span {
  color: var(--red);
  position: relative;
}
.vg-hero__lead { font-size: 1.08rem; max-width: 470px; margin-bottom: 2rem; }
.vg-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* animación de entrada del hero (secuencia) */
.vg-hero__inner > * {
  opacity: 0;
  transform: translateY(22px);
  animation: vg-rise 0.8s var(--ease) forwards;
}
.vg-hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.vg-hero__inner > *:nth-child(2) { animation-delay: 0.22s; }
.vg-hero__inner > *:nth-child(3) { animation-delay: 0.34s; }
.vg-hero__inner > *:nth-child(4) { animation-delay: 0.46s; }
@keyframes vg-rise {
  to { opacity: 1; transform: none; }
}


.vg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.22s, border-color 0.22s, box-shadow 0.22s, color 0.22s;
}
.vg-btn--primary { background: var(--red); color: #fff; font-weight: 600; }
.vg-btn--primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 31, 56, 0.30);
}
.vg-btn--ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.vg-btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* signature: el instrumento (escala azul, aguja roja) */
.vg-hero__dial {
  position: relative;
  flex-shrink: 0;
  width: min(360px, 40vw);
}
.hero-dial { width: 100%; height: auto; overflow: visible; }
.hero-dial__face { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.hero-dial__ring { fill: none; stroke: var(--blue); stroke-width: 8; opacity: 0.12; }
.hero-dial__arc {
  fill: none;
  stroke: var(--blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  animation: vg-arc 1.8s var(--ease) 0.4s forwards;
}
@keyframes vg-arc { to { stroke-dashoffset: 240; } }
.hero-dial__ticks line { stroke: var(--line-strong); stroke-width: 2; }
.hero-dial__ticks line.major { stroke: var(--blue); stroke-width: 2.5; }
.hero-dial__needle {
  stroke: var(--red);
  stroke-width: 3.5;
  stroke-linecap: round;
  transform-origin: 150px 150px;
  transform: rotate(-95deg);
  animation: vg-needle-sweep 2s var(--ease) 0.5s forwards;
  filter: drop-shadow(0 2px 4px rgba(224, 31, 56, 0.35));
}
.hero-dial__pin { fill: var(--red); }
.hero-dial__pin-ring { fill: #fff; stroke: var(--red); stroke-width: 2; }
@keyframes vg-needle-sweep {
  0% { transform: rotate(-95deg); }
  70% { transform: rotate(72deg); }
  85% { transform: rotate(60deg); }
  100% { transform: rotate(65deg); }
}
.hero-dial__label {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 600;
  background: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ===================== SECTIONS (shared) ===================== */
.vg-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.vg-section--alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--maxw)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--maxw)) / 2 + 1.5rem));
}
.vg-section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.vg-section__head { max-width: 640px; margin-bottom: 3rem; }
.vg-section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; }

/* ---------- Separador: escala de instrumento con indicador rojo ---------- */
.vg-divider {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  height: 34px;
}
.vg-divider::before {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem;
  bottom: 0;
  height: 12px;
  background-image: repeating-linear-gradient(
    to right,
    var(--line-strong) 0, var(--line-strong) 1px,
    transparent 1px, transparent 11px
  );
  background-position: bottom left;
  background-repeat: repeat-x;
  background-size: 11px 12px;
}
.vg-divider::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 1.5rem;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--red);
  transition: left 1.2s var(--ease);
}
.vg-divider.is-visible::after { left: calc(50% - 6px); }

.vg-grid { display: grid; gap: 1.5rem; }
.vg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vg-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== HISTORIA ===================== */
.vg-historia {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
}
.vg-historia__texto p { font-size: 1rem; }
.vg-historia__texto p + p { margin-top: 1rem; }

.vg-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.vg-timeline li {
  position: relative;
  padding: 0 0 1.8rem 1.6rem;
}
.vg-timeline li:last-child { padding-bottom: 0; }
.vg-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.vg-timeline li:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px var(--red-dim);
}
.vg-timeline__anio {
  display: block;
  font-family: var(--font-mono);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.vg-timeline__texto { color: var(--text-dim); font-size: 0.95rem; }

/* ===================== SERVICIOS / CARDS ===================== */
.vg-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.8rem 2.6rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.vg-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.vg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vg-card:hover::before { transform: scaleX(1); }
.vg-card__icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
  display: inline-flex;
  width: 68px; height: 68px;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  transition: background 0.28s, color 0.28s;
}
.vg-card:hover .vg-card__icon { background: var(--red-dim); color: var(--red); }
.vg-card h3 { font-size: 1.35rem; margin-bottom: 0.8rem; color: var(--ink); }
.vg-card p { font-size: 1rem; }

/* ===================== GRID SISTEMA ===================== */
.vg-grid { display: grid; gap: 1.5rem; }
.vg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vg-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .vg-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .vg-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .vg-grid--2, .vg-grid--3, .vg-grid--4 { grid-template-columns: 1fr; }
}

/* ===================== MAQUINAS ===================== */
.vg-machine {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-left-color 0.25s;
}
.vg-machine:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--red);
}
.vg-machine__icon { font-size: 1.5rem; color: var(--blue); margin-top: 0.1rem; transition: color 0.25s; }
.vg-machine:hover .vg-machine__icon { color: var(--red); }
.vg-machine h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--ink); }
.vg-machine__spec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

/* ===================== MARCAS DE LABORATORIO ===================== */
.vg-marcas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.vg-marcas__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  width: 260px;
  height: 130px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.vg-marcas__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.vg-marcas__item img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.3s var(--ease);
}
.vg-marcas__item:hover img {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 680px) {
  .vg-marcas__item { width: 45%; height: 100px; padding: 0.8rem; }
}

/* ===================== REDES ===================== */
.vg-section--redes .vg-section__head {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.vg-section--redes .vg-eyebrow { justify-content: center; }
.vg-redes {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.vg-redes__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s, color 0.24s, border-color 0.24s;
}
.vg-redes__item i { font-size: 1.15rem; color: var(--blue); transition: color 0.24s; }
.vg-redes__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  border-color: var(--blue);
}
.vg-redes__item:hover i { color: var(--red); }

/* ===================== UBICACIÓN ===================== */

/* ---------- Mapa y botón "Cómo llegar" ---------- */
.vg-ubicacion__mapa {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.vg-ubicacion__frame {
  width: 100%;
  height: 380px;
}
.vg-ubicacion__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.vg-ubicacion__cta {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
}
.vg-ubicacion__cta i { font-size: 1.1rem; }

@media (max-width: 680px) {
  .vg-ubicacion__frame { height: 260px; }
  .vg-ubicacion__cta { left: 50%; transform: translateX(-50%); bottom: 1rem; }
}

/* ===================== FOOTER ===================== */
.vg-footer {
  background: var(--ink);
  padding: 2.8rem 1.5rem;
}
.vg-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.vg-footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.vg-footer__col-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.vg-footer__brand strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.1rem;
}
.vg-footer__brand p { margin: 0.25rem 0 0; font-size: 0.85rem; color: #9fb2c9; }
.vg-footer__contacto a,
.vg-footer__contacto .vg-footer__horario {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #b9cade;
  text-decoration: none;
  transition: color 0.2s;
}
.vg-footer__contacto a:hover { color: var(--red); }
.vg-footer__contacto i { color: var(--red); width: 18px; text-align: center; }
.vg-footer__redes { display: flex; gap: 0.8rem; }
.vg-footer__redes a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s, transform 0.2s;
}
.vg-footer__redes i { font-size: 1.15rem; color: #cfe; color: #b9cade; transition: color 0.25s; }
.vg-footer__redes a:hover { background: var(--red); transform: translateY(-2px); }
.vg-footer__redes a:hover i { color: #fff; }
.vg-footer__legal { font-size: 0.78rem; color: #7e93ac; width: 100%; text-align: center; margin-top: 0.5rem; }


/* ---------- Botón flotante de WhatsApp ---------- */
.vg-whatsapp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vg-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
}
@media (max-width: 680px) {
  .vg-whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 1.2rem; right: 1.2rem; }
}

/* ===================== 404 ===================== */
.vg-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2rem;
}
.vg-404 h1 { font-size: 6rem; color: var(--red); line-height: 1; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .vg-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .vg-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .vg-historia { grid-template-columns: 1fr; }
  .vg-hero { flex-direction: column; text-align: left; padding-top: 8rem; }
  .vg-hero__dial { width: min(300px, 72vw); margin: 0 auto; }
}

@media (max-width: 680px) {
  .vg-nav__links {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .vg-nav__links.is-open { max-height: 420px; padding: 0.8rem 1.5rem; }
  .vg-nav__links li { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .vg-nav__links li:last-child { border-bottom: none; }
  .vg-nav__cta { display: inline-block; margin-top: 0.4rem; }
  .vg-nav__toggle { display: flex; }
  .vg-grid--3, .vg-grid--4 { grid-template-columns: 1fr; }
  .vg-footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .vg-footer__contacto a, .vg-footer__contacto .vg-footer__horario { justify-content: center; }
}

/* ===================== CARROUSEL DE HISTORIA ===================== */
.vg-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.vg-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.vg-carousel__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.vg-carousel__slide {
  flex: 0 0 100%;
  position: relative;
}
.vg-carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.vg-carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(to top, rgba(13, 41, 71, 0.82), transparent);
}
.vg-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 41, 71, 0.55);
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s var(--ease);
}
.vg-carousel__btn:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.06);
}
.vg-carousel__btn--prev { left: 12px; }
.vg-carousel__btn--next { right: 12px; }

.vg-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.vg-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.vg-carousel__dot.is-active {
  background: var(--red);
  transform: scale(1.3);
}

@media (max-width: 680px) {
  .vg-carousel__btn { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* ===================== DIVISOR: SELLO DE SECCIÓN ===================== */
/* Reutiliza .vg-divider (regla + aguja roja) y suma un sello con el   */
/* número de la siguiente sección para que el cambio se note más.     */
.vg-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vg-divider__stamp {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              border-color 0.3s, color 0.3s;
}
.vg-divider.is-visible .vg-divider__stamp {
  opacity: 1;
  transform: none;
}
.vg-divider--red.is-visible .vg-divider__stamp {
  border-color: var(--red);
  color: var(--red);
}
.vg-divider--blue.is-visible .vg-divider__stamp {
  border-color: var(--blue);
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .vg-carousel__track,
  .vg-divider__stamp {
    transition: none !important;
  }
}

/* ===================== LOGO (NAV + HERO) ===================== */
.vg-nav__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.vg-hero__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: vg-rise 0.9s var(--ease) 0.3s forwards;
}

/* ===================== TRAZABILIDAD AL SI ===================== */
.vg-trazabilidad {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}
.vg-trazabilidad__imagen {
  display: flex;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.vg-trazabilidad__imagen img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
}
.vg-trazabilidad__texto h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 0.6rem 0 1.2rem;
}
.vg-trazabilidad__texto p:not(.vg-eyebrow) { font-size: 1rem; }
.vg-trazabilidad__texto p + p { margin-top: 1rem; }

@media (max-width: 960px) {
  .vg-trazabilidad { grid-template-columns: 1fr; }
  .vg-trazabilidad__imagen { order: -1; }
}

/* ===================== GALERÍA: CARRUSEL A ANCHO COMPLETO ===================== */
#historia.vg-section {
  padding: 0;
  max-width: none;
  width: 100%;
}
#historia.vg-section > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
#historia .vg-carousel {
  width: 100%;
  margin: 0;
}
#historia .vg-carousel__viewport {
  width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
#historia .vg-carousel__track {
  gap: 0;
}
#historia .vg-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
#historia .vg-carousel__slide img {
  width: 100%;
  height: clamp(320px, 75vh, 800px);
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}
#historia .vg-carousel__btn--prev { left: 1.5rem; }
#historia .vg-carousel__btn--next { right: 1.5rem; }
#historia .vg-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  margin: 0;
  z-index: 2;
}
#historia .vg-carousel__dot {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(13, 41, 71, 0.35);
}
#historia .vg-carousel__dot.is-active {
  background: var(--red);
}

@media (max-width: 768px) {
  #historia .vg-carousel__slide img { height: 55vh; }
  #historia .vg-carousel__btn--prev { left: 0.75rem; }
  #historia .vg-carousel__btn--next { right: 0.75rem; }
}