/* ============================================================
   AUTORITAS CONSULTING — Web styles (rebrand 2026)
   Basado en el sistema de diseño de /diseny/assets/tokens.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400;1,9..40,500;1,9..40,700&display=swap');

:root {
  /* COLOR — teal principal */
  --aut-teal-900: #002828;
  --aut-teal-800: #003f3f;
  --aut-teal-700: #00504f;
  --aut-teal:     #006363;
  --aut-teal-500: #0a7c7c;
  --aut-teal-400: #4ea0a0;
  --aut-teal-300: #8bc1c1;
  --aut-teal-200: #c1ddde;
  --aut-teal-100: #e6f0f0;
  --aut-teal-50:  #f3f8f8;

  /* Neutros tibios */
  --aut-ink:     #0a1414;
  --aut-graphite:#1f2a2a;
  --aut-slate:   #4a5757;
  --aut-mute:    #7a8585;
  --aut-line:    #d8dedd;
  --aut-line-2:  #ebefee;
  --aut-paper:   #f7f8f7;
  --aut-paper-2: #fbfbfa;
  --aut-white:   #ffffff;

  /* Acentos de datos */
  --aut-data-1: oklch(0.62 0.12 200);
  --aut-data-2: oklch(0.62 0.12 145);
  --aut-data-3: oklch(0.72 0.11 85);
  --aut-data-4: oklch(0.62 0.13 45);
  --aut-data-5: oklch(0.55 0.12 290);

  /* Semánticos */
  --aut-ok:    #0a7c5a;
  --aut-warn:  #b87a14;
  --aut-error: #b8323e;

  /* Alias semánticos para mantener compatibilidad con el HTML existente */
  --color-bg: var(--aut-paper-2);
  --color-white: var(--aut-white);
  --color-text: var(--aut-ink);
  --color-text-light: var(--aut-slate);
  --color-text-muted: var(--aut-mute);
  --color-primary: var(--aut-ink);
  --color-primary-light: var(--aut-graphite);
  --color-accent: var(--aut-teal);
  --color-accent-light: var(--aut-teal-500);
  --color-accent-bg: var(--aut-teal-50);
  --color-border: var(--aut-line);
  --color-border-light: var(--aut-line-2);
  --color-card-bg: var(--aut-white);
  --color-cta-bg: var(--aut-teal);
  --color-cta-text: var(--aut-white);

  /* Tipografía */
  --font-main: "DM Sans", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "DM Sans", "Roboto", system-ui, sans-serif;

  /* Escala tipográfica */
  --t-display: clamp(56px, 7vw, 112px);
  --t-h1: clamp(40px, 4.5vw, 64px);
  --t-h2: clamp(28px, 3vw, 40px);
  --t-h3: 22px;
  --t-h4: 17px;
  --t-body: 16px;
  --t-small: 14px;
  --t-mono: 13px;
  --t-caption: 12px;

  /* Espaciado */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radios */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Alias radios para HTML existente */
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);

  /* Elevación */
  --shadow-sm: 0 1px 2px rgba(0,40,40,.06);
  --shadow-md: 0 4px 16px rgba(0,40,40,.08);
  --shadow-lg: 0 24px 60px -20px rgba(0,40,40,.18);

  /* Layout */
  --max-width: 1200px;
  --container: 1200px;
  --container-narrow: 880px;
  --header-height: 76px;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-size: var(--t-body);
  color: var(--aut-ink);
  background: var(--aut-paper-2);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5 {
  color: var(--aut-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.022em; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--t-h4); font-weight: 600; letter-spacing: -0.005em; }

p { max-width: 68ch; text-wrap: pretty; }

.text-muted { color: var(--aut-slate); }
.text-accent { color: var(--aut-teal); }
.text-center { text-align: center; }

/* Eyebrow / mono — etiquetas pequeñas tracking ancho */
.eyebrow,
.section-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aut-teal);
  margin-bottom: var(--s-3);
}

.mono {
  font-family: var(--font-main);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-color: var(--aut-teal);
}
.btn-primary:hover {
  background: var(--aut-teal-700);
  border-color: var(--aut-teal-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--aut-ink);
  border-color: var(--aut-line);
}
.btn-secondary:hover {
  background: var(--aut-paper);
  border-color: var(--aut-ink);
}

