/* ============================================================
   DataLovelace — Sistema "Minimal Tech"
   Base neutra clara · un solo acento violeta · componentes
   planos · Space Grotesk / Inter / Space Mono (self-host).
   Orden: fuentes → tokens → base → botones → header → hero →
   secciones → componentes → footer → utilidades → responsive.
   ============================================================ */

/* ============================================================
   FUENTES (self-host, subset latin, WOFF2)
   ============================================================ */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Color */
  --bg:        #FCFCFD;  /* fondo base, blanco roto frío */
  --surface:   #FFFFFF;  /* tarjetas sobre bg (y texto blanco sobre oscuro) */
  --ink:       #16121F;  /* texto principal */
  --muted:     #5C5670;  /* texto secundario — 6.78:1 sobre --bg */
  --line:      #E7E4EE;  /* bordes 1px */
  --violet:    #7C3AED;  /* ÚNICO acento — 5.56:1 sobre --bg (AA texto) */
  --violet-hover: #6D28D9; /* hover de botones (~8% más oscuro) */
  --violet-light: #A78BFA; /* cifras/acentos sobre --ink — 6.77:1 */
  --lavender:  #F4F1FB;  /* relleno sutil, uso escaso */
  --ink-inverse: #C9C4D6; /* texto secundario sobre --ink */
  --line-dark: #2A2438;   /* divisor de 1px sobre fondo tinta */
  --ok-bg:     #E8F6EE;  --ok-text: #1E7A46;   /* avisos de formulario */
  --error-bg:  #FDECEC;  --error-text: #B03535;
  --wa:        #1FA855;  /* verde WhatsApp (solo botones WhatsApp) */

  /* Tipografía */
  --font-display: "Space Grotesk", system-ui, sans-serif; /* titulares */
  --font-body:    "Inter", system-ui, sans-serif;          /* cuerpo */
  --font-mono:    "Space Mono", ui-monospace, "Courier New", monospace;

  /* Forma */
  --radius: 6px;         /* máximo global */
  --border: 1px solid var(--line);
  --shadow-hover: 0 2px 8px rgba(22, 18, 31, .07); /* única sombra permitida */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* acoplado a la altura del header sticky */
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

/* Palabra acentuada en titulares (antes gradiente, ahora acento plano) */
.grad-text { color: var(--violet); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--violet);
  color: var(--surface);
}
.btn-primary:hover { background: var(--violet-hover); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }

/* En el cierre oscuro el primario es EL MISMO primario de todo el sitio */
.btn-white {
  background: var(--violet);
  color: var(--surface);
}
.btn-white:hover { background: var(--violet-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink-inverse);
  border-color: var(--muted);
}
.btn-ghost:hover { border-color: var(--violet-light); color: var(--surface); }

.btn-lg { padding: 15px 30px; font-size: 16.5px; }

.btn-whatsapp {
  background: var(--wa);
  color: var(--surface);
}
.btn-whatsapp:hover { background: var(--ok-text); color: var(--surface); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 252, 253, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.scrolled { border-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon { width: 40px; height: 25px; }
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand-name span { color: var(--violet); }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--violet);
  transition: right .18s ease;
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link:hover, .nav-link.active { color: var(--violet); }

.btn-nav { padding: 10px 18px; font-size: 14px; }

/* ---------- Menú desplegable (Servicios) ---------- */
.nav-drop { position: relative; }
.nav-drop > .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .caret { transition: transform .18s ease; flex: 0 0 auto; }
.nav-drop::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 16px;
}
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  min-width: 270px;
  padding: 6px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: none;
  z-index: 50;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { display: block; }
