:root {
  color-scheme: light only;
  --bg: #ffffff;
  --surface: #f8f9fb;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --ink: #09090b;
  --ink-muted: #52525b;
  --ink-subtle: #63636b;
  --dock-bg: #09090b;
  --dock-text: #d4d4d8;
  --royal: #1d4ed8;
  --royal-dark: #1e3a8a;
  --royal-soft: #eff6ff;
  --royal-border: #bfdbfe;
  --royal-highlight: rgba(29, 78, 216, 0.22);
  --mint: var(--royal-highlight);
  --sky: var(--royal-highlight);
  --peach: var(--royal-highlight);
  --lavender: var(--royal-highlight);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 12px 32px rgba(17, 17, 17, 0.08);
  --shadow-dock: 0 16px 40px rgba(0, 0, 0, 0.22);
  --max-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.eco-node {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header minimalista sin botón hamburguesa */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.65);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Resaltador pastel detrás de títulos */
.highlight {
  --hl-color: var(--mint);
  display: inline;
  background-image: linear-gradient(
    transparent 54%,
    var(--hl-color) 54%,
    var(--hl-color) 92%,
    transparent 92%
  );
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.highlight--mint {
  --hl-color: var(--mint);
}

.highlight--sky {
  --hl-color: var(--sky);
}

.highlight--peach {
  --hl-color: var(--peach);
}

.highlight--lavender {
  --hl-color: var(--lavender);
}

/* Hero dinámico 100svh (con fallback 100vh para WebViews antiguos) */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 24px
    calc(124px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(15, 23, 42, 0.065) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-stage {
  width: 100%;
  max-width: 1280px;
  margin: auto 0;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}

.hero-eyebrow--status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Ecosistema flotante de medallones de integraciones y tecnologías */
.hero-ecosystem {
  position: absolute;
  inset: 0;
  max-width: 1360px;
  margin: 0 auto;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.hero-ecosystem.is-visible {
  opacity: 1;
  visibility: visible;
}

.eco-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eco-links path {
  fill: none;
  stroke-width: 1.35;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
}

.eco-node {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
  cursor: default;
  opacity: 0;
  will-change: transform;
  transition: z-index 0s step-end 0.2s;
  animation:
    ecoFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--pop-delay, 0.08s) forwards,
    ecoFloat var(--float-dur, 6.2s) ease-in-out var(--float-delay, 0s) infinite alternate;
}

.eco-node--lg {
  width: 74px;
  height: 74px;
  margin-left: -37px;
  margin-top: -37px;
}

.eco-node--md {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
}

.eco-node--sm {
  width: 58px;
  height: 58px;
  margin-left: -29px;
  margin-top: -29px;
}

.eco-medallion {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border);
  box-shadow: 0 10px 28px rgba(9, 9, 11, 0.07), 0 2px 6px rgba(9, 9, 11, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.eco-node--lg .eco-medallion {
  padding: 15px;
}

.eco-node--md .eco-medallion {
  padding: 13px;
}

.eco-node--sm .eco-medallion {
  padding: 12px;
}

.eco-node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.eco-node:hover,
.eco-node:focus-visible,
.eco-node.is-tapped {
  z-index: 30;
  transition: z-index 0s;
  outline: none;
}

.eco-node:hover .eco-medallion,
.eco-node:focus-visible .eco-medallion,
.eco-node.is-tapped .eco-medallion {
  transform: scale(1.12);
  border-color: var(--royal-border);
  box-shadow: 0 16px 36px rgba(9, 9, 11, 0.12), 0 4px 10px rgba(9, 9, 11, 0.05);
}

.eco-node:focus-visible .eco-medallion {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.eco-node::after {
  content: attr(data-label);
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.16);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.eco-node:hover::after,
.eco-node:focus-visible::after,
.eco-node.is-tapped::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Posiciones equilibradas fuera de la zona central de texto (escritorio >= 1080px) */
.eco-pos-l1 { top: 22%; left: 7.5%; }
.eco-pos-l2 { top: 39%; left: 16%; }
.eco-pos-l3 { top: 55%; left: 7%; }
.eco-pos-l4 { top: 70%; left: 17%; }
.eco-pos-l5 { top: 24%; left: 20.5%; }
.eco-pos-l6 { top: 79%; left: 7.5%; }

.eco-pos-r1 { top: 22%; left: 92.5%; }
.eco-pos-r2 { top: 39%; left: 84%; }
.eco-pos-r3 { top: 55%; left: 93%; }
.eco-pos-r4 { top: 24%; left: 79.5%; }
.eco-pos-r5 { top: 70%; left: 83%; }
.eco-pos-r6 { top: 79%; left: 92.5%; }

@keyframes ecoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ecoFloat {
  from {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: translate3d(0, -7px, 0);
  }
}

.hero-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  pointer-events: auto;
}

.hero-panel--wide {
  max-width: 1240px;
}

.hero-panel.is-active {
  display: flex;
  animation: heroFadeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero.is-revealing .hero-stage {
  animation: heroReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero.is-revealing [data-hero-scene].is-visible {
  animation: heroEcoReveal 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Escenas periféricas para Mi Carrera, Clientes y Contacto */
.hero-scene {
  position: absolute;
  inset: 0;
  max-width: 1360px;
  margin: 0 auto;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.34s ease, visibility 0.34s ease;
}

.hero-scene.is-visible {
  opacity: 1;
  visibility: visible;
}

.career-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ecosystem:not(.is-visible) .eco-node,
.hero-scene:not(.is-visible) .eco-node {
  pointer-events: none;
}

/* Escena Mi Carrera: línea de tiempo vertical izquierda */
.career-spine {
  position: absolute;
  left: 3.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 265px;
  margin: 0;
  padding: 12px 0 12px 28px;
  list-style: none;
  border-left: 2px dashed rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.spine-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
}

.hero-scene.is-visible .spine-node {
  animation: ecoFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--pop-delay, 0.08s) forwards;
}

.spine-node::before {
  content: '';
  position: absolute;
  left: -34.5px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(15, 23, 42, 0.28);
}

.spine-node--active::before {
  background: var(--royal);
  border-color: var(--royal);
  box-shadow: 0 0 0 5px rgba(219, 234, 254, 0.95);
}

.spine-year {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.spine-company {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.spine-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.25;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

.status-dot--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.45);
  animation: statusPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  70% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroEcoReveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 630px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--ink-muted);
  line-height: 1.7;
}

.hero-tags {
  margin: 18px 0 0;
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* Showcase interactivo de Clientes en Hero */
.clients-showcase {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  text-align: left;
}

.showcase-left .hero-title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.showcase-lead {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.showcase-item {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.showcase-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.showcase-item:hover {
  background: rgba(219, 234, 254, 0.45);
}

.showcase-item.is-active {
  background: rgba(219, 234, 254, 0.72);
  padding-left: 16px;
}

.showcase-item.is-active::before {
  background: var(--royal);
}

.showcase-item.is-active .showcase-num {
  color: var(--royal);
}

.showcase-num {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.showcase-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.25;
  transition: color 0.18s ease;
}

.showcase-short {
  display: none;
}

.showcase-break {
  display: none;
}

.showcase-item.is-active .showcase-name,
.showcase-item:hover .showcase-name {
  color: var(--ink);
}

.showcase-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-subtle);
  white-space: nowrap;
}

.showcase-browser {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.1),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.showcase-chrome {
  height: 36px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: relative;
}

.chrome-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.showcase-domain {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-subtle);
  white-space: nowrap;
}

.showcase-viewport {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.showcase-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.22s ease;
}

.showcase-viewport img.is-swapping {
  opacity: 0.35;
}

.showcase-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
}

.showcase-meta {
  min-width: 0;
}

.showcase-sector {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  margin-bottom: 2px;
}

.showcase-summary {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.showcase-visit {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.showcase-visit:hover {
  color: var(--royal-dark);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-action {
  --action-glow: rgba(17, 17, 17, 0.14);
  --action-hover-bg: var(--surface);
  --action-hover-border: var(--border-strong);
  --action-hover-ink: var(--ink);
  position: relative;
  isolation: isolate;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.04);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.hero-action::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
  pointer-events: none;
  transition: background-color 0.22s ease;
}

.hero-action::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -7px;
  height: 12px;
  border-radius: 999px;
  background: var(--action-glow);
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
  animation: heroActionGlow 3.2s ease-in-out infinite;
  transition: opacity 0.2s ease;
}

#panel-hola .hero-action,
#panel-clientes .hero-action,
#panel-carrera .hero-action,
#panel-contacto .hero-action {
  --action-glow: rgba(29, 78, 216, 0.28);
  --action-hover-bg: var(--royal);
  --action-hover-border: var(--royal);
  --action-hover-ink: #ffffff;
}

.hero-action:hover,
.hero-action:focus-visible {
  background: var(--action-hover-bg);
  color: var(--action-hover-ink);
  border-color: var(--action-hover-border);
  transform: translateY(-1px);
  box-shadow:
    0 6px 14px -4px rgba(17, 17, 17, 0.1),
    0 2px 4px rgba(17, 17, 17, 0.06);
}

.hero-action:hover::after,
.hero-action:focus-visible::after {
  animation: none;
  opacity: 0;
}

@keyframes heroActionGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1.04);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 94px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.scroll-cue.is-hidden {
  opacity: 0;
}

/* Botones generales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--royal);
  color: #ffffff;
}

.btn--primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn--outline {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--royal);
  background: var(--royal-soft);
  color: var(--royal-dark);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 0.98rem;
}

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

/* Secciones principales al hacer scroll */
.section {
  padding: 88px 0;
  scroll-margin-top: 68px;
}

.section--tinted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-lead {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink-muted);
  line-height: 1.72;
}

.section-lead--secondary {
  margin-top: 14px;
}

/* Tarjetas de principios */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--royal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.card-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Timeline de Mi Carrera */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-meta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-logo-wrap {
  display: flex;
  align-items: center;
}

.timeline-logo {
  display: block;
  width: auto;
  max-width: 168px;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.94;
  filter: saturate(0.94);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.timeline-logo--crest {
  max-height: 92px;
  max-width: 112px;
}

.timeline-logo--square {
  max-height: 68px;
  max-width: 68px;
  border-radius: 14px;
}

.timeline-logo--wide {
  max-height: 56px;
  max-width: 168px;
}

.timeline-item:hover .timeline-logo {
  opacity: 1;
  filter: saturate(1);
}

.timeline-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.timeline-company {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
}

.timeline-company-now {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.timeline-company-note {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-subtle);
}

.timeline-role {
  margin: 4px 0 12px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.timeline-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.timeline-list li + li {
  margin-top: 6px;
}

.timeline-list li::marker {
  color: var(--royal);
}

/* Habilidades Técnicas & Formación */
.subblock {
  margin-top: 48px;
}

.subblock-title {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.skill-title {
  margin: 0 0 14px;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
}

.skill-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-chips li {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--royal-soft);
  border: 1px solid var(--royal-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal-dark);
  line-height: 1.3;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.skill-chips li:hover {
  background: var(--royal);
  border-color: var(--royal);
  color: #ffffff;
}

.education-card {
  margin-top: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.education-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--royal-dark);
  margin-bottom: 6px;
}

.education-degree {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 800;
}

.education-school {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.education-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}

.education-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 320px;
  min-width: 0;
}

.education-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.education-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 112px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.education-verify {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.education-verify:hover {
  color: var(--royal-dark);
}

.education-credentials {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}

.credential-item dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  margin-bottom: 4px;
}

.credential-item dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.credential-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Clientes */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.client-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.client-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.client-sector {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--royal);
  border: 1px solid var(--royal);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.client-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.client-desc {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.client-tags {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--royal-soft);
  border: 1px solid var(--royal-border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--royal-dark);
  line-height: 1.3;
}

.client-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  transition: color 0.18s ease;
}

.client-link:hover {
  color: var(--royal-dark);
}

.service-notes-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.integration-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid var(--royal-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.integration-banner:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.integration-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--royal-soft);
  color: var(--royal);
  flex-shrink: 0;
}

.integration-icon svg {
  width: 17px;
  height: 17px;
}

.integration-note {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--royal-dark);
}

