/* AutoCommit — sistema visual
   Un solo elemento con carácter: el riel de git del plan de commits.
   Lo demás es sobrio: gris frío, tinta azulada, cobalto para actuar. */

:root {
  --fondo: #f2f4f7;
  --superficie: #ffffff;
  --hundido: #e9edf2;
  --borde: #d5dbe3;
  --borde-fuerte: #b9c2ce;
  --tinta: #18212f;
  --tenue: #5d6878;
  --cobalto: #2a56c6;
  --cobalto-txt: #ffffff;
  --cobalto-suave: #e5ecfb;
  --ok: #1d8a5a;   --ok-suave: #e1f3ea;
  --mal: #c2362c;  --mal-suave: #fbe6e4;
  --info: #2a56c6; --info-suave: #e5ecfb;
  --gris: #8a94a6; --gris-suave: #eceff3;
  --aviso: #9a6400; --aviso-suave: #fdf1d8;
  /* colores de integrante (carril) */
  --m0: #2a56c6; --m1: #b0418f; --m2: #13857f; --m3: #b7791f; --m4: #6b4fbb; --m5: #c2362c;
  --sombra: 0 1px 0 rgba(24, 33, 47, .04), 0 1px 3px rgba(24, 33, 47, .06);
  --radio: 10px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #12161d; --superficie: #1a2029; --hundido: #151a22; --borde: #2a323e; --borde-fuerte: #3b4553;
    --tinta: #e6eaf0; --tenue: #98a2b2; --cobalto: #6f95f2; --cobalto-txt: #0c1424; --cobalto-suave: #1d2a46;
    --ok: #4cc28b; --ok-suave: #15302a; --mal: #f07d72; --mal-suave: #3a1e1c; --info: #6f95f2; --info-suave: #1d2a46;
    --gris: #7e889a; --gris-suave: #232a35; --aviso: #f0b44c; --aviso-suave: #33270f;
    --m0: #6f95f2; --m1: #e07cc3; --m2: #3fc1b8; --m3: #e3a94b; --m4: #a28cf0; --m5: #f07d72;
    --sombra: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #12161d; --superficie: #1a2029; --hundido: #151a22; --borde: #2a323e; --borde-fuerte: #3b4553;
  --tinta: #e6eaf0; --tenue: #98a2b2; --cobalto: #6f95f2; --cobalto-txt: #0c1424; --cobalto-suave: #1d2a46;
  --ok: #4cc28b; --ok-suave: #15302a; --mal: #f07d72; --mal-suave: #3a1e1c; --info: #6f95f2; --info-suave: #1d2a46;
  --gris: #7e889a; --gris-suave: #232a35; --aviso: #f0b44c; --aviso-suave: #33270f;
  --m0: #6f95f2; --m1: #e07cc3; --m2: #3fc1b8; --m3: #e3a94b; --m4: #a28cf0; --m5: #f07d72;
  --sombra: none; color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 15px/1.55 var(--sans); }
a { color: var(--cobalto); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--cobalto); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin: 0 0 .35rem; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 2.25rem 0 .8rem; }
h3 { font-size: .98rem; font-weight: 600; margin: 0 0 .35rem; }
p { margin: 0 0 .6rem; }
code, .mono { font-family: var(--mono); font-size: .88em; }
pre { font-family: var(--mono); font-size: .8rem; line-height: 1.5; background: var(--hundido); border: 1px solid var(--borde); padding: .75rem .9rem; border-radius: 8px; overflow-x: auto; }
.ancho { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tenue { color: var(--tenue); }
.chico { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.txt-mal { color: var(--mal); }

/* ---------- barra superior ---------- */
.barra { background: var(--superficie); border-bottom: 1px solid var(--borde); }
.barra-in { display: flex; align-items: center; gap: 1.25rem; min-height: 58px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: .55rem; color: var(--tinta); font-weight: 600; font-size: 1.02rem; }
.marca:hover { text-decoration: none; }
.logo { width: 22px; height: 22px; flex: none; }
.barra nav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.barra nav a { color: var(--tinta); font-size: .92rem; }
.yo { display: inline-flex; align-items: center; gap: .45rem; }
.av { border-radius: 50%; vertical-align: middle; flex: none; background: var(--hundido); }
.link { background: none; border: 0; color: var(--tenue); cursor: pointer; font: inherit; font-size: .92rem; padding: 0; }
.link:hover { color: var(--tinta); }

main.ancho { padding-top: 2.25rem; padding-bottom: 3rem; }
.pie { color: var(--tenue); font-size: .8rem; padding-top: 1.25rem; padding-bottom: 2rem; border-top: 1px solid var(--borde); }

/* ---------- cabeceras de página ---------- */
.cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cabeza p { margin: 0; }
.miga { font-size: .85rem; margin-bottom: .4rem !important; }
.miga a { color: var(--tenue); }
.repo-ref { font-family: var(--mono); font-size: .85rem; color: var(--tenue); display: inline-flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.repo-ref a { color: var(--tinta); }

/* ---------- superficies ---------- */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.15rem 1.25rem; box-shadow: var(--sombra); }
.estrecha { max-width: 460px; margin: 3rem auto; }
.confirmar { max-width: 680px; margin: 1.5rem auto; }
.confirmar .aviso ul { margin: .5rem 0 0; overflow-wrap: anywhere; }
.vacio { text-align: left; padding: 1.5rem 1.25rem; border-style: dashed; box-shadow: none; background: transparent; }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 880px) { .dos { grid-template-columns: 1fr; } }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .48rem .95rem; border-radius: 8px; border: 1px solid var(--borde-fuerte); background: var(--superficie); color: var(--tinta); font: 500 .9rem/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--tinta); text-decoration: none; }
.btn.primario { background: var(--cobalto); border-color: var(--cobalto); color: var(--cobalto-txt); }
.btn.primario:hover { filter: brightness(1.08); }
.btn.mal { color: var(--mal); border-color: color-mix(in srgb, var(--mal) 40%, var(--borde)); }
.btn.mal:hover { border-color: var(--mal); }
.btn.chico { padding: .25rem .6rem; font-size: .8rem; border-radius: 6px; }
.btn.grande { padding: .7rem 1.25rem; font-size: .98rem; }
.botones { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.cabeza .botones { margin-top: 0; }
form { margin: 0; }

/* ---------- formularios ---------- */
.form { display: flex; flex-direction: column; gap: .85rem; }
.form > h3 { margin-bottom: 0; }
.form label:not(.check):not(.soltar) { display: flex; flex-direction: column; gap: .3rem; font-size: .86rem; font-weight: 500; }
.fila { display: flex; gap: .75rem; flex-wrap: wrap; }
.fila > label { flex: 1 1 150px; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; font-weight: 400; }
.check input { margin-top: .25rem; }
.form button, .form .btn { align-self: flex-start; }
input, select, textarea { font: 400 .92rem/1.4 var(--sans); padding: .5rem .65rem; border: 1px solid var(--borde-fuerte); border-radius: 7px; background: var(--superficie); color: var(--tinta); width: 100%; }
input.mono, textarea.mono { font-family: var(--mono); font-size: .86rem; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--cobalto); }
input[type=file] { padding: .4rem; background: var(--hundido); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalto); box-shadow: 0 0 0 3px var(--cobalto-suave); }
.ayuda { font-size: .82rem; color: var(--tenue); font-weight: 400; margin: 0; }

