/* =======================================================================
   INERTIA Ingeniería · Hoja de estilos compartida
   Base original conservada + componentes nuevos (nav, breadcrumbs,
   imágenes, bloque DT AUTOPRO, proceso, formulario, 404).
   ======================================================================= */

:root {
  --ink: #0e0e0c;
  --ink-soft: #1a1a17;
  --paper: #f1ede4;
  --paper-warm: #e8e2d4;
  --paper-deep: #ddd5c4;
  --line: #c9c2b3;
  --muted: #6b665b;
  --muted-light: #8a8478;
  --accent: #a83229;
  --accent-bright: #c83b30;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === GRANO DE PAPEL === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--paper); }

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

/* =======================================================================
   NAVEGACIÓN PRINCIPAL (nueva · multipágina)
   ======================================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Fallback si el navegador no soporta color-mix */
@supports not (background: color-mix(in srgb, white, black)) {
  .site-nav { background: rgba(241, 237, 228, 0.92); }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand .icon {
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.nav-brand .sub {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link .caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-top: -3px;
}
.nav-has-sub[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 2px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta-li { display: none; } /* solo visible en el menú móvil */

/* Submenú de Servicios */
.nav-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(14, 14, 12, 0.5);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-has-sub-wrap:hover .nav-sub,
.nav-has-sub-wrap:focus-within .nav-sub,
.nav-sub.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-sub li:last-child a { border-bottom: none; }
.nav-sub a:hover { background: var(--paper-warm); }
.nav-sub a .t {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  display: block;
}
.nav-sub a .d {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-sub a.featured .t { color: var(--accent); }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Espaciador para el nav fijo en páginas interiores */
.has-nav-offset { padding-top: var(--nav-h); }

/* =======================================================================
   LOGO / META (mantiene las esquinas del diseño original en portada)
   ======================================================================= */
.corner-meta {
  position: fixed;
  top: calc(var(--nav-h) + 20px);
  right: clamp(24px, 4vw, 48px);
  z-index: 100;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.6;
}
.corner-meta .live { display: inline-flex; align-items: center; gap: 6px; }
.corner-meta .live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =======================================================================
   HERO
   ======================================================================= */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  padding: 120px 48px 80px;
  gap: 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--accent); }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 0;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero h1 .light { font-weight: 300; color: var(--muted); font-style: italic; }

.hero-subhead {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  margin-top: 24px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.hero-subhead .muted-text { color: var(--muted); font-style: italic; }

.hero-side { padding-bottom: 16px; }
.hero-lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}
.hero-bullets {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-bullet {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-bullet::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  margin-top: 4px;
}

/* Imagen del hero (nueva) */
.hero-figure {
  margin-top: 28px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* =======================================================================
   CABECERA DE PÁGINA INTERIOR + BREADCRUMBS
   ======================================================================= */
.page-head {
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.breadcrumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.page-head .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.page-head .kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.page-head h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 28px;
}

/* =======================================================================
   SOBRE MÍ / QUIÉN
   ======================================================================= */
.about {
  padding: 140px 48px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: start;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  display: inline-block;
}
.section-num span { color: var(--accent); }
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-title .muted { color: var(--muted); }

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  max-width: 1280px;
}
.about-text p {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.about-text p strong { font-weight: 500; color: var(--ink); }

/* Figura de David (nueva) */
.about-figure {
  margin-bottom: 40px;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.credentials { border-left: 1px solid var(--line); padding-left: 48px; }
.credentials h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.credential-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.credential-item:last-child { border-bottom: none; }
.credential-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}
.credential-detail { font-size: 13px; color: var(--muted); font-family: 'Inter Tight', sans-serif; }

/* =======================================================================
   SERVICIOS (grid de tarjetas)
   ======================================================================= */
.services { padding: 140px 48px; background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1320px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.4s, transform 0.4s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover { background: var(--paper-warm); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}
.service-card:hover::before { width: 100%; }
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-num .line { flex: 1; height: 1px; background: var(--line); }
.service-card h2, .service-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.service-card h2 em, .service-card h3 em { font-style: italic; color: var(--accent); }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 95%; }
.service-card .tags {
  list-style: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-card .tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 5px 10px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  text-transform: uppercase;
}
.service-card .go {
  margin-top: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.service-card:hover .go .arrow { transform: translateX(4px); }
.service-card .go .arrow { transition: transform 0.25s; }

/* Tarjetas destacadas (portada) */
.spotlight {
  padding: 140px 48px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1320px;
  margin-top: 60px;
}
.spotlight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s, box-shadow 0.35s;
}
.spotlight-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(14,14,12,0.5); }
.spotlight-figure { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.spotlight-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.spotlight-card:hover .spotlight-figure img { transform: scale(1.04); }
.spotlight-body { padding: 40px 40px 44px; }
.spotlight-body .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.spotlight-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
}
.spotlight-body h3 em { font-style: italic; color: var(--accent); }
.spotlight-body p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.spotlight-body .go {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.spotlight-card:hover .go { color: var(--accent); }
.spotlight-card:hover .go .arrow { transform: translateX(4px); }
.spotlight-body .go .arrow { transition: transform 0.25s; }

/* =======================================================================
   FORMA DE TRABAJAR (sección oscura)
   ======================================================================= */
.approach { padding: 140px 48px; background: var(--ink); color: var(--paper); position: relative; }
.approach .section-num { color: rgba(241,237,228,0.55); border-color: rgba(241,237,228,0.2); }
.approach .section-num span { color: var(--accent-bright); }
.approach .section-title { color: var(--paper); }
.approach .section-title em { color: var(--accent-bright); }
.approach .section-title .muted { color: rgba(241,237,228,0.4); }
.approach-list { max-width: 1100px; margin-top: 60px; display: grid; gap: 0; }
.approach-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 60px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(241, 237, 228, 0.1);
  align-items: start;
  transition: padding-left 0.3s;
}
.approach-item:last-child { border-bottom: none; }
.approach-item:hover { padding-left: 24px; }
.approach-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  color: var(--accent-bright);
  line-height: 0.85;
}
.approach-item h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.approach-item p { color: rgba(241, 237, 228, 0.7); font-size: 16px; line-height: 1.65; font-weight: 300; }

/* =======================================================================
   ZONA ATENDIDA / SEO LOCAL
   ======================================================================= */
.area { padding: 100px 48px; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.area-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.area h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.area h2 em { font-style: italic; color: var(--accent); }
.area-cities { display: flex; flex-wrap: wrap; gap: 12px; }
.area-cities span {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  padding: 8px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}
.area-cities span:hover { background: var(--ink); color: var(--paper); }
.area-cities span.primary { background: var(--ink); color: var(--paper); }
.area-note {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* =======================================================================
   FAQ
   ======================================================================= */
.faq { padding: 140px 48px; background: var(--paper); border-top: 1px solid var(--line); }
.faq-list { max-width: 1100px; margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: background 0.3s; }
.faq-item:hover { background: var(--paper-warm); }
.faq-item summary {
  padding: 28px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  list-style: none;
  transition: padding 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover summary { padding-left: 24px; }
.faq-q {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-icon {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 0.8;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 8px 32px;
  max-width: 800px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 300;
}
.faq-a strong { color: var(--ink); font-weight: 500; }

/* =======================================================================
   CONTACTO
   ======================================================================= */
.contact { padding: 160px 48px 80px; background: var(--paper-warm); }
.contact-inner { max-width: 1280px; margin: 0 auto; }
.contact-header { margin-bottom: 80px; }
.contact h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.contact h2 em { font-style: italic; color: var(--accent); }
.contact h2 .muted { color: var(--muted); }
.contact-lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink);
  line-height: 1.5;
  max-width: 640px;
  font-weight: 300;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.contact-block {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.3s;
}
.contact-block:hover { background: var(--paper-deep); }
.contact-block { min-width: 0; }
.contact-block .value, .contact-block .value a { overflow-wrap: anywhere; word-break: break-word; }
.contact-block .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.contact-block .value {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.contact-block .value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, color 0.25s;
  display: inline-block;
}
.contact-block .value a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-block .detail { margin-top: 12px; font-size: 14px; color: var(--muted); font-family: 'Inter Tight', sans-serif; }

/* CTA grande */
.cta-final {
  margin-top: 80px;
  padding: 60px 48px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-final h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.cta-final h3 em { font-style: italic; color: var(--accent-bright); }
.cta-buttons { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.25s, color 0.25s;
  cursor: pointer;
  border: none;
}
.cta-btn:hover { background: var(--accent); color: var(--paper); transform: translateY(-2px); }
.cta-btn.outline { background: transparent; color: var(--paper); border: 1px solid rgba(241,237,228,0.3); }
.cta-btn.outline:hover { border-color: var(--accent); background: var(--accent); }
.cta-btn.wa:hover { background: #25d366; color: var(--ink); }
.cta-btn .arrow { transition: transform 0.25s; }
.cta-btn:hover .arrow { transform: translateX(4px); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 190;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* =======================================================================
   COMPONENTES DE PÁGINAS DE SERVICIO
   ======================================================================= */
.section {
  padding: 120px 48px;
  border-bottom: 1px solid var(--line);
}
.section.warm { background: var(--paper-warm); }
.section.deep { background: var(--paper-deep); }
.section.dark { background: var(--ink); color: var(--paper); }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.section.dark .eyebrow { color: var(--accent-bright); }

.h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.h2 em { font-style: italic; color: var(--accent); }
.section.dark .h2 em { color: var(--accent-bright); }
.h2 .muted { color: var(--muted); }

.lead {
  font-family: 'Fraunces', serif;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  max-width: 68ch;
}
.section.dark .lead { color: rgba(241,237,228,0.72); }

.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 72ch;
}
.prose p.note {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  color: var(--muted);
  font-style: italic;
}
.section.dark .prose p { color: rgba(241,237,228,0.8); }

/* Grid genérica de tarjetas / tipos */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
  margin-top: 48px;
}
.tile {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.3s;
}
.tile:hover { background: var(--paper-warm); }
.tile .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.tile h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  margin: 12px 0 8px;
}
.tile p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Proceso / timeline numerado */
.steps { margin-top: 56px; display: grid; gap: 0; max-width: 1000px; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .sn {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 44px;
  color: var(--accent);
  line-height: 0.8;
}
.step h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 70ch; }
.section.dark .step { border-color: rgba(241,237,228,0.14); }
.section.dark .step h3 { color: var(--paper); }
.section.dark .step p { color: rgba(241,237,228,0.7); }
.section.dark .step .sn { color: var(--accent-bright); }

/* Lista con check técnico */
.check-list { list-style: none; margin-top: 32px; display: grid; gap: 14px; max-width: 72ch; }
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.check-list li::before {
  content: '';
  width: 9px; height: 9px;
  background: var(--accent);
  margin-top: 7px;
}
.section.dark .check-list li { color: rgba(241,237,228,0.85); }

/* Figura de sección */
.figure {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-deep);
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.text-first .split-media { order: 2; }

/* =======================================================================
   BLOQUE DESTACADO INERTIA × DT AUTOPRO
   ======================================================================= */
.combo {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(241,237,228,0.12);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.combo::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--accent-bright);
}
.combo .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.combo .brands {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(241,237,228,0.55);
}
.combo h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.combo h2 em { font-style: italic; color: var(--accent-bright); }
.combo p { color: rgba(241,237,228,0.78); font-size: 17px; line-height: 1.65; max-width: 70ch; font-weight: 300; }
.combo-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.combo-flow .node {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(241,237,228,0.25);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.combo-flow .node .who { color: var(--accent-bright); }
.combo-flow .sep { align-self: center; color: rgba(241,237,228,0.4); }

/* =======================================================================
   FORMULARIO DE CONTACTO
   ======================================================================= */
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field.consent {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.field.consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.field.consent label { font-family: 'Inter Tight', sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; }
.field.consent a { color: var(--accent); }
.form-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.form-submit:hover { background: var(--accent); transform: translateY(-2px); }
.form-hint {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =======================================================================
   FOOTER (ampliado con navegación)
   ======================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(241,237,228,0.6);
  padding: 80px 48px 32px;
}
.footer-top {
  max-width: 1320px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .icon {
  width: 30px; height: 30px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-brand p {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(241,237,228,0.7);
  max-width: 34ch;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241,237,228,0.45);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a {
  color: rgba(241,237,228,0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(241,237,228,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-bottom .credit { color: var(--accent-bright); }

/* Footer original simplificado (compatibilidad) */
footer.legacy {
  padding: 32px 48px;
  background: var(--ink);
  color: rgba(241,237,228,0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.legacy .credit { color: var(--accent-bright); }

/* =======================================================================
   404
   ======================================================================= */
.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px;
}
.notfound .code {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(90px, 18vw, 220px);
  line-height: 0.9;
  color: var(--accent);
}
.notfound h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}
.notfound p { color: var(--muted); max-width: 48ch; margin: 0 auto 32px; font-size: 17px; }

/* =======================================================================
   ANIMACIÓN INICIAL
   ======================================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }
.fade-up:nth-child(5) { animation-delay: 0.7s; }

/* Reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-menu, .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }

  /* Menú móvil desplegado */
  .site-nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(24px, 4vw, 48px) 28px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .site-nav.open .nav-menu > li { border-bottom: 1px solid var(--line); }
  .site-nav.open .nav-link { padding: 16px 4px; font-size: 13px; }
  .site-nav.open .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 0 0 8px 14px;
    display: none;
  }
  .site-nav.open .nav-sub.open { display: block; }
  .site-nav.open .nav-cta-li { display: block; padding: 16px 0 4px; border-bottom: none; }
  .site-nav.open .nav-cta-li .nav-cta { display: flex; justify-content: center; }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 60px;
    gap: 40px;
    align-items: start;
    min-height: auto;
  }
  .about, .services, .approach, .area, .faq, .contact, .spotlight, .section {
    padding: 80px 24px;
  }
  .page-head { padding: 48px 24px 44px; }
  .section-header { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
  .about-content { grid-template-columns: 1fr; gap: 48px; }
  .credentials { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .approach-item { grid-template-columns: 60px 1fr; gap: 24px; }
  .approach-item p { grid-column: 1 / -1; padding-top: 12px; }
  .area-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-item summary { gap: 20px; padding: 24px 4px; }
  .faq-item:hover summary { padding-left: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 48px 24px; }
  .split, .split.text-first { grid-template-columns: 1fr; gap: 32px; }
  .split.text-first .split-media { order: 0; }
  .step { grid-template-columns: 56px 1fr; gap: 20px; }
  .form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .corner-meta { display: none; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .nav-brand .sub { display: none; }
}