.integration-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
}

.integration-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Contacto */
.contact-card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--royal-soft);
  border: 1px solid var(--royal-border);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--royal-dark);
  margin-bottom: 18px;
}

.contact-headline {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-subtext {
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Footer con margen inferior para que el dock nunca lo tape (incluye safe-area iOS) */
.site-footer {
  padding: 32px 0 calc(120px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-subtle);
}

.site-footer p {
  margin: 0;
}

.footer-legal {
  margin-top: 10px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-legal-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-subtle);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer-legal-btn:hover,
.footer-legal-btn:focus-visible {
  color: var(--royal);
  text-decoration-color: var(--royal);
}

/* Modal sencillo legal (Aviso de Privacidad / Términos) */
.legal-modal {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--ink);
  width: min(560px, calc(100% - 32px));
  max-height: 84vh;
  max-height: 84svh;
  box-shadow: 0 24px 64px rgba(9, 9, 11, 0.24);
  overflow: hidden;
}

.legal-modal::backdrop {
  background: rgba(9, 9, 11, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-modal-card {
  display: flex;
  flex-direction: column;
  max-height: 84vh;
  max-height: 84svh;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.legal-modal-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.legal-modal-close {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.legal-modal-close svg {
  width: 16px;
  height: 16px;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  background: var(--royal-soft);
  border-color: var(--royal-border);
  color: var(--royal-dark);
}

.legal-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.legal-modal-body p {
  margin: 0 0 12px;
}

.legal-modal-body h3 {
  margin: 16px 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-modal-body a {
  color: var(--royal);
  font-weight: 600;
  text-decoration: underline;
}

.legal-modal-meta {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.legal-modal-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: var(--bg);
}

.legal-modal-ok {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Barra Flotante Inferior — Opción A (oscura minimalista, solo 4 pestañas) */
.floating-dock {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100% - 24px);
  background: var(--dock-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-dock);
}

.dock-tablist {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dock-tablist::-webkit-scrollbar {
  display: none;
}

.dock-tab {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dock-text);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dock-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.dock-tab.is-active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
}

.dock-tab:focus-visible,
.btn:focus-visible,
.education-verify:focus-visible,
.client-link:focus-visible,
.showcase-item:focus-visible,
.showcase-visit:focus-visible,
.hero-action:focus-visible,
.brand:focus-visible,
.footer-legal-btn:focus-visible,
.legal-modal-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Responsive */
@media (min-width: 1080px) and (max-width: 1280px) {
  .hero-panel:not(.hero-panel--wide) {
    max-width: 560px;
  }
}

@media (max-width: 1079px) {
  .eco-links {
    display: none;
  }

  .hero-scene {
    position: static;
    inset: auto;
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    display: none;
    pointer-events: auto;
  }

  .hero-scene.is-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    opacity: 1;
    visibility: visible;
  }

  .career-nodes {
    position: static;
    inset: auto;
    order: 1;
    display: grid;
    grid-template-columns: repeat(6, 46px);
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
  }

  .career-nodes .eco-node {
    width: 46px;
    height: 46px;
  }

  .career-spine {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    order: 2;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 10px 10px 4px;
    border-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    overflow: visible;
  }

  .career-spine .spine-node {
    min-width: 0;
    padding: 16px 14px 2px 0;
    border-top: 2px dashed rgba(15, 23, 42, 0.16);
  }

  .career-spine .spine-node:nth-child(2) {
    padding-right: 0;
  }

  .career-spine .spine-node:nth-child(2)::after {
    content: '';
    position: absolute;
    right: 0;
    top: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.22);
  }

  .career-spine .spine-node:nth-child(n + 3) {
    display: none;
  }

  .spine-node::before {
    left: 0;
    top: -6px;
    width: 10px;
    height: 10px;
  }

  .spine-node--active::before {
    box-shadow: 0 0 0 4px rgba(214, 236, 255, 0.95);
  }

  .spine-year {
    font-size: 0.68rem;
  }

  .spine-company {
    font-size: 0.86rem;
  }

  .spine-role {
    font-size: 0.72rem;
  }

  .hero-ecosystem {
    position: static;
    order: 2;
    margin-top: 24px;
    display: none;
    justify-content: center;
    gap: 10px;
    max-width: 360px;
    pointer-events: auto;
  }

  .hero-ecosystem.is-visible {
    display: grid;
    grid-template-columns: repeat(6, 48px);
  }

  .hero-stage {
    display: contents;
  }

  .hero-panel.is-active {
    order: 1;
  }

  #panel-carrera.is-active {
    display: contents;
  }

  #panel-carrera.is-active > * {
    order: 1;
  }

  #panel-carrera.is-active > .hero-action {
    order: 3;
    margin-top: 22px;
  }

  .eco-node {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    width: 48px;
    height: 48px;
    will-change: auto;
    animation: ecoFadeIn 0.4s ease var(--pop-delay, 0.05s) forwards;
  }

  .eco-node .eco-medallion {
    padding: 9px;
    border-width: 2px;
  }

  /* En móvil (2 filas de 6): la fila 1 abre su tooltip hacia arriba y la fila 2 hacia abajo */
  #hero-ecosystem .eco-pos-l1::after,
  #hero-ecosystem .eco-pos-l2::after,
  #hero-ecosystem .eco-pos-l3::after,
  #hero-ecosystem .eco-pos-l4::after,
  #hero-ecosystem .eco-pos-l5::after,
  #hero-ecosystem .eco-pos-l6::after {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 4px);
  }

  #hero-ecosystem .eco-pos-l1:hover::after,
  #hero-ecosystem .eco-pos-l1:focus-visible::after,
  #hero-ecosystem .eco-pos-l1.is-tapped::after,
  #hero-ecosystem .eco-pos-l2:hover::after,
  #hero-ecosystem .eco-pos-l2:focus-visible::after,
  #hero-ecosystem .eco-pos-l2.is-tapped::after,
  #hero-ecosystem .eco-pos-l3:hover::after,
  #hero-ecosystem .eco-pos-l3:focus-visible::after,
  #hero-ecosystem .eco-pos-l3.is-tapped::after,
  #hero-ecosystem .eco-pos-l4:hover::after,
  #hero-ecosystem .eco-pos-l4:focus-visible::after,
  #hero-ecosystem .eco-pos-l4.is-tapped::after,
  #hero-ecosystem .eco-pos-l5:hover::after,
  #hero-ecosystem .eco-pos-l5:focus-visible::after,
  #hero-ecosystem .eco-pos-l5.is-tapped::after,
  #hero-ecosystem .eco-pos-l6:hover::after,
  #hero-ecosystem .eco-pos-l6:focus-visible::after,
  #hero-ecosystem .eco-pos-l6.is-tapped::after {
    transform: translate(-50%, 0);
  }

  /* Alineación en extremos izquierdo/derecho para no recortar etiquetas en pantallas de 360px */
  #hero-ecosystem .eco-pos-l1::after,
  #hero-ecosystem .eco-pos-r1::after,
  .career-nodes .eco-pos-r1::after {
    left: 0;
    transform: translate(0, 4px);
  }

  #hero-ecosystem .eco-pos-r1::after,
  .career-nodes .eco-pos-r1::after {
    transform: translate(0, -4px);
  }

  #hero-ecosystem .eco-pos-l1:hover::after,
  #hero-ecosystem .eco-pos-l1:focus-visible::after,
  #hero-ecosystem .eco-pos-l1.is-tapped::after,
  #hero-ecosystem .eco-pos-r1:hover::after,
  #hero-ecosystem .eco-pos-r1:focus-visible::after,
  #hero-ecosystem .eco-pos-r1.is-tapped::after,
  .career-nodes .eco-pos-r1:hover::after,
  .career-nodes .eco-pos-r1:focus-visible::after,
  .career-nodes .eco-pos-r1.is-tapped::after {
    transform: translate(0, 0);
  }

  #hero-ecosystem .eco-pos-l6::after,
  #hero-ecosystem .eco-pos-r6::after,
  .career-nodes .eco-pos-r6::after {
    left: auto;
    right: 0;
    transform: translate(0, 4px);
  }

  #hero-ecosystem .eco-pos-r6::after,
  .career-nodes .eco-pos-r6::after {
    transform: translate(0, -4px);
  }

  #hero-ecosystem .eco-pos-l6:hover::after,
  #hero-ecosystem .eco-pos-l6:focus-visible::after,
  #hero-ecosystem .eco-pos-l6.is-tapped::after,
  #hero-ecosystem .eco-pos-r6:hover::after,
  #hero-ecosystem .eco-pos-r6:focus-visible::after,
  #hero-ecosystem .eco-pos-r6.is-tapped::after,
  .career-nodes .eco-pos-r6:hover::after,
  .career-nodes .eco-pos-r6:focus-visible::after,
  .career-nodes .eco-pos-r6.is-tapped::after {
    transform: translate(0, 0);
  }
}

