/* ════════════════════════════════════════════════════════
   FBIASA — Sistema de Diseño Premium PLANO TÉCNICO
   Identidad aprobada por el cliente 2026-05 (Propuesta 01)
   Tipografía: Oswald 700 UPPER (display) + Roboto (body) + JetBrains Mono (specs)
   Paleta: navy + rojo industrial + papel cuadrícula
═══════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables ────────────────────────────────── */
:root {
  /* Paleta primaria */
  --navy: #0B1E54;
  --navy-deep: #050E2D;
  --navy-line: #4A6FB8;

  /* Paper background con grid CAD */
  --paper: #F4F1E8;
  --paper-soft: #F8F6F0;
  --paper-grid: #DDE6F2;
  --grid-line: rgba(74, 111, 184, 0.18);
  --grid-line-strong: rgba(74, 111, 184, 0.32);

  /* Acento industrial */
  --red: #DC2626;
  --red-deep: #991B1B;
  --red-soft: rgba(220, 38, 38, 0.08);

  /* Tinta y neutros */
  --ink: #0A1733;
  --ink-soft: #4A5878;
  --ink-mute: #6B7591;
  --kraft: #E8DBC0;
  --gold: #C8A04A;
  --white: #FFFFFF;
  --bone: #FAF8F2;

  /* Feedback */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #DC2626;

  /* Tipografía */
  --font-display: 'Oswald', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Roboto', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 920px;
  --header-height: 80px;

  /* Transiciones */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Bordes */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
}

/* ── 2. Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; z-index: 10000;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.skip-link:focus { top: 0; }

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

/* ── 3. Tipografía ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.005em;
  font-weight: 700;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: var(--space-md);
  line-height: 1;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}
h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-xs); letter-spacing: 0.02em; }

p { margin-bottom: var(--space-sm); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

/* Eyebrow PLANO técnico */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--red);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 720px;
  font-weight: 400;
}

/* Cota (línea de medición con texto al centro) */
.cota {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--navy-line); margin: var(--space-md) 0; letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cota::before, .cota::after {
  content: ''; flex: 1; height: 1px; background: var(--navy-line);
}
.cota::before { background: linear-gradient(to right, transparent, var(--navy-line)); }
.cota::after { background: linear-gradient(to left, transparent, var(--navy-line)); }

/* Sello APROBADO rotado — efecto tinta sobre papel */
.sello {
  display: inline-flex; flex-direction: column; align-items: center;
  border: 3px solid rgba(220, 38, 38, 0.82);
  padding: 10px 22px;
  color: rgba(220, 38, 38, 0.85);
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  transform: rotate(-6deg);
  background: rgba(220, 38, 38, 0.04);
}
.sello .big { font-size: 1.4rem; line-height: 1; }
.sello .small { font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.2em; margin-top: 4px; }

/* Marcas de plano en las 4 esquinas (inyectadas por JS) */
.plano-mark {
  position: fixed; font-family: var(--font-mono);
  font-size: 10px; color: var(--ink-mute); letter-spacing: 0.15em;
  text-transform: uppercase; z-index: 50; pointer-events: none;
  line-height: 1.4;
}
.plano-mark.tl { top: 14px; left: 14px; }
.plano-mark.tr { top: 14px; right: 14px; text-align: right; }
.plano-mark.bl { bottom: 14px; left: 14px; }
.plano-mark.br { bottom: 14px; right: 14px; text-align: right; }

/* ── 4. Layout ──────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); position: relative; z-index: 2; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-md); position: relative; z-index: 2; }

section { padding: var(--space-2xl) 0; position: relative; }
section.tight { padding: var(--space-xl) 0; }
section.alt { background: var(--white); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ── 5. Header ──────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  height: var(--header-height);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.brand-logo { display: flex; align-items: center; gap: 14px; }
.brand-logo img { height: 48px; width: auto; }
.brand-tag {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.15em; text-transform: uppercase;
  padding-left: 14px; border-left: 1px solid var(--ink-mute);
}
.brand-logo:hover { opacity: 0.85; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; gap: var(--space-md); align-items: center; }
.main-nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink); padding: 8px 0; position: relative; transition: color var(--t-fast);
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  display: block;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--paper); border: 2px solid var(--ink);
  min-width: 320px; padding: 12px;
  opacity: 0; visibility: hidden;
  transition: all var(--t-base);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 14px;
  font-size: 12px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
}
.dropdown-menu a:hover {
  background: var(--white);
  border-left-color: var(--red);
  color: var(--red);
}

/* Header CTA — botón Cotizar */
.header-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px !important;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.1em !important;
  border: 2px solid var(--navy);
  transition: all var(--t-base);
}
.header-cta:hover {
  background: var(--red); border-color: var(--red);
  color: var(--white) !important;
}

