/* Suite SEO MaxClientes — estilos de las páginas de la suite (diseño base, 2026-11-24).
   Paleta de la marca MaxClientes, aprobada por el usuario:
     acento: azul del logo #0E5F96 (botones, enlaces, menú resaltado, barras) · texto blanco 6.8:1
     cian del logo #36D7FF: solo adorno (el rombo de la marca), nunca texto ni botones
     turquesa #1D7468: «tu web» y buenos lugares (#1–3) · ámbar #7A5600: #4–10 y la resaltada
     gris #566173: #11+ y «no sale» · rojo oscuro #B3261E: errores y tope al 100 %
   El marco (menú lateral, ruta, menú de usuario) trae sus estilos en comun.js, porque también va
   en el Generador, que no carga este archivo. */

:root {
  --acento: #0e5f96;
  --acento-hover: #0b4d7a;
  --acento-suave: #e7f1f8;
  --cian: #36d7ff;
  --navy: #054a70;
  --fondo: #f4f6f9;
  --tarjeta: #ffffff;
  --tinta: #13233a;
  --gris: #566173;
  --linea: #e1e6ee;
  --atenuado: #8d97a5;
  --atenuado-fondo: #eef1f5;
  --bien: #1d7468;
  --bien-fondo: #e6f5f2;
  --ambar: #7a5600;
  --ambar-fondo: #fff3c4;
  --rojo: #b3261e;
  --rojo-fondo: #fdecec;
  --radio: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--acento); }
a:hover { color: var(--acento-hover); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

.contenedor { max-width: 1040px; margin: 0 auto; padding: 28px 28px 64px; }
@media (max-width: 600px) { .contenedor { padding: 20px 16px 56px; } }

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; text-wrap: balance; }
h2 { text-wrap: balance; }
.subtitulo { color: var(--gris); margin: 0 0 22px; }
.cifra { font-variant-numeric: tabular-nums; }

/* --- Formularios --- */
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 13px; font-weight: 600; color: var(--gris); margin-bottom: 5px; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cdd4dd;
  color: var(--tinta);
  font: inherit;
  font-size: 16px; /* 16 px o más: el iPhone no hace zoom al tocar el campo */
  border-radius: 8px;
}
.campo input::placeholder { color: var(--atenuado); }
.campo input:focus, .campo select:focus { outline: 2px solid var(--acento); outline-offset: 0; border-color: var(--acento); }
.ayuda { font-size: 13px; color: var(--gris); margin-top: 4px; }
.opcional { color: var(--gris); font-weight: normal; }

.con-ojito { position: relative; }
.con-ojito input { padding-right: 64px; }
.ojito {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--gris); cursor: pointer;
  padding: 6px 8px; font-size: 13px; font-weight: 600;
}
.ojito:hover { color: var(--acento); background: none; }