/* ---------- avisos y estados ---------- */
.aviso { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; background: var(--info-suave); color: var(--info); border-left: 3px solid currentColor; }
.aviso.ok { background: var(--ok-suave); color: var(--ok); }
.aviso.mal { background: var(--mal-suave); color: var(--mal); }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 500; background: var(--gris-suave); color: var(--tenue); white-space: nowrap; vertical-align: middle; }
.pill.ok { background: var(--ok-suave); color: var(--ok); }
.pill.mal { background: var(--mal-suave); color: var(--mal); }
.pill.info { background: var(--info-suave); color: var(--info); }
.pill.tenue { opacity: .8; }
.pill.aviso { background: var(--aviso-suave); color: var(--aviso); border-left: 0; margin: 0; padding: .1rem .55rem; }

/* ---------- tablas ---------- */
.tabla-env { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--superficie); box-shadow: var(--sombra); }
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th { text-align: left; font-size: .78rem; color: var(--tenue); font-weight: 500; padding: .65rem .8rem; border-bottom: 1px solid var(--borde); background: var(--hundido); white-space: nowrap; }
.tabla td { padding: .7rem .8rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla input { padding: .3rem .45rem; }
td.acciones { text-align: right; white-space: nowrap; }
td.acciones form, td.acciones a { display: inline-block; margin: 0 0 .25rem .3rem; }
.recorta { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- el riel: plan de commits como historial de git ---------- */
/* Tabla ajustada (Mis próximos commits): nunca scroll horizontal. */
.tabla-env.ajustada { overflow-x: visible; }
.ajustada .tabla td { overflow-wrap: break-word; }
.ajustada .rama { white-space: normal; overflow-wrap: anywhere; }
.ajustada td.c-commit { min-width: 15rem; }
.ajustada td.c-proy { min-width: 8.5rem; }
.ajustada td.acciones { white-space: normal; }
.ajustada .ejecutar-grupo { margin-left: 0; }
/* En pantallas angostas cada fila pasa a ser una tarjeta apilada. */
@media (max-width: 1080px) {
  .ajustada td.c-commit, .ajustada td.c-proy { min-width: 0; }
  .ajustada thead { display: none; }
  .ajustada table, .ajustada tbody { display: block; }
  .ajustada tbody tr { display: grid; grid-template-columns: 46px auto minmax(0, 1fr); grid-template-areas: "riel n fecha" "riel commit commit" "riel proy proy" "riel estado ejec" "riel acc acc"; align-items: start; border-top: 1px solid var(--borde); }
  .ajustada tbody tr:first-child { border-top: 0; }
  .ajustada .riel-tabla tbody td { border-top: 0; padding: .3rem .8rem .3rem 0; }
  .ajustada td.riel { grid-area: riel; align-self: stretch; }
  .ajustada td.c-n { grid-area: n; padding-top: .7rem; } .ajustada td.c-n .codigo { display: inline; margin-left: .4rem; }
  .ajustada td.c-fecha { grid-area: fecha; padding-top: .7rem; text-align: right; color: var(--tenue); }
  .ajustada td.c-commit { grid-area: commit; } .ajustada td.c-proy { grid-area: proy; font-size: .84rem; }
  .ajustada td.estado { grid-area: estado; } .ajustada td.c-ejec { grid-area: ejec; text-align: right; }
  .ajustada td.acciones { grid-area: acc; text-align: left; padding-bottom: .75rem; }
  .ajustada td.acciones form, .ajustada td.acciones a { margin: 0 .3rem .25rem 0; }
  .ajustada .ejecutar-grupo { flex-direction: row; align-items: center; gap: .6rem; }
  .ajustada .falta { align-items: flex-start; text-align: left; }
  .ajustada tbody tr:first-child td.riel::before { top: 1.2rem; }
}
.riel-tabla tbody td { border-bottom: 0; border-top: 1px solid var(--borde); }
.riel-tabla tbody tr:first-child td { border-top: 0; }
.riel-tabla tbody td.riel { border-top: 0; }
.riel-tabla tbody tr:hover { background: var(--hundido); }
.riel-tabla tr.fila-mal { background: color-mix(in srgb, var(--mal-suave) 60%, transparent); }
td.riel { position: relative; width: 46px; padding: 0 !important; }
td.riel::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--borde-fuerte); }
.riel-tabla tbody tr:first-child td.riel::before { top: 1.2rem; }
.riel-tabla tbody tr:last-child td.riel::before { bottom: auto; height: 1.2rem; }
.riel-tabla tbody tr:only-child td.riel::before { display: none; }
.nodo { position: absolute; left: 16px; top: .9rem; width: 14px; height: 14px; border-radius: 50%; background: var(--superficie); border: 2px solid var(--gris); }
.nodo.e-hecho { background: var(--ok); border-color: var(--ok); }
.nodo.e-error { background: var(--mal); border-color: var(--mal); }
.nodo.e-en_curso { border-color: var(--info); box-shadow: 0 0 0 4px var(--info-suave); }
.nodo.e-omitido { border-style: dashed; }
@media (prefers-reduced-motion: no-preference) { .nodo.e-en_curso { animation: latido 1.4s ease-in-out infinite; } }
@keyframes latido { 50% { box-shadow: 0 0 0 7px transparent; } }
.n-commit { font-variant-numeric: tabular-nums; font-weight: 600; }
.codigo { display: block; font-family: var(--mono); font-size: .74rem; color: var(--tenue); white-space: nowrap; }
.rama { display: inline-block; font-family: var(--mono); font-size: .75rem; color: var(--tenue); background: var(--hundido); border: 1px solid var(--borde); border-radius: 5px; padding: 0 .4rem; margin-bottom: .25rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.mensaje { font-weight: 500; }
.miembro { display: inline-flex; align-items: flex-start; gap: .55rem; font-size: .88rem; min-width: 11rem; }
.miembro-txt { display: flex; flex-direction: column; line-height: 1.3; }
.miembro .av, .miembro .sin-av { margin-top: .1rem; }
.miembro .av, .miembro .sin-av { box-shadow: 0 0 0 2px var(--superficie), 0 0 0 4px var(--carril, var(--gris)); }
.sin-av { width: 22px; height: 22px; border-radius: 50%; background: var(--carril, var(--gris)); display: inline-block; flex: none; }
.m0 { --carril: var(--m0); } .m1 { --carril: var(--m1); } .m2 { --carril: var(--m2); }
.m3 { --carril: var(--m3); } .m4 { --carril: var(--m4); } .m5 { --carril: var(--m5); }

/* ---------- proyecto ---------- */
.siguiente { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .5rem; }
.ok-borde { border-color: var(--ok); }
.plan-acciones { margin-top: 1.25rem; }
.eventos { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.eventos li { padding: .45rem 0 .45rem .85rem; border-left: 2px solid var(--borde); }
.eventos .ev-ok { border-color: var(--ok); }
.eventos .ev-error { border-color: var(--mal); color: var(--mal); }
.eventos time { display: block; color: var(--tenue); font-size: .76rem; }
.archivos { font-family: var(--mono); font-size: .8rem; padding-left: 1.1rem; max-height: 420px; overflow: auto; }
.datos { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0; }
.datos dt { color: var(--tenue); font-size: .86rem; }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.prs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.prs li { display: flex; flex-direction: column; gap: .3rem; }
.prs li form { align-self: flex-start; }
.peligro { margin-top: 1rem; }
details.doc { margin-top: .25rem; }
details.doc summary { cursor: pointer; color: var(--cobalto); font-size: .88rem; }
details.doc pre { margin: .6rem 0; }
details.doc p { font-size: .84rem; color: var(--tenue); }
.yo input { width: 100%; min-width: 0; }
.yo.miembro { display: flex; align-items: center; margin-bottom: .2rem; }

/* ---------- buscador de usuarios ---------- */
.buscador { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.sugerencias { position: absolute; z-index: 5; left: 0; right: 0; top: 2.6rem; margin: 0; padding: .3rem; list-style: none; background: var(--superficie); border: 1px solid var(--borde); border-radius: 8px; box-shadow: 0 8px 24px rgba(24, 33, 47, .14); }
.sugerencias li { font-size: .9rem; }
.sugerencias li.tenue { padding: .4rem .5rem; }
.sugerencias button { display: flex; align-items: center; gap: .55rem; width: 100%; background: none; border: 0; color: var(--tinta); font: inherit; padding: .4rem .5rem; border-radius: 6px; cursor: pointer; text-align: left; }
.sugerencias button:hover:not([disabled]), .sugerencias button:focus-visible { background: var(--cobalto-suave); }
.sugerencias button[disabled] { opacity: .5; cursor: default; }
.sugerencias img, .chip img { border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips:empty::before { content: "Aún no agregaste a nadie."; color: var(--tenue); font-size: .84rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .2rem .2rem .3rem; border-radius: 999px; background: var(--cobalto-suave); color: var(--tinta); font-size: .85rem; }
.chip button { background: none; border: 0; color: var(--tenue); cursor: pointer; font-size: 1rem; line-height: 1; padding: .1rem .4rem; border-radius: 50%; }
.chip button:hover { color: var(--mal); }

/* ---------- inicio público ---------- */
/* El hero lleva detrás un historial de git animado (public/ramas.js). */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 460px; margin: .25rem 0 3rem; padding: 3.5rem 2.75rem; background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px; box-shadow: var(--sombra); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--borde) 1.1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to right, transparent 35%, #000 90%); mask-image: linear-gradient(to right, transparent 35%, #000 90%); }
canvas.ramas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(to right, transparent 44%, rgba(0, 0, 0, .5) 58%, #000 74%); mask-image: linear-gradient(to right, transparent 44%, rgba(0, 0, 0, .5) 58%, #000 74%); }
.hero-txt { position: relative; max-width: 520px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em; }
.resalte { color: var(--cobalto); }
.hero-eti { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; padding: .22rem .7rem; border: 1px solid var(--borde); border-radius: 999px; background: var(--hundido); color: var(--tenue); font: 500 .74rem var(--mono); }
.hero-punto { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-suave); }
.lead { font-size: 1.08rem; color: var(--tenue); margin: 1rem 0 1.75rem; max-width: 62ch; }
.hero-dev { margin: 1rem 0 0; font-size: .88rem; }
.btn-github { position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, filter .18s; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--cobalto) 70%, transparent); }
.btn-github:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--cobalto) 85%, transparent); }
.btn-github:active { transform: translateY(0); }
.btn-github::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); }
.btn-github:hover::after { transform: translateX(120%); transition: transform .7s ease; }