/* Toggle móvil */
.menu-toggle {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); transition: all var(--t-base);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. Banner emergencias ──────────── */
.emergency-banner {
  background: var(--navy); color: var(--white);
  text-align: center; padding: 10px var(--space-md);
  font-family: var(--font-mono); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--red);
}
.emergency-banner strong {
  color: var(--red); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.emergency-banner a {
  color: var(--white); font-weight: 700; margin-left: 6px;
  border-bottom: 1px solid var(--red);
}
.emergency-banner a:hover { color: var(--red); }

/* ── 7. Hero técnico ──────────────────── */
.hero {
  position: relative;
  min-height: 70vh;
  padding: var(--space-2xl) 0;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  text-align: left;
  background: var(--paper);
}
.hero .container { z-index: 3; text-align: left; width: 100%; }
.hero h1, .hero .lead, .hero-actions, .hero-meta, .hero-stats, .cota {
  margin-left: 0; margin-right: auto;
  text-align: left;
}
.hero-actions { justify-content: flex-start; }
.hero-meta {
  display: flex; justify-content: space-between; margin-bottom: var(--space-md);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.15em; text-transform: uppercase;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: var(--space-md);
  max-width: 900px;
}
.hero h1 .accent, .hero h1 .red {
  color: var(--red); position: relative;
}
.hero h1 .accent::after, .hero h1 .red::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8%;
  height: 6px; background: var(--red); opacity: 0.18;
}
.hero .lead {
  color: var(--ink-soft); font-size: 1.15rem;
  margin-bottom: var(--space-lg); max-width: 720px;
}
.hero-sello-wrap {
  position: absolute; top: 18%; right: 5%; z-index: 5;
  pointer-events: none;
}
@media (max-width: 1180px) {
  .hero-sello-wrap { top: 14%; right: 4%; }
}
@media (max-width: 900px) {
  .hero-sello-wrap { display: none; }
}
.hero-actions {
  display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center;
}

/* Hero stats grid técnico */
.hero-stats, .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 2px solid var(--ink); margin-top: var(--space-lg);
  background: var(--white);
}
.hero-stat, .stat {
  padding: 28px 24px; border-right: 1px solid var(--ink); position: relative;
}
.hero-stat:last-child, .stat:last-child { border-right: none; }
.hero-stat .num, .stat .num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.hero-stat .label, .stat .label {
  display: block; font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-mute); margin-top: 10px;
}
.stat .marker {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--red); letter-spacing: 0.15em;
}

/* ── 8. Botones ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all var(--t-base);
  text-align: center; white-space: nowrap;
  border: 2px solid;
  line-height: 1.2; cursor: pointer;
}
.btn-primary {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--red); border-color: var(--red);
  color: var(--white); transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08); border-color: var(--white); color: var(--white);
}
.btn-navy {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-navy:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── 9. Section headers ────────────────── */
.section-head {
  text-align: center; max-width: 800px; margin: 0 auto var(--space-xl);
}
.section-head .eyebrow {
  padding-left: 0;
  display: inline-flex; justify-content: center;
}
.section-head h2 { color: var(--ink); }
.section-head h2 .accent, .section-head h2 .neon { color: var(--red); }
.section-head .lead { margin: 0 auto; color: var(--ink-soft); }

.section-head.left { text-align: left; margin: 0 0 var(--space-xl); }
.section-head.left .eyebrow { padding-left: 0; }
.section-head.left .lead { margin: 0; }

.section-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
  margin-bottom: var(--space-sm);
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; width: 32px; height: 2px; background: var(--red);
}

h3.subtitle-h, h3.sub {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--ink-soft); font-weight: 400; margin-bottom: var(--space-lg);
  border-left: 3px solid var(--red); padding-left: 14px;
  text-transform: uppercase;
}

