/* ============================================================
   AICROV - Demo de rediseño "Industrial Premium"
   Paleta extraída del sitio real (aicrov.es):
   Azul AICROV #0033CC - Navy #1A2732 - Azul profundo #002857
   Pizarra #51626F - Grises #A4AEB5 / #E0E6E6 - Fondo #F8F8F8
   Tipografía real de la marca: Barlow (titulares) + Roboto (texto)

   Regla de formas del proyecto: botones pill (radio completo),
   tarjetas 16px, inputs 10px. Se aplica en toda la demo.
   ============================================================ */

:root {
  --blue: #0033cc;
  --blue-hover: #002db3;
  --blue-deep: #002857;
  --blue-soft: #eaeffb;
  --navy: #1a2732;
  --ink: #141e27;
  --slate: #51626f;
  --gray: #a4aeb5;
  --line: #e0e6e6;
  --bg: #f8f8f8;
  --surface: #fdfdfd;
  --radius-card: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(26, 39, 50, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 39, 50, 0.12);
  --font-head: "Barlow", sans-serif;
  --font-body: "Roboto", sans-serif;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--slate); }

a { color: var(--blue); text-decoration: none; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

.section-head { max-width: 620px; margin-bottom: 2.8rem; }
.section-head p { margin-top: 0.8rem; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 51, 204, 0.3);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 51, 204, 0.38);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 253, 253, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.logo .accent { color: var(--blue); }
.logo small {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-input);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--blue); background: var(--blue-soft); }
.nav-links .caret { font-size: 0.7rem; transition: transform 0.25s; }
.nav-links li:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 0.55rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-input);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-head);
  transition: background 0.18s, color 0.18s;
}
.dropdown a:hover { background: var(--blue-soft); color: var(--blue); }
.dropdown a small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--gray); }

.nav-cta .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-input);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero con fotografía real ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 3rem) 0 4rem;
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 22, 32, 0.92) 18%, rgba(0, 40, 87, 0.72) 55%, rgba(0, 40, 87, 0.3) 100%);
}

/* Vídeo de fondo del hero (se inyecta por JS sobre la foto, bajo el scrim) */
.hero-photo .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 178vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-photo img { position: relative; }
.hero-photo img, .hero-photo .hero-video { z-index: 0; }
.hero-photo::after { z-index: 1; }

/* Lema de marca: "We have the Filling" */
.hero-slogan {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.12;
  padding-bottom: 0.12em;
  max-width: none;
}
.hero-slogan em {
  font-style: italic;
  color: #9db9ff;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 13em; }
.hero .lead {
  margin: 1.3rem 0 2.2rem;
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 33em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .eyebrow { color: #9db9ff; }

.hero.compact { min-height: 0; padding: calc(72px + 4rem) 0 4.5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.65); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .current { color: #9db9ff; }

/* ---------- Franja de logos reales ---------- */
.logos-strip { padding: 2.8rem 0 3rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.logos-strip .strip-label {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 1.8rem;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3.4rem;
}
.logos-row img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease;
}
.logos-row img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Buscador de soluciones (tabs) ---------- */
.tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  gap: 0.2rem;
  margin-bottom: 2.4rem;
}
.tab-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-btn.active { background: var(--blue); color: #fff; }
[data-tabs] .tab-panel:not(.active) { display: none; }
.tab-panel.active { animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Tarjetas con imagen ---------- */
.photo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: inherit;
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0, 51, 204, 0.35); }
.photo-card figure {
  height: 200px;
  overflow: hidden;
  background: #fff;
}
.photo-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover figure img { transform: scale(1.04); }
.photo-card figure.contain img { object-fit: contain; padding: 1rem; }
.photo-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.photo-card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.photo-card .body p { font-size: 0.93rem; }
.photo-card .range {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}
.go i { transition: transform 0.25s; }
.photo-card:hover .go i, .bento-cell:hover .go i { transform: translateX(4px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* ---------- Bento de máquinas ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 250px;
  gap: 1.4rem;
}
.bento-cell {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-cell:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bento-cell.tall { grid-row: span 2; }
.bento-cell.wide { grid-column: span 2; }
.bento-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}
.bento-cell:hover img { transform: scale(1.04); }
.bento-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13, 22, 32, 0.88) 0%, rgba(13, 22, 32, 0.25) 55%, rgba(13, 22, 32, 0.05) 100%);
}
.bento-cell > div { position: relative; z-index: 2; }
.bento-cell h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.25rem; }
.bento-cell p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; max-width: 30em; }
.bento-cell .go { color: #9db9ff; }
.bento-cell.light { background: #fff; color: var(--ink); justify-content: flex-end; }
.bento-cell.light::after { background: linear-gradient(to top, rgba(253, 253, 253, 0.95) 18%, rgba(253, 253, 253, 0.45) 55%, rgba(253, 253, 253, 0) 100%); }
.bento-cell.light img { object-fit: contain; padding: 0.8rem 0.8rem 4.5rem; }
.bento-cell.light h3 { color: var(--ink); }
.bento-cell.light p { color: var(--slate); }
.bento-cell.light .go { color: var(--blue); }

/* ---------- Sección dividida texto + foto ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse > .split-media { order: -1; }
.split-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 1rem; }
.split .body-text { font-size: 1.03rem; margin-bottom: 1.6rem; }

.check-list { list-style: none; display: grid; gap: 0.85rem; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink);
}
.check-list li i {
  flex: none;
  margin-top: 0.2rem;
  color: var(--blue);
  font-size: 1.15rem;
}
.check-list li span strong { font-family: var(--font-head); font-weight: 600; }
.check-list li span small { display: block; color: var(--slate); font-size: 0.88rem; }

/* ---------- Vídeo embebido 16:9 ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Cifras de la compañía ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue);
}
.stat .label { margin-top: 0.4rem; font-size: 0.9rem; color: var(--slate); }

/* ---------- Proyectos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.project-feature { grid-row: span 2; }
.project-feature figure { height: 320px; }
.project-card .meta {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.project-card.photo-card figure { height: 180px; }
.project-feature.photo-card figure { height: 330px; }

/* ---------- Filas de máquina (split rows) ---------- */
.machine-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.8rem;
  align-items: center;
  padding: 2.4rem 0;
}
.machine-row + .machine-row { border-top: 1px solid var(--line); }
.machine-row figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.machine-row figure img { width: 100%; height: 260px; object-fit: cover; }
.machine-row.reverse figure { order: 2; }
.machine-row h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.machine-row .range { font-family: var(--font-head); font-weight: 600; color: var(--blue); margin-bottom: 0.7rem; }
.machine-row p { font-size: 0.98rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.8rem;
}

/* ---------- Carrusel scroll-snap ---------- */
.snap-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.2rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}
.snap-row > * { scroll-snap-align: start; }