.btn-outline {
  background: transparent;
  color: var(--aut-teal);
  border: 1px solid var(--aut-teal);
}
.btn-outline:hover {
  background: var(--aut-teal);
  color: var(--aut-white);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--aut-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: var(--header-height);
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}

.nav-main a {
  font-size: 15px;
  font-weight: 500;
  color: var(--aut-slate);
  transition: color .15s ease;
  position: relative;
}

.nav-main a:hover { color: var(--aut-ink); }

.nav-main a.active {
  color: var(--aut-teal);
}

.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--aut-teal);
  border-radius: 2px;
}

.header-cta { font-size: 14px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--aut-ink);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--aut-teal);
  color: var(--aut-white);
  padding: var(--s-9) 0 var(--s-9);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><g fill='none' stroke='white' stroke-opacity='0.08' stroke-width='0.6'><path d='M40 120 L210 60 L320 180 L180 280 L60 240Z'/><path d='M320 180 L460 90 L580 200 L520 320 L380 300Z'/><path d='M580 200 L720 130 L770 280 L640 340Z'/><path d='M180 280 L60 240 L120 420 L260 460 L380 300Z'/><path d='M380 300 L520 320 L560 480 L420 540 L260 460Z'/></g></svg>");
  background-size: 1200px 900px;
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -100px;
  width: 560px;
  height: 560px;
  background-image: url("../img/laurel.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.10;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero h1 {
  color: var(--aut-white);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: var(--s-4) 0 var(--s-5);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  opacity: 0.85;
}

.hero-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: var(--s-6);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.hero .btn-primary {
  background: var(--aut-white);
  color: var(--aut-teal);
  border-color: var(--aut-white);
}
.hero .btn-primary:hover {
  background: var(--aut-teal-50);
  color: var(--aut-teal-700);
}

.hero .btn-secondary {
  background: transparent;
  color: var(--aut-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--aut-white);
}

.cta-microcopy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--s-2);
}

.hero-credibility {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.credibility-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credibility-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--aut-white);
}

.credibility-label {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* DASHBOARD MOCK */
.hero-visual {
  position: relative;
}

.dashboard-mock {
  background: var(--aut-white);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-lg);
  color: var(--aut-ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(-1deg);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--aut-line);
  margin-bottom: var(--s-4);
}

.dashboard-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--aut-graphite);
  letter-spacing: -0.005em;
}

.dashboard-badge {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--aut-teal-50);
  color: var(--aut-teal);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.metric-card {
  background: var(--aut-paper);
  border-radius: var(--r-md);
  padding: var(--s-3);
}

.metric-label {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aut-mute);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--aut-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-change {
  font-size: 11px;
  font-weight: 500;
  color: var(--aut-teal);
  margin-top: 4px;
  letter-spacing: -0.005em;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
  padding: var(--s-3);
  background: var(--aut-paper);
  border-radius: var(--r-md);
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--aut-teal-300), var(--aut-teal));
  border-radius: 2px 2px 0 0;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
section {
  padding: var(--s-9) 0;
}

.section-header {
  margin-bottom: var(--s-7);
}

.section-header.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--s-7);
}

.section-title {
  font-size: var(--t-h2);
  font-weight: 800;
  margin: var(--s-2) 0 var(--s-4);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--aut-slate);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* PROBLEMA */
.problema-section {
  background: var(--aut-paper);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

.problem-card {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: all .2s ease;
}

.problem-card:hover {
  border-color: var(--aut-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.problem-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aut-teal-50);
  color: var(--aut-teal);
  border-radius: var(--r-md);
  font-size: 22px;
  margin-bottom: var(--s-4);
}

.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.problem-card p {
  font-size: 14px;
  color: var(--aut-slate);
  line-height: 1.55;
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  position: relative;
}

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

.step-card {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}

.step-number {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--aut-teal);
  margin-bottom: var(--s-4);
}

.step-number::before {
  content: "0";
}

.step-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--aut-slate);
  font-size: 15px;
  line-height: 1.55;
}

/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.service-card {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
}