@media (max-width: 960px) {
  .clients-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    text-align: center;
  }

  .showcase-left {
    order: 1;
    min-width: 0;
  }

  .showcase-left .hero-title {
    margin-bottom: 8px;
  }

  .showcase-lead {
    margin: 0 auto 14px;
    max-width: 340px;
    font-size: 0.9rem;
  }

  .showcase-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 12px;
    overflow: visible;
    border-top: 0;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .showcase-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }

  .showcase-item {
    flex-shrink: 0;
    padding: 6px 6px 8px;
    gap: 0;
    border-bottom: 0;
    white-space: nowrap;
  }

  .showcase-item::before {
    left: 4px;
    right: 4px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
    border-radius: 2px;
  }

  .showcase-item:hover {
    background: transparent;
  }

  .showcase-item.is-active {
    background: transparent;
    padding-left: 6px;
  }

  .showcase-num,
  .showcase-name,
  .showcase-tag {
    display: none;
  }

  .showcase-short {
    display: inline;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-muted);
    transition: color 0.18s ease;
  }

  .showcase-item.is-active .showcase-short,
  .showcase-item:hover .showcase-short {
    color: var(--ink);
  }

  .showcase-right {
    order: 2;
    min-width: 0;
  }

  .showcase-chrome {
    height: 28px;
    padding: 0 12px;
  }

  .chrome-dot {
    width: 7px;
    height: 7px;
  }

  .showcase-domain {
    font-size: 0.7rem;
  }

  .showcase-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
    text-align: left;
  }

  .showcase-summary {
    font-size: 0.8rem;
  }

  #panel-clientes .hero-action {
    margin-top: 18px;
  }
}