/* ── 10. Servicios — hojas de plano ───── */
.services-grid, .servicios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.service-card, .servicio-hoja {
  background: var(--white); border: 2px solid var(--ink); padding: 0;
  position: relative; transition: all var(--t-base);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex; flex-direction: column;
}
.service-card:hover, .servicio-hoja:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--red);
}
.service-card .icon, .servicio-hoja .icon {
  width: 56px; height: 56px;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  color: var(--navy); margin: 20px 20px 14px;
  border: 1px solid var(--ink);
}
.service-card .icon svg, .servicio-hoja .icon svg { width: 28px; height: 28px; }
.service-card .h-top, .servicio-hoja .h-top {
  padding: 18px 22px 10px; border-bottom: 1px dashed var(--ink-mute);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.service-card .codigo, .servicio-hoja .codigo {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.18em; text-transform: uppercase;
}
.service-card .rev, .servicio-hoja .rev {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--red); letter-spacing: 0.2em;
  padding: 3px 8px; border: 1px solid var(--red);
}
.service-card .title-cuadro, .servicio-hoja .title-cuadro {
  padding: 18px 22px; border-bottom: 1px solid var(--ink);
}
.service-card h3, .servicio-hoja h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; text-transform: uppercase;
  color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: 0.005em;
}
.service-card p, .servicio-hoja p {
  padding: 16px 22px 18px; font-size: 0.92rem;
  color: var(--ink-soft); line-height: 1.6; flex-grow: 1;
}
.service-card .more, .servicio-hoja .more,
.service-card .footer-cuadro, .servicio-hoja .footer-cuadro {
  border-top: 2px solid var(--ink); padding: 12px 22px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--paper);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); margin: 0;
}
.service-card .more { color: var(--red); font-weight: 600; }
.service-card .more::after, .servicio-hoja .arrow {
  content: '→'; color: var(--red); font-weight: 700;
  transition: transform var(--t-fast);
}
.service-card:hover .more::after,
.servicio-hoja:hover .arrow { transform: translateX(4px); }

/* ── 11. Diferenciadores grid ─────────── */
.differentiators, .diff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0; margin-top: var(--space-lg);
  border: 2px solid var(--ink);
}
.diff-item, .diff-cell {
  padding: 32px 26px; background: var(--white);
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  position: relative; transition: all var(--t-fast);
}
.diff-item:hover, .diff-cell:hover {
  background: var(--ink); color: var(--paper);
}
.diff-item:hover h4, .diff-cell:hover h4 { color: var(--paper); }
.diff-item:hover p, .diff-cell:hover p { color: var(--paper); }
.diff-item:hover .num, .diff-cell:hover .num { color: var(--red); }
.diff-item .num, .diff-cell .num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.2em;
  margin-bottom: 12px; display: block;
}
.diff-item h4, .diff-cell h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; text-transform: uppercase;
  color: var(--ink); margin-bottom: 10px; line-height: 1.15;
}
.diff-item p, .diff-cell p {
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin: 0;
}

/* ── 12. Marquee de clientes ──────────── */
.marquee-clients, .marquee-section {
  background: var(--ink); color: var(--paper);
  padding: var(--space-xl) 0;
  border-top: 4px solid var(--red); border-bottom: 4px solid var(--red);
  position: relative; overflow: hidden;
}
.marquee-clients::before, .marquee-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px; pointer-events: none;
}
.marquee-clients .label, .marquee-label {
  position: relative; z-index: 2; text-align: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--space-md); font-weight: 500;
}
.client-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-lg); max-width: 1100px; margin: 0 auto;
  padding: 0 var(--space-md); position: relative; z-index: 2;
}
.client-logos .client-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.4rem; color: var(--paper); letter-spacing: 0.04em;
  text-transform: uppercase; opacity: 0.7; transition: all var(--t-base);
  padding: 8px 12px; white-space: nowrap;
}
.client-logos .client-name:hover { opacity: 1; color: var(--red); }

/* Brand pills (marcas como Parker/SMC/etc) */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: var(--space-md);
}
.brand-pill {
  padding: 10px 20px; border: 2px solid var(--ink); background: var(--white);
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em;
  transition: all var(--t-fast);
}
.brand-pill:hover {
  background: var(--ink); color: var(--paper);
  transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red);
}

/* ── 13. CTA section ──────────────────── */
.cta-section {
  background: var(--red); color: var(--white);
  padding: var(--space-2xl) 0; text-align: center; position: relative;
}
.cta-section::before, .cta-section::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--white) 0 20px, transparent 20px 40px);
}
.cta-section::before { top: 0; } .cta-section::after { bottom: 0; }
.cta-section .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); flex-wrap: wrap;
}
.cta-section .cta-text { flex: 1; min-width: 320px; text-align: left; }
.cta-section h2 {
  color: var(--white); margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 0 var(--red-deep);
}
.cta-section .lead {
  color: rgba(255,255,255,0.95); margin-bottom: 0;
}
.cta-section .cta-actions {
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
}
.cta-section .btn-primary {
  background: var(--white); color: var(--red); border-color: var(--white);
}
.cta-section .btn-primary:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.cta-section .btn-outline {
  color: var(--white); border-color: rgba(255,255,255,0.6);
}
.cta-section .btn-outline:hover {
  background: var(--white); color: var(--red);
}

