/* =========================================================
   Peritaje Tecnológico — Landing
   Estética: moderna, sobria, tecnológica.
   Mobile-first · Accesible · Performance
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-strong: #1d4ed8;
  --accent: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 6px 20px -8px rgba(15,23,42,.15), 0 4px 10px -6px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1180px;
  --header-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 110px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(37,99,235,.08);
  padding: 6px 12px;
  border-radius: 999px;
}

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 18px 0 14px;
}
.section-head p { color: var(--text-2); font-size: 17px; }

.text-grad {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 10px 14px;
  border-radius: 8px; z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37,99,235,.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(37,99,235,.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-link { color: var(--brand); padding: 14px 0; }
.btn-link:hover { color: var(--brand-strong); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* Logo en blanco y negro (escala de grises) */
  filter: grayscale(100%);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.logo-text small { font-size: 11px; color: var(--text-3); }

.nav-toggle {
  width: 40px; height: 40px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.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); }

.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff;
  padding: 24px 20px 32px;
  flex-direction: column;
  display: none;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.primary-nav.is-open { display: flex; }
.primary-nav ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.primary-nav ul a {
  display: block; padding: 14px 12px;
  border-radius: var(--radius-sm); font-weight: 500;
}
.primary-nav ul a:hover { background: var(--surface-2); }

.lang-switch {
  display: inline-flex; gap: 4px;
  background: var(--surface-3);
  border-radius: 999px; padding: 4px;
  margin: 0 auto 16px;
}
.lang-switch button,
.lang-switch a {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  border-radius: 999px; color: var(--text-2);
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang-switch a:hover,
.lang-switch button:hover {
  color: var(--text);
}
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-pressed="true"] {
  background: #fff; color: var(--text);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row;
    padding: 0; background: transparent; border: 0;
    align-items: center; gap: 8px; overflow: visible;
  }
  .primary-nav ul {
    flex-direction: row; gap: 4px; margin: 0;
  }
  .primary-nav ul a { padding: 10px 14px; font-size: 14.5px; }
  .lang-switch { margin: 0 8px 0 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 70px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: #e2e8f0;
}
@media (min-width: 768px) { .hero { padding: 130px 0 110px; } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(80px); opacity: .35;
}
.glow-1 { background: #2563eb; top: -200px; left: -100px; }
.glow-2 { background: #06b6d4; bottom: -250px; right: -150px; opacity: .25; }

.hero-inner { position: relative; max-width: 880px; text-align: center; }
.hero .eyebrow {
  background: rgba(37,99,235,.15);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.3);
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  margin: 22px 0 22px;
  color: #f8fafc;
}
.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #cbd5e1; max-width: 700px; margin: 0 auto 36px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 48px;
}
.hero-cta .btn-ghost {
  background: rgba(255,255,255,.04);
  color: #f1f5f9;
  border-color: rgba(255,255,255,.18);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
}

.trust-bar {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px; margin: 0 auto;
  padding: 22px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.trust-bar li {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  font-size: 12.5px; color: #94a3b8;
}
.trust-num {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 2px;
}
@media (min-width: 640px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Services ---------- */
.section-services { background: var(--surface); }
.grid-services {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }

.card-service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card-service:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.4);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(6,182,212,.08));
  color: var(--brand);
  border-radius: 12px; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-service h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.card-service p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Expert ---------- */
.section-expert { background: var(--surface-2); }
.expert-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .expert-grid { grid-template-columns: 1.3fr 1fr; gap: 60px; }
}
.expert-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  margin: 16px 0 18px;
}
.expert-text .lead { color: var(--text-2); font-size: 17px; margin-bottom: 24px; }
.expert-points { display: grid; gap: 14px; margin-bottom: 28px; }
.expert-points li {
  padding-left: 28px; position: relative;
  color: var(--text-2); font-size: 15px;
}
.expert-points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 4px; transform: rotate(45deg);
}
.expert-points li strong { color: var(--text); display: block; margin-bottom: 2px; }
.expert-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Tarjeta de la perito (foto + figcaption) */
.expert-card {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: var(--radius);
}

/* Pila piramidal: foto arriba, dos logos debajo */
.expert-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


.expert-figure {
  margin: 0;
  position: relative;
  display: block;
  width: 60%;                    /* 10% más pequeña que el ancho total */
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}


.expert-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
}

.expert-figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 24px 22px;
  background: linear-gradient(to top, rgba(11,18,32,.92) 60%, transparent 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  color: #f1f5f9;
}