/* Pasos: tres nodos sobre una misma rama. */
.pasos { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pasos::before { content: ""; position: absolute; top: 15px; left: 15px; right: 0; height: 2px; background: linear-gradient(to right, var(--cobalto), var(--borde-fuerte) 80%, transparent); transform-origin: left; }
.pasos div { position: relative; }
.pasos b { position: relative; display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: .9rem; border-radius: 50%; background: var(--superficie); border: 2px solid var(--cobalto); color: var(--cobalto); font: 600 .82rem var(--mono); transition: background-color .2s, color .2s, transform .2s; }
.pasos div:hover b { background: var(--cobalto); color: var(--cobalto-txt); transform: scale(1.08); }
.pasos p { color: var(--tenue); font-size: .92rem; }

@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 2rem 1.25rem 230px; }
  canvas.ramas { top: auto; height: 220px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
  .hero::before { -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000); mask-image: linear-gradient(to bottom, transparent 55%, #000); }
  .pasos { grid-template-columns: 1fr; gap: 1.25rem; }
  .pasos::before { top: 15px; bottom: 15px; left: 15px; right: auto; width: 2px; height: auto; background: linear-gradient(to bottom, var(--cobalto), var(--borde-fuerte)); transform-origin: top; }
  .pasos div { padding-left: 3rem; }
  .pasos b { position: absolute; left: 0; top: 0; margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-txt > * { animation: subir .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-txt > :nth-child(2) { animation-delay: .08s; }
  .hero-txt > :nth-child(3) { animation-delay: .16s; }
  .hero-txt > :nth-child(4) { animation-delay: .24s; }
  .hero-txt > :nth-child(5) { animation-delay: .3s; }
  canvas.ramas { animation: aparecer 1.4s ease .15s both; }
  .hero-punto { animation: latido-ok 2s ease-in-out infinite; }
  .pasos::before { animation: trazar .9s cubic-bezier(.4, 0, .2, 1) .45s both; }
  .pasos > div { animation: subir .6s cubic-bezier(.2, .7, .2, 1) both; }
  .pasos > div:nth-child(1) { animation-delay: .5s; }
  .pasos > div:nth-child(2) { animation-delay: .7s; }
  .pasos > div:nth-child(3) { animation-delay: .9s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) { .pasos::before { animation-name: trazar-v; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes trazar { from { transform: scaleX(0); } }
@keyframes trazar-v { from { transform: scaleY(0); } }
@keyframes latido-ok { 50% { box-shadow: 0 0 0 6px transparent; } }

@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  .barra nav { margin-left: 0; width: 100%; }
  td.acciones { white-space: normal; }
}

/* ---------- zona para soltar archivos ---------- */
label.soltar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .3rem .85rem; padding: 1rem 1.1rem; border: 1.5px dashed var(--borde-fuerte); border-radius: 10px; background: var(--hundido); cursor: pointer; font-weight: 400; transition: border-color .12s, background-color .12s; }
label.soltar:hover { border-color: var(--cobalto); }
label.soltar input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
label.soltar:has(input:focus-visible) { outline: 2px solid var(--cobalto); outline-offset: 2px; }
.soltar-icono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--superficie); color: var(--cobalto); border: 1px solid var(--borde); }
.soltar-txt { display: flex; flex-direction: column; gap: .1rem; font-size: .9rem; }
.soltar-txt b { font-weight: 600; }
.soltar-archivo { grid-column: 2; font-family: var(--mono); font-size: .8rem; color: var(--tinta); }
.soltar-archivo:empty { display: none; }
label.soltar.encima { border-color: var(--cobalto); border-style: solid; background: var(--cobalto-suave); }
label.soltar.lleno { border-style: solid; border-color: var(--ok); }
label.soltar.lleno .soltar-icono { color: var(--ok); }
label.soltar.rechazo { border-color: var(--mal); }
label.soltar.rechazo .soltar-archivo { color: var(--mal); }

/* ---------- plan + consola en vivo ---------- */
main.ancho.amplio { max-width: 1520px; }
.plan-cabeza { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; margin: 2.25rem 0 .8rem; }
.plan-cabeza h2 { margin: 0; }
.plan-consola { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 1.25rem; align-items: start; }
@media (max-width: 1180px) { .plan-consola { grid-template-columns: 1fr; } }
.plan-col { min-width: 0; }

.consola {
  --c-fondo: #0e141d; --c-barra: #151d29; --c-borde: #243042; --c-txt: #cdd6e3; --c-tenue: #7b889c;
  --c-cmd: #8fb2ff; --c-ok: #5fd39a; --c-err: #ff8a80; --c-titulo: #f2c46d;
  position: sticky; top: 1rem; display: flex; flex-direction: column; height: min(640px, calc(100vh - 2rem));
  background: var(--c-fondo); border: 1px solid var(--c-borde); border-radius: var(--radio); overflow: hidden; color: var(--c-txt);
}
@media (max-width: 1180px) { .consola { position: static; height: 420px; } }
.consola-barra { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; background: var(--c-barra); border-bottom: 1px solid var(--c-borde); font-size: .82rem; }
.consola-titulo { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: #e6ecf5; }
.consola-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--c-tenue); }
.consola.conectada .consola-punto { background: var(--c-ok); box-shadow: 0 0 0 3px rgba(95, 211, 154, .18); }
.consola-estado { color: var(--c-tenue); margin-right: auto; }
.consola-btn { background: transparent; border: 1px solid var(--c-borde); color: var(--c-txt); border-radius: 6px; padding: .15rem .55rem; font: 500 .76rem var(--sans); cursor: pointer; }
.consola-btn:hover { border-color: var(--c-tenue); }
.consola-recargar { display: none; border-color: var(--c-titulo); color: var(--c-titulo); }
.consola.hay-cambios .consola-recargar { display: inline-block; }
.consola-cuerpo { flex: 1; overflow-y: auto; padding: .6rem .75rem 1rem; font: 400 .78rem/1.55 var(--mono); }
.consola-cuerpo:focus-visible { outline: 2px solid var(--c-cmd); outline-offset: -2px; }
.consola-vacia { color: var(--c-tenue); font-family: var(--sans); font-size: .84rem; margin: .25rem 0; }
.cl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; }
.cl time { color: #4c586b; font-size: .72rem; padding-top: .05rem; user-select: none; }
.cl-txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.cl-cmd .cl-txt { color: var(--c-cmd); }
.cl-out .cl-txt { color: var(--c-txt); }
.cl-ok .cl-txt { color: var(--c-ok); font-weight: 500; }
.cl-ok .cl-txt::before { content: "✓ "; }
.cl-err .cl-txt { color: var(--c-err); }
.cl-titulo { margin-top: .9rem; padding-top: .6rem; border-top: 1px dashed var(--c-borde); }
.cl-titulo:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cl-titulo .cl-txt { color: var(--c-titulo); font-weight: 500; }

/* ---------- interruptor ---------- */
.interruptor { display: flex; align-items: center; gap: .3rem .75rem; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .2rem 0; color: var(--tinta); font: 500 .9rem var(--sans); cursor: pointer; }
.switch-pista { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--borde-fuerte); transition: background-color .15s; flex: none; }
.switch-bola { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch[aria-checked="true"] .switch-pista { background: var(--ok); }
.switch[aria-checked="true"] .switch-bola { transform: translateX(18px); }
.switch:disabled { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .switch-pista, .switch-bola { transition: none; } }

/* ---------- cuenta regresiva ---------- */
.siguiente { flex-direction: column; align-items: flex-start; gap: .35rem; }
.siguiente p { margin: 0; }
.cuenta { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cuenta.lista { color: var(--ok); }
.siguiente-det { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .9rem; }
.ejecutar-grupo { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .3rem; vertical-align: top; margin-left: .3rem; }
.ejecutar-grupo[hidden] { display: none; }
.ejecutar-botones { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
td.acciones .ejecutar-grupo form { margin: 0; }
.falta { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: .74rem; color: var(--tenue); font-variant-numeric: tabular-nums; text-align: right; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn:disabled:hover { border-color: var(--borde-fuerte); }
.btn.primario:disabled:hover { border-color: var(--cobalto); }
.falta-et { font-size: .72rem; }
.falta-t { color: var(--tinta); font-weight: 500; white-space: nowrap; }
.f-grupo { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.f-grupo[hidden] { display: none; }
form.f-ejecutar[hidden] { display: none !important; }

/* ---------- Users ---------- */
.txt-mal { color: var(--mal); }
.tabla.usuarios td { font-size: .86rem; }
.auto-admin { margin-top: .4rem; }
.problemas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; min-width: 240px; max-width: 380px; }
.problemas li { padding-left: .6rem; border-left: 3px solid var(--borde-fuerte); font-size: .82rem; line-height: 1.35; }
.problemas li.mal { border-color: var(--mal); color: var(--mal); }
.problemas li.aviso { border-color: var(--aviso); color: var(--aviso); }

/* ---------- panel: saludo, cifras y próximo commit ---------- */
.saludo { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.saludo-yo { display: flex; align-items: center; gap: 1rem; }
.saludo-yo p { margin: 0; }
.saludo-av { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--superficie), 0 0 0 5px var(--cobalto); }
.saludo-hola { font-size: .9rem; font-weight: 500; }
.saludo h1 { margin: .1rem 0 .15rem; }

.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.cifra { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .95rem 1.1rem; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.cifra-n { font-size: 1.7rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cifra-n small { font-size: .95rem; font-weight: 500; color: var(--tenue); }
.cifra-et { font-size: .82rem; color: var(--tenue); }
.cifra-barra { height: 4px; margin-top: .5rem; border-radius: 2px; background: var(--hundido); overflow: hidden; }
.cifra-barra span { display: block; height: 100%; border-radius: 2px; background: var(--ok); }
.cifra-mal .cifra-n { color: var(--mal); }
.cifra-mal { border-color: color-mix(in srgb, var(--mal) 35%, var(--borde)); }
@media (max-width: 760px) { .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.foco { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.25rem; margin-bottom: 1.75rem; padding: 1rem 1.25rem 1rem .5rem; background: linear-gradient(100deg, color-mix(in srgb, var(--carril) 10%, var(--superficie)), var(--superficie) 55%); border: 1px solid color-mix(in srgb, var(--carril) 35%, var(--borde)); border-radius: var(--radio); box-shadow: var(--sombra); }
.foco p { margin: 0; }
.foco-et { font-size: .8rem; color: var(--tenue); }
.foco-msj { font-size: 1.08rem; font-weight: 600; margin: .15rem 0 .35rem !important; }
.foco-det { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .85rem; }
.foco-det .rama { margin: 0; }
.foco-cuenta { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; }
.foco-cuenta .cuenta { font-size: 1rem; max-width: 22ch; }
/* riel decorativo: commits que pasan y el nodo actual latiendo */
.foco-riel { position: relative; align-self: stretch; min-height: 64px; }
.foco-riel::before { content: ""; position: absolute; left: 50%; top: -1rem; bottom: -1rem; width: 2px; margin-left: -1px; background: linear-gradient(to bottom, transparent, var(--carril) 30%, var(--carril) 70%, transparent); }
.foco-riel span { position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--carril); opacity: 0; }
.foco-riel .foco-nodo { top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: 1; background: var(--superficie); border: 3px solid var(--carril); box-shadow: 0 0 0 0 color-mix(in srgb, var(--carril) 45%, transparent); }
@media (max-width: 760px) {
  .foco { grid-template-columns: 40px minmax(0, 1fr); padding-left: .25rem; }
  .foco-cuenta { grid-column: 2; align-items: flex-start; text-align: left; }
}

.seccion-cabeza { display: flex; align-items: center; gap: .6rem; margin: 2.25rem 0 .8rem; }
.seccion-cabeza h2 { margin: 0; }

/* ---------- panel: tarjetas de proyecto ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.proy { position: relative; display: flex; color: var(--tinta); flex-direction: column; gap: .85rem; overflow: hidden; border-top: 3px solid var(--carril, var(--cobalto)); transition: transform .2s, box-shadow .2s, border-color .2s; }
.proy:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--carril) 55%, var(--borde)); border-top-color: var(--carril); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--carril) 80%, transparent); }
.proy:hover { text-decoration: none; }
.proy h3 { font-size: 1.05rem; }
.proy .mono { font-size: .8rem; }
.proy-cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.proy-tit { min-width: 0; }
.proy-tit h3 { margin-bottom: .1rem; }
.proy-tit p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anillo { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.anillo svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 4; }
.anillo-fondo { stroke: var(--hundido); }
.anillo-valor { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pct)); }
.anillo b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.anillo small { font-size: .62rem; color: var(--tenue); font-weight: 500; }
.tira { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2px; padding: 0 1px; }
.tira::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--borde); }
.tira span { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--superficie); border: 2px solid var(--borde-fuerte); }
.tira .t-h { background: var(--carril); border-color: var(--carril); }
.tira .t-e { background: var(--mal); border-color: var(--mal); }
.proy .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; }
.proy-n { margin-left: auto; font-size: .8rem; color: var(--tenue); font-variant-numeric: tabular-nums; }

.vacio-ilus { display: flex; align-items: center; gap: 1.25rem; }
.vacio-ilus p { margin: 0 0 .2rem; }
.ilus { width: 96px; height: 64px; flex: none; }

/* ---------- toques generales ---------- */
.barra { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--superficie) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn { transition: border-color .15s, background-color .15s, filter .15s, transform .15s, box-shadow .15s; }
.btn.primario:hover { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--cobalto) 80%, transparent); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.riel-tabla tbody tr { transition: background-color .15s; }

/* ---------- animaciones del panel ---------- */
@media (prefers-reduced-motion: no-preference) {
  .saludo, .cifra, .foco, .proy, .seccion-cabeza, .ajustada { animation: subir .6s cubic-bezier(.2, .7, .2, 1) both; }
  .saludo-av { animation: aparecer .6s ease both, anillo-yo 2.4s ease-out .4s 1; }
  .cifra:nth-child(2) { animation-delay: .05s; } .cifra:nth-child(3) { animation-delay: .1s; } .cifra:nth-child(4) { animation-delay: .15s; }
  .cifra-barra span { animation: crecer 1.1s cubic-bezier(.3, .7, .2, 1) .3s both; }
  .foco { animation-delay: .2s; }
  .foco-riel .foco-nodo { animation: latido-foco 2s ease-out infinite; }
  .foco-riel span:not(.foco-nodo) { animation: pasar 3s linear infinite; }
  .foco-riel span:nth-child(2) { animation-delay: 1s; } .foco-riel span:nth-child(4) { animation-delay: 2s; }
  .proy { animation-delay: calc(.25s + var(--i, 0) * .06s); }
  .anillo-valor { animation: llenar 1.2s cubic-bezier(.3, .7, .2, 1) calc(.45s + var(--i, 0) * .06s) both; }
  .tira span { animation: brotar .35s cubic-bezier(.3, 1.6, .5, 1) calc(.5s + var(--i, 0) * .06s + var(--d, 0) * .03s) both; }
  .tira::before { transform-origin: left; animation: trazar .8s ease calc(.45s + var(--i, 0) * .06s) both; }
  .seccion-cabeza { animation-delay: .35s; }
  .ajustada { animation-delay: .4s; }
  .riel-tabla tbody tr { animation: subir .5s cubic-bezier(.2, .7, .2, 1) calc(.45s + var(--i, 0) * .05s) both; }
  .riel-tabla .nodo { animation: brotar .4s cubic-bezier(.3, 1.6, .5, 1) calc(.55s + var(--i, 0) * .05s) both; }
  .riel-tabla .nodo.e-en_curso { animation: brotar .4s both, latido 1.4s ease-in-out .6s infinite; }
}
@keyframes crecer { from { width: 0; } }
@keyframes llenar { from { stroke-dashoffset: 100; } }
@keyframes brotar { from { transform: scale(0); } }
@keyframes pasar { 0% { top: -10%; opacity: 0; } 15% { opacity: .8; } 40% { opacity: .8; } 48% { top: 45%; opacity: 0; } 100% { opacity: 0; } }
@keyframes latido-foco { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--carril) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes anillo-yo { 0% { box-shadow: 0 0 0 3px var(--superficie), 0 0 0 5px var(--cobalto), 0 0 0 5px color-mix(in srgb, var(--cobalto) 40%, transparent); } 100% { box-shadow: 0 0 0 3px var(--superficie), 0 0 0 5px var(--cobalto), 0 0 0 16px transparent; } }

/* ---------- vista de proyecto ---------- */
.proy-hero { position: relative; overflow: hidden; margin-bottom: 1.25rem; padding: 1.4rem 1.5rem 1.2rem; background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; box-shadow: var(--sombra); }
.proy-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px 220px at 100% 0%, var(--cobalto-suave), transparent 70%); opacity: .8; }
.proy-hero > * { position: relative; }
.proy-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 1.5rem; flex-wrap: wrap; }
.proy-hero-tit { min-width: 0; }
.proy-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .55rem; }
.proy-hero .miga a { color: var(--tenue); }
.proy-hero .miga a:hover { color: var(--cobalto); text-decoration: none; }
.proy-hero-der { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.proy-hero-der .botones { margin: 0; }
.refs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; }
.ref { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border: 1px solid var(--borde); border-radius: 999px; background: var(--hundido); color: var(--tenue); font: 500 .78rem var(--mono); }
.ref svg { width: 14px; height: 14px; flex: none; }
a.ref { color: var(--tinta); transition: border-color .15s, color .15s; }
a.ref:hover { border-color: var(--cobalto); color: var(--cobalto); text-decoration: none; }
.anillo.grande { width: 72px; height: 72px; }
.anillo.grande circle { stroke-width: 3.5; }
.anillo.grande b { font-size: 1.05rem; }
.anillo.grande small { font-size: .7rem; }

/* mapa: un nodo por commit, del color de su integrante */
.mapa { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14px, 1fr); align-items: center; height: 34px; margin-top: 1.25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.mapa::before { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; margin-top: -1px; background: var(--borde-fuerte); border-radius: 1px; }
.mapa-n { position: relative; justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--superficie); border: 2px solid color-mix(in srgb, var(--carril, var(--gris)) 55%, var(--borde-fuerte)); transition: transform .15s; }
.mapa-n:hover { transform: scale(1.45); text-decoration: none; z-index: 1; }
.mapa-n.e-hecho { background: var(--carril); border-color: var(--carril); }
.mapa-n.e-omitido { border-style: dashed; opacity: .6; }
.mapa-n.e-error { background: var(--mal); border-color: var(--mal); }
.mapa-n.e-en_curso { border-color: var(--info); background: var(--info-suave); }
.mapa-n.actual { width: 16px; height: 16px; border-width: 3px; border-color: var(--carril); }
.mapa-ley { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .5rem 0 0; font-size: .8rem; color: var(--tenue); }
.mapa-ley span { display: inline-flex; align-items: center; gap: .4rem; }
.mapa-ley i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mapa-ley b { color: var(--tinta); font-weight: 500; font-variant-numeric: tabular-nums; }
.l-p { border: 2px solid var(--borde-fuerte); } .l-e { background: var(--mal); } .l-m { background: var(--carril); }
.ley-sep { padding-left: 1.1rem; border-left: 1px solid var(--borde); }

