/* Red Impulso — estilos compartidos de la landing y de las fichas de cliente.
   Dirección (unslop, 2026-11-19): papel cálido y tinta de la marca, el naranja como único acento,
   la riqueza en las pantallas reales de clientes y la "línea de avance" como detalle propio. */

:root {
  --orange: #FF3A00;        /* superficies grandes */
  --orange-2: #FF6C26;      /* palabra destacada del H1 sobre tinta */
  --orange-press: #E22F00;  /* fondo con texto blanco (4,5:1) */
  --orange-text: #C42900;   /* texto naranja sobre blanco o cálido (5,4:1) */
  --ink: #101020;
  --ink-2: #1B1B2D;
  --warm: #FFF7E8;
  --white: #FFFFFF;
  --plate: #FFFCF6;
  --text: #101020;
  --text-2: #45465A;
  --muted: #646573;
  --line: rgba(16, 16, 32, .10);
  --line-strong: rgba(16, 16, 32, .22);
  --on-ink: #F4F1EA;
  --on-ink-2: rgba(244, 241, 234, .74);
  --on-ink-line: rgba(244, 241, 234, .16);
  /* Movimiento (2026-11-19, criterios de la skill animate): ease-out fuerte para entradas y respuestas,
     ease-in-out para lo que se mueve o se transforma en pantalla, `ease` simple para cambios de color. */
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --shadow-soft: 0 8px 24px rgba(16, 16, 32, .06);
  --bg: var(--white); /* fondo de la sección actual: lo usa la línea de avance */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--text);
  background: var(--warm);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; } /* los atributos width/height solo reservan la proporción */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 4px; border-radius: 4px; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 8px 12px; background: var(--white); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 600 17px/1 "DM Sans", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 140ms var(--ease);
}
/* Respuesta al presionar: igual en botones, flechas del carrusel, logos y tarjetas de cliente */
.btn:active, .carousel-btn:active, .chip:active, .client-card:active .client-plate, .hero-node:active .hero-plate { transform: scale(.97); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn-primary { color: var(--white); background: var(--orange-press); }
.btn-primary:hover { background: var(--orange-text); }
.btn-outline { color: var(--orange-text); border-color: var(--orange-text); }
.btn-outline:hover { background: #FFEFE6; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--warm); }
.btn-light { color: var(--ink); background: var(--white); }
.btn-light:hover { background: var(--warm); }
.btn:disabled { color: var(--muted); background: var(--white); border-color: var(--line-strong); cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* Barra */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 72px; }
.nav-logo { width: auto; height: 40px; }
.nav-links { display: flex; gap: 32px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.nav-links a { transition: color 160ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.navbar .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.label-short { display: none; }

/* Rótulos y títulos de sección */
.label { margin-bottom: 12px; color: var(--orange-text); font-size: 16px; font-weight: 600; }
.section { padding: 112px 0; background: var(--bg); }
.section.warm { --bg: var(--warm); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-title { margin-bottom: 16px; font-size: 46px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.section-copy { color: var(--text-2); font-size: 21px; line-height: 1.5; }

/* Hero "Línea de avance" sobre "Vidriera" (elegidos por Misael, 2026-11-19): el tagline y la flecha del
   logo hecha recorrido de clientes, sobre pantallas reales que suben despacio detrás de un velo de tinta. */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-inner { position: relative; padding: 88px 0 72px; }

/* Fondo: tres columnas inclinadas en perspectiva; cada una va duplicada y sube el 50 % de su alto en bucle */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-shots {
  position: absolute;
  top: -10%;
  right: -6%;
  display: flex;
  width: 70%;
  height: 140%;
  gap: 20px;
  opacity: .9;
  transform: perspective(1400px) rotateX(18deg) rotateZ(-10deg);
  transform-origin: top right;
}
.hero-col { display: grid; flex: 1; align-content: start; gap: 20px; animation: hero-rise 70s linear infinite; }
.hero-col:nth-child(2) { margin-top: -120px; animation-duration: 90s; animation-direction: reverse; }
.hero-col:nth-child(3) { margin-top: -60px; animation-duration: 80s; }
.hero-col img { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: #1E1E30; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
@keyframes hero-rise { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-col { animation: none; } }

/* Velo: tinta densa a la izquierda (texto) y abajo (línea); deja ver el movimiento arriba a la derecha */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 22, .94) 0%, rgba(10, 10, 22, .80) 36%, rgba(10, 10, 22, .36) 68%, rgba(10, 10, 22, .18) 100%),
    linear-gradient(0deg, rgba(10, 10, 22, .6) 0%, rgba(10, 10, 22, 0) 40%);
}
.hero h1 em { font-style: inherit; color: var(--orange-2); }
.hero-text { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { margin-bottom: 24px; font-size: 18px; font-weight: 600; }
/* Poppins ExtraBold Italic: el gesto del logo, solo en el H1 de la portada y en el cierre */
.hero h1 {
  margin-bottom: 24px;
  font-family: "Poppins", "DM Sans", Arial, sans-serif;
  font-size: 88px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero .eyebrow, .hero-copy { color: rgba(255, 255, 255, .88); }
.hero-copy { max-width: 38rem; margin-bottom: 40px; font-size: 22px; line-height: 1.5; }
.hero-actions .btn { min-height: 52px; padding: 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-line-light { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-line-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.hero :focus-visible { outline-color: var(--white); }

.hero-line { position: relative; height: 240px; margin-top: 40px; }
.hero-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-line-path path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-line-tip path { fill: var(--orange); }
.hero-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, calc(-100% + 9px)); /* el centro del punto cae sobre la línea */
}
.hero-plate {
  display: grid;
  width: 196px;
  height: 84px;
  place-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--plate-bg, var(--white));
  /* borde fino para que la placa negra de Olinda no se pierda sobre la tinta */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 28px rgba(0, 0, 0, .35);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}
.hero-plate img { width: auto; max-width: 100%; max-height: 46px; }
.hero-node:hover .hero-plate { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 32px rgba(0, 0, 0, .4); }
.hero-node small { color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-dot { width: 18px; height: 18px; border: 4px solid var(--ink); border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--white); }
.hero-node:last-child .hero-dot { background: var(--orange); }

/* Ventana de navegador y teléfono para las capturas */
.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.frame-bar { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; background: #F2EDE4; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(16, 16, 32, .16); }
.frame-bar i + i { margin-left: -6px; }
.frame-url { flex: 1; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.phone {
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}
.phone img { width: 100%; aspect-ratio: 1 / 2; border-radius: 22px; object-fit: cover; object-position: top; }

/* Servicios — "Qué incluye" (elegida por Misael, 2026-11-19): tarjeta cálida que pasa a tinta al pasar
   el mouse (o al entrar con el teclado a uno de sus logos). Los colores van como tokens de la tarjeta
   para que el cambio sea una sola transición. */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  --c-bg: var(--warm);
  --c-fg: var(--text);
  --c-fg-2: var(--text-2);
  --c-muted: var(--muted);
  --c-rule: var(--line);
  --c-icon-bg: var(--white);
  --c-icon-fg: var(--orange-text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 16px;
  color: var(--c-fg);
  background: var(--c-bg);
  transition: background-color 400ms ease, color 400ms ease, transform 400ms var(--ease), box-shadow 400ms ease;
}
.service-card:hover, .service-card:focus-within {
  --c-bg: var(--ink);
  --c-fg: var(--white);
  --c-fg-2: rgba(255, 255, 255, .82);
  --c-muted: rgba(255, 255, 255, .7);
  --c-rule: rgba(255, 255, 255, .14);
  --c-icon-bg: var(--orange-press);
  --c-icon-fg: var(--white);
}
.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--c-icon-fg);
  background: var(--c-icon-bg);
  transition: background-color 400ms ease, color 400ms ease;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.service-card p { color: var(--c-fg-2); transition: color 400ms ease; }
.service-includes { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--c-rule); transition: border-color 400ms ease; }
.service-includes li { display: flex; gap: 10px; font-size: 17px; }
.service-includes li::before { flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; content: ""; background: var(--orange); }
.service-examples { margin-top: auto; padding-top: 8px; }
.service-examples small { display: block; margin-bottom: 10px; color: var(--c-muted); font-size: 15px; transition: color 400ms ease; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: grid;
  height: 48px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--plate-bg, var(--white));
  transition: border-color 200ms ease, transform 140ms var(--ease);
}
.chip img { width: auto; height: 26px; }
.chip:hover { border-color: var(--line-strong); }
.service-card:hover .chip, .service-card:focus-within .chip { border-color: rgba(255, 255, 255, .16); }
/* Con un mouse real la tarjeta sube un poco además de oscurecerse: en táctil un toque no debe dejarla "levantada" */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 16, 32, .18); }
}
/* Movimiento reducido: el cambio de color se mantiene (no es movimiento), el desplazamiento no */
@media (prefers-reduced-motion: reduce) { .service-card, .service-card:hover { transform: none; transition-property: background-color, color, border-color; } }

h3 { margin-bottom: 8px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.service-card p, .step p { font-size: 18px; }
.step p { color: var(--text-2); }

/* Línea de avance: la flecha del logo hecha línea de tiempo. Detalle propio, solo en Clientes y Proceso. */
.advance { position: relative; }
.advance::before {
  position: absolute;
  left: 0;
  right: 12px;
  top: var(--line-y);
  height: 2px;
  content: "";
  background: var(--line-strong);
}
.advance::after {
  position: absolute;
  right: 0;
  top: calc(var(--line-y) - 5px);
  content: "";
  border-left: 12px solid var(--orange);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.node { position: relative; z-index: 1; width: 12px; height: 12px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); }
.node.is-latest { border-color: var(--orange); background: var(--orange); }

/* Clientes */
.clients-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.clients-head .section-head { margin-bottom: 0; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease, opacity 200ms ease, transform 140ms var(--ease);
}
.carousel-btn:hover { background: var(--white); }
.carousel-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.carousel-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.clients-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px; /* igual al padding: así arranca en 0 y la flecha "anteriores" queda apagada */
  scrollbar-width: none;
  margin: -8px;
  padding: 8px;
}
.clients-scroller::-webkit-scrollbar { display: none; }
.clients-track { --line-y: calc(100% - 13px); display: flex; gap: 16px; width: max-content; }
.clients-track li { display: flex; scroll-snap-align: start; }
/* La fecha va siempre abajo, sobre la línea, aunque la descripción ocupe una o dos líneas */
/* 224 px: entran los cinco enteros en el contenedor de 1200; con más clientes o menos ancho, el carrusel desliza */
.client-card { display: grid; grid-template-rows: auto 1fr auto; width: 224px; gap: 16px; }
.client-plate {
  display: grid;
  height: 136px;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--plate-bg, var(--white));
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 140ms var(--ease);
}
.client-plate img { width: auto; max-width: 84%; max-height: 64px; object-fit: contain; }
.client-card:hover .client-plate { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.client-name { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; }
.client-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.client-when { display: flex; align-items: center; height: 26px; }
.client-when span { position: relative; padding: 0 8px; background: var(--bg); color: var(--text-2); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.client-when span { white-space: nowrap; }
.client-status { display: block; margin-top: 4px; color: var(--orange-text); font-size: 15px; font-weight: 600; }

/* Por qué */
/* Por qué — "Manifiesto en tinta" (elegido por Misael, 2026-11-19): sección oscura, título a la izquierda
   y los tres compromisos grandes a la derecha, separados por líneas finas. */
.section.dark { --bg: var(--ink); color: var(--white); }
.section.dark .label { color: var(--orange-2); }
.section.dark .section-copy { color: rgba(255, 255, 255, .78); }
.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.why .section-head { margin-bottom: 0; }
.why .section-title { font-size: 52px; }
.why-list { border-top: 1px solid rgba(255, 255, 255, .16); }
.why-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.why-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 14px; color: var(--white); background: var(--orange-press); }
.why-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.015em; }
.why-item p { color: rgba(255, 255, 255, .78); font-size: 19px; }