.nav-drop:hover .caret,
.nav-drop:focus-within .caret { transform: rotate(180deg); }
.nav-drop-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.nav-drop-panel a:hover { background: var(--lavender); color: var(--violet); }
.nav-drop-panel a:first-child {
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  margin-bottom: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 34px 0 72px;
  background: var(--bg);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob { display: none; } /* los blobs difuminados salen del sistema */
.hero-pixels {
  position: absolute;
  width: 150px;
  top: 22px;
  left: 2.5%;
  opacity: .5;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

/* Kicker del hero = etiqueta "eyebrow" en mono con tick violeta */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--violet);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -.025em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-note {
  color: var(--muted);
  font-size: 15px;
  max-width: 54ch;
  margin-bottom: 20px;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.hero-tagline svg { color: var(--violet); flex: 0 0 auto; }

/* Contenedor del mockup del hero (antes tarjeta con sombra) */
.hero-visual { position: relative; }

.hero-logo-card {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
  position: relative;
}
.hero-logo-img {
  width: min(560px, 100%);
  margin: 0 auto;
}

/* Chips: quietos, planos, en mono */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.hero-chip svg { color: var(--violet); }
.hero-chip-1 { top: -14px; left: -20px; }
.hero-chip-2 { bottom: -16px; right: -20px; } /* a la derecha: el toast del mockup ocupa la esquina izquierda */
.hero-chip-3 { top: -14px; right: -20px; }

/* ============================================================
   SECCIONES BASE
   ============================================================ */
.section { padding: 92px 0; }
.section-soft {
  background: var(--lavender);
  border-top: var(--border);
  border-bottom: var(--border);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(27px, 3.2vw, 38px);
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* Etiqueta de sección: mono uppercase con tick violeta */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--violet);
}

/* ---------- Cabecera dividida con ilustración/mockup ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.split-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 16px;
}
.split-text p { color: var(--muted); font-size: 17px; }

.split-media {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
}
.split-media img { width: 100%; display: block; }

.estado-chip {
  position: absolute;
  top: -13px;
  left: 18px;
  z-index: 1;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--surface);
}
.estado-antes { background: var(--ink); }
.estado-despues { background: var(--violet); }

.split-invertido .split-media { order: -1; }

/* ---------- Grillas y tarjetas ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 15.5px; }

.card-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--lavender);
  border: var(--border);
  display: grid;
  place-items: center;
  color: var(--violet);
  margin-bottom: 16px;
}
.card-ico svg { width: 24px; height: 24px; }

/* Problema */
.card-problem h3 { font-size: 17px; }

/* Pilares de solución: número fantasma en mono */
.card-pillar { position: relative; padding-top: 30px; }
.pillar-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--line);
}

/* Servicios */
.card-service { display: flex; flex-direction: column; }
.card-service p { flex: 1; }
.deliverable {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--lavender);
  border: var(--border);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.deliverable strong { color: var(--violet-hover); }

.section-cta {
  margin-top: 46px;
  text-align: center;
}
.section-cta p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 16.5px;
}
.cta-note {
  display: block;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Ejemplos */
.card-example h3 { font-size: 17px; }

/* ============================================================
   IA CON CRITERIO
   ============================================================ */
.ia-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.ia-left {
  display: grid;
  gap: 24px;
  align-content: start;
}

.ia-media {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.ia-media img { width: 100%; display: block; }

/* Antes bloque morado con gradiente; ahora tarjeta clara, sobria,
   con borde violeta de 2px a la izquierda. */
.ia-quote {
  background: var(--surface);
  border: var(--border);
  border-left: 2px solid var(--violet);
  border-radius: var(--radius);
  padding: 36px 34px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.ia-quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  font-weight: 500;
}
.ia-quote strong { color: var(--violet); }
.ia-quote svg { color: var(--violet); }

.ia-uses {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.ia-uses h3 { font-size: 19px; font-weight: 500; margin-bottom: 18px; }

.check-list {
  list-style: none;
  display: grid;
  gap: 11px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 15.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--lavender);
  border: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='%237C3AED' stroke-width='2.6'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

.ia-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14.5px;
}

/* ============================================================
   CÓMO TRABAJAMOS (pasos)
   ============================================================ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: paso;
}

.step {
  position: relative;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: box-shadow .15s ease;
}
.step:hover { box-shadow: var(--shadow-hover); }

.steps-3 { grid-template-columns: repeat(3, 1fr); }

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border);
  color: var(--violet);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}

.step-ico { color: var(--muted); }
.step-ico svg { width: 24px; height: 24px; display: block; }

.step h3 { font-size: 17px; font-weight: 500; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.card-why {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
}
.card-why::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 3px;
  background: var(--lavender);
  border: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='%237C3AED' stroke-width='2.6'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.card-why p { color: var(--ink); font-size: 15.5px; }
.card-why strong { color: var(--ink); }

.why-closing {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* ============================================================
   PERFIL / CONFIANZA
   ============================================================ */
.profile-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 46px 50px;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--violet);
}
.profile-icon {
  width: 180px;
  justify-self: center;
  border-radius: var(--radius);
  border: var(--border);
}
.profile-body h2 { font-size: clamp(24px, 2.6vw, 31px); margin-bottom: 14px; }
.profile-body p { color: var(--muted); font-size: 16.5px; }

