/* ============================================================
   HOME: vida — entregables, estado de la ley, dos miradas, FAQ y cierre
   Solo se carga en index.php. Tokens de brand.css/editorial.css.
   Todo acotado a .home: estado-ley.php y dos-miradas.php se usan también
   en otras páginas y allí no cambian.
   Color por mirada (igual que el panel Dos miradas):
     legal = verde jurídico, técnica = azul fuerte, personas = tercer acento.
   Movimiento: transform/opacity, ease-out, una vez; reduced-motion = estático.
   Sin style="" ni !important. Cortes: 640, 768, 900, 1000px.
   ============================================================ */
.home {
  /* Reusa el código de color del inicio (editorial.css, :root): azul empezar,
     verde mantener, índigo ciberseguridad. Aquí: técnica, legal y personas. */
  --vida-legal: var(--home-c-keep, #047857);
  --vida-legal-rgb: var(--home-c-keep-rgb, 4, 120, 87);
  --vida-tech: var(--home-c-start, #1667C7);
  --vida-tech-rgb: var(--home-c-start-rgb, 22, 103, 199);
  --vida-people: var(--home-c-cyber, #4F46E5);   /* 6.29:1 sobre blanco */
  --vida-people-rgb: var(--home-c-cyber-rgb, 79, 70, 229);
  --vida-ink: #0f172a;
  --vida-card-line: rgba(15, 23, 42, 0.09);
  --vida-ease: var(--home-ease-out, cubic-bezier(.16, 1, .3, 1));
  --vida-lift: 0 18px 32px -20px rgba(15, 23, 42, 0.35), 0 2px 6px rgba(15, 23, 42, 0.05);
  --vida-panel: 0 30px 60px -40px rgba(15, 23, 42, 0.3);
  /* Rampa del Gantt: de empezar (azul) a operar (verde) */
  --vida-g1: #1667C7;
  --vida-g2: #146bb5;
  --vida-g3: #0f7690;
  --vida-g4: #0a7a72;
  --vida-g5: #047857;
}

/* ============================================================
   8a. ENTREGABLES: expediente de evidencia
   ============================================================ */
.home .home-dossier-wrap { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--ld-s7); }

/* Encabezado apilado (no el ld-head de dos columnas) con la leyenda de miradas */
.home .home-dossier-head { display: grid; gap: var(--ld-s4); max-width: 46rem; }
.home .home-dossier-head h2 {
  margin: 0; font-size: var(--home-type-h2); line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance;
}
.home .home-dossier-head p { margin: 0; max-width: 52ch; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.home .home-dossier-legend { display: flex; flex-wrap: wrap; gap: var(--ld-s2) var(--ld-s5); margin: var(--ld-s1) 0 0; padding: 0; list-style: none; }
.home .home-dossier-legend li { display: inline-flex; align-items: center; gap: var(--ld-s2); font-size: 0.88rem; font-weight: 600; color: var(--text); }
.home .home-dossier-legend li::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--vida-tech); }
.home .home-dossier-legend .is-legal::before { background: var(--vida-legal); }
.home .home-dossier-legend .is-people::before { background: var(--vida-people); }

/* La carpeta: pestaña arriba a la izquierda y hojas que asoman por detrás */
/* Contenedor con su propio contexto de apilado: las hojas quedan detrás de la carpeta */
.home .home-dossier { position: relative; isolation: isolate; margin-top: var(--ld-s7); }
.home .home-dossier-folder {
  position: relative; padding: var(--ld-s5); background: var(--surface);
  border: 1px solid var(--vida-card-line); border-radius: 0 20px 20px 20px;
}
.home .home-dossier::before,
.home .home-dossier::after {
  content: ''; position: absolute; z-index: -1; height: 150px;
  border: 1px solid var(--vida-card-line); border-radius: 12px;
  box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.3);
  /* Renglones de documento: dibujados, sin texto */
  background-color: #fff;
  background-image:
    linear-gradient(var(--vida-legal), var(--vida-legal)),
    linear-gradient(#e3e9f1, #e3e9f1), linear-gradient(#e3e9f1, #e3e9f1), linear-gradient(#e3e9f1, #e3e9f1);
  background-repeat: no-repeat;
  background-size: 34px 6px, 62% 6px, 54% 6px, 58% 6px;
  background-position: 22px 20px, 22px 40px, 22px 56px, 22px 72px;
}
.home .home-dossier::before { top: -58px; right: 5%; width: 30%; transform: rotate(3deg); }
.home .home-dossier::after {
  top: -86px; right: 21%; width: 27%; transform: rotate(-2.5deg);
  background-image:
    linear-gradient(var(--vida-tech), var(--vida-tech)),
    linear-gradient(#e3e9f1, #e3e9f1), linear-gradient(#e3e9f1, #e3e9f1), linear-gradient(#e3e9f1, #e3e9f1);
}
.home .home-dossier-tab {
  position: absolute; left: -1px; bottom: 100%; margin: 0;
  padding: 10px var(--ld-s5) 8px; background: var(--surface);
  border: 1px solid var(--vida-card-line); border-bottom: 0; border-radius: 14px 14px 0 0;
  font-size: 0.85rem; font-weight: 600; line-height: 1.2; color: var(--text);
}
.home .home-dossier-tab::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: var(--ld-s2);
  border-radius: 50%; background: var(--vida-legal); vertical-align: 1px;
}

.home .home-deliver {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ld-s3);
  margin: 0; padding: 0; list-style: none; border: 0;
}
.home .home-deliver li {
  --lens: var(--vida-tech); --lens-rgb: var(--vida-tech-rgb);
  position: relative; display: flex; flex-direction: column; gap: var(--ld-s2); min-width: 0;
  padding: var(--ld-s5) var(--ld-s5) var(--ld-s6); background: #fff;
  border: 1px solid var(--vida-card-line); border-radius: 16px;
  transition: transform .45s var(--vida-ease), box-shadow .45s var(--vida-ease), border-color .3s ease-out;
}
.home .home-deliver li.is-legal { --lens: var(--vida-legal); --lens-rgb: var(--vida-legal-rgb); }
.home .home-deliver li.is-people { --lens: var(--vida-people); --lens-rgb: var(--vida-people-rgb); }
.home .home-deliver li:hover { transform: translateY(-4px); box-shadow: var(--vida-lift); border-color: rgba(var(--lens-rgb), 0.35); }
.home .home-deliver .home-deliver-tile {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: var(--ld-s3);
  border-radius: 16px; background: rgba(var(--lens-rgb), 0.1); color: var(--lens);
  transition: background-color .35s ease-out, color .35s ease-out, transform .45s var(--vida-ease);
}
.home .home-deliver li:hover .home-deliver-tile { background: var(--lens); color: #fff; transform: rotate(-4deg); }
.home .home-deliver .c360-icon { width: 32px; height: 32px; margin: 0; color: inherit; }
.home .home-deliver strong { font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--text); hyphens: manual; text-wrap: balance; }
.home .home-deliver .home-deliver-desc { display: block; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }

/* Evidencia que se acumula: las fichas entran en la carpeta una tras otra */
.home .home-dossier .home-deliver li { opacity: 0; transform: translateY(14px); }
.home .home-dossier.visible .home-deliver li {
  opacity: 1; transform: none;
  transition: opacity .5s ease-out, transform .6s var(--vida-ease), box-shadow .45s var(--vida-ease), border-color .3s ease-out;
}
.home .home-dossier.visible .home-deliver li:hover { transform: translateY(-4px); transition-delay: 0s; }
.home .home-dossier.visible .home-deliver li:nth-child(2) { transition-delay: .05s; }
.home .home-dossier.visible .home-deliver li:nth-child(3) { transition-delay: .1s; }
.home .home-dossier.visible .home-deliver li:nth-child(4) { transition-delay: .15s; }
.home .home-dossier.visible .home-deliver li:nth-child(5) { transition-delay: .2s; }
.home .home-dossier.visible .home-deliver li:nth-child(6) { transition-delay: .25s; }
.home .home-dossier.visible .home-deliver li:nth-child(7) { transition-delay: .3s; }
.home .home-dossier.visible .home-deliver li:nth-child(8) { transition-delay: .35s; }
.home .home-dossier.visible .home-deliver li:hover:nth-child(n) { transition-delay: 0s; }

@media (min-width: 900px) {
  .home .home-dossier-folder { padding: var(--ld-s6); }
  .home .home-deliver { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ld-s4); }
}

/* ============================================================
   8b. PLAZO: Gantt protagonista + factores en fichas
   ============================================================ */