.siguiente-foco .foco-det .miembro { min-width: 0; }
.foco-motivo { margin-top: .35rem !important; }
.foco-listo { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; --carril: var(--ok); background: linear-gradient(100deg, var(--ok-suave), var(--superficie) 60%); border-color: color-mix(in srgb, var(--ok) 40%, var(--borde)); }
.foco-listo p { margin: 0; }
.foco-check { width: 44px; height: 44px; flex: none; }
.foco-check circle { fill: var(--ok); }
.foco-check path { fill: none; stroke: var(--superficie); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; }

/* integrantes: avance de cada uno */
.avance { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.mini-barra { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--hundido); overflow: hidden; }
.mini-barra span { display: block; height: 100%; border-radius: 2px; background: var(--carril, var(--ok)); }

/* actividad: línea de tiempo */
.eventos li { position: relative; padding: .5rem .5rem .5rem 1.15rem; margin-left: 5px; border-left: 2px solid var(--borde); border-radius: 0 6px 6px 0; transition: background-color .15s; }
.eventos li::before { content: ""; position: absolute; left: -6px; top: .8rem; width: 10px; height: 10px; border-radius: 50%; background: var(--superficie); border: 2px solid var(--borde-fuerte); }
.eventos li:hover { background: var(--hundido); }
.eventos .ev-ok { border-color: var(--borde); }
.eventos .ev-ok::before { background: var(--ok); border-color: var(--ok); }
.eventos .ev-error { border-color: var(--borde); }
.eventos .ev-error::before { background: var(--mal); border-color: var(--mal); }
.eventos li:first-child::before { box-shadow: 0 0 0 4px var(--cobalto-suave); }