.profile-quote {
  margin-top: 18px;
  padding: 14px 20px;
  border-left: 2px solid var(--violet);
  background: var(--lavender);
  color: var(--ink);
  font-weight: 500;
  font-size: 16.5px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.profile-tags span {
  padding: 5px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============================================================
   CTA FINAL — cierre oscuro contiguo al footer: CTA + footer se
   leen como un solo bloque de tinta, separados por un divisor
   fino. El motivo de registros aparece discreto a la derecha,
   con la tercera línea en violeta claro como único acento.
   ============================================================ */
.cta-final {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: 88px 0;
}

/* Dos columnas en desktop: texto a la izquierda, motivo de registros como
   columna derecha real (ítem del grid: imposible que se superpongan). */
.cta-final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  column-gap: 48px;
  align-items: center;
  text-align: left;
}
.cta-final-inner > * { grid-column: 1; }
.cta-final-inner::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 330px;
  height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 202 67'%3E%3Crect y='1' width='142' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='148' width='5' height='5' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='158' y='1' width='3' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect y='16' width='119' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='125' y='15' width='5' height='5' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='135' y='16' width='3' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect y='31' width='150' height='3' fill='%23A78BFA'/%3E%3Crect x='156' y='30' width='5' height='5' fill='%23A78BFA'/%3E%3Crect x='166' y='31' width='3' height='3' fill='%23A78BFA' fill-opacity='.6'/%3E%3Crect y='46' width='109' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='115' y='45' width='5' height='5' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='125' y='46' width='3' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect y='61' width='131' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='137' y='60' width='5' height='5' fill='%23C9C4D6' fill-opacity='.35'/%3E%3Crect x='147' y='61' width='3' height='3' fill='%23C9C4D6' fill-opacity='.35'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.cta-final .kicker { color: var(--violet-light); }
.cta-final .kicker::before { background: var(--violet-light); }
.cta-final h2 {
  color: var(--surface);
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}
.cta-final p {
  color: var(--ink-inverse);
  font-size: 17.5px;
  max-width: 640px;
  margin: 0 0 32px;
}
.cta-final-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-final :focus-visible { outline-color: var(--surface); }

@media (max-width: 768px) {
  .cta-final-inner { display: block; text-align: center; }
  .cta-final-inner::after { display: none; }
  .cta-final p { margin: 0 auto 32px; }
  .cta-final-actions { justify-content: center; }
}

/* ============================================================
   ¿NO SABES QUÉ SERVICIO NECESITAS?
   ============================================================ */
.duda-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: var(--lavender);
  border: var(--border);
  border-radius: var(--radius);
  padding: 48px 44px;
}
.duda-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border);
  color: var(--violet);
  display: grid;
  place-items: center;
}
.duda-ico svg { width: 26px; height: 26px; }
.duda-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}
.duda-card p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 28px;
  font-size: 16.5px;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: start;
}

.contact-form { padding: 34px; }
.contact-form:hover { box-shadow: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--violet);
  outline-offset: -1px;
  border-color: var(--violet);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); opacity: .65; }

.form-aviso {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}
.form-aviso-ok { background: var(--ok-bg); border: 1px solid var(--ok-text); color: var(--ok-text); }
.form-aviso-error { background: var(--error-bg); border: 1px solid var(--error-text); color: var(--error-text); }