/* Proceso */
.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.process .section-head { margin-bottom: 0; }
.steps { --line-y: 19px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 8px; }
.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 0 8px var(--bg);
}

/* Nosotros — "Fichas de equipo" (elegida por Misael, 2026-11-19): ficha cálida con foto, rol y bio corta.
   La foto pasa de blanco y negro a color al pasar el mouse; con mouse real la ficha además sube 4 px. */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.about-copy { max-width: 62ch; }
.about-copy { color: var(--text-2); }
.about-place { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 16px; }
.about-place svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.member {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 16px;
  background: var(--warm);
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.member img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 500ms ease;
}
.member:hover img { filter: none; }
.member.rodrigo img { object-position: center top; }
.member strong { display: block; font-size: 24px; font-weight: 600; line-height: 1.2; }
.member-role { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 6px; background: var(--white); color: var(--orange-text); font-size: 15px; font-weight: 600; }
.member p { color: var(--text-2); font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .member:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 16, 32, .12); }
}
@media (prefers-reduced-motion: reduce) { .member, .member:hover { transform: none; } }

/* Cierre */
.cta { padding: 96px 0; color: var(--white); background: var(--orange-press); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { margin-bottom: 12px; font-family: "Poppins", "DM Sans", Arial, sans-serif; font-size: 48px; font-style: italic; font-weight: 800; line-height: 1.08; }
.cta p { max-width: 38rem; font-size: 21px; line-height: 1.5; }

/* Pie */
.footer { color: var(--on-ink); background: var(--ink); }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-logo { width: 220px; height: auto; }
.footer-place { margin-top: 16px; color: var(--on-ink-2); font-size: 16px; }
.footer h2 { margin-bottom: 16px; color: var(--on-ink); font-size: 16px; font-weight: 600; }
.footer-links { display: grid; gap: 8px; color: var(--on-ink-2); font-size: 16px; }
.footer-links a { justify-self: start; transition: color 160ms var(--ease); }
.footer-links a:hover { color: var(--on-ink); }
.footer-bottom { padding: 24px 0; border-top: 1px solid var(--on-ink-line); color: var(--on-ink-2); font-size: 15px; }

/* Ficha de cliente */
.case-hero { padding: 64px 0 96px; background: var(--warm); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; color: var(--text-2); font-size: 16px; font-weight: 500; transition: color 160ms var(--ease); }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.case-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.case-logo { display: grid; width: 232px; height: 104px; margin-bottom: 32px; place-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--plate-bg, var(--white)); }
.case-logo img { width: auto; max-height: 56px; object-fit: contain; }
.case-title { margin-bottom: 16px; font-size: 52px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.case-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; color: var(--muted); font-size: 16px; }
.case-facts li { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.status-dot.is-dev { background: var(--orange); }
.case-lead { margin-bottom: 32px; color: var(--text-2); font-size: 21px; line-height: 1.5; }
.case-visual { position: relative; padding: 0 0 40px 40px; }
.case-visual .phone { position: absolute; left: 0; bottom: 0; width: 24%; }

.case-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.case-body h2 { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.case-body .lead { margin-top: 16px; color: var(--text-2); }
.case-body h2 + .feature-list { margin-top: 24px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feature-list li { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 18px; }
.feature-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--orange-text); stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 32px; align-items: start; }
.shot { grid-column: span 8; }
.shot.is-phone { grid-column: span 4; }
.shot.is-phone .phone { width: min(100%, 280px); }
.shot a { display: block; transition: opacity 160ms var(--ease); }
.shot a:hover { opacity: .92; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; }
.gallery-note { margin-top: 32px; color: var(--muted); font-size: 16px; }

.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.case-nav a { display: grid; gap: 4px; }
.case-nav a:last-child { text-align: right; }
.case-nav small { color: var(--muted); font-size: 16px; }
.case-nav strong { font-size: 22px; font-weight: 600; transition: color 160ms var(--ease); }
.case-nav a:hover strong { color: var(--orange-text); }

/* Un solo corte grande: debajo de 1100px las dos columnas no entran */
@media (max-width: 1100px) {
  .container { width: calc(100% - 32px); }
  .nav-inner { gap: 12px; min-height: 64px; }
  .nav-logo { height: 32px; }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .navbar .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }

  .section { padding: 72px 0; }
  .section-title { font-size: 32px; line-height: 1.15; }
  .section-copy { font-size: 18px; }
  .section-head { margin-bottom: 32px; }

  .hero-inner { padding: 56px 0 48px; }
  .hero h1 { font-size: 52px; line-height: 1.02; }
  .hero-copy { margin-bottom: 32px; font-size: 18px; }
  .eyebrow { font-size: 16px; }
  .service-card p, .why-item p, .step p, .feature-list li { font-size: 17px; }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .why .section-title { font-size: 32px; }
  .why-item { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .why-icon { width: 48px; height: 48px; border-radius: 12px; }
  .why-icon svg { width: 24px; height: 24px; }
  .why-item h3 { font-size: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* En celular la curva no entra: la línea baja vertical a la izquierda y los clientes quedan en lista */
  .hero-line { display: grid; gap: 12px; height: auto; margin-top: 40px; padding: 0 0 28px 28px; }
  .hero-line svg { display: none; }
  .hero-line::before { position: absolute; left: 7px; top: 8px; bottom: 16px; width: 3px; border-radius: 2px; content: ""; background: var(--white); }
  .hero-line::after { position: absolute; left: 1px; bottom: 0; content: ""; border-top: 16px solid var(--white); border-left: 7.5px solid transparent; border-right: 7.5px solid transparent; }
  .hero-node { position: relative; left: auto; top: auto; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 16px; transform: none; }
  .hero-plate { width: 156px; height: 64px; padding: 10px 14px; }
  .hero-plate img { max-height: 32px; }
  .hero-dot { position: absolute; left: -28px; width: 16px; height: 16px; border-width: 3px; }
  .hero-node:hover .hero-plate { transform: none; }
  .hero-line::after { border-top-color: var(--orange); }
  /* En celular el texto ocupa todo el ancho: velo parejo de arriba a abajo y pantallas más tenues */
  .hero-veil { background: linear-gradient(180deg, rgba(10, 10, 22, .88), rgba(10, 10, 22, .76)); }
  .hero-shots { right: -30%; width: 120%; opacity: .55; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; }

  .clients-head { margin-bottom: 32px; }
  .client-card { width: 240px; }

  .process { grid-template-columns: 1fr; gap: 40px; }
  /* La línea baja vertical a la izquierda de los pasos */
  .steps { grid-template-columns: 1fr; gap: 32px; padding: 0 0 24px; }
  .steps::before { left: 19px; right: auto; top: 20px; bottom: 24px; width: 2px; height: auto; }
  .steps::after { left: 13px; right: auto; top: auto; bottom: 8px; border-top: 12px solid var(--orange); border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; gap: 0 20px; }
  .step-number { grid-row: span 2; margin-bottom: 0; }

  .about { grid-template-columns: 1fr; gap: 40px; }

  .cta { padding: 64px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cta h2 { font-size: 32px; }
  .cta p { font-size: 18px; }

  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }

  .case-hero { padding: 32px 0 64px; }
  .back { margin-bottom: 32px; }
  .case-intro, .case-body { grid-template-columns: 1fr; gap: 40px; }
  .case-body { gap: 24px; }
  .case-title { font-size: 38px; }
  .case-lead { font-size: 18px; }
  .case-visual { padding: 0 0 32px 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .shot { grid-column: 1 / -1; }
  .shot.is-phone { grid-column: span 1; }
  .case-nav strong { font-size: 18px; }
}

/* En celular: "Clientes" con el candado, para que entren los dos botones al lado del logo */
@media (max-width: 480px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}

/* ===================== Movimiento (2026-11-19) =====================
   Criterios: skills find-animation-opportunities + animate. Solo opacity y desplazamiento; ease-out fuerte para
   entradas; cada cosa entra una sola vez. Con movimiento reducido se conservan los fundidos de opacidad y se
   quitan los desplazamientos.
   Regla de convivencia: las entradas son animaciones con relleno `backwards` (solo actúan mientras esperan y
   corren) y mueven con la propiedad `translate`, no con `transform`. Así no pisan las transiciones propias de
   cada elemento (el hover de Servicios, la respuesta al presionar de los botones). */
@keyframes rise-in { from { opacity: 0; translate: 0 16px; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Aparición al hacer scroll. El <head> pone `reveal-ready` en <html> solo si site.js va a poder mostrar los
   elementos; sin JS (o si falla) todo se ve igual que siempre. Escalonado con --i (60 ms, máximo seis pasos). */
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; }
.reveal-ready [data-reveal].is-in { animation: rise-in 600ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }

/* Entrada del hero (solo al cargar): el texto sube escalonado, la línea de avance se dibuja y los clientes
   aparecen en orden sobre ella. Animación CSS: corre fuera del hilo principal aunque la página siga cargando. */
.hero-bg { animation: fade-in 1200ms ease backwards; }
.hero-text > * { animation: rise-in 700ms var(--ease) backwards; }
.hero-text > :nth-child(2) { animation-delay: 80ms; }
.hero-text > :nth-child(3) { animation-delay: 160ms; }
.hero-text > :nth-child(4) { animation-delay: 240ms; }
.hero-line-path { animation: draw-line 1400ms var(--ease-in-out) 400ms backwards; } /* la curva se descubre de izquierda a derecha */
.hero-line-tip { animation: fade-in 300ms ease 1700ms backwards; }
.hero-node { animation: rise-in 500ms var(--ease) backwards; animation-delay: calc(600ms + var(--i, 0) * 220ms); }
@media (max-width: 1100px) {
  .hero-node { animation-delay: calc(300ms + var(--i, 0) * 80ms); } /* en celular van en lista: más seguido */
}

/* Cabecera de la ficha: entra como el hero (logo, texto y vista escalonados) */
.case-intro > div:first-child > * { animation: rise-in 700ms var(--ease) backwards; }
.case-intro > div:first-child > :nth-child(2) { animation-delay: 60ms; }
.case-intro > div:first-child > :nth-child(3) { animation-delay: 120ms; }
.case-intro > div:first-child > :nth-child(n+4) { animation-delay: 180ms; }
.case-visual { animation: rise-in 800ms var(--ease) 200ms backwards; }

/* Transiciones entre la portada y las fichas (navegadores con View Transitions entre documentos;
   el resto navega como siempre). La página cruza en fundido y el logo del cliente viaja de la tarjeta
   a la cabecera de su ficha: site.js le pone el nombre `client-logo` al logo del que se hizo clic. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: ease; }
::view-transition-group(client-logo) { animation-duration: 450ms; animation-timing-function: var(--ease-in-out); }
.case-logo { view-transition-name: client-logo; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal].is-in, .hero-text > *, .hero-node, .case-intro > div:first-child > *, .case-visual { animation-name: fade-in; animation-duration: 400ms; }
  .hero-line-path { animation: none; }
  .hero-line-tip { animation: none; }
  ::view-transition-group(client-logo) { animation-duration: 0s; }
}

/* Nosotros en celular: las fichas del equipo, una debajo de la otra */
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .member { padding: 20px; }
}