/* ---------- Banda de certificación ---------- */
.cert-band {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-card);
  padding: 2.2rem 2.6rem;
  box-shadow: var(--shadow-sm);
}
.cert-band img { height: 76px; width: auto; flex: none; }
.cert-band h3 { margin-bottom: 0.4rem; }
.cert-band p { font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open { border-color: rgba(0, 51, 204, 0.35); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-q i { flex: none; color: var(--blue); font-size: 1.2rem; transition: transform 0.3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 1.5rem 1.3rem; font-size: 0.95rem; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 4rem 3rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-band .cta-photo { position: absolute; inset: 0; }
.cta-band .cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0, 40, 87, 0.95) 25%, rgba(0, 51, 204, 0.78) 100%);
}
.cta-band > .cta-content { position: relative; max-width: 560px; }
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.84); margin-bottom: 2rem; }
.cta-band .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25); }
.cta-band .btn-primary:hover { background: var(--blue-soft); color: var(--blue-hover); }

/* ---------- Formulario ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 2.3rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  padding: 0.78rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6e7d88; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(0, 51, 204, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 0.78rem; color: var(--slate); margin-top: 0.3rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.86rem; color: var(--slate); }
.checkbox-row input { margin-top: 0.25rem; accent-color: var(--blue); width: auto; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-input);
  background: #ecf7ef;
  border: 1px solid #bfe3c8;
  color: #1d5a2c;
  font-size: 0.92rem;
}
.form-success.visible { display: block; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.2rem; align-items: start; }
.info-list { display: grid; gap: 1rem; }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.info-item > i {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-input);
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.info-item h3 { font-size: 0.97rem; margin-bottom: 0.15rem; }
.info-item p, .info-item a { font-size: 0.92rem; }

.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.region-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 51, 204, 0.3); }
.region-card > i { font-size: 1.7rem; color: var(--blue); margin-bottom: 0.8rem; display: block; }
.region-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.region-card p { font-size: 0.88rem; }
.region-card .agent {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--slate);
}
.region-card .agent strong { font-family: var(--font-head); color: var(--ink); display: block; }
.region-card .agent a { font-size: 0.86rem; }

/* ---------- Servicios (bento de soporte) ---------- */
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0, 51, 204, 0.3); }
.service-card > i {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-input);
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.service-card p { font-size: 0.92rem; }
.service-card.with-photo { padding: 0; overflow: hidden; }
.service-card.with-photo figure { height: 150px; overflow: hidden; }
.service-card.with-photo figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card.with-photo:hover figure img { transform: scale(1.04); }
.service-card.with-photo .body { padding: 1.4rem 1.6rem 1.7rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4.2rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer .logo small { color: rgba(255, 255, 255, 0.5); }
.footer p { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; max-width: 30em; }
.footer h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer ul a { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; transition: color 0.2s; }
.footer ul a:hover { color: #9db9ff; }
.social-row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-row a:hover { color: #9db9ff; border-color: #9db9ff; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .legal { display: flex; gap: 1.4rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: #9db9ff; }

/* ---------- Animaciones de entrada (IntersectionObserver) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Accesibilidad ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 51, 204, 0.45);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .region-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .services-bento { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; }
  .bento-cell.tall { grid-row: span 1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-feature { grid-row: auto; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.2rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .hero { min-height: 0; }
  .grid-3, .services-bento, .form-grid, .split, .machine-row { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .machine-row.reverse figure { order: 0; }
  .machine-row { gap: 1.4rem; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento-cell { min-height: 220px; }
  .bento-cell.wide { grid-column: auto; }
  .cert-band { flex-direction: column; text-align: center; align-items: center; }
  .cta-band { padding: 3rem 1.6rem; }
}

@media (max-width: 560px) {
  .nav-cta > .btn { display: none; }
}

@media (max-width: 520px) {
  .grid-4, .region-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