.service-card:hover {
  border-color: var(--aut-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aut-teal);
  color: var(--aut-white);
  border-radius: var(--r-md);
  font-size: 22px;
  margin-bottom: var(--s-4);
}

.service-meta {
  display: block;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aut-teal);
  margin-bottom: var(--s-2);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.service-card > p {
  color: var(--aut-slate);
  font-size: 15px;
  margin-bottom: var(--s-4);
  line-height: 1.55;
}

.service-card ul {
  margin-bottom: var(--s-5);
  flex: 1;
}

.service-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--s-2);
  font-size: 14px;
  color: var(--aut-graphite);
  line-height: 1.5;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--aut-teal);
}

.service-result {
  font-size: 14px;
  font-weight: 600;
  color: var(--aut-teal);
  padding-top: var(--s-4);
  border-top: 1px solid var(--aut-line);
  letter-spacing: -0.005em;
}

/* RESULTADOS (antes/después) */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.result-before,
.result-after {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.result-after {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-color: var(--aut-teal);
}

.result-label {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--aut-line);
}

.result-before .result-label { color: var(--aut-error); }
.result-after .result-label {
  color: var(--aut-teal-200);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.result-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
}

.result-before .result-icon {
  color: var(--aut-error);
  background: rgba(184, 50, 62, 0.08);
}

.result-after .result-icon {
  color: var(--aut-teal);
  background: var(--aut-white);
}

.result-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.result-after .result-item p { color: rgba(255, 255, 255, 0.92); }

/* COBERTURA TERRITORIAL */
.cobertura-section {
  background: var(--aut-ink);
  color: var(--aut-white);
  position: relative;
  overflow: hidden;
}

.cobertura-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><g fill='none' stroke='%2300A0A0' stroke-opacity='0.08' stroke-width='0.6'><path d='M40 120 L210 60 L320 180 L180 280 L60 240Z'/><path d='M320 180 L460 90 L580 200 L520 320 L380 300Z'/><path d='M580 200 L720 130 L770 280 L640 340Z'/></g></svg>");
  background-size: 1200px 900px;
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
}

.cobertura-section > .container { position: relative; }

.cobertura-section .section-title,
.cobertura-section h2 {
  color: var(--aut-white);
}

.cobertura-section .section-label {
  color: var(--aut-teal-300);
}

.cobertura-section .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.cobertura-section h2 em {
  font-style: italic;
  font-weight: 500;
  opacity: 0.85;
}

.cobertura-markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-3);
}

.cobertura-market {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color .2s, background .2s;
}

.cobertura-market:hover {
  border-color: var(--aut-teal-300);
  background: rgba(255, 255, 255, 0.06);
}

.cobertura-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: var(--aut-teal);
  color: var(--aut-white);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}

.cobertura-market h3 {
  color: var(--aut-white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}

.cobertura-market p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .cobertura-markets { grid-template-columns: 1fr; }
}

/* WHY GRID */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