/* ── 14. FAQ ──────────────────────────── */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 2px solid var(--ink); padding: 0;
  background: var(--white);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--ink); transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 2rem;
  color: var(--red); font-weight: 300; line-height: 1;
  transition: transform var(--t-base); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--red); }
.faq-item .answer {
  padding: 0 24px 24px;
  color: var(--ink-soft); line-height: 1.75;
  max-width: 760px;
}
.faq-item .answer a { color: var(--red); border-bottom: 1px solid var(--red); }

/* ── 15. Productos catálogo ──────── */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.product-card {
  background: var(--white); border: 2px solid var(--ink); padding: 22px;
  transition: all var(--t-base);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 14px 14px;
}
.product-card:hover {
  transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--red);
}
.product-card .product-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; background: var(--navy); color: var(--white);
  padding: 4px 10px; margin-bottom: var(--space-sm);
  text-transform: uppercase; font-weight: 500;
}
.product-card h4 {
  color: var(--ink); font-size: 1.05rem; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
}
.product-card .specs {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-soft); background: var(--paper-soft);
  padding: 10px 12px; margin: var(--space-sm) 0 0;
  border-left: 3px solid var(--red); line-height: 1.5;
}

/* ── 16. Placeholder de imagen ──────── */
.placeholder-image {
  background:
    repeating-linear-gradient(45deg, var(--paper) 0 12px, var(--paper-soft) 12px 24px);
  border: 2px dashed var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: var(--space-lg); color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 0.85rem;
  min-height: 320px; position: relative;
}
.placeholder-image::before {
  content: '⬚'; font-size: 2.4rem; margin-bottom: var(--space-sm);
  color: var(--navy-line);
}
.placeholder-image .label {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.75rem; margin-bottom: 6px;
}
.placeholder-image .desc {
  font-size: 0.82rem; color: var(--ink-soft);
  font-family: var(--font-body); max-width: 280px;
}

/* ── 17. Botones de conversión flotantes (skill botones-conversion · formato cuadrado FBIASA) ──── */
.float-btn-wa, .float-btn-call {
  position: fixed; bottom: 24px; z-index: 999;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); background: var(--navy);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: all var(--t-base); border: 2px solid var(--ink);
  cursor: pointer; outline: none;
}
.float-btn-wa { right: 24px; }
.float-btn-call { left: 24px; display: none; }

.float-btn-wa:hover, .float-btn-call:hover {
  background: var(--red); border-color: var(--red);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.float-btn-wa:focus-visible, .float-btn-call:focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px;
}
.float-btn-wa svg, .float-btn-call svg { width: 26px; height: 26px; }

/* Llamada — solo visible en móvil */
@media (max-width: 768px) {
  .float-btn-call { display: flex; }
}

/* Compat con clases viejas (.floating-cta y .float-btn legacy) — por si algún HTML aún las trae */
.floating-cta { display: none; }
.float-btn:not(.float-btn-wa):not(.float-btn-call) { display: none; }

/* ── 17b. Modales · WhatsApp + Llamada (look Plano Técnico) ──── */
.wa-modal, .call-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 23, 51, 0.78);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center; align-items: center;
  padding: var(--space-md);
}
.wa-modal.active, .call-modal.active {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wa-modal-content, .call-modal-content {
  background: var(--paper);
  padding: var(--space-lg);
  width: 100%; max-width: 440px;
  position: relative;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 18px 18px;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-modal-close, .call-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: 0;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer; color: var(--ink-mute);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t-fast);
}
.wa-modal-close:hover, .call-modal-close:hover { color: var(--red); }

.modal-eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
  margin-bottom: var(--space-xs);
}

.wa-modal-content h3, .call-modal-content h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; text-transform: uppercase;
  color: var(--ink); margin-bottom: 0.4rem; line-height: 1.15;
}
.wa-modal-content > p {
  color: var(--ink-soft); font-size: 0.92rem;
  margin-bottom: var(--space-md);
}
.call-modal-content .modal-subtitle {
  color: var(--ink-soft); font-size: 0.95rem;
  margin-bottom: var(--space-md); line-height: 1.6;
}
.call-modal-content .call-phone {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--navy); font-weight: 700; letter-spacing: 0.04em;
}
.call-modal-content .call-emergency {
  color: var(--red); font-weight: 600;
}