.expert-figure figcaption strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.expert-figure figcaption span {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.expert-figure figcaption span:first-of-type {
  color: #60a5fa;
  font-weight: 500;
  font-size: 14px;
}

.expert-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 90%;                    /* mismo ancho de referencia que la foto */
}

.expert-logo {
  width: calc((100% - 20px) / 3); /* ~1/3 del ancho de la foto cada uno */
  aspect-ratio: 1 / 1;            /* cuadrados */
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

/* ---------- Why ---------- */
.section-why { background: var(--surface); }
.grid-why {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-why { grid-template-columns: repeat(3, 1fr); } }
.why-item {
  padding: 28px 4px;
  border-top: 1px solid var(--line);
  position: relative;
}
.why-num {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand); margin-bottom: 10px;
}
.why-item h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.why-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Cases ---------- */
.section-cases { background: var(--surface-2); }
.grid-cases {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-cases { grid-template-columns: repeat(4, 1fr); } }
.case-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .2s var(--ease), border-color .2s;
}
.case-box:hover { transform: translateY(-2px); border-color: rgba(37,99,235,.35); }
.case-box h3 {
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px;
  color: var(--brand);
}
.case-box p { color: var(--text-2); font-size: 14px; }

/* ---------- Process ---------- */
.section-process { background: var(--surface); }
.process-list {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 740px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .process-list { grid-template-columns: repeat(3, 1fr); } }
.process-list li {
  padding: 28px 24px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.process-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.process-list p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Area ---------- */
.section-area { background: var(--surface-2); }
.area-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .area-grid { grid-template-columns: 1.3fr 1fr; gap: 60px; }
}
.area-grid h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  margin: 14px 0 16px;
}
.area-grid p { color: var(--text-2); margin-bottom: 14px; }
.area-list { margin-top: 18px; display: grid; gap: 10px; }
.area-list li {
  padding-left: 26px; position: relative; color: var(--text-2);
}
.area-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}
.area-card {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  color: #f1f5f9;
  border-radius: 20px;
  padding: 50px 32px;
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 8px;
}
.area-card strong {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1;
}
.area-card span { color: #94a3b8; font-size: 14px; position: relative; z-index: 1; }
.area-pulse {
  position: absolute; left: 50%; top: 54%;
  width: 12px; height: 12px; background: #22d3ee;
  border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(34,211,238,.6);
  animation: pulse 2.4s infinite;
  z-index: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.5); }
  70% { box-shadow: 0 0 0 80px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

/* ---------- FAQ ---------- */
.section-faq { background: var(--surface); }
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 4px;
  transition: border-color .2s, background .2s;
}
.faq-item[open] { border-color: rgba(37,99,235,.4); background: #fff; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--brand); }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-2); font-size: 15px;
}

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(180deg, var(--surface-2) 0%, #e0e7ff 100%);
}
.contact-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
}
.contact-info h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  margin: 16px 0 16px;
}
.contact-info .lead { color: var(--text-2); margin-bottom: 28px; font-size: 17px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--brand); }
.ci-icon { font-size: 20px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 22px;
}
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0; border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.row {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }
.checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-2); margin: 4px 0 18px;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--brand); }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 22px; }
.form-msg.is-ok { color: var(--success); }
.form-msg.is-err { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: #cbd5e1;
  padding: 70px 0 28px;
}
.footer-inner {
  display: grid; gap: 40px;
}
.footer-brand {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 360px;
}
.footer-brand strong { color: #f1f5f9; font-size: 17px; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 13.5px; color: #94a3b8; line-height: 1.55; }

.footer-nav {
  display: grid; gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .footer-nav { grid-template-columns: repeat(4, 1fr); } }
.footer-nav h4 {
  font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; color: #f1f5f9; margin-bottom: 14px;
  font-weight: 600;
}
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { color: #94a3b8; font-size: 14px; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(148,163,184,.15);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 16px;
}
.copyright { font-size: 13px; color: #64748b; }
.ntropia-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 999px;
  font-size: 12px; color: #94a3b8;
  transition: background .2s, border-color .2s;
}
.ntropia-link:hover { background: rgba(255,255,255,.08); border-color: rgba(148,163,184,.3); }
.ntropia-link img { height: 20px; width: auto; }

/* ---------- Animations on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Modal trayectoria profesional
   ========================================================= */
.journey-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.journey-modal[hidden] { display: none; }
.journey-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.journey-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(15,23,42,.97) 0%, rgba(11,18,32,.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.journey-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
  transform: translateY(30px) scale(.98);
  transition: transform .5s var(--ease);
}
.journey-modal.is-open .journey-container {
  transform: translateY(0) scale(1);
}

/* Capa de partículas/grid de fondo */
.journey-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.journey-header {
  position: relative;
  z-index: 2;
  padding: 36px 32px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid rgba(148,163,184,.12);
  flex-shrink: 0;
}
.journey-header .eyebrow {
  background: rgba(96,165,250,.12);
  color: #93c5fd;
  border: 1px solid rgba(96,165,250,.25);
}
.journey-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 14px 0 10px;
  color: #f8fafc;
}
.journey-header p {
  color: #94a3b8;
  font-size: 15px;
  max-width: 600px;
}