.why-card {
  padding: var(--s-5);
  border-top: 2px solid var(--aut-teal);
  background: var(--aut-paper);
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.why-icon {
  font-size: 28px;
  color: var(--aut-teal);
  margin-bottom: var(--s-4);
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.why-card p {
  font-size: 14px;
  color: var(--aut-slate);
  line-height: 1.55;
}

/* MID CTA */
.mid-cta-banner {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.mid-cta-banner h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}

.mid-cta-banner p {
  color: var(--aut-slate);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* INSIGHTS */
.insights-section {
  background: var(--aut-paper);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

.insight-card {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: var(--aut-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.insight-card-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-category {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aut-teal);
  margin-bottom: var(--s-3);
}

.insight-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.insight-card p {
  color: var(--aut-slate);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: var(--s-4);
  flex: 1;
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aut-teal);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: gap .15s ease;
}

.insight-link:hover { gap: 12px; }

.insight-link svg {
  width: 16px;
  height: 16px;
}

.insights-cta {
  text-align: center;
}

/* CTA FINAL */
.cta-final {
  background: var(--aut-ink);
  color: var(--aut-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/laurel.png");
  background-size: 400px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.cta-final > .container { position: relative; }

.cta-final .eyebrow {
  margin-bottom: var(--s-4);
}

.cta-final h2 {
  color: var(--aut-white);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto var(--s-4);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cta-final h2 em {
  font-style: italic;
  font-weight: 500;
  opacity: 0.85;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto var(--s-6);
}

.cta-final .btn-primary {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-color: var(--aut-teal);
}
.cta-final .btn-primary:hover {
  background: var(--aut-teal-500);
  border-color: var(--aut-teal-500);
}

.cta-microcopy-light {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--s-4) !important;
}

/* SUSCRIBE */
.subscribe-block {
  background: var(--aut-teal);
  color: var(--aut-white);
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}

.subscribe-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><g fill='none' stroke='white' stroke-opacity='0.06' stroke-width='0.6'><path d='M40 120 L210 60 L320 180 L180 280 L60 240Z'/><path d='M320 180 L460 90 L580 200 L520 320 L380 300Z'/></g></svg>");
  background-size: 1200px 900px;
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
}

.subscribe-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-inner h2 {
  color: var(--aut-white);
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: var(--s-3);
  letter-spacing: -0.025em;
}

.subscribe-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin: 0 auto var(--s-5);
  max-width: 520px;
}

.subscribe-form {
  display: flex;
  gap: var(--s-2);
  max-width: 480px;
  margin: 0 auto var(--s-3);
}

.subscribe-form input {
  flex: 1;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--aut-white);
  outline: none;
  transition: all .15s ease;
}

.subscribe-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.subscribe-form input:focus {
  border-color: var(--aut-white);
  background: rgba(255, 255, 255, 0.12);
}

.subscribe-form button {
  background: var(--aut-white);
  color: var(--aut-teal);
  border: 1px solid var(--aut-white);
}
.subscribe-form button:hover {
  background: var(--aut-teal-50);
  color: var(--aut-teal-800);
}

.subscribe-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--aut-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-9) 0 var(--s-6);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}

.footer-brand .logo img {
  height: 30px;
  margin-bottom: var(--s-4);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--s-4);
  max-width: 320px;
}

.footer-solvency {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-solvency p { margin-bottom: 2px; max-width: none; }
.footer-company {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
}

.footer-col h4 {
  font-family: var(--font-main);
  color: var(--aut-teal-300);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 0;
  font-size: 14px;
  transition: color .15s ease;
}

.footer-col a:hover { color: var(--aut-white); }

.footer-cta .btn { margin-bottom: var(--s-3); }
.footer-cta p { color: rgba(255, 255, 255, 0.65); font-size: 14px; }

.footer-cta .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--aut-white);
}
.footer-cta .btn-outline:hover {
  background: var(--aut-teal);
  border-color: var(--aut-teal);
  color: var(--aut-white);
}

/* CERTIFICACIONES */
.footer-certifications {
  padding: var(--s-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--s-5);
}

.certifications-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.certifications-inner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 380px;
  margin: 0;
}

.certifications-logos {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.cert-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 78px;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cert-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cert-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cert-logo--wide { width: 110px; }

.footer-bottom {
  padding-top: var(--s-4);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p { margin: 0; max-width: none; }

/* ============================================================
   PÁGINAS DE CONTENIDO (article, insights, contacto, legal)
   ============================================================ */
.page-hero {
  background: var(--aut-teal);
  color: var(--aut-white);
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><g fill='none' stroke='white' stroke-opacity='0.08' stroke-width='0.6'><path d='M40 120 L210 60 L320 180 L180 280 L60 240Z'/><path d='M320 180 L460 90 L580 200 L520 320 L380 300Z'/><path d='M580 200 L720 130 L770 280 L640 340Z'/></g></svg>");
  background-size: 1200px 900px;
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 400px;
  height: 400px;
  background-image: url("../img/laurel.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.10;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero .eyebrow,
.page-hero .section-label {
  color: var(--aut-teal-200);
}

.page-hero h1 {
  color: var(--aut-white);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 760px;
  margin-bottom: var(--s-4);
}

.page-hero h1 em { font-style: italic; font-weight: 500; opacity: 0.85; }

.page-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  max-width: 640px;
  line-height: 1.55;
}

/* PROSE / artículos */
.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--aut-graphite);
}

.prose h2 {
  font-size: 28px;
  font-weight: 800;
  margin: var(--s-7) 0 var(--s-4);
  letter-spacing: -0.022em;
}

.prose h3 {
  font-size: 21px;
  font-weight: 700;
  margin: var(--s-6) 0 var(--s-3);
  letter-spacing: -0.01em;
}

.prose p { margin-bottom: var(--s-4); max-width: none; }

.prose ul, .prose ol {
  margin: var(--s-3) 0 var(--s-5);
  padding-left: 0;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--s-2);
  list-style: none;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 2px;
  background: var(--aut-teal);
}