.form-error {
  color: var(--error-text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.contact-aside { display: grid; gap: 22px; }
.contact-info h3 { font-size: 18px; font-weight: 500; margin-bottom: 18px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: var(--border);
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.contact-line:first-of-type { border-top: 0; padding-top: 0; }
.contact-line strong { color: var(--ink); }
a.contact-line:hover strong { color: var(--violet); }

.contact-ico {
  flex: 0 0 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--lavender);
  border: var(--border);
  color: var(--violet);
}
.contact-ico.wa { background: var(--ok-bg); color: var(--wa); }

.contact-hint { background: var(--lavender); }
.contact-hint p { color: var(--ink); font-size: 15px; }

/* ============================================================
   FOOTER (momento oscuro nº 2)
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--ink-inverse);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand p { font-size: 14.5px; margin-top: 12px; }
.footer-loc { color: var(--ink-inverse); opacity: .75; }

.brand-icon-footer {
  width: 40px;
  height: 25px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.brand-name-footer { color: var(--surface); font-size: 18px; }
.brand-name-footer span { color: var(--violet-light); }

/* Motivo de capas: detalle de firma en el footer */
.motivo-capas { display: block; margin-top: 22px; }
.motivo-capas rect { fill: var(--ink-inverse); opacity: .4; }
.motivo-capas rect.on { fill: var(--violet-light); opacity: 1; }

.footer h4 {
  color: var(--surface);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 16px;
}
.footer-links, .footer-contact { display: flex; flex-direction: column; }
.footer-links a, .footer-contact a {
  color: var(--ink-inverse);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
  transition: color .15s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--violet-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  font-size: 14px;
}
.footer-bottom p:first-child { color: var(--surface); font-weight: 500; }
.footer-copy { color: var(--ink-inverse); opacity: .75; }
.footer-bottom a {
  color: var(--ink-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.footer-bottom a:hover { color: var(--violet-light); }

/* ============================================================
   BANDA DE URGENCIA LEY 21.719 (momento oscuro nº 1)
   ============================================================ */
.banda-ley {
  background: var(--ink);
  color: var(--ink-inverse);
  padding: 14px 0;
}
.banda-ley-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  text-align: center;
  font-size: 15px;
}
.banda-ley strong { color: var(--surface); }
.banda-ley .contador {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--violet-light);
  white-space: nowrap;
}
.banda-link {
  color: var(--violet-light);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.banda-link:hover { color: var(--surface); text-decoration: underline; }

/* ============================================================
   LAS CUATRO PUERTAS
   ============================================================ */
a.card-puerta {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card-puerta .comillas {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 36px;
  line-height: .9;
  color: var(--violet);
  opacity: .45;
}
.card-puerta h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.card-puerta p { flex: 1; }
.card-puerta .leer-mas { margin-top: 14px; }
.card-puerta:hover { border-color: var(--violet); }

/* ============================================================
   ESCALERA COMERCIAL Y RECORRIDO DE CAPAS
   ============================================================ */
.escalera {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.escalera .peldano {
  padding: 13px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  text-align: center;
}
.escalera .peldano small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-top: 3px;
}
.escalera .peldano.destacado {
  background: var(--violet);
  color: var(--surface);
  border-color: var(--violet);
}
.escalera .peldano.destacado small { color: var(--surface); opacity: .85; }
.escalera .flecha {
  align-self: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

/* Recorrido de capas (hub de servicios) */
.recorrido { display: grid; gap: 0; }
.recorrido-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: var(--border);
}
.recorrido-item:last-child { border-bottom: 0; }
.recorrido-num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
}
.recorrido-item h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.recorrido-item p { color: var(--muted); font-size: 15.5px; }
.recorrido-item .leer-mas { margin-top: 8px; }

/* Campo honeypot del formulario (invisible para personas) */
.hp-campo {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Lista vertical compacta de pasos (junto a ilustración) */
.pasos-lista { list-style: none; display: grid; gap: 18px; }
.pasos-lista li { display: flex; gap: 14px; align-items: flex-start; }
.pasos-lista .step-num { flex: 0 0 38px; }
.pasos-lista h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.pasos-lista p { color: var(--muted); font-size: 15px; }

/* ============================================================
   LEY 21.719 — cifras y tabla comparativa (estilo hairline)
   ============================================================ */
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--violet);
  margin-bottom: 6px;
}
.stat-num.ambar { color: var(--violet); } /* el ámbar sale del sistema */

.tabla-scroll { overflow-x: auto; }
.tabla-comparativa {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tabla-comparativa th {
  padding: 13px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  background: var(--lavender);
  border-bottom: 1px solid var(--ink);
}
.tabla-comparativa th:last-child { color: var(--violet-hover); background: var(--surface); }
.tabla-comparativa td {
  padding: 13px 20px;
  border-top: var(--border);
  font-size: 14.5px;
  color: var(--ink);
  vertical-align: top;
  width: 50%;
}
.tabla-comparativa td:first-child { color: var(--muted); background: var(--lavender); }
.tabla-comparativa td:last-child { background: var(--surface); }
.tabla-comparativa tr:first-child td { border-top: 0; }

/* ============================================================
   CREDENCIAL Y RESULTADOS ILUSTRATIVOS
   ============================================================ */
.credencial {
  font-size: 17px;
  font-weight: 600;
  color: var(--violet-hover);
  margin-bottom: 12px;
}

.badge-ilustrativo {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--lavender);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.antes-despues { display: grid; gap: 10px; margin-top: 8px; }
.antes-despues .fila { display: flex; gap: 10px; align-items: baseline; }
.antes-despues .tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 3px;
}
.tag-antes { background: var(--lavender); color: var(--muted); }
.tag-despues { background: var(--surface); border: 1px solid var(--violet); color: var(--violet-hover); }
.antes-despues p { margin: 0; font-size: 15px; }

/* ============================================================
   PÁGINAS INTERIORES (hero de página + migas de pan)
   ============================================================ */
.page-hero {
  padding: 52px 0 60px;
  background: var(--bg);
  border-bottom: var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em; max-width: 24ch; }
.page-hero .lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 70ch;
  margin-top: 16px;
}
.page-hero .cta-doble { margin-top: 26px; }

/* Motivo de capas en miniatura: "dónde estás parado" en la arquitectura */
.motivo-capas-mini { display: block; margin: 2px 0 16px; }
.motivo-capas-mini rect { fill: var(--line); }
.motivo-capas-mini rect.on { fill: var(--violet); }

/* Retrato de Ada Lovelace como portada de /sobre-nosotros/ */
.split-media .foto-retrato {
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: var(--border);
}

/* Contador de la ley fuera de la banda (hero de /ley-21719/) */
.page-hero .contador {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--violet);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--violet-hover);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--violet-hover); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--line); }