/* --- Botones: el costo va dentro («Buscar · $0.006») --- */
button, .boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--acento);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .boton:hover { background: var(--acento-hover); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secundario, .boton.secundario { background: #fff; border-color: #cdd4dd; color: var(--tinta); }
button.secundario:hover, .boton.secundario:hover { background: var(--atenuado-fondo); color: var(--tinta); }
button.peligro { background: #fff; border-color: var(--rojo); color: var(--rojo); }
button.peligro:hover { background: var(--rojo-fondo); color: var(--rojo); }
.costo { font-weight: 500; opacity: .9; font-variant-numeric: tabular-nums; }
button.enlace { background: none; border: 0; color: var(--acento); padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
button.enlace:hover { background: none; color: var(--acento-hover); }

.estado { min-height: 20px; font-size: 14px; margin-top: 10px; }
.estado.err { color: var(--rojo); }
.estado.ok { color: var(--bien); }

/* --- Tarjetas y paneles --- */
.panel {
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}
.panel h2 { font-size: 17px; margin: 0 0 14px; }
.fila-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }

/* Pantalla vacía: qué hacer. */
.estado-vacio {
  border: 1px dashed #cdd4dd; border-radius: var(--radio); background: var(--tarjeta);
  padding: 22px; text-align: center; color: var(--gris); display: grid; gap: 6px; justify-items: center;
}
.estado-vacio strong { color: var(--tinta); font-size: 15px; }

/* Etiquetas de posición: turquesa #1–3 (y «tu web»), ámbar #4–10, gris #11+ o «no sale». */
.pos { display: inline-block; font-size: 12.5px; font-weight: 650; border-radius: 12px; padding: 2px 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos.top { background: var(--bien-fondo); color: var(--bien); }
.pos.medio { background: var(--ambar-fondo); color: var(--ambar); }
.pos.bajo { background: var(--atenuado-fondo); color: var(--gris); font-weight: 500; }

/* Números destacados. */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.numero { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 14px; }
.numero b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.numero span { font-size: 13px; color: var(--gris); }

/* --- Login --- */
.pantalla-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.tarjeta-login {
  width: 100%; max-width: 380px;
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(19, 35, 58, .08);
  padding: 30px 26px 24px;
}
.tarjeta-login .antetitulo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.rombo { width: 22px; height: 22px; border-radius: 6px; background: var(--cian); color: var(--navy); display: inline-grid; place-items: center; font-size: 11px; }
.tarjeta-login h1 { margin: 8px 0 22px; }
.tarjeta-login button[type=submit] { width: 100%; margin-top: 6px; padding: 12px 18px; }

/* --- Inicio: tarjetas de módulos --- */
.modulos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.modulo {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 18px;
  color: var(--tinta);
  text-decoration: none;
}
a.modulo:hover { border-color: var(--acento); color: var(--tinta); box-shadow: 0 4px 14px rgba(14, 95, 150, .1); }
.modulo h2 { font-size: 17px; margin: 0; }
.modulo p { margin: 0; color: var(--gris); font-size: 14px; flex: 1; }
.modulo .etiqueta { margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--acento); }
.modulo .grupo { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.modulo.proximamente { background: var(--atenuado-fondo); border-style: dashed; color: var(--atenuado); }
.modulo.proximamente h2, .modulo.proximamente p, .modulo.proximamente .grupo { color: var(--atenuado); }
.modulo.proximamente .etiqueta { color: var(--atenuado); font-weight: 600; }

/* --- Tablas (Usuarios, Gasto) --- */
.tabla-envoltura { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
th { color: var(--gris); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.inactivo td { opacity: .55; }
td.vacio-celda { color: var(--gris); text-align: center; padding: 22px 12px; }
td .acciones { display: flex; gap: 6px; flex-wrap: wrap; }
td button { padding: 6px 10px; font-size: 13px; }

.chip-rol { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 650; }
.chip-rol.admin { background: var(--acento-suave); color: var(--acento); }
.chip-rol.contenido { background: var(--bien-fondo); color: var(--bien); }
.chip-rol.ventas { background: var(--ambar-fondo); color: var(--ambar); }

dialog {
  background: var(--tarjeta); color: var(--tinta);
  border: 1px solid var(--linea); border-radius: 12px;
  padding: 22px; width: min(440px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(19, 35, 58, .45); }
dialog h2 { margin: 0 0 16px; font-size: 18px; }
.botones-dialogo { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 600px) {
  h1 { font-size: 21px; }
  .ocultar-movil { display: none; }
}

/* --- Avisos --- */
.avisos { margin: 0 0 18px; }
.aviso { padding: 12px 14px; border-radius: var(--radio); background: var(--ambar-fondo); color: var(--ambar); margin: 0 0 8px; }
.aviso.tope { background: var(--rojo-fondo); color: var(--rojo); }

/* --- Gasto: semáforo, barra de tope --- */
.semaforo { list-style: none; padding: 0; margin: 0 0 14px; }
.semaforo li { padding: 6px 0 6px 22px; position: relative; }
.semaforo li.luz::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--atenuado);
}
.semaforo li.ok::before { background: var(--bien); }
.semaforo li.error::before { background: var(--rojo); }
.semaforo li.sin_configurar::before { background: #cdd4dd; }

.encabezado-panel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.encabezado-panel h2 { margin-bottom: 8px; }
.mes-selector { font-size: 13px; color: var(--gris); }
.mes-selector select { margin-left: 6px; padding: 6px 8px; background: #fff; color: var(--tinta); border: 1px solid #cdd4dd; border-radius: 6px; font: inherit; }
.cifra-grande { font-size: 32px; font-weight: 700; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.barra-tope { height: 10px; background: var(--atenuado-fondo); border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.barra-tope .relleno { height: 100%; background: var(--acento); border-radius: 5px; }
.barra-tope .relleno.alerta { background: #c99a00; }
.barra-tope .relleno.lleno { background: var(--rojo); }
.opciones { border: 0; padding: 0; margin: 0 0 14px; }
.opciones legend { font-size: 13px; color: var(--gris); margin-bottom: 6px; }
.opciones label { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; cursor: pointer; }
.opciones input[type=radio] { width: auto; margin: 4px 0 0; accent-color: var(--acento); }
td input[type=number] { padding: 6px 8px; background: #fff; color: var(--tinta); border: 1px solid #cdd4dd; border-radius: 6px; font: inherit; width: 100px; }
tr.fila-grupo td { font-weight: 650; background: var(--atenuado-fondo); }

/* --- Sistema --- */
.datos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.datos dt { color: var(--gris); font-size: 13px; }
.datos dd { margin: 0; word-break: break-all; }
@media (max-width: 600px) { .datos { grid-template-columns: 1fr; } .datos dd { margin-bottom: 8px; } }

/* --- Radar · Consulta rápida (primero el celular) --- */
.boton-ancho { width: 100%; padding: 13px 18px; font-size: 16px; }
.ciudad-campo { position: relative; }
.sugerencias {
  position: absolute; left: 0; right: 0; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px;
  background: #fff; border: 1px solid var(--linea); border-radius: 10px; box-shadow: 0 8px 24px rgba(19, 35, 58, .12);
  max-height: 280px; overflow-y: auto;
}
.sugerencias li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; cursor: pointer; border-radius: 6px; }
.sugerencias li[aria-selected=true], .sugerencias li:hover { background: var(--acento-suave); }
.sugerencias .estado-ciudad { color: var(--gris); font-size: 13px; }
.sugerencias .sin-opciones { color: var(--gris); cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  background: #fff; border: 1px solid #cdd4dd; color: var(--tinta);
  padding: 6px 12px; border-radius: 16px; font-size: 14px; font-weight: 500;
}
.chip:hover { background: var(--atenuado-fondo); color: var(--tinta); }
.chip.activo { border-color: var(--acento); background: var(--acento-suave); color: var(--acento); }
.chip.quieto { padding: 2px 8px; font-size: 12px; cursor: default; }

.meta-resultado .que { font-size: 18px; font-weight: 650; margin: 4px 0 2px; }
.meta-resultado { margin-bottom: 14px; }
.meta-resultado .ayuda { font-size: 14px; }
.lista-lugares { list-style: none; padding: 0; margin: 0; }
.lista-lugares li { padding: 12px 0; border-top: 1px solid var(--linea); }
.lista-lugares li:first-child { border-top: 0; padding-top: 0; }
.lista-lugares li > div:first-child { font-weight: 650; }
.lista-lugares .lugares { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lugar-chip { font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 12px; background: var(--bien-fondo); color: var(--bien); font-variant-numeric: tabular-nums; }
.lugar-chip.medio { background: var(--ambar-fondo); color: var(--ambar); }
.lugar-chip.bajo { background: var(--atenuado-fondo); color: var(--gris); }
.lugar-chip.imagen { background: var(--acento-suave); color: var(--acento); }
.lista-lugares li .lugar-chip.vacio, .lista-lugares .lugar-chip.peor { background: var(--atenuado-fondo); color: var(--gris); font-weight: 500; }
.no-aparece { color: var(--gris); }
.boton-verificar { margin-top: 8px; }
.nota-imagen { margin: 6px 0 0; font-size: 13px; color: var(--gris); }
.aviso-variacion { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--ambar-fondo); color: var(--ambar); font-size: 14px; }
.aviso-variacion:empty { display: none; }
.aviso-variacion button.enlace { margin-left: 4px; color: var(--ambar); }
.sin-webs { color: var(--gris); list-style: none; }
.lista-simple { margin: 8px 0 0; padding-left: 20px; color: var(--gris); font-size: 14px; }
details summary { cursor: pointer; }
.marca { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; }
.marca.propia { background: var(--bien-fondo); color: var(--bien); }
.marca.resaltada { background: var(--ambar-fondo); color: var(--ambar); }
.nota-final { margin: 0 0 24px; }

/* Página de resultados: como un buscador en el celular (sin su marca). Colores propios de
   buscador (azul de enlace, verde «tu web»), distintos de los de la suite a propósito. */
.titulo-pagina { margin: 22px 0 4px; }
.serp {
  --serp-fondo: #ffffff; --serp-linea: #e3e3e3; --serp-texto: #1f1f1f; --serp-gris: #5f6368;
  --serp-azul: #1a0dab; --serp-verde: #137333; --serp-verde-fondo: #e6f4ea;
  --serp-amarillo: #f9ab00; --serp-amarillo-fondo: #fef7e0;
  background: #f1f3f4; color: var(--serp-texto); border-radius: 12px; padding: 8px;
  font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; margin-bottom: 14px;
}
.serp-resultado, .serp-bloque, .serp-vacio {
  background: var(--serp-fondo); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
  border: 2px solid transparent; overflow-wrap: anywhere;
}
.serp-vacio { color: var(--serp-gris); margin-top: 0; }
.serp .fuente { display: flex; align-items: center; gap: 10px; }
.serp .favicon {
  position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #e8eaed; color: var(--serp-gris);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; overflow: hidden;
}
.serp .favicon img { position: absolute; width: 18px; height: 18px; opacity: 0; }
.serp .favicon.con-icono { background: #f8f9fa; border: 1px solid var(--serp-linea); color: transparent; }
.serp .favicon.con-icono img { opacity: 1; }
.serp .fuente-texto { flex: 1; min-width: 0; line-height: 1.25; }
.serp .sitio { font-size: 14px; color: var(--serp-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp .url { font-size: 12px; color: var(--serp-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp .posicion { flex: 0 0 auto; font-size: 12px; color: var(--serp-gris); background: #f1f3f4; border-radius: 10px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.serp-titulo { font-size: 18px; font-weight: normal; line-height: 1.3; margin: 8px 0 4px; }
.serp-titulo a, .serp-titulo span { color: var(--serp-azul); text-decoration: none; }
.serp-titulo a:hover { text-decoration: underline; }
.serp-descripcion { color: #474747; margin: 0; font-size: 14px; }
.serp-encabezado { font-size: 18px; font-weight: normal; margin: 0 0 6px; color: var(--serp-texto); }
.serp-bloque.compacto { color: var(--serp-gris); padding: 10px 14px; font-size: 14px; }
.serp-mapa ol { list-style: none; margin: 0; padding: 0; }
.serp .negocio { padding: 10px 8px; margin: 0 -8px; border-top: 1px solid var(--serp-linea); border-radius: 8px; border-left: 0; }
.serp .negocio:first-child { border-top: 0; }
.serp .negocio-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.serp .negocio-nombre { font-size: 16px; color: var(--serp-azul); }
.serp .negocio-datos { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--serp-gris); margin: 2px 0; }
.serp .estrellas { color: #b06000; }
.serp .patrocinado { font-weight: 700; color: var(--serp-texto); }
.serp .sin-web { font-style: italic; }
.serp .negocio-acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.serp .negocio-acciones .accion {
  display: inline-block; padding: 7px 14px; border: 1px solid #dadce0; border-radius: 18px;
  color: #0b57d0; text-decoration: none; font-size: 14px; background: #fff;
}
.serp .preguntas { list-style: none; margin: 0; padding: 0; }
.serp .preguntas li { padding: 12px 24px 12px 0; border-top: 1px solid var(--serp-linea); position: relative; }
.serp .preguntas li::after { content: '⌄'; position: absolute; right: 4px; top: 8px; color: var(--serp-gris); }
.serp .busquedas-relacionadas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.serp .busquedas-relacionadas li { padding: 6px 12px; border: 1px solid var(--serp-linea); border-radius: 16px; font-size: 14px; }
.serp .imagenes-marcadas { list-style: none; margin: 4px 0 8px; padding: 0; }
.serp .imagenes-marcadas li { padding: 6px 0; }
.serp .imagenes-marcadas .etiquetas { margin-top: 4px; }
.serp .etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.serp .etiqueta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }
.serp .etiqueta.tu-web { background: var(--serp-verde); color: #fff; }
.serp .etiqueta.resaltada { background: var(--serp-amarillo); color: #241a00; }
.serp .es-propia { border-color: var(--serp-verde); background: var(--serp-verde-fondo); }
.serp .es-resaltada { border-color: var(--serp-amarillo); background: var(--serp-amarillo-fondo); }
.serp .negocio.es-propia, .serp .negocio.es-resaltada { border: 2px solid; margin: 2px -8px; }
.serp .negocio.es-propia { border-color: var(--serp-verde); }
.serp .negocio.es-resaltada { border-color: var(--serp-amarillo); }

.plegable summary { font-weight: 650; font-size: 16px; }
.plegable[open] summary { margin-bottom: 12px; }
.lista-webs { list-style: none; padding: 0; margin: 8px 0 14px; }
.lista-webs li.estado-vacio { display: grid; justify-content: center; border-bottom: 1px dashed #cdd4dd; }
.lista-webs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.fila-sitio { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fila-sitio input { flex: 1 1 160px; padding: 8px 10px; background: #fff; color: var(--tinta); border: 1px solid #cdd4dd; border-radius: 8px; font-size: 16px; }
.fila-sitio span { flex: 1 1 100%; font-size: 14px; }
.fila-formulario { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 10px; align-items: end; }
.fila-formulario button { margin-bottom: 14px; }
@media (max-width: 600px) {
  .fila-formulario { grid-template-columns: 1fr; }
}
.estado-central { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; margin: 4px 0 12px; }
.estado-central .error-central { color: var(--rojo); }

/* --- Componentes para los módulos que vienen (comun.js: opcionesConCosto, avancePasos) --- */
.opciones-costo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; margin-bottom: 14px; }
.opcion-costo {
  position: relative; display: grid; gap: 4px; padding: 12px 14px; cursor: pointer;
  background: var(--tarjeta); border: 1px solid #cdd4dd; border-radius: var(--radio); color: var(--gris); font-size: 13.5px;
}
.opcion-costo input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-costo strong { color: var(--tinta); font-size: 15px; }
.opcion-costo .opcion-precio { color: var(--tinta); font-weight: 650; font-variant-numeric: tabular-nums; }
.opcion-costo:hover { border-color: var(--acento); }
.opcion-costo:has(input:checked) { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); background: var(--acento-suave); }
.opcion-costo:has(input:focus-visible) { outline: 2px solid var(--acento); outline-offset: 2px; }

.avance { height: 6px; background: var(--atenuado-fondo); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.avance i { display: block; height: 100%; width: 0; background: var(--acento); border-radius: 3px; transition: width .3s ease; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.paso { display: flex; gap: 10px; align-items: center; }
.marca-paso { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; border: 2px solid #cdd4dd; }
.paso.hecho .marca-paso { background: var(--bien); border-color: var(--bien); color: #fff; }
.paso.ahora { font-weight: 650; }
.paso.ahora .marca-paso { border-color: var(--acento); }
.paso.falta { color: var(--gris); }
.paso.fallo .marca-paso { border-color: var(--rojo); background: var(--rojo); color: #fff; }
.pasos-nota { margin: 10px 0 0; font-size: 14px; color: var(--bien); min-height: 20px; }
.pasos-nota.err { color: var(--rojo); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .avance i { transition: none; } }