.prose ol { counter-reset: pi; }
.prose ol li {
  counter-increment: pi;
}
.prose ol li::before {
  content: counter(pi, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--aut-teal);
  letter-spacing: 0.1em;
}

.prose a {
  color: var(--aut-teal);
  border-bottom: 1px solid var(--aut-teal-200);
  transition: all .15s ease;
}

.prose a:hover {
  border-bottom-color: var(--aut-teal);
}

.prose blockquote {
  border-left: 3px solid var(--aut-teal);
  padding: var(--s-3) var(--s-5);
  background: var(--aut-teal-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--s-5) 0;
  font-size: 17px;
}

.prose blockquote p { margin: 0; }

.prose strong { color: var(--aut-ink); font-weight: 700; }

/* CALLOUT */
.callout {
  border-left: 3px solid var(--aut-teal);
  padding: var(--s-4) var(--s-5);
  background: var(--aut-teal-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--s-5) 0;
  max-width: 780px;
}

.callout .label {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aut-teal);
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}

.callout p { margin: 0; }

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

.contact-form {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}

.contact-form label {
  display: block;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aut-slate);
  margin-bottom: var(--s-2);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--aut-line);
  border-radius: var(--r-md);
  background: var(--aut-white);
  color: var(--aut-ink);
  margin-bottom: var(--s-4);
  outline: none;
  transition: all .15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--aut-teal);
  box-shadow: 0 0 0 3px var(--aut-teal-100);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  background: var(--aut-paper);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  border: 1px solid var(--aut-line);
}

.contact-info h3 {
  font-size: 17px;
  margin-bottom: var(--s-4);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--aut-line-2);
}

.contact-info-item:last-child { border-bottom: 0; }

.contact-info-item .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aut-teal-50);
  color: var(--aut-teal);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.contact-info-item p { margin: 0; font-size: 14px; color: var(--aut-graphite); }
.contact-info-item .label {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aut-mute);
  display: block;
  margin-bottom: 2px;
}

/* INSIGHTS LIST */
.insights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

/* PANEL (re-utilizable) */
.panel {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.panel.dark {
  background: var(--aut-ink);
  color: var(--aut-white);
  border-color: var(--aut-ink);
}

.panel.teal {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-color: var(--aut-teal);
}

.panel.paper { background: var(--aut-paper); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid,
  .steps-grid,
  .insights-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .insights-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  section { padding: var(--s-8) 0; }

  .header-cta { display: none; }
  .header-cta-mobile { display: inline-flex !important; margin-top: var(--s-3); }

  .nav-toggle { display: flex; }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--s-2);
    background: var(--aut-white);
    border-bottom: 1px solid var(--aut-line);
    padding: var(--s-4) var(--s-6);
    box-shadow: var(--shadow-md);
  }
  .nav-main.open { display: flex; }
  .nav-main a {
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--aut-line-2);
  }
  .nav-main a:last-of-type { border-bottom: 0; }
  .nav-main a.active::after { display: none; }

  .hero { padding: var(--s-8) 0; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); }

  .hero-credibility {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .problems-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .mid-cta-banner { flex-direction: column; align-items: flex-start; padding: var(--s-5); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }

  .certifications-inner { flex-direction: column; align-items: flex-start; }
  .certifications-logos { gap: var(--s-3); }

  .subscribe-form {
    flex-direction: column;
  }

  .page-hero h1 { font-size: clamp(28px, 6vw, 40px); }
  .page-hero .lead { font-size: 17px; }

  .dashboard-mock { transform: none; }
}