/* Form group dentro del modal — usa estilos del form general pero ajustado */
.wa-modal-content .form-group { margin-bottom: var(--space-sm); }
.wa-modal-content .form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.wa-modal-content .form-group input,
.wa-modal-content .form-group select {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--ink-mute);
  background: var(--white);
  font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color var(--t-fast);
}
.wa-modal-content .form-group input:focus,
.wa-modal-content .form-group select:focus {
  outline: none; border-color: var(--red);
}

.btn-wa-submit {
  display: block; width: 100%;
  padding: 14px 18px;
  background: #25D366; color: var(--white);
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  margin-top: var(--space-sm);
  transition: all var(--t-base);
}
.btn-wa-submit:hover {
  background: #20BD5A;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.call-modal-buttons {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: var(--space-md);
}
.btn-call-confirm {
  padding: 14px 18px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  transition: all var(--t-base);
}
.btn-call-confirm:hover {
  background: var(--red); border-color: var(--red);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-call-cancel {
  padding: 12px 18px;
  background: transparent; color: var(--ink-soft);
  border: 2px solid var(--ink-mute);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: all var(--t-fast);
}
.btn-call-cancel:hover {
  background: var(--ink-mute); color: var(--paper);
  border-color: var(--ink-mute);
}

@media (max-width: 480px) {
  .wa-modal-content, .call-modal-content {
    padding: var(--space-md);
    box-shadow: 8px 8px 0 var(--red);
  }
  .wa-modal-content h3, .call-modal-content h3 { font-size: 1.15rem; }
}

/* ── 18. Footer ──────────────────────── */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: var(--space-2xl) 0 var(--space-md);
  border-top: 4px solid var(--red);
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg); margin-bottom: var(--space-lg);
}
.footer-col h4 {
  color: var(--red); font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: var(--space-md); font-weight: 600;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a, .footer-col p {
  color: rgba(244, 241, 232, 0.75);
  font-size: 0.9rem; line-height: 1.7;
}
.footer-col a:hover { color: var(--red); }
.footer-brand img {
  height: 56px; width: auto; margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 0.88rem; line-height: 1.6;
  color: rgba(244, 241, 232, 0.7);
}
.footer-contact-line {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: rgba(244, 241, 232, 0.85);
  margin-bottom: 10px;
}
.footer-contact-line svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--red); margin-top: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(244, 241, 232, 0.15);
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-sm);
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; color: rgba(244, 241, 232, 0.55);
  text-transform: uppercase;
}

/* ── 19. Breadcrumbs ────────────────── */
.breadcrumbs {
  padding: var(--space-md) 0 0;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li::after {
  content: '/'; margin-left: 8px; color: var(--ink-mute);
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs li[aria-current="page"] { color: var(--red); font-weight: 500; }

/* ── 20. Spec table ─────────────────── */
.spec-table {
  width: 100%; border-collapse: collapse;
  margin: var(--space-md) 0;
  background: var(--white); border: 2px solid var(--ink);
}
.spec-table th, .spec-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--ink);
}
.spec-table thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.spec-table tbody tr:hover { background: var(--paper-soft); }
.spec-table tbody td:first-child {
  font-family: var(--font-display); font-weight: 600;
  color: var(--ink); text-transform: uppercase;
}
.spec-table tbody td.mono {
  font-family: var(--font-mono); font-size: 0.85rem;
}

/* ── 21. Split sections ─────────────── */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
}
.split-section.reverse > :first-child { order: 2; }
.split-section .split-image img,
.split-section .split-image .placeholder-image {
  width: 100%;
}

/* Listas con bullets industriales */
.bullet-list { list-style: none; padding: 0; margin: var(--space-md) 0; }
.bullet-list li {
  padding: 10px 0 10px 32px; position: relative;
  font-size: 0.98rem; color: var(--ink); line-height: 1.6;
}
.bullet-list li::before {
  content: ''; position: absolute;
  left: 0; top: 18px; width: 18px; height: 2px;
  background: var(--red);
}
.bullet-list li strong { color: var(--ink); font-weight: 600; }