@media (max-width: 900px) {
  .principles-grid,
  .skills-grid,
  .clients-grid,
  .service-notes-grid {
    grid-template-columns: 1fr;
  }

  .education-credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .timeline-logo {
    max-height: 40px;
    max-width: 116px;
  }

  .timeline-logo--crest {
    max-height: 48px;
  }

  .timeline-logo--square {
    max-height: 42px;
    max-width: 42px;
    border-radius: 10px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

  .container {
    padding: 0 18px;
  }

  .hero {
    padding: calc(86px + env(safe-area-inset-top, 0px)) 18px
      calc(116px + env(safe-area-inset-bottom, 0px));
  }

  .hero-tags {
    font-size: 0.9rem;
  }

  .contact-actions .btn,
  .hero-cta-row .btn {
    max-width: 100%;
  }

  .client-link,
  .showcase-domain {
    overflow-wrap: anywhere;
  }

  .education-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .education-logo {
    height: 48px;
  }

  .education-school {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
  }

  .education-school-sep {
    display: none;
  }

  .education-school-years {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-subtle);
  }

  .section {
    padding: 64px 0;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .floating-dock {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 4px;
    max-width: calc(100% - 16px);
  }

  .dock-tablist {
    gap: 2px;
  }

  .dock-tab {
    font-size: 0.74rem;
    padding: 8px 11px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero-ecosystem.is-visible {
    grid-template-columns: repeat(6, 44px);
    gap: 8px;
  }

  .career-nodes {
    grid-template-columns: repeat(6, 42px);
    gap: 8px;
  }

  .career-nodes .eco-node {
    width: 42px;
    height: 42px;
  }

  .eco-node {
    width: 44px;
    height: 44px;
  }

  .eco-node .eco-medallion {
    padding: 8px;
  }

  .education-credentials {
    grid-template-columns: 1fr;
  }

  .dock-tab {
    font-size: 0.7rem;
    padding: 8px 9px;
  }
}

@media (max-width: 370px) {
  .dock-tab {
    font-size: 0.68rem;
    padding: 7px 8px;
  }

  .hero-ecosystem.is-visible {
    grid-template-columns: repeat(6, 42px);
    gap: 7px;
  }

  .eco-node {
    width: 42px;
    height: 42px;
  }

  .career-nodes {
    grid-template-columns: repeat(6, 38px);
    gap: 6px;
  }

  .career-nodes .eco-node {
    width: 38px;
    height: 38px;
  }
}

/* Ajuste compacto para WebViews de baja altura (ej. Instagram / Facebook IAB 360x640) */
@media (max-width: 560px) and (max-height: 700px) {
  .hero {
    padding: calc(70px + env(safe-area-inset-top, 0px)) 16px
      calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .hero-eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.2vw, 2.3rem);
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hero-tags {
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .hero-action {
    margin-top: 14px;
    padding: 9px 20px;
    font-size: 0.84rem;
  }

  .hero-ecosystem {
    margin-top: 16px;
  }

  .clients-showcase {
    gap: 8px;
  }

  .showcase-left .hero-title {
    font-size: 1.7rem;
    margin-bottom: 2px;
  }

  .showcase-lead {
    margin-bottom: 6px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .showcase-item {
    padding: 3px 5px 5px;
  }

  .showcase-chrome {
    height: 24px;
  }

  .showcase-viewport {
    aspect-ratio: 16 / 8.5;
  }

  .showcase-footer {
    padding: 7px 12px;
    gap: 3px;
  }

  .showcase-summary {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  #panel-clientes .hero-action {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .eco-node,
  .eco-medallion,
  .spine-node,
  .status-dot--pulse,
  .status-dot--pulse::after,
  .hero-action,
  .hero-action::after {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .status-dot--pulse::after {
    display: none !important;
  }
}

/* Impresión limpia / Guardar como CV en PDF */
@media print {
  .skip-link,
  .floating-dock,
  .scroll-cue,
  .hero-ecosystem,
  .hero-scene,
  .hero-action,
  .footer-legal,
  .legal-modal {
    display: none !important;
  }

  .site-header {
    position: static;
    border-bottom: 1px solid #d1d5db;
    background: #ffffff;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 20px;
    background: #ffffff;
  }

  .section {
    padding: 24px 0;
  }

  .section--tinted {
    background: #ffffff;
    border: 0;
  }

  .card,
  .client-card,
  .integration-banner,
  .timeline-item,
  .skill-card,
  .education-card,
  .contact-card {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .site-footer {
    padding: 20px 0;
  }
}