/* ============================================================
   PÁGINA DE CONTACTO
   ============================================================ */
.contact-page {
  padding: var(--s-9) 0;
  background: var(--aut-paper-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
}

.contact-page .contact-info {
  background: transparent;
  border: 0;
  padding: 0;
}

.contact-page .contact-info h1,
.contact-page .contact-info h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: var(--s-3) 0 var(--s-4);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-page .contact-info > p {
  color: var(--aut-slate);
  font-size: 17px;
  margin-bottom: var(--s-6);
  line-height: 1.55;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.contact-benefit {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.contact-benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aut-teal-50);
  color: var(--aut-teal);
  border-radius: var(--r-md);
  font-size: 20px;
}

.contact-benefit h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--aut-ink);
  letter-spacing: -0.005em;
}

.contact-benefit p {
  font-size: 14px;
  color: var(--aut-slate);
  line-height: 1.5;
  margin: 0;
}

.trust-signals {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-5);
  border-top: 1px solid var(--aut-line);
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  color: var(--aut-slate);
}

.trust-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aut-teal);
  color: var(--aut-white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-form-wrapper {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.form-group {
  margin-bottom: var(--s-4);
}

.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aut-slate);
  margin-bottom: var(--s-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--aut-line);
  border-radius: var(--r-md);
  background: var(--aut-white);
  color: var(--aut-ink);
  outline: none;
  transition: all .15s ease;
  font-weight: 400;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--aut-mute);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--aut-teal);
  box-shadow: 0 0 0 3px var(--aut-teal-100);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.checkbox-group {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 13px;
  color: var(--aut-slate);
  line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--aut-teal);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--aut-slate);
  margin: 0;
}

.checkbox-group label a {
  color: var(--aut-teal);
  border-bottom: 1px solid var(--aut-teal-200);
}

.form-submit {
  margin-top: var(--s-5);
}

.form-submit .btn { width: 100%; justify-content: center; }

.form-status {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: var(--s-4);
  line-height: 1.5;
}

.form-status.is-success {
  background: var(--aut-teal-50);
  color: var(--aut-teal-800);
  border: 1px solid var(--aut-teal-200);
}

.form-status.is-error {
  background: rgba(184, 50, 62, 0.08);
  color: var(--aut-error);
  border: 1px solid rgba(184, 50, 62, 0.25);
}

/* ============================================================
   MODAL (feedback de envío)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--aut-white);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6) var(--s-6);
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-4);
  background: var(--aut-teal-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aut-teal);
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

.modal-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}

.modal-card p {
  font-size: 16px;
  color: var(--aut-slate);
  margin: 0 auto var(--s-5);
  max-width: 360px;
  line-height: 1.55;
}

.modal-card .btn {
  width: 100%;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--aut-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background .15s;
}

.modal-close:hover {
  background: var(--aut-paper);
  color: var(--aut-ink);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* ============================================================
   PÁGINA DE ARTÍCULO
   ============================================================ */
.breadcrumbs {
  padding: var(--s-5) 0 var(--s-3);
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aut-mute);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--aut-slate);
  transition: color .15s;
}
.breadcrumbs a:hover { color: var(--aut-teal); }
.breadcrumbs span:not(:last-child) { color: var(--aut-line); }

.article-hero {
  padding: var(--s-6) 0 var(--s-7);
  border-bottom: 1px solid var(--aut-line);
  margin-bottom: var(--s-8);
}

.article-hero .insight-category {
  margin-bottom: var(--s-4);
  display: block;
}

.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: var(--s-4);
  max-width: 880px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-subtitle {
  font-size: 19px;
  color: var(--aut-slate);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: var(--s-5);
}

.article-meta {
  display: flex;
  gap: var(--s-4);
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aut-mute);
  padding-top: var(--s-3);
  border-top: 1px solid var(--aut-line-2);
}

.article-meta span:not(:last-child) {
  padding-right: var(--s-4);
  border-right: 1px solid var(--aut-line);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s-8);
  align-items: start;
  padding-bottom: var(--s-9);
}

.article-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--aut-graphite);
  max-width: 720px;
}

