/* Planificador de atracos (23-11-2026). Usa las variables de estilo.css. Móvil vertical primero.
   Ningún control con el aspecto del navegador: casillas y campo de cifra van dibujados aquí. */
/* minmax(0, 1fr) y min-width: 0: sin ellos la tabla de peristas (620 px de mínimo) ensancha toda la página en Safari */
.at { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin: 22px 0 10px; }
.at-paso { min-width: 0; }
.at-paso h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: clamp(21px, 5.4vw, 28px); font-weight: 600; line-height: 1.15; }
.at-paso h2 span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--rosa); color: var(--tinta-rosa); font-size: 18px; font-weight: 700; }
.at-paso p { margin: 12px 0 0; max-width: 78ch; }

/* 1. Capítulo */
.at-caps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.at-cap { font: inherit; font-size: 15px; font-weight: 600; color: var(--texto); background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: 0 4px; min-height: 48px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-cap[aria-pressed="true"] { background: var(--rosa); border-color: var(--rosa); color: var(--tinta-rosa); }
@media (max-width: 479px) { .at-caps { grid-template-columns: repeat(3, 1fr); } }

/* 2. Objetivos */
.at-objs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.at-obj { display: grid; gap: 3px; text-align: left; font: inherit; color: var(--texto); background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; padding: 13px 15px; cursor: pointer; }
.at-obj b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.at-obj span { color: var(--rosa); font-size: 15px; }
.at-obj small { display: none; color: var(--melocoton); font-size: 13.5px; }
.at-obj[aria-pressed="true"] { border-color: var(--rosa); box-shadow: inset 0 0 0 1px var(--rosa); background: var(--panel2); }
.at-obj.no { opacity: .62; }
.at-obj.no small { display: block; }
@media (min-width: 700px) { .at-objs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .at-objs { grid-template-columns: repeat(4, 1fr); } }

/* 3. Lo que te llevas */
.at-panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; padding: 16px 16px 14px; }
.at-panel h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.at-datos { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.at-datos div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--borde); }
.at-datos dt { color: var(--tenue); font-size: 14.5px; }
.at-datos dd { margin: 0; font-weight: 500; }
.at-enl { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; }
.at-enl a { color: var(--rosa); font-weight: 500; text-underline-offset: 4px; }
@media (min-width: 800px) { .at-datos { grid-template-columns: 1fr 1fr; column-gap: 34px; } }