/* ── 22. Form contacto ──────────────── */
.contact-form {
  background: var(--white); padding: var(--space-lg);
  border: 2px solid var(--ink);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-sm); margin-bottom: var(--space-sm);
}
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--ink-mute);
  background: var(--paper);
  font-size: 0.95rem; transition: border-color var(--t-fast);
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--red);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── 23. Mapa embebido ─────────────── */
.map-frame {
  width: 100%; height: 420px;
  border: 3px solid var(--red);
  filter: contrast(1.05) saturate(0.85);
}

/* ── 24. Stats internas (página) ────── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; margin: var(--space-lg) 0;
  border: 2px solid var(--ink);
}
.stat-block {
  text-align: center; padding: var(--space-md);
  background: var(--white);
  border-right: 1px solid var(--ink);
}
.stat-block:last-child { border-right: none; }
.stat-block .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.4rem; color: var(--ink); display: block;
  line-height: 1; letter-spacing: -0.02em;
}
.stat-block .label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-mute); margin-top: 8px;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ── 25. Páginas legales ──────────── */
.legal-content {
  max-width: 820px; margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  background: var(--white); border: 2px solid var(--ink);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: var(--space-md);
}
.legal-content h2 {
  font-size: 1.3rem; color: var(--ink);
  margin-top: var(--space-lg); margin-bottom: var(--space-sm);
  padding-top: var(--space-md); border-top: 2px solid var(--ink);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content p, .legal-content li {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--ink-soft); font-family: var(--font-body);
  text-transform: none;
}
.legal-content ul, .legal-content ol {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: var(--space-md);
}
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--red); border-bottom: 1px solid var(--red); }

/* ── 26. Reveal animations ────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ── 27. Responsive ──────────────── */
@media (max-width: 1024px) {
  :root { --header-height: 72px; }
  .split-section { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split-section.reverse > :first-child { order: 0; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  section { padding: var(--space-xl) 0; }
  .hero { min-height: 60vh; padding: var(--space-xl) 0; }
  .hero-sello-wrap { display: none; }

  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: var(--space-md);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: all var(--t-base);
    max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0); opacity: 1; visibility: visible;
  }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block; padding: 14px 8px;
    border-bottom: 1px solid var(--ink-mute);
    font-size: 0.95rem;
  }
  .main-nav a.active::after { display: none; }

  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: var(--paper-soft); border: none;
    margin: 0 0 8px; padding: 8px 0 8px var(--space-md);
    min-width: 0; border-left: 3px solid var(--red);
  }
  .dropdown-menu a { padding: 10px 0; }
  .header-cta { margin-top: var(--space-sm); width: 100%; }

  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions .btn { width: 100%; }

  .hero-stats, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .hero-stat:nth-child(2),
  .stats-grid .stat:nth-child(2) { border-right: none; }
  .hero-stats .hero-stat:nth-child(1), .hero-stats .hero-stat:nth-child(2),
  .stats-grid .stat:nth-child(1), .stats-grid .stat:nth-child(2) {
    border-bottom: 1px solid var(--ink);
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .cta-section .container { flex-direction: column; align-items: flex-start; }
  .cta-section .cta-text { text-align: left; width: 100%; }
  .cta-section .cta-actions { width: 100%; }
  .cta-section .cta-actions .btn { flex: 1; min-width: 140px; }

  .plano-mark { font-size: 8px; letter-spacing: 0.1em; }
  .plano-mark.tl, .plano-mark.tr { top: 8px; }
  .plano-mark.bl, .plano-mark.br { bottom: 8px; }
  .plano-mark.tl, .plano-mark.bl { left: 8px; }
  .plano-mark.tr, .plano-mark.br { right: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  section { padding: var(--space-lg) 0; }
  .hero { padding: var(--space-lg) 0; min-height: 50vh; }
  .floating-cta { bottom: 16px; right: 16px; }
  .client-logos { gap: var(--space-md); }
  .client-logos .client-name { font-size: 1rem; padding: 6px 8px; }
  .hero-stats, .stats-grid { grid-template-columns: 1fr; }
  .hero-stats .hero-stat, .stats-grid .stat {
    border-right: none; border-bottom: 1px solid var(--ink);
  }
}

/* ── 28. Print ──────────────────────── */
@media print {
  .site-header, .floating-cta, .menu-toggle, .header-cta,
  .emergency-banner, .plano-mark { display: none !important; }
  body { color: #000; background: #fff; background-image: none; }
  a { text-decoration: underline; color: #000; }
  .hero { background: #fff; color: #000; min-height: auto; }
  .hero h1, .hero .lead { color: #000; }
}

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