.article-body p {
  margin-bottom: var(--s-4);
  max-width: none;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 800;
  margin: var(--s-7) 0 var(--s-4);
  letter-spacing: -0.022em;
  color: var(--aut-ink);
}

.article-body h3 {
  font-size: 21px;
  font-weight: 700;
  margin: var(--s-6) 0 var(--s-3);
  letter-spacing: -0.01em;
  color: var(--aut-ink);
}

.article-body strong { color: var(--aut-ink); font-weight: 700; }

.article-body ul,
.article-body ol {
  margin: var(--s-3) 0 var(--s-5);
  padding-left: 0;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--s-3);
  list-style: none;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 2px;
  background: var(--aut-teal);
}

.article-body ol { counter-reset: pi; }
.article-body ol li { counter-increment: pi; }
.article-body ol li::before {
  content: counter(pi, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--aut-teal);
  letter-spacing: 0.05em;
}

.article-body a {
  color: var(--aut-teal);
  border-bottom: 1px solid var(--aut-teal-200);
}
.article-body a:hover { border-bottom-color: var(--aut-teal); }

.highlight-box {
  background: var(--aut-teal-50);
  border: 1px solid var(--aut-teal-200);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0;
}

.highlight-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--aut-teal-800);
  margin-bottom: var(--s-3);
  letter-spacing: -0.005em;
}

.highlight-box ul { margin: 0; padding-left: 0; }
.highlight-box ul li {
  padding-left: 22px;
  margin-bottom: var(--s-2);
}
.highlight-box ul li::before {
  background: var(--aut-teal);
  top: 11px;
}

.article-cta-inline {
  background: var(--aut-ink);
  color: var(--aut-white);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  margin: var(--s-6) 0;
  text-align: center;
}

.article-cta-inline p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: var(--s-4);
  max-width: none;
}

.article-cta-inline .btn-primary {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-color: var(--aut-teal);
}
.article-cta-inline .btn-primary:hover {
  background: var(--aut-teal-500);
  border-color: var(--aut-teal-500);
}

.article-cta-inline .cta-microcopy-light {
  color: rgba(255, 255, 255, 0.55);
}

/* SIDEBAR */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--s-4));
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.sidebar-block {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.sidebar-block h4 {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aut-teal);
  margin-bottom: var(--s-3);
}

.sidebar-block ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.sidebar-block ul li {
  font-size: 14px;
  color: var(--aut-graphite);
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}

.sidebar-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--aut-teal);
}

.sidebar-cta {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.sidebar-cta h4 {
  color: var(--aut-white);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--s-4);
  max-width: none;
}

.sidebar-cta .btn-primary {
  background: var(--aut-white);
  color: var(--aut-teal);
  border-color: var(--aut-white);
}
.sidebar-cta .btn-primary:hover {
  background: var(--aut-teal-50);
  color: var(--aut-teal-800);
}

.related-articles {
  background: var(--aut-paper);
  padding: var(--s-8) 0;
}

.related-articles h2 {
  font-size: var(--t-h2);
  margin-bottom: var(--s-6);
  text-align: center;
}

/* ============================================================
   PÁGINA DE INSIGHTS
   ============================================================ */
.insights-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) 0;
}

.insights-sidebar-cta {
  background: var(--aut-ink);
  color: var(--aut-white);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  margin: var(--s-6) 0 var(--s-9);
  text-align: center;
}

.insights-sidebar-cta h3 {
  color: var(--aut-white);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}

.insights-sidebar-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto var(--s-5);
}

.insights-sidebar-cta .btn-primary {
  background: var(--aut-teal);
  color: var(--aut-white);
  border-color: var(--aut-teal);
}
.insights-sidebar-cta .btn-primary:hover {
  background: var(--aut-teal-500);
  border-color: var(--aut-teal-500);
}

/* ============================================================
   PÁGINA I+D+i
   ============================================================ */
.idi-projects {
  padding: var(--s-9) 0;
}

.idi-project {
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  margin-bottom: var(--s-6);
  position: relative;
  scroll-margin-top: 100px;
  transition: border-color .2s;
}

.idi-project:hover {
  border-color: var(--aut-teal-300);
}

.idi-project::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s-7);
  bottom: var(--s-7);
  width: 3px;
  background: var(--aut-teal);
  border-radius: 0 2px 2px 0;
}