/* 4. Peristas */
.at-mejor { display: grid; gap: 2px; margin: 0 0 14px; padding: 13px 15px; border: 1px solid var(--rosa); border-radius: 16px; background: var(--panel2); max-width: none; }
.at-mejor small { color: var(--rosa); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.at-mejor b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.at-mejor span { color: var(--tenue); font-size: 15px; }
.at-mejor.limpio { border-color: var(--borde); color: var(--tenue); }
.at-tabla { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: thin; scrollbar-color: #3a3e66 transparent; }
.at-tabla table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.at-tabla th, .at-tabla td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--borde); }
.at-tabla thead th { color: var(--tenue); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.at-tabla tbody th { font-weight: 600; }
.at-tabla small { display: block; color: var(--tenue); font-size: 13px; font-weight: 400; }
.at-tabla .activa { color: var(--rosa); }
.at-tabla thead .activa { color: var(--rosa); }
.at-tabla tr.no { opacity: .45; }
.at-tabla tr.mejor th { color: var(--rosa); }
.at-tabla tr.mejor td.activa { font-weight: 700; }

/* 5. Cuánto quieres reunir */
.at-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: min(360px, 100%); }
.at-meta label { color: var(--tenue); font-size: 14.5px; }
.at-campo { display: flex; align-items: center; height: 54px; background: var(--panel); border: 1px solid var(--rosa); border-radius: 14px; padding: 0 16px; }
.at-campo span { color: var(--tenue); font-size: 20px; margin-right: 8px; }
.at-campo input { flex: 1; min-width: 0; font: inherit; font-size: 22px; font-weight: 600; color: var(--texto); background: none; border: 0; outline: 0; padding: 0; -webkit-appearance: none; appearance: none; }
.at-pre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.at-pre span { color: var(--tenue); font-size: 14.5px; margin-right: 2px; }
.at-pre button { font: inherit; font-size: 14.5px; color: var(--texto); background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.at-pre button b { color: var(--rosa); font-weight: 600; margin-left: 4px; }
.at-pre button:hover { border-color: var(--rosa); }
.at-golpes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.at-golpes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 10px 0 11px; border-top: 1px solid var(--borde); }
.at-golpes li span { font-weight: 500; }
.at-golpes li b { font-weight: 600; white-space: nowrap; }
.at-golpes li > i { grid-column: 1 / -1; display: block; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.at-golpes li > i i { display: block; height: 100%; width: 0; background: var(--tenue); border-radius: 3px; transition: width .25s; }
.at-golpes li.yo span, .at-golpes li.yo b { color: var(--rosa); }
.at-golpes li.yo > i i { background: var(--rosa); }
.at-golpes li.no { opacity: .5; }
.at-golpes li.no b { font-weight: 400; }
.at-nota { color: var(--tenue); font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .at-golpes li > i i { transition: none; } }

/* 6. Lista de preparación: casilla dibujada, no la del navegador */
.at-cuenta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; max-width: none; color: var(--tenue); }
.at-reinicia { font: inherit; font-size: 14px; color: var(--tenue); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--borde); text-underline-offset: 4px; }
.at-reinicia:hover { color: var(--texto); }
.at-lista { list-style: none; margin: 0; padding: 0 16px; background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; }
.at-lista li + li { border-top: 1px solid var(--borde); }
.at-lista label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px; align-items: start; padding: 14px 0; cursor: pointer; }
.at-lista input { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin: 0; border: 2px solid #4b4f7a; border-radius: 7px; background: var(--fondo); position: relative; cursor: pointer; }
.at-lista input:checked { background: var(--rosa); border-color: var(--rosa); }
.at-lista input:checked::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--tinta-rosa); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.at-lista li.hecho span { color: var(--tenue); text-decoration: line-through; text-decoration-color: rgba(169, 168, 196, .5); }

/* 7. La ruta del dinero */
.at-ruta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: ruta; }
.at-ruta li { position: relative; display: grid; gap: 1px; padding: 11px 0 13px 34px; }
.at-ruta li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--rosa); }
.at-ruta li + li::after { content: ""; position: absolute; left: 11px; top: -22px; width: 2px; height: 38px; background: var(--borde); }
.at-ruta b { font-weight: 600; }
.at-ruta span { color: var(--tenue); font-size: 15px; }
.at-ruta li:last-child::before { background: #7fe0c5; }
@media (min-width: 900px) {
  .at-ruta { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .at-ruta li { padding: 30px 0 0; }
  .at-ruta li::before { left: 0; top: 6px; }
  .at-ruta li + li::after { left: calc(-100% + 2px); top: 11px; width: calc(100% - 4px); height: 2px; }
}

/* Con el diseño nuevo (modo de prueba): mismo planificador en ángulo recto y con su letra de titulares */
.d2 .at-paso h2 { font-family: Anton, Jost, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .015em; font-size: clamp(24px, 6.2vw, 34px); }
.d2 .at-paso h2 span { font-family: Jost, sans-serif; }
.d2 .at-cap { text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; font-weight: 700; }
.d2 .at-ruta li::before { border-radius: 0 !important; }

/* En el móvil la tabla de peristas enseña solo la columna del botín elegido: así cabe sin deslizar de lado */
@media (max-width: 699px) {
  .at-tabla.una table { min-width: 0; }
  .at-tabla.una [data-r]:not(.activa) { display: none; }
  .at-tabla.una th:first-child { width: 34%; }
  .at-tabla.una td.activa, .at-tabla.una thead .activa { width: 24%; }
  /* en el móvil sobra repetir aquí cuándo se desbloquea cada perista: ya lo marca el capítulo elegido */
  .at-tabla.una .at-cobro small { display: none; }
  .at-tabla.una .at-cobro { font-size: 14px; }
}