/* Contenido de páginas de servicio */
.contenido { max-width: 860px; margin: 0 auto; }
.contenido h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; }
.contenido > h2:first-child { margin-top: 0; }
.contenido p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; line-height: 1.7; }
.contenido .check-list { margin: 18px 0 24px; }
.contenido .deliverable { font-size: 15.5px; margin: 24px 0; }

.cta-doble { display: flex; flex-wrap: wrap; gap: 14px; }

.leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-hover);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.leer-mas:hover { text-decoration: underline; }
.card-service .leer-mas { margin-top: 16px; }

/* ============================================================
   PREGUNTAS FRECUENTES (lista con divisores hairline)
   ============================================================ */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 0; }
.faq-item {
  background: transparent;
  border: 0;
  border-bottom: var(--border);
  border-radius: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 4px;
  font-weight: 600;
  color: var(--ink);
  font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--violet);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-resp { padding: 0 4px 20px; color: var(--muted); font-size: 15.5px; }

/* ============================================================
   BLOG
   ============================================================ */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filtro-chip {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.filtro-chip:hover { border-color: var(--violet); color: var(--violet); }
.filtro-chip.activo { background: var(--violet); color: var(--surface); border-color: var(--violet); }

.card-post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

/* Artículo destacado / fijado (Ley 21.719) */
.card-pinned {
  position: relative;
  border-color: var(--violet);
}
.card-pinned:hover { border-color: var(--violet-hover); }
.pin-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--violet);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pin-badge svg { width: 12px; height: 12px; }
.card-post-img { background: var(--lavender); border-bottom: var(--border); }
.card-post-img img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-cat {
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--lavender);
  color: var(--violet-hover);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card-post h2, .card-post h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.card-post h2 a, .card-post h3 a { color: inherit; text-decoration: none; }
.card-post h2 a:hover, .card-post h3 a:hover { color: var(--violet); }
.card-post p { flex: 1; }
.card-post .leer-mas { margin-top: 14px; }

/* ============================================================
   ARTÍCULO DE BLOG
   ============================================================ */