.idi-project-content { padding-left: var(--s-3); }

.idi-project .section-label { color: var(--aut-teal); }

.idi-project h2 {
  font-size: 28px;
  font-weight: 800;
  margin: var(--s-3) 0 var(--s-4);
  letter-spacing: -0.022em;
}

.idi-project p {
  color: var(--aut-graphite);
  margin-bottom: var(--s-3);
  line-height: 1.65;
}

.idi-project p strong { color: var(--aut-ink); }

.idi-features,
.idi-partners {
  background: var(--aut-paper);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin: var(--s-5) 0;
}

.idi-features h3,
.idi-partners h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--aut-ink);
  letter-spacing: -0.005em;
}

.idi-features h4 {
  font-size: 14px;
  font-weight: 700;
  margin: var(--s-3) 0 var(--s-2);
  color: var(--aut-teal);
}

.idi-features ul,
.idi-partners ul {
  padding-left: 0;
}

.idi-features ul li,
.idi-partners ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--s-2);
  font-size: 15px;
  color: var(--aut-graphite);
  line-height: 1.5;
}

.idi-features ul li::before,
.idi-partners ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 2px;
  background: var(--aut-teal);
}

.idi-funding {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
  padding: var(--s-4) 0;
  margin-top: var(--s-4);
  border-top: 1px solid var(--aut-line);
}

.idi-funding img {
  height: 36px;
  max-width: 180px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity .2s, filter .2s;
}

.idi-funding img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.idi-funding-text {
  font-size: 13px;
  color: var(--aut-mute);
  font-style: italic;
  margin: 0;
  width: 100%;
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-content {
  padding: var(--s-9) 0;
  background: var(--aut-paper-2);
}

.legal-content .container { display: flex; justify-content: center; }

.legal-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--aut-graphite);
  background: var(--aut-white);
  border: 1px solid var(--aut-line);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-8);
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: var(--s-6) 0 var(--s-3);
  letter-spacing: -0.01em;
  color: var(--aut-ink);
  padding-top: var(--s-5);
  border-top: 1px solid var(--aut-line-2);
}

.legal-body h2:first-of-type { padding-top: 0; border-top: 0; margin-top: var(--s-3); }

.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: var(--s-5) 0 var(--s-2);
  letter-spacing: -0.005em;
  color: var(--aut-ink);
}

.legal-body p { margin-bottom: var(--s-3); max-width: none; }

.legal-body ul,
.legal-body ol {
  margin: var(--s-3) 0;
  padding-left: var(--s-5);
}

.legal-body ul li,
.legal-body ol li {
  margin-bottom: var(--s-2);
  list-style: disc;
}

.legal-body ol li { list-style: decimal; }

.legal-body strong { color: var(--aut-ink); font-weight: 600; }

.legal-body a {
  color: var(--aut-teal);
  border-bottom: 1px solid var(--aut-teal-200);
}
.legal-body a:hover { border-bottom-color: var(--aut-teal); }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0;
  font-size: 14px;
}

.legal-body table th,
.legal-body table td {
  text-align: left;
  padding: var(--s-3);
  border-bottom: 1px solid var(--aut-line);
}

.legal-body table th {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aut-slate);
  font-weight: 500;
  background: var(--aut-paper);
}

.legal-meta {
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aut-mute);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--aut-line);
  margin-bottom: var(--s-5);
}

/* ============================================================
   RESPONSIVE para páginas internas
   ============================================================ */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--s-7); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .insights-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .insights-page-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: var(--s-5); }
  .idi-project { padding: var(--s-5); }
  .idi-project h2 { font-size: 22px; }
  .legal-body { padding: var(--s-5); }
  .article-body { font-size: 16px; }
  .article-meta {
    flex-wrap: wrap;
    gap: var(--s-2);
  }
  .article-meta span:not(:last-child) {
    padding-right: var(--s-2);
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .subscribe-block, .cta-final,
  .article-sidebar, .article-cta-inline, .related-articles,
  .insights-sidebar-cta { display: none; }
  body { color: #000; background: #fff; }
  .article-layout { grid-template-columns: 1fr; }
}