.journey-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.2);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
}
.journey-close:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(148,163,184,.4);
  transform: rotate(90deg);
}
.journey-close svg { width: 20px; height: 20px; }

.journey-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 50px 32px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(96,165,250,.3) transparent;
}
.journey-scroll::-webkit-scrollbar { width: 8px; }
.journey-scroll::-webkit-scrollbar-thumb {
  background: rgba(96,165,250,.25);
  border-radius: 4px;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Línea central */
.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(96,165,250,0) 0%,
    rgba(96,165,250,.5) 8%,
    rgba(34,211,238,.5) 92%,
    rgba(34,211,238,0) 100%
  );
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 78px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.timeline-item.is-in {
  opacity: 1;
  transform: translateX(0);
}
.timeline-item:last-child { padding-bottom: 12px; }

/* Stagger automático */
.timeline-item:nth-child(1).is-in { transition-delay: .05s; }
.timeline-item:nth-child(2).is-in { transition-delay: .15s; }
.timeline-item:nth-child(3).is-in { transition-delay: .25s; }
.timeline-item:nth-child(4).is-in { transition-delay: .35s; }
.timeline-item:nth-child(5).is-in { transition-delay: .45s; }
.timeline-item:nth-child(6).is-in { transition-delay: .55s; }
.timeline-item:nth-child(7).is-in { transition-delay: .65s; }

/* Punto del timeline */
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(6,182,212,.2));
  border: 2px solid rgba(96,165,250,.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #93c5fd;
  z-index: 2;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.timeline-dot span { line-height: 1; }

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  border-color: rgba(34,211,238,.8);
  box-shadow: 0 0 0 8px rgba(34,211,238,.08), 0 0 24px rgba(34,211,238,.3);
}

/* Tarjeta */
.timeline-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.timeline-card::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-left: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(148,163,184,.12);
  transform: rotate(45deg);
  border-radius: 0 0 0 4px;
}
.timeline-item:hover .timeline-card {
  border-color: rgba(96,165,250,.35);
  transform: translateX(4px);
  background: linear-gradient(135deg, rgba(96,165,250,.06) 0%, rgba(6,182,212,.03) 100%);
}

.timeline-year {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 8px;
}
.timeline-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f1f5f9;
  margin-bottom: 8px;
}
.timeline-card p {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.55;
}

/* Hito "Actualidad" destacado */
.timeline-card-now {
  background: linear-gradient(135deg, rgba(37,99,235,.18) 0%, rgba(6,182,212,.1) 100%);
  border-color: rgba(96,165,250,.4);
}
.timeline-card-now::before {
  background: rgba(37,99,235,.18);
  border-color: rgba(96,165,250,.4);
}
.timeline-item:last-child .timeline-dot {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: rgba(34,211,238,.6);
  color: #fff;
}
.timeline-item:last-child .timeline-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(34,211,238,.4);
  animation: pulseRing 2.4s infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.journey-footer {
  position: relative;
  z-index: 2;
  padding: 22px 32px 28px;
  border-top: 1px solid rgba(148,163,184,.12);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* Bloqueo de scroll cuerpo */
body.has-journey-open { overflow: hidden; }

/* Mobile */
@media (max-width: 640px) {
  .journey-header { padding: 24px 20px 16px; }
  .journey-scroll { padding: 32px 18px 28px; }
  .journey-footer { padding: 18px 20px 24px; }
  .timeline::before { left: 22px; }
  .timeline-item { padding-left: 64px; padding-bottom: 28px; }
  .timeline-dot {
    width: 46px;
    height: 46px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item { opacity: 1; transform: none; }
  .timeline-item:last-child .timeline-dot::after { animation: none; }
}
/* ---------- Honeypot anti-spam (oculto visualmente y a lectores) ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