.articulo { max-width: 780px; margin: 0 auto; }
.articulo-img {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lavender);
  margin-bottom: 36px;
}
.articulo-img img { width: 100%; display: block; }
.articulo h2 { font-size: clamp(21px, 2.5vw, 26px); margin: 40px 0 14px; }
.articulo h3 { font-size: 18px; font-weight: 500; margin: 28px 0 10px; }
.articulo p { color: var(--ink); font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.articulo ul, .articulo ol { margin: 0 0 20px 24px; color: var(--ink); line-height: 1.7; }
.articulo li { margin-bottom: 8px; font-size: 16px; }
.articulo strong { color: var(--ink); }

.articulo blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 2px solid var(--violet);
  background: var(--lavender);
  color: var(--ink);
  font-size: 17px;
}
.articulo blockquote em { color: var(--violet-hover); font-style: italic; }

.cta-intermedio {
  margin: 36px 0;
  padding: 28px 30px;
  background: var(--lavender);
  border: var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.cta-intermedio p { margin-bottom: 16px; color: var(--ink); font-weight: 500; }

.relacionados { margin-top: 64px; }
.relacionados h2 { text-align: center; font-size: 24px; margin-bottom: 28px; }

/* Footer de 4 columnas */
.footer-grid-4 { grid-template-columns: 1.3fr .9fr 1.2fr 1fr; }

/* ============================================================
   ANIMACIONES DE APARICIÓN (fade+rise sutil: 12px / 300ms)
   ============================================================ */
/* Solo se ocultan si hay JavaScript disponible (clase .js en <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-chip-1 { left: -8px; }
  .hero-chip-2 { right: -14px; }
  .hero-chip-3 { right: -12px; }

  /* Menú móvil (6 secciones no caben en línea bajo 1080px) */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: var(--border);
    box-shadow: var(--shadow-hover);
    padding: 18px 24px 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 4px; font-size: 13px; border-bottom: 1px solid var(--lavender); }
  .nav-link::after { display: none; }
  .btn-nav { margin-top: 12px; justify-content: center; }

  /* Desplegable en móvil: sublista siempre visible e indentada */
  .nav-drop { position: static; }
  .nav-drop::after { display: none; }
  .nav-drop .caret { display: none; }
  .nav-drop-panel {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 2px 0 6px 16px;
    margin: 0 0 4px 4px;
    border-left: 2px solid var(--line);
  }
  .nav-drop-panel a { font-size: 12px; padding: 9px 6px; }
  .nav-drop-panel a:first-child { border-bottom: 0; margin-bottom: 0; }
}

@media (max-width: 920px) {
  .section { padding: 72px 0; }

  .hero { padding: 48px 0 56px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-kicker { justify-content: center; }
  .hero-sub, .hero-note { margin-inline: auto; }
  .hero-actions, .hero-tagline { justify-content: center; }
  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-logo-card { width: 100%; }

  /* Chips apilados abajo a la izquierda, sin tapar el mockup */
  .hero-chip {
    position: relative;
    inset: auto;
    margin: 10px 0 0 12px;
  }
  .hero-chip-1 { margin-top: -18px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ia-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 44px;
  }
  .split-text { text-align: center; }
  .split-text .kicker { justify-content: center; }
  .split-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .split-invertido .split-media { order: 0; }
  .duda-card { padding: 40px 28px; }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 40px 30px;
  }
  .profile-icon { width: 150px; }
  .profile-tags { justify-content: center; }
  .profile-card::before { inset: 0 0 auto 0; width: auto; height: 2px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(1140px, 100% - 32px); }

  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }

  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .hero-sub { font-size: 16.5px; }
  .hero-actions .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { width: 100%; }
  .contact-form { padding: 24px 18px; }
  .duda-card .btn { width: 100%; }
  .duda-card { padding: 36px 22px; }

  .cta-final-actions .btn { width: 100%; }

  .footer-grid, .footer-grid-4 { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 40px 0 44px; }
  .cta-doble .btn { width: 100%; }
  .card-post-img img { height: 170px; }

  .escalera { flex-direction: column; align-items: stretch; }
  .escalera .flecha { transform: rotate(90deg); }
  .banda-ley-inner { font-size: 14px; }

  .section-cta .btn { width: 100%; }
}

/* Ajustes finos hasta 360px */
@media (max-width: 380px) {
  .container { width: min(1140px, 100% - 24px); }
  .hero h1 { font-size: 28px; }
  .brand-name { font-size: 17px; }
  .section { padding: 56px 0; }
  .tabla-comparativa { min-width: 480px; }
}