.home .home-plazo {
  display: grid; gap: var(--ld-s6); align-items: start;
  padding: var(--ld-s6); border: 1px solid var(--vida-card-line); border-top: 1px solid var(--vida-card-line);
  border-radius: 20px; background: #fff; box-shadow: var(--vida-panel);
}
.home .home-plazo-text h3 { margin: 0; font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.14; }
.home .home-plazo-text p { margin: var(--ld-s5) 0 var(--ld-s3); font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.home .home-plazo-factors {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ld-s2);
  margin: 0 0 var(--ld-s5); padding: 0; list-style: none; border: 0;
}
.home .home-plazo-factors li {
  display: flex; align-items: center; gap: var(--ld-s3); min-width: 0;
  padding: 10px var(--ld-s3); border: 1px solid var(--vida-card-line); border-radius: 12px;
  background: var(--surface); font-size: 0.92rem; line-height: 1.35; color: var(--text);
  transition: border-color .3s ease-out, background-color .3s ease-out;
}
.home .home-plazo-factors li::before { content: none; }
.home .home-plazo-factors li:hover { border-color: rgba(var(--vida-tech-rgb), 0.35); background: #fff; }
.home .home-plazo-factors .c360-icon {
  box-sizing: content-box; width: 20px; height: 20px; padding: 7px; flex: none;
  border-radius: 9px; background: #fff; color: var(--vida-tech);
}
.home .home-plazo-factors li:hover .c360-icon { background: rgba(var(--vida-tech-rgb), 0.1); }

.home .home-gantt { padding: var(--ld-s5); border-radius: 16px; background: var(--surface); }
.home .home-gantt figcaption { margin-bottom: var(--ld-s4); font-size: 0.88rem; font-weight: 600; color: var(--text); }
.home .home-gantt-scale { margin-bottom: var(--ld-s2); font-size: 0.75rem; color: var(--muted); }
.home .home-gantt-scale span { text-align: center; }
.home .home-gantt li { gap: var(--ld-s2); padding: var(--ld-s3) 0; border-top: 1px solid var(--vida-card-line); }
.home .home-gantt-name { font-size: 0.93rem; }
.home .home-gantt-name time { margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
/* Pista con la grilla de semanas; barra gruesa en color del bloque */
.home .home-gantt-track {
  height: 30px; padding: 5px 0; box-sizing: border-box; border-radius: 8px;
  background-color: #fff;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(15, 23, 42, 0.07) calc(100% / 12 - 1px) calc(100% / 12));
}
.home .home-gantt-track i {
  margin-inline: 2px; border-radius: 6px; background: var(--vida-g1);
  transform-origin: left center; transform: scaleX(0); opacity: 0;
  transition: transform .9s var(--vida-ease), opacity .3s ease-out;
}
.home .home-gantt-track .is-b2 { background: var(--vida-g2); }
.home .home-gantt-track .is-b3 { background: var(--vida-g3); }
.home .home-gantt-track .is-b4 { background: var(--vida-g4); }
.home .home-gantt-track .is-b5 { background: var(--vida-g5); }
/* Momento de movimiento: las barras crecen una vez, en orden, al entrar en pantalla */
.home .home-plazo.visible .home-gantt-track i { transform: scaleX(1); opacity: 1; transition-delay: .25s; }
.home .home-plazo.visible li:nth-child(2) .home-gantt-track i { transition-delay: .37s; }
.home .home-plazo.visible li:nth-child(3) .home-gantt-track i { transition-delay: .49s; }
.home .home-plazo.visible li:nth-child(4) .home-gantt-track i { transition-delay: .61s; }
.home .home-plazo.visible li:nth-child(5) .home-gantt-track i { transition-delay: .73s; }

@media (min-width: 641px) {
  .home .home-plazo-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .home .home-plazo { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: var(--ld-s7); padding: var(--ld-s7); }
  .home .home-plazo-factors { grid-template-columns: minmax(0, 1fr); }
  .home .home-gantt { padding: var(--ld-s6); }
  .home .home-gantt-track { height: 34px; padding: 6px 0; }
}

/* ============================================================
   ESTADO DE LA LEY (solo inicio): fecha grande + línea de tiempo gráfica
   ============================================================ */
/* La fecha prevista como titular visual; el texto la relativiza ("puede moverse") */
.home .ld-estado-ley .ld-date-lead { display: flex; flex-direction: column; align-items: flex-start; }
.home .ld-estado-ley .ld-date-lead::before {
  content: 'Dic 2026'; order: -2;
  font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.75rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.03em; color: var(--vida-tech);
  font-variant-numeric: tabular-nums;
}
.home .ld-estado-ley .ld-date-lead::after {
  content: 'Vigencia prevista de la Ley 21.719'; order: -1; align-self: stretch;
  margin: var(--ld-s3) 0 var(--ld-s5); padding-bottom: var(--ld-s5);
  border-bottom: 1px solid var(--vida-card-line);
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.home .ld-estado-ley .ld-date-lead h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }

@media (min-width: 769px) {
  .home .ld-estado-ley .ld-date {
    gap: 0; padding: 0; overflow: hidden; background: #fff;
    border: 1px solid var(--vida-card-line); border-radius: 20px; box-shadow: var(--vida-panel);
  }
  .home .ld-estado-ley .ld-date-lead { padding: var(--ld-s7); }
  .home .ld-estado-ley .ld-timeline {
    margin: 0; padding: var(--ld-s7); background: #f3f7fd;
    border-top: 1px solid var(--vida-card-line);
  }
  /* Riel grueso: sólido hasta hoy, en trazos hacia adelante */
  .home .ld-estado-ley .ld-timeline li { padding: 0 0 var(--ld-s5) 52px; }
  .home .ld-estado-ley .ld-timeline li:last-child { padding-bottom: 0; }
  .home .ld-estado-ley .ld-timeline li::before {
    left: 11px; top: 30px; bottom: 2px; width: 4px; border: 0; border-radius: 2px; background: #cbd5e1;
  }
  .home .ld-estado-ley .ld-timeline li.is-done::before { background: var(--vida-tech); }
  .home .ld-estado-ley .ld-timeline li.is-now::before,
  .home .ld-estado-ley .ld-timeline li.is-next::before {
    left: 11px; width: 0; background: none; border: 0; border-left: 4px dashed #94a3b8;
  }
  .home .ld-estado-ley .ld-timeline li:last-child::before { display: none; }
  /* Hitos de 26px */
  .home .ld-estado-ley .ld-timeline li::after {
    left: 0; top: 0; width: 26px; height: 26px; border: 3px solid #cbd5e1; background: #fff; box-shadow: none;
  }
  .home .ld-estado-ley .ld-timeline li.is-done::after {
    border-color: var(--vida-tech);
    background: var(--vida-tech) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  .home .ld-estado-ley .ld-timeline li.is-now::after {
    border: 7px solid var(--vida-tech); background: #fff;
    box-shadow: 0 0 0 6px rgba(var(--vida-tech-rgb), 0.16);
  }
  .home .ld-estado-ley .ld-timeline li.is-next::after { border-color: var(--vida-ink); border-width: 4px; }
  .home .ld-estado-ley .ld-timeline li.is-maybe::after { border-style: dashed; border-color: #94a3b8; }
  /* Fechas como fichas; "Hoy" en azul lleno */
  .home .ld-estado-ley .ld-timeline time {
    display: inline-block; margin: 2px 0 var(--ld-s2); padding: 3px 9px; border-radius: 6px;
    background: rgba(15, 23, 42, 0.06); font-size: 0.78rem; color: #334155;
  }
  .home .ld-estado-ley .ld-timeline li.is-now time { background: var(--vida-tech); color: #fff; font-weight: 600; }
  .home .ld-estado-ley .ld-timeline li.is-next time { background: var(--vida-ink); color: #fff; }
  .home .ld-estado-ley .ld-timeline strong { font-size: 1.04rem; line-height: 1.35; }
  .home .ld-estado-ley .ld-timeline span { margin-top: 2px; font-size: 0.9rem; }
  .home .ld-estado-ley .ld-timeline li.is-now strong { color: var(--vida-tech); }
  /* "Hoy": un solo pulso al entrar en pantalla, nunca en bucle */
  .home .ld-estado-ley .ld-date.visible .ld-timeline li.is-now::after { animation: vida-today 1.3s ease-out .7s 1 both; }
}
@media (min-width: 901px) {
  .home .ld-estado-ley .ld-date { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; }
  .home .ld-estado-ley .ld-date-lead { padding: var(--ld-s8) var(--ld-s7); justify-content: center; }
  .home .ld-estado-ley .ld-timeline { padding: var(--ld-s7) var(--ld-s7) var(--ld-s7) var(--ld-s7); border-top: 0; border-left: 1px solid var(--vida-card-line); }
}
@keyframes vida-today {
  0%   { box-shadow: 0 0 0 0 rgba(var(--vida-tech-rgb), 0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(var(--vida-tech-rgb), 0); }
  100% { box-shadow: 0 0 0 6px rgba(var(--vida-tech-rgb), 0.16); }
}
@media (max-width: 768px) {
  /* Celular: se mantiene el carrusel de editorial.css; fechas con más peso */
  .home .ld-estado-ley .ld-date { background: #fff; box-shadow: var(--vida-panel); }
  .home .ld-estado-ley .ld-timeline li { background: var(--surface); }
  .home .ld-estado-ley .ld-timeline li.is-now { background: #fff; border-width: 2px; }
  .home .ld-estado-ley .ld-timeline li.is-now time { color: var(--vida-tech); font-weight: 600; }
}

/* ============================================================
   9. DOS MIRADAS (solo inicio): encabezado centrado, retratos grandes
   ============================================================ */
.home .home-lens-head {
  grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--ld-s4);
  max-width: 50rem; margin-inline: auto; text-align: center;
}
.home .home-lens-head h2 { font-size: var(--home-type-h2); line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance; }
.home .home-lens-head p { max-width: 60ch; font-size: 1.05rem; line-height: 1.6; }

.home .home-lens-body .ld-lens {
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px) minmax(0, 1fr);
  gap: 0; padding: 0; overflow: hidden; align-items: stretch; border-radius: 20px; box-shadow: var(--vida-panel);
}
.home .home-lens-body .ld-lens-col { padding: var(--ld-s7) var(--ld-s6); }
.home .home-lens-body .ld-lens-col.is-cyber { background: rgba(var(--vida-tech-rgb), 0.055); }
.home .home-lens-body .ld-lens-col.is-legal { background: rgba(var(--vida-legal-rgb), 0.055); }
.home .home-lens-body .ld-lens-kicker { color: var(--vida-tech); }
.home .home-lens-body .is-legal .ld-lens-kicker { color: var(--vida-legal); }
.home .home-lens-body .ld-lens-col h3 { font-size: 1.7rem; margin-bottom: var(--ld-s4); }
.home .home-lens-body .ld-lens-col li { border-bottom-color: rgba(15, 23, 42, 0.1); }
/* La persona encabeza su mirada: retrato grande con anillo del color de la mirada */
.home .home-lens-body .ld-lens-lead {
  order: -1; gap: var(--ld-s4); margin-bottom: var(--ld-s5); padding: 0; border: 0;
}
.home .home-lens-body .ld-lens-lead img {
  width: 96px; height: 96px; border-radius: 22px; object-fit: cover; object-position: top;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--vida-tech), 0 18px 30px -16px rgba(15, 23, 42, 0.45);
  transition: transform .45s var(--vida-ease);
}
.home .home-lens-body .is-legal .ld-lens-lead img { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--vida-legal), 0 18px 30px -16px rgba(15, 23, 42, 0.45); }
.home .home-lens-body .ld-lens-col:hover .ld-lens-lead img { transform: rotate(-3deg) scale(1.03); }
.home .home-lens-body .ld-lens-lead strong { font-size: 1.08rem; line-height: 1.3; }
.home .home-lens-body .ld-lens-lead span { font-size: 0.88rem; font-weight: 600; color: var(--vida-tech); }
.home .home-lens-body .is-legal .ld-lens-lead span { color: var(--vida-legal); }
/* Venn: más grande y con más tinta */
.home .home-lens-body .ld-venn { align-self: center; padding: var(--ld-s6) var(--ld-s5); }
.home .home-lens-body .ld-venn circle:nth-of-type(1) { fill-opacity: 0.16; stroke-width: 2; }
.home .home-lens-body .ld-venn circle:nth-of-type(2) { fill-opacity: 0.16; stroke-width: 2; }
.home .home-lens-body .ld-venn circle:nth-of-type(3) { fill-opacity: 0.12; }
.home .home-lens-body .ld-venn figcaption { margin-top: var(--ld-s3); font-size: 1.12rem; }
.home .home-lens-body .ld-lens-note { max-width: none; margin: var(--ld-s5) auto 0; font-size: 0.92rem; }
.home .home-lens-section .home-team-links { max-width: none; margin: var(--ld-s3) auto 0; }

@media (max-width: 1000px) {
  .home .home-lens-body .ld-lens { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home .home-lens-body .ld-venn { grid-column: 1 / -1; order: -1; max-width: 340px; margin: 0 auto; padding-bottom: var(--ld-s3); }
}
@media (max-width: 768px) {
  /* Celular: apilado (sin carrusel), con retratos y Venn compacto */
  .home .home-lens-body .ld-lens { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
  .home .home-lens-body .ld-lens .ld-venn { display: block; width: 100%; max-width: 250px; padding: var(--ld-s5) 0 var(--ld-s2); }
  .home .home-lens-body .ld-lens-col { flex: none; padding: var(--ld-s6) var(--ld-s5); }
  .home .home-lens-body .ld-lens-col h3 { font-size: 1.35rem; }
  .home .home-lens-body .ld-lens-lead { display: flex; margin-bottom: var(--ld-s4); }
  .home .home-lens-body .ld-lens-lead img { width: 72px; height: 72px; border-radius: 18px; }
}

/* ============================================================
   9b. FAQ: encabezado lateral fijo + tarjeta "¿Otra pregunta?"
   ============================================================ */
.home .home-faq { display: grid; gap: var(--ld-s7); align-items: start; }
.home .home-faq > * { min-width: 0; }
.home .home-faq-aside h2 {
  margin: 0 0 var(--ld-s4); font-size: var(--home-type-h2); line-height: 1.04; letter-spacing: -0.032em;
}
.home .home-faq-aside > p { margin: 0; max-width: 40ch; font-size: 1.02rem; line-height: 1.65; color: var(--muted); }
.home .home-faq-ask {
  margin-top: var(--ld-s6); padding: var(--ld-s5); border-radius: 18px;
  background: rgba(var(--vida-tech-rgb), 0.07); border: 1px solid rgba(var(--vida-tech-rgb), 0.18);
}
.home .home-faq-ask p { margin: 0 0 var(--ld-s4); font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.home .home-faq-ask .home-faq-ask-title {
  margin-bottom: var(--ld-s1); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2; color: var(--text);
}
.home .home-faq-ask .btn { background: #fff; border-color: rgba(var(--vida-tech-rgb), 0.3); }
.home .home-faq-ask .btn:hover { border-color: var(--vida-tech); color: var(--vida-tech); }

.home .home-qa { interpolate-size: allow-keywords; border-top: 1px solid var(--vida-card-line); }
.home .home-qa details { border-bottom: 1px solid var(--vida-card-line); }
.home .home-qa summary { gap: var(--ld-s5); padding: var(--ld-s5) 0; font-size: 1.08rem; }
.home .home-qa details[open] > summary { color: var(--vida-tech); }
/* Botón circular: el + gira y pasa a × al abrir */
.home .home-qa summary::after,
.home .home-qa details[open] > summary::after {
  --plus: var(--vida-tech);
  width: 36px; height: 36px; border-radius: 50%; box-sizing: border-box;
  border: 1px solid rgba(var(--vida-tech-rgb), 0.3); background-color: #fff;
  background-image: linear-gradient(var(--plus), var(--plus)), linear-gradient(var(--plus), var(--plus));
  background-position: center; background-repeat: no-repeat; background-size: 14px 2px, 2px 14px;
  transition: transform .4s var(--vida-ease), background-color .25s ease-out, border-color .25s ease-out;
}
.home .home-qa summary:hover::after { border-color: var(--vida-tech); }
.home .home-qa details[open] > summary::after {
  --plus: #fff; background-color: var(--vida-tech); border-color: var(--vida-tech); transform: rotate(45deg);
}
.home .home-qa .ld-qa-body { padding: 0 var(--ld-s7) var(--ld-s5) 0; }
.home .home-qa .ld-qa-body a { color: var(--vida-tech); font-weight: 600; text-underline-offset: 3px; }
/* Apertura suave donde el navegador lo permite (::details-content); si no, abre al instante */
.home .home-qa details::details-content {
  block-size: 0; overflow: clip; opacity: 0;
  transition: block-size .45s var(--vida-ease), opacity .35s ease-out, content-visibility .45s allow-discrete;
}
.home .home-qa details[open]::details-content { block-size: auto; opacity: 1; }

@media (min-width: 900px) {
  .home .home-faq { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: var(--ld-s8); }
  .home .home-faq-aside { position: sticky; top: calc(var(--ld-nav-offset) + var(--ld-s6)); }
}
@media (max-width: 640px) {
  .home .home-qa summary { font-size: 1rem; }
  .home .home-qa summary::after,
  .home .home-qa details[open] > summary::after { width: 32px; height: 32px; }
  .home .home-qa .ld-qa-body { padding-right: 0; }
}

/* ============================================================
   10. CIERRE: campo azul con la acción + qué pasa después
   ============================================================ */
.home .home-close-grid {
  display: grid; overflow: hidden; border-radius: 24px; background: #fff;
  border: 1px solid var(--vida-card-line); box-shadow: 0 40px 70px -45px rgba(15, 23, 42, 0.45);
}
.home .home-close-field {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: var(--ld-s5);
  padding: var(--ld-s7) var(--ld-s6); background: var(--vida-tech); color: #fff;
}
/* Anillos concéntricos (360) que salen de la esquina; decorativos, bajo contraste */
.home .home-close-field::before {
  content: ''; position: absolute; z-index: -1; right: -220px; top: -240px; width: 560px; height: 560px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 560' fill='none' stroke='%23fff' stroke-opacity='.14'%3E%3Ccircle cx='280' cy='280' r='35'/%3E%3Ccircle cx='280' cy='280' r='70'/%3E%3Ccircle cx='280' cy='280' r='105'/%3E%3Ccircle cx='280' cy='280' r='140'/%3E%3Ccircle cx='280' cy='280' r='175'/%3E%3Ccircle cx='280' cy='280' r='210'/%3E%3Ccircle cx='280' cy='280' r='245'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
          mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.home .home-close-field::after {
  content: ''; position: absolute; z-index: -1; right: 58px; top: 38px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16);
}
.home .home-close-field h2 {
  margin: 0; max-width: 16ch; color: #fff;
  font-size: var(--home-type-h2); line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance;
}
.home .home-close-field p { margin: 0; max-width: 46ch; font-size: 1.05rem; line-height: 1.6; color: var(--home-on-blue, #DBEAFE); }
.home .home-close-field .btn-group { display: flex; flex-wrap: wrap; gap: var(--ld-s3); margin-top: var(--ld-s2); }
.home .home-close-field .btn-primary { background: #fff; color: var(--vida-ink); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.55); }
.home .home-close-field .btn-primary:hover { background: #eaf2fc; color: var(--vida-ink); }
.home .home-close-field .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.home .home-close-field .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }

.home .home-close-next { padding: var(--ld-s7) var(--ld-s6); }
.home .home-close-next h3 {
  margin: 0 0 var(--ld-s5); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2; color: var(--text);
}
.home .home-close-steps { counter-reset: vida-step; margin: 0; padding: 0; list-style: none; }
.home .home-close-steps li {
  --step: var(--vida-g1);
  counter-increment: vida-step; position: relative; padding: 0 0 var(--ld-s5) 60px; min-height: 42px;
}
.home .home-close-steps li.is-s2 { --step: var(--vida-g3); }
.home .home-close-steps li.is-s3 { --step: var(--vida-g5); padding-bottom: 0; }
.home .home-close-steps li::before {
  content: counter(vida-step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--step); color: #fff; font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700;
}
.home .home-close-steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; border-radius: 1px;
  background: linear-gradient(var(--step), rgba(15, 23, 42, 0.1));
}
.home .home-close-steps strong { display: block; padding-top: 2px; font-size: 1.04rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.home .home-close-steps span { display: block; margin-top: 2px; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }

@media (min-width: 900px) {
  .home .home-close-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .home .home-close-field { padding: var(--ld-s8) var(--ld-s7); }
  .home .home-close-next { padding: var(--ld-s8) var(--ld-s7); align-self: center; }
}
@media (max-width: 640px) {
  .home .home-close-grid { border-radius: 20px; }
  .home .home-close-field { padding: var(--ld-s6) var(--ld-s5); }
  .home .home-close-field::after { display: none; }
  .home .home-close-field .btn-group .btn { width: 100%; text-align: center; justify-content: center; }
  .home .home-close-next { padding: var(--ld-s6) var(--ld-s5); }
}

/* ============================================================
   Celular angosto: entregables compactos (nombre + baldosa)
   ============================================================ */
@media (max-width: 640px) {
  .home .home-dossier-folder { padding: var(--ld-s3); border-radius: 0 16px 16px 16px; }
  .home .home-dossier::before { width: 40%; }
  .home .home-dossier::after { width: 36%; right: 30%; }
  .home .home-deliver { gap: var(--ld-s2); }
  .home .home-deliver li { flex-direction: column; align-items: flex-start; gap: var(--ld-s2); padding: var(--ld-s4) var(--ld-s3); border-radius: 14px; }
  .home .home-deliver .home-deliver-tile { display: grid; width: 44px; height: 44px; margin-bottom: var(--ld-s1); border-radius: 12px; }
  .home .home-deliver .c360-icon { width: 24px; height: 24px; }
  .home .home-deliver strong { font-size: 0.86rem; line-height: 1.3; }
  .home .home-deliver .home-deliver-desc { display: none; }
  .home .home-dossier-tab { padding: 8px var(--ld-s4) 6px; font-size: 0.8rem; }
  .home .home-dossier-legend li { font-size: 0.82rem; }
  .home .home-plazo { padding: var(--ld-s5) var(--ld-s4); border-radius: 16px; }
  .home .home-gantt { padding: var(--ld-s4) var(--ld-s3); margin-inline: calc(-1 * var(--ld-s2)); }
  .home .home-gantt-track { height: 22px; padding: 4px 0; }
  .home .home-faq-ask { margin-top: var(--ld-s5); }
}

/* ============================================================
   MOVIMIENTO JS (home-motion.js). Las clases solo existen si el
   script corre, así que sin JS o con movimiento reducido no aplica.
   ============================================================ */

/* Órbita en bucle: el punto gira sin fin, se detiene en cada etapa
   y la ilumina en el diagrama y en su tarjeta */
.home .home-orbit.is-looping .home-orbit-runner { opacity: 1; animation: none; transition: none; }
.home .home-orbit-runner circle { transition: fill .5s ease-out; }
.home .home-orbit-runner.is-keep circle { fill: var(--home-c-keep); }
.home .home-orbit-node { transition: box-shadow .5s var(--home-ease-out), background-color .5s ease-out, color .5s ease-out; }
.home .home-orbit-node.is-active {
  background: var(--tone); color: #fff;
  box-shadow: 0 0 0 10px rgba(var(--tone-rgb), 0.12), 0 18px 36px -16px rgba(var(--tone-rgb), 0.7);
}
@media (min-width: 1080px) {
  .home .home-stage.is-active {
    border-color: rgba(var(--tone-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--tone-rgb), 0.08), 0 24px 44px -28px rgba(var(--tone-rgb), 0.55);
  }
}

/* Foco que sigue al cursor (solo mouse) */
.home .home-path.has-spot,
.home .home-stage.has-spot { position: relative; }
.home .has-spot::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--tone-rgb), 0.10), transparent 70%);
  opacity: 0; transition: opacity .35s ease-out;
}
.home .has-spot:hover::after { opacity: 1; }

/* Parallax: usa translate (no transform) para no chocar con hp-swap */
.home .has-parallax { translate: 0 var(--py, 0); }

/* ---------- Hero: el esquema "respira" en bucle (clase .hs-live) ----------
   Ciclo de 4,2 s: un pulso sale de los especialistas, entra a Confirmer360
   (la tarjeta se ilumina), sale hacia la evidencia y cada evidencia se valida. */
.hs-pulse { fill: none; stroke: #cfe7ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 24 140; stroke-dashoffset: 24; opacity: 0; filter: drop-shadow(0 0 4px rgba(124, 192, 255, 0.95)); }
.hs-live .hs-link--in .hs-pulse { animation: hs-flow-in 4.2s linear infinite; }
.hs-live .hs-link--out .hs-pulse { animation: hs-flow-out 4.2s linear infinite; }
.hs-live .hs-link--in .hs-pulse + .hs-pulse { animation-delay: .08s; }
@keyframes hs-flow-in {
  0% { stroke-dashoffset: 24; opacity: 0; }
  3% { opacity: 1; }
  22% { stroke-dashoffset: -100; opacity: 1; }
  23%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes hs-flow-out {
  0%, 34% { stroke-dashoffset: 24; opacity: 0; }
  37% { opacity: 1; }
  56% { stroke-dashoffset: -100; opacity: 1; }
  57%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.hs-live .hs-card { animation: hs-settle 460ms var(--hp-ease-out) 300ms both, hs-card-glow 4.2s ease-out 1s infinite; }
@keyframes hs-card-glow {
  0%, 18%, 48%, 100% { box-shadow: var(--hp-shadow-dark); }
  28% { box-shadow: var(--hp-shadow-dark), 0 0 0 4px rgba(124, 192, 255, 0.35), 0 0 48px -6px rgba(124, 192, 255, 0.55); }
}
.hs-live .hs-proof li { animation: hs-settle 380ms var(--hp-ease-out) 500ms both, hs-proof-glow 4.2s ease-out 1s infinite; }
.hs-live .hs-proof li:nth-child(2) { animation-delay: 540ms, 1.12s; }
.hs-live .hs-proof li:nth-child(3) { animation-delay: 580ms, 1.24s; }
@keyframes hs-proof-glow {
  0%, 52%, 82%, 100% { border-color: var(--ld-hairline-on-dark); background: var(--home-navy-raised); }
  60% { border-color: rgba(var(--green-rgb), 0.7); background: rgba(var(--green-rgb), 0.12); }
}
.hs-live .hs-proof li .hs-ok { animation: hs-ok-pop 4.2s var(--home-ease-out) 1s infinite; }
.hs-live .hs-proof li:nth-child(2) .hs-ok { animation-delay: 1.12s; }
.hs-live .hs-proof li:nth-child(3) .hs-ok { animation-delay: 1.24s; }
@keyframes hs-ok-pop { 0%, 54%, 70%, 100% { scale: 1; } 60% { scale: 1.45; } }
/* La alerta pide atención una vez por ciclo */
.hs-live .hs-alert svg { transform-origin: 50% 15%; animation: hs-bell 4.2s ease-in-out 1s infinite; }
@keyframes hs-bell {
  0%, 70%, 86%, 100% { rotate: 0deg; }
  73% { rotate: 16deg; } 76% { rotate: -14deg; } 79% { rotate: 10deg; } 82% { rotate: -6deg; }
}
/* Inclinación leve del esquema según el mouse */
.hs-live .hs-grid { transition: transform .6s var(--home-ease-out); transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
/* Brillo que cruza "Es un sistema que funciona." */
.c360-motion .home-hero h1 em {
  background: linear-gradient(100deg, var(--accent) 0 40%, #cfe7ff 50%, var(--accent) 60% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: hs-sheen 7s ease-in-out .6s infinite;
}
@keyframes hs-sheen { 0% { background-position: 100% 0; } 22%, 100% { background-position: 0% 0; } }

/* Motivo de las bandas: el nodo late (hero, problema y CTA) */
.c360-motion .home-band-ring { transform-box: fill-box; transform-origin: center; animation: band-ring 3.2s ease-out infinite; }
@keyframes band-ring { 0% { scale: 1; stroke-opacity: 0.55; } 100% { scale: 2.6; stroke-opacity: 0; } }
.c360-motion .home-band-hub { transform-box: fill-box; transform-origin: center; animation: band-hub 3.2s ease-in-out infinite; }
@keyframes band-hub { 0%, 100% { scale: 1; } 12% { scale: 1.35; } }

/* ---------- Problema: titulares más contenidos ---------- */
.home .home-problem .ld-head h2 { font-size: clamp(1.75rem, 2.7vw, 2.3rem); line-height: 1.1; }
.home .home-problem .ld-head p { font-size: 1rem; }
.home .home-oblig h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.01em; }
.home .home-oblig-icon { width: 48px; height: 48px; }
.home .home-oblig-icon .c360-icon { width: 26px; height: 26px; }
.home .home-oblig .home-legal-mark { font-size: 0.76rem; }

/* ---------- Problema: fondo con más vida ----------
   Retícula de registro, luz azul arriba (donde converge el programa) y verde
   abajo (lo operado), hojas sueltas en los márgenes y pulsos que corren por
   las líneas del motivo hacia el nodo (home-motion.js). Todo decorativo. */
.home-problem-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-problem-bg > span { position: absolute; display: block; }
.hpb-grid {
  inset: -28px 0 0 -28px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 45% 55%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 85% 75% at 45% 55%, #000 30%, transparent 85%);
}
.hpb-glow { border-radius: 50%; filter: blur(10px); }
.hpb-glow.is-blue {
  width: 720px; height: 720px; right: -160px; top: -300px;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.20), rgba(59, 158, 255, 0.06) 45%, transparent 70%);
}
.hpb-glow.is-green {
  width: 820px; height: 620px; left: -220px; bottom: -320px;
  background: radial-gradient(ellipse, rgba(0, 168, 126, 0.26), rgba(0, 168, 126, 0.07) 45%, transparent 70%);
}
.hpb-sheet {
  display: none !important; width: 64px; height: 84px; border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)) 12px 16px / 26px 2px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.08) 10px 11.5px) 12px 28px / 40px 44px no-repeat,
    rgba(255, 255, 255, 0.015);
}
@media (min-width: 1280px) {
  .hpb-sheet { display: block !important; }
  .hpb-sheet.is-1 { left: 3.5%; top: 22%; rotate: -8deg; }
  .hpb-sheet.is-2 { left: 6.5%; top: 64%; rotate: 6deg; scale: .8; }
  .hpb-sheet.is-3 { right: 4%; top: 52%; rotate: 9deg; scale: .9; }
  .hpb-sheet.is-4 { right: 7.5%; top: 80%; rotate: -5deg; scale: .7; }
}
.hpb-scan {
  left: 0; right: 0; top: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent 5%, rgba(124, 192, 255, 0.35) 35%, rgba(0, 168, 126, 0.35) 65%, transparent 95%);
}
/* Pulsos por las líneas del motivo, hacia el nodo */
.band-pulse { fill: none; stroke: #9fd0ff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 5 200; stroke-dashoffset: 5; stroke-opacity: 0; }

.c360-motion .hpb-grid { animation: hpb-drift 14s linear infinite; }
@keyframes hpb-drift { to { translate: 28px 28px; } }
.c360-motion .hpb-glow.is-blue { animation: hpb-breathe 9s ease-in-out infinite; }
.c360-motion .hpb-glow.is-green { animation: hpb-breathe 11s ease-in-out -4s infinite; }
@keyframes hpb-breathe { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
/* Las hojas flotan y, de vez en cuando, una pasa a "operada" (borde verde continuo) */
.c360-motion .hpb-sheet { animation: hpb-float 10s ease-in-out infinite, hpb-op 10s ease-in-out infinite; }
.c360-motion .hpb-sheet.is-2 { animation-duration: 12s, 12s; animation-delay: -3s, -6s; }
.c360-motion .hpb-sheet.is-3 { animation-duration: 11s, 11s; animation-delay: -6s, -2s; }
.c360-motion .hpb-sheet.is-4 { animation-duration: 13s, 13s; animation-delay: -1s, -9s; }
@keyframes hpb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes hpb-op {
  0%, 55%, 100% { border-style: dashed; border-color: rgba(255, 255, 255, 0.18); background-color: rgba(255, 255, 255, 0.015); }
  65%, 82% { border-style: solid; border-color: rgba(0, 168, 126, 0.6); background-color: rgba(0, 168, 126, 0.08); }
}
.c360-motion .hpb-scan { animation: hpb-scan 9s cubic-bezier(.45, 0, .55, 1) 1.5s infinite; }
@keyframes hpb-scan {
  0% { translate: 0 0; opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  80%, 100% { translate: 0 var(--hpb-h, 900px); opacity: 0; }
}
.c360-motion .home-problem.is-onscreen .band-pulse { animation: band-flow var(--dur, 4s) linear var(--del, 0s) infinite; }
@keyframes band-flow {
  0% { stroke-dashoffset: 5; stroke-opacity: 0; }
  10% { stroke-opacity: .9; }
  90% { stroke-opacity: .9; }
  100% { stroke-dashoffset: -100; stroke-opacity: 0; }
}
/* Fuera de pantalla, el fondo se detiene */
.c360-motion .home-problem:not(.is-onscreen) .home-problem-bg > span { animation-play-state: paused; }

/* Problema: cada tarjeta pasa de "en papel" a "operado" al entrar en pantalla.
   Antes del paso, lo operado espera abajo y transparente (solo con JS). */
.c360-motion .home-problem .reveal:not(.visible) .home-shift .is-op { opacity: 0; translate: 0 18px; }
.c360-motion .home-problem .reveal:not(.visible) .home-shift .is-op::before { opacity: 0; }
.c360-motion .home-problem .reveal.visible .home-shift .is-paper { animation: shift-paper .6s ease-out var(--d, .5s) both; }
.c360-motion .home-problem .reveal.visible .home-shift .is-op { animation: shift-op .7s var(--home-ease-out) calc(var(--d, .5s) + .35s) both; }
.c360-motion .home-problem .reveal.visible .home-shift .is-op::before { animation: shift-arrow .5s var(--home-ease-out) calc(var(--d, .5s) + .15s) both, shift-bob 2.6s ease-in-out calc(var(--d, .5s) + 1.5s) infinite; }
.c360-motion .home-problem .reveal.visible .home-shift .is-op .home-shift-mark path { stroke-dasharray: 14; animation: shift-check .5s ease-out calc(var(--d, .5s) + .8s) both; }
.home-oblig > li:nth-child(1) { --d: .45s; }
.home-oblig > li:nth-child(2) { --d: .75s; }
.home-oblig > li:nth-child(3) { --d: 1.05s; }
@keyframes shift-paper { from { opacity: 1; } to { opacity: .85; } }
/* Lo que queda en papel se lee igual (AA sobre la tarjeta navy aun atenuado) */
.home .home-shift .is-paper dt,
.home .home-shift .is-paper dd { color: #b4c0d3; }
@keyframes shift-op {
  0% { opacity: 0; translate: 0 18px; box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0); }
  60% { opacity: 1; translate: 0 0; box-shadow: 0 0 0 6px rgba(var(--green-rgb), 0.18); }
  100% { opacity: 1; translate: 0 0; box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0); }
}
@keyframes shift-arrow { from { opacity: 0; margin-top: -8px; } to { opacity: 1; margin-top: 0; } }
@keyframes shift-bob { 0%, 100% { margin-top: 0; } 50% { margin-top: 4px; } }
@keyframes shift-check { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }

/* ============================================================
   METODOLOGÍA: fondo técnico y tarjetas sobrias
   Fondo de plano (retícula fina con líneas mayores) que se desvanece
   hacia los bordes; la órbita lleva un dial con marcas, como un
   instrumento. Tarjetas sin franja de color: número en placa, filete
   neutro; el color de la etapa aparece solo cuando está activa.
   ============================================================ */
.home .home-cycle-section {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(var(--home-c-start-rgb), 0.06), transparent 70%),
    #f7f9fc;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.home .home-cycle-section::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 58%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 58%, #000 25%, transparent 80%);
}

@media (min-width: 1080px) {
  .home .home-cycle > ol { position: relative; z-index: 1; pointer-events: none; }
  .home .home-cycle > ol > li { pointer-events: auto; }

  /* Dial alrededor de la órbita: marcas finas cada 6°, mayores cada 30°, y un anillo punteado exterior */
  .home .home-orbit::before,
  .home .home-orbit::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
  .home .home-orbit::before {
    inset: -7%;
    background:
      repeating-conic-gradient(from -0.3deg, rgba(15, 23, 42, 0.30) 0 0.6deg, transparent 0.6deg 30deg),
      repeating-conic-gradient(from -0.2deg, rgba(15, 23, 42, 0.14) 0 0.4deg, transparent 0.4deg 6deg);
    -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
            mask-image: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
  }
  .home .home-orbit::after { inset: -14%; border: 1px dashed rgba(15, 23, 42, 0.14); }
  .c360-motion .home .home-orbit::before { animation: cycle-dial 120s linear infinite; }

  /* Tarjetas: sin franja superior */
  .home .home-stage {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--ld-s3); align-items: center;
    padding: var(--ld-s5);
    background: #fff; border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -30px rgba(15, 23, 42, 0.35);
  }
  .home .home-stage > * { grid-column: 1 / -1; }
  .home .home-stage > .home-stage-num {
    grid-column: 1; grid-row: 1; display: grid; place-items: center;
    width: 38px; height: 38px; padding: 0; border-radius: 9px;
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--tone); background: rgba(var(--tone-rgb), 0.07); border: 1px solid rgba(var(--tone-rgb), 0.22);
    transition: background-color .5s ease-out, color .5s ease-out, border-color .5s ease-out;
  }
  .home .home-stage > h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .home .home-stage > p:not(.home-stage-num):not(.home-cycle-who) { margin-top: var(--ld-s3); }
  .home .home-stage > .home-cycle-who {
    margin-top: var(--ld-s4); padding-top: var(--ld-s3); border-top: 1px solid var(--border);
  }
  .home .home-stage:hover { border-color: rgba(var(--tone-rgb), 0.35); }
  .home .home-stage.is-active { border-color: rgba(var(--tone-rgb), 0.45); }
  .home .home-stage.is-active > .home-stage-num { background: var(--tone); color: #fff; border-color: var(--tone); }
}
@keyframes cycle-dial { to { rotate: 360deg; } }

/* ============================================================
   CONFIRMER360 (recorrido): fondo con degradado y pestañas visibles
   Fondo: degradado navy → azul profundo, dos luces de marca y una
   retícula en perspectiva bajo la composición. Pestañas: control
   segmentado con icono, número y barra de avance automático.
   ============================================================ */
.home .home-product {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #0a1222 0%, #0d1a35 48%, #0b1528 100%);
}
.home .home-product::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(59, 158, 255, 0.55) 30%, rgba(0, 168, 126, 0.45) 70%, transparent);
}
.home .home-product > .container { position: relative; z-index: 1; }
.home-product-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-product-bg > span { position: absolute; display: block; }
.hpr-glow { border-radius: 50%; filter: blur(20px); }
.hpr-glow.is-a {
  width: 900px; height: 700px; left: -260px; top: -320px;
  background: radial-gradient(ellipse, rgba(22, 103, 199, 0.34), rgba(22, 103, 199, 0.08) 45%, transparent 70%);
}
.hpr-glow.is-b {
  width: 1000px; height: 800px; right: -280px; top: 22%;
  background: radial-gradient(ellipse, rgba(59, 158, 255, 0.27), rgba(0, 168, 126, 0.09) 50%, transparent 72%);
}
.hpr-floor {
  left: -30%; right: -30%; bottom: 0; height: 95%;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
}
/* Luz bajo la composición activa */
.home .home-product .tour-visual::after {
  content: ''; position: absolute; z-index: -1; left: 10%; right: 0; top: 10%; bottom: 0;
  background: radial-gradient(closest-side, rgba(59, 158, 255, 0.22), transparent);
  filter: blur(30px); pointer-events: none;
}
.c360-motion .home-product.is-onscreen .hpr-floor { animation: hpr-floor 5s linear infinite; }
.c360-motion .home-product.is-onscreen .hpr-glow.is-a { animation: hpr-drift 16s ease-in-out infinite; }
.c360-motion .home-product.is-onscreen .hpr-glow.is-b { animation: hpr-drift 19s ease-in-out -7s infinite reverse; }
@keyframes hpr-floor { to { background-position: 0 56px, 0 0; } }
@keyframes hpr-drift { 0%, 100% { translate: 0 0; opacity: .85; } 50% { translate: 60px 30px; opacity: 1; } }

/* Indicación de que son pestañas */
.home .tour-hint {
  display: flex; align-items: center; gap: var(--ld-s2); margin: 0 0 var(--ld-s3);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; color: #9fb4d4;
}
.home .tour-hint[hidden] { display: none; }
.home .tour-hint .c360-icon { width: 16px; height: 16px; rotate: 90deg; color: var(--accent); }
.c360-motion .home .tour-hint .c360-icon { animation: tour-hint 1.8s ease-in-out infinite; }
@keyframes tour-hint { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }

/* Pestañas: control segmentado */
.home .tour-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  margin-bottom: var(--ld-s7); padding: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.home .tour-tabs[hidden] { display: none; }
.home .tour-tab {
  display: flex; align-items: center; gap: var(--ld-s3); min-height: 0; min-width: 0;
  padding: 10px 12px 12px; overflow: hidden;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  font-size: 0.9rem; color: #b6c4da;
  transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out, box-shadow .25s ease-out;
}
.home .tour-tab::after { display: none; }
.home .tour-tab:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.10); color: #fff; }
.home .tour-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-tab-ico {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: rgba(59, 158, 255, 0.12); border: 1px solid rgba(59, 158, 255, 0.28); color: var(--accent);
  transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out;
}
.tour-tab-ico .c360-icon { width: 20px; height: 20px; }
.tour-tab-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tour-tab-text small { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; color: #7f93b3; }
.home .tour-tab[aria-selected="true"] {
  background: #fff; border-color: #fff; color: #0f172a;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(59, 158, 255, 0.14);
}
.home .tour-tab[aria-selected="true"] .tour-tab-ico { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.home .tour-tab[aria-selected="true"] .tour-tab-text small { color: var(--accent-strong); }
/* Barra de avance del cambio automático */
.tour-tab-progress {
  position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px;
  background: rgba(22, 103, 199, 0.14); opacity: 0; overflow: hidden;
}
.tour-tab-progress::before {
  content: ''; position: absolute; inset: 0; background: var(--accent-strong);
  transform: scaleX(0); transform-origin: left;
}
.tour.is-auto .tour-tab[aria-selected="true"] .tour-tab-progress { opacity: 1; }
.tour.is-auto .tour-tab[aria-selected="true"] .tour-tab-progress::before { animation: tour-progress var(--tour-dur, 7s) linear forwards; }
.tour.is-auto.is-paused .tour-tab[aria-selected="true"] .tour-tab-progress::before { animation-play-state: paused; }
@keyframes tour-progress { to { transform: none; } }
@media (min-width: 1000px) {
  .home .tour-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .tour-tab { padding: 12px 14px 14px; font-size: 0.93rem; }
}
@media (max-width: 520px) {
  .home .tour-tab { gap: var(--ld-s2); padding: 8px 8px 10px; font-size: 0.82rem; }
  .tour-tab-ico { width: 30px; height: 30px; }
  .tour-tab-ico .c360-icon { width: 17px; height: 17px; }
}

/* ============================================================
   Movimiento reducido: todo queda en su estado final
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .home .home-dossier .home-deliver li,
  .home .home-dossier.visible .home-deliver li { opacity: 1; transform: none; transition: none; }
  .home .home-deliver li:hover,
  .home .home-dossier.visible .home-deliver li:hover { transform: none; }
  .home .home-deliver li:hover .home-deliver-tile { transform: none; }
  .home .home-gantt-track i { transform: none; opacity: 1; transition: none; }
  .home .ld-estado-ley .ld-date.visible .ld-timeline li.is-now::after { animation: none; }
  .home .home-lens-body .ld-lens-col:hover .ld-lens-lead img { transform: none; }
  .home .home-qa summary::after,
  .home .home-qa details[open] > summary::after { transition: none; }
  .home .home-qa details::details-content { transition: none; }
  .home .home-hero h1 em { animation: none; }
}