/* formularios del gestor */
.plan-acciones .tarjeta { transition: border-color .2s, box-shadow .2s; }
.plan-acciones .tarjeta:focus-within { border-color: color-mix(in srgb, var(--cobalto) 50%, var(--borde)); box-shadow: 0 10px 28px -20px var(--cobalto); }

@media (max-width: 760px) {
  .proy-hero { padding: 1.1rem 1rem 1rem; }
  .proy-hero-der { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: no-preference) {
  .vista-proy > * { animation: subir .6s cubic-bezier(.2, .7, .2, 1) both; }
  .vista-proy > :nth-child(2) { animation-delay: .12s; }
  .vista-proy > :nth-child(3) { animation-delay: .2s; }
  .vista-proy > :nth-child(4) { animation-delay: .28s; }
  .vista-proy > :nth-child(n+5) { animation-delay: .34s; }
  .proy-hero .anillo-valor { animation: llenar 1.3s cubic-bezier(.3, .7, .2, 1) .3s both; }
  .mapa::before { transform-origin: left; animation: trazar 1s cubic-bezier(.4, 0, .2, 1) .25s both; }
  .mapa-n { animation: brotar .4s cubic-bezier(.3, 1.6, .5, 1) calc(.35s + var(--d, 0) * .025s) both; }
  .mapa-n.actual { animation: brotar .4s cubic-bezier(.3, 1.6, .5, 1) calc(.35s + var(--d, 0) * .025s) both, latido-foco 2s ease-out 1.2s infinite; }
  .mapa-n.e-en_curso { animation: latido 1.4s ease-in-out infinite; box-shadow: 0 0 0 4px var(--info-suave); }
  .foco-check circle { transform-origin: center; animation: brotar .5s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
  .foco-check path { animation: dibujar-check .5s ease .65s both; }
  .eventos li { animation: subir .45s cubic-bezier(.2, .7, .2, 1) calc(.4s + var(--i, 0) * .04s) both; }
  .mini-barra span { animation: crecer 1s cubic-bezier(.3, .7, .2, 1) .5s both; }
}
@keyframes dibujar-check { from { stroke-dashoffset: 30; } }
