.csel-muro, .csel-nuevo, .csel-ficha, .csel-panel {
  --csel-borde: #d9dde3;
  --csel-fondo: #f6f8fa;
  --csel-texto-suave: #5b6571;
  --csel-acento: #1f6f5c;
  max-width: 820px;
  margin: 0 0 2rem;
}
.csel-intro, .csel-nota { color: var(--csel-texto-suave); }
.csel-vacio { margin: 1.5rem 0; padding: 1.5rem 1.25rem; border: 1px dashed var(--csel-borde); border-radius: 10px; background: #f8faf9; text-align: center; color: var(--csel-texto-suave); }
.csel-vacio p { margin: 0; padding: 0; }
.csel-vacio__titulo { font-weight: 700; color: #2a3340; }
.csel-vacio__detalle { margin-top: .4rem !important; }
.csel-vacio__accion { margin-top: .8rem !important; font-weight: 600; }

.csel-filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.csel-filtros a { padding: .25rem .75rem; border: 1px solid var(--csel-borde); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.csel-filtros a.activo { background: var(--csel-acento); border-color: var(--csel-acento); color: #fff; }

.csel-lista { list-style: none; margin: 0; padding: 0; }
.csel-item { padding: .9rem 0; border-bottom: 1px solid var(--csel-borde); }
.csel-item__titulo { font-weight: 600; font-size: 1.1rem; }
.csel-item__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; margin-top: .3rem; color: var(--csel-texto-suave); font-size: .88rem; }

.csel-estado { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e8ecf1; color: #34404d; }
.csel-estado--en_revision { background: #fdf0c9; color: #6b5200; }
.csel-estado--en_ejecucion { background: #d7e8fb; color: #124a86; }
.csel-estado--resuelto { background: #d5efe3; color: #135d3b; }
.csel-estado--c-gris { background: #e8ecf1; color: #34404d; }
.csel-estado--c-azul { background: #d7e8fb; color: #124a86; }
.csel-estado--c-amarillo { background: #fdf0c9; color: #6b5200; }
.csel-estado--c-naranja { background: #fde3cc; color: #8a3d00; }
.csel-estado--c-verde { background: #d5efe3; color: #135d3b; }
.csel-estado--c-rojo { background: #fbd9d9; color: #8a1c1c; }
.csel-estado--c-morado { background: #e6dcf6; color: #4a2a85; }

.csel-form label { display: block; margin: .9rem 0 .25rem; font-weight: 600; }
.csel-form input[type=text], .csel-form input[type=email], .csel-form input[type=tel], .csel-form select, .csel-form textarea { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid var(--csel-borde); border-radius: 6px; font: inherit; }
.csel-form .csel-check { font-weight: 400; }
.csel-obligatorio { color: #b3261e; font-weight: 400; font-size: .85rem; }
.csel-trampa { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.csel-boton { margin-top: 1rem; padding: .6rem 1.3rem; border: 0; border-radius: 6px; background: var(--csel-acento); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.csel-boton--secundario { background: #6b7480; }

.csel-aviso { padding: .7rem 1rem; border-radius: 6px; margin: 1rem 0; }
.csel-aviso--ok { background: #d5efe3; color: #135d3b; }
.csel-aviso--error { background: #fbe0dd; color: #8c1d18; }
.csel-aviso ul { margin: 0; padding-left: 1.2rem; }

.csel-ficha h3 { margin-top: 1.5rem; }
.csel-respuesta { border-left: 4px solid var(--csel-acento); background: var(--csel-fondo); padding: .1rem 1rem; }
.csel-oculto { background: #fbf1d9; border: 1px solid #ecd9a3; padding: .7rem 1rem; border-radius: 6px; }
.csel-historial { margin-top: 1rem; font-size: .9rem; }
.csel-panel { border: 1px dashed var(--csel-borde); padding: 1rem; border-radius: 8px; background: var(--csel-fondo); }

.csel-acciones { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .85rem; margin-top: .3rem; }
.csel-inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.csel-inline input[type=text] { padding: .2rem .4rem; font-size: .85rem; }
.csel-enlace { background: none; border: 0; padding: 0; color: var(--csel-acento, #1f6f5c); text-decoration: underline; cursor: pointer; font: inherit; }
.csel-reportes, .csel-reportado { color: var(--csel-texto-suave); }

.csel-bandeja, .csel-contacto { max-width: 820px; margin: 0 0 2rem; }
.csel-mensaje { border: 1px solid #d9dde3; border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.csel-mensaje--atendido { opacity: .65; }

/* ---- Página "Obras del SSR": móvil primero ---- */
.obra {
  --csel-borde: #d9dde3;
  --csel-fondo: #f6f8fa;
  --csel-texto-suave: #5b6571;
  --csel-acento: #1f6f5c;
  max-width: 1080px;
  margin: 0;
  line-height: 1.55;
  color: #1f2a37;
}
.obra h2 { margin: 0 0 .35rem; padding: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: #16212c; }
.obra-actualizado { margin: 0 0 1.2rem; font-size: .88rem; color: var(--csel-texto-suave); }
.obra-nota { margin: 0 0 .9rem; font-size: .92rem; color: var(--csel-texto-suave); }
.obra-fuente { font-size: .85rem; color: var(--csel-texto-suave); }

/* En breve y compromisos: una columna en el celular, dos en pantallas anchas. */
.obra-grid { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.obra-resumen, .obra-compromisos { padding: 1.25rem; border-radius: 14px; }
.obra-resumen { background: #f1f6f4; border: 1px solid #d5e5df; }
.obra-compromisos { background: #fff; border: 1px solid var(--csel-borde); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
#main-content .obra .obra-resumen ul { margin: .6rem 0 0; padding: 0 0 0 1.1rem; line-height: 1.55; }
.obra-resumen li { margin-bottom: .6rem; }
.obra-resumen li:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .obra-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.75rem; align-items: start; }
}

/* Estados de los compromisos: un color con significado cada uno. */
#main-content .obra ul.obra-lista { margin: 0; padding: 0; list-style: none; line-height: 1.5; }
#main-content .obra ul.obra-lista li { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin: 0; padding: .85rem 0; border-top: 1px solid #eef1f4; }
#main-content .obra ul.obra-lista li:first-child { border-top: 0; padding-top: .2rem; }
.obra-estado { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .18rem .65rem; border: 1px solid; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.obra-estado::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.obra-estado--confirmar { background: #fff6dd; border-color: #efd48a; color: #7a5300; }
.obra-estado--pendiente { background: #fde9e4; border-color: #f4bfb0; color: #9a2f14; }
.obra-estado--vigente { background: #e3effd; border-color: #b7d3f5; color: #0f4c97; }
.obra-estado--definir { background: #eceff3; border-color: #cdd3db; color: #46505c; }
.obra-estado--cumplido { background: #dff3e8; border-color: #aee0c5; color: #14633f; }
@media (min-width: 640px) {
  #main-content .obra ul.obra-lista li { display: grid; grid-template-columns: 8.2rem 1fr; gap: 1rem; align-items: start; }
}

/* Cronología: línea de tiempo vertical con un punto por hito. */
.obra-cronologia { margin-bottom: 2.5rem; }
.obra-linea { position: relative; margin-top: 1rem; padding-left: 1.75rem; }
.obra-linea::before { content: ""; position: absolute; left: .5rem; top: .5rem; bottom: .5rem; width: 2px; background: #d3dbe2; }
.obra-mes { display: inline-block; margin: 1.2rem 0 .7rem -.2rem; padding: .2rem .8rem; border-radius: 999px; background: var(--csel-acento); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.obra-linea > .obra-mes:first-child { margin-top: 0; }
.obra-hito { position: relative; margin: 0 0 .75rem; background: #fff; border: 1px solid var(--csel-borde); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.obra-hito::before { content: ""; position: absolute; left: -1.54rem; top: 1.2rem; width: .7rem; height: .7rem; border: 2px solid var(--csel-acento); border-radius: 50%; background: #fff; }
.obra-hito[open]::before { background: var(--csel-acento); }
.obra-hito > summary { position: relative; display: grid; gap: .1rem; min-height: 48px; padding: .8rem 2.6rem .8rem 1rem; cursor: pointer; list-style: none; }
.obra-hito > summary::-webkit-details-marker, .obra-texto > summary::-webkit-details-marker { display: none; }
.obra-hito > summary::after { content: ""; position: absolute; right: 1.1rem; top: 1.15rem; width: .5rem; height: .5rem; border-right: 2px solid var(--csel-acento); border-bottom: 2px solid var(--csel-acento); transform: rotate(45deg); transition: transform .15s; }
.obra-hito[open] > summary::after { top: 1.4rem; transform: rotate(225deg); }
.obra-fecha { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--csel-acento); }
.obra-titulo { font-weight: 600; color: #16212c; }
.obra-detalle { margin: 0 1rem; padding: .9rem 0 1rem; border-top: 1px solid #eef1f4; }
.obra-detalle > :first-child { margin-top: 0; }
@media (min-width: 640px) {
  .obra-hito > summary { grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; }
}

/* Citas, capturas y fotos dentro de un hito */
.obra-texto { margin: .8rem 0; border: 1px solid var(--csel-borde); border-radius: 8px; }
.obra-texto > summary { box-sizing: border-box; min-height: 44px; padding: .65rem .9rem; cursor: pointer; list-style: none; color: var(--csel-acento); font-weight: 600; }
.obra-texto blockquote { margin: 0; padding: .2rem 1rem 1rem; border: 0; border-top: 1px solid var(--csel-borde); background: var(--csel-fondo); font-size: .92rem; font-style: normal; }
.obra-texto blockquote p { margin: 0 0 .9em; padding: 0; }
.obra-texto blockquote ol { margin: 0 0 .9em 1.2rem; padding: 0; }
.obra-captura { padding: .8rem; border-top: 1px solid var(--csel-borde); background: var(--csel-fondo); }
.obra-captura img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; border-radius: 6px; }
.obra-foto { display: block; max-width: 260px; margin: .9rem 0; text-decoration: none; }
.obra-foto img { display: block; width: 100%; max-height: 300px; border: 1px solid var(--csel-borde); border-radius: 6px; object-fit: cover; object-position: top; }
.obra-foto span { display: block; margin-top: .3rem; font-size: .88rem; color: var(--csel-acento); text-decoration: underline; }
.obra-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .9rem 0; }
.obra-fotos img { width: 100%; height: auto; border-radius: 6px; }
@media (min-width: 640px) { .obra-foto { max-width: 320px; } }

/* Participa */
.obra-participa { padding: 1.25rem; border: 1px solid #d5e5df; border-radius: 14px; background: #f1f6f4; }
.obra-botones { display: flex; flex-direction: column; gap: .6rem; margin: .8rem 0; }
.obra .csel-boton { display: block; margin: 0; text-align: center; text-decoration: none; }
@media (min-width: 640px) {
  .obra-botones { flex-direction: row; }
  .obra .csel-boton { display: inline-block; }
}

/* Más ancho útil en celulares en las páginas del sitio */
@media (max-width: 640px) {
  body.csel-pagina #main-content .container { width: 92%; }
}

/* Formulario de comentarios (el de Divi): mismo lenguaje visual que el resto del sitio. */
#respond.comment-respond { max-width: none; margin: 2.5rem 0 1rem; padding: 1.25rem; border: 1px solid #d9dde3; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
#respond .comment-reply-title { margin: 0 0 .8rem; padding: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: #16212c; }
#respond .comment-form-comment { margin: 0; padding: 0; }
#respond label { display: block; margin: 0 0 .3rem; font-weight: 600; }
#respond textarea { width: 100%; min-height: 7rem; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid #d9dde3 !important; border-radius: 8px; background: #fff !important; color: #1f2a37 !important; font: inherit; }
#respond textarea:focus { border-color: #1f6f5c; outline: 2px solid #1f6f5c; outline-offset: 1px; }
#respond .form-submit { margin: .9rem 0 0; padding: 0 !important; text-align: left; }
#respond .comment-form { margin: 0; padding: 0; }
#comment-wrap { margin: 0; padding: 0 !important; }
#respond .form-submit .submit, #respond .form-submit .et_pb_button { display: block; width: 100%; padding: .7rem 1.3rem !important; border: 0 !important; border-radius: 6px !important; background: #1f6f5c !important; color: #fff !important; font-size: 1rem !important; font-weight: 600 !important; line-height: 1.4 !important; cursor: pointer; }
#respond .form-submit .et_pb_button:hover { background: #185a4a !important; padding: .7rem 1.3rem !important; }
#respond .form-submit .et_pb_button:after { display: none !important; }
@media (min-width: 640px) {
  #respond .form-submit .submit, #respond .form-submit .et_pb_button { display: inline-block; width: auto; }
}
#respond .csel-campo { display: block; }
#respond label .required { color: #b3261e; }
/* Sin comentarios, Divi deja un contenedor vacío con mucho aire arriba del formulario. */
#comment-section.nocomments { display: none; }

/* Foto adjunta a un planteamiento */
.csel-form input[type=file] { display: block; width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px dashed var(--csel-borde); border-radius: 6px; background: #f8faf9; font: inherit; }
.csel-opcional { font-weight: 400; font-size: .85rem; color: var(--csel-texto-suave); }
.csel-ayuda { margin: .3rem 0 0; font-size: .85rem; }
.csel-foto { margin: 1rem 0; }
.csel-foto img { display: block; max-width: 100%; height: auto; max-height: 28rem; border: 1px solid var(--csel-borde); border-radius: 10px; object-fit: contain; background: #f6f8fa; }

/* Enlace destacado a la norma de convivencia */
.csel-norma-enlace { display: flex; align-items: center; gap: .9rem; margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #b9d8cc; border-radius: 12px; background: #eef6f3; color: #14513f; text-decoration: none !important; }
.csel-norma-enlace:hover, .csel-norma-enlace:focus { border-color: #1f6f5c; background: #e2f0ea; }
.csel-norma-enlace__icono { flex: 0 0 auto; width: 28px; height: 28px; background: #1f6f5c; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.csel-norma-enlace__texto { display: flex; flex: 1; flex-direction: column; line-height: 1.3; }
.csel-norma-enlace__texto strong { font-size: 1rem; color: #0f3f31; }
.csel-norma-enlace__texto span { font-size: .88rem; color: #3d6657; }
.csel-norma-enlace__flecha { font-size: 1.4rem; font-weight: 700; color: #1f6f5c; }

/* Página de la norma de convivencia */
.csel-norma { --csel-borde: #d9dde3; --csel-fondo: #f6f8fa; --csel-texto-suave: #5b6571; --csel-acento: #1f6f5c; max-width: 1080px; margin: 0 0 2rem; }
.csel-norma__lead { max-width: 46rem; margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.6; color: #2a3340; }
#main-content .csel-norma ol.csel-norma__lista { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: regla; }
#main-content .csel-norma li.csel-norma__item { position: relative; margin: 0; padding: 1.1rem 1.2rem 1.1rem 4.2rem; border: 1px solid #d9dde3; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); counter-increment: regla; }
.csel-norma__item::before { content: counter(regla); position: absolute; top: 1.1rem; left: 1.1rem; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #1f6f5c; color: #fff; font-weight: 700; }
.csel-norma__titulo { margin: 0 0 .3rem; padding: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: #16212c; }
.csel-norma__item p { margin: 0; padding: 0; line-height: 1.55; color: #3a4552; }
.csel-norma__cierre { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #d5e5df; border-radius: 14px; background: #f1f6f4; }
.csel-norma__cierre strong { display: block; font-size: 1.1rem; color: #16212c; }
.csel-norma__cierre span { display: block; margin-top: .2rem; color: #5b6571; }
.csel-norma__botones { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 0; padding: 0; }
.csel-norma__botones .csel-boton { display: block; margin: 0; text-align: center; text-decoration: none; }
@media (min-width: 760px) {
  #main-content .csel-norma ol.csel-norma__lista { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .csel-norma__botones { flex-direction: row; }
  .csel-norma__botones .csel-boton { display: inline-block; }
}

.csel-form input[type=file]::file-selector-button { margin-right: .8rem; padding: .45rem .9rem; border: 1px solid var(--csel-acento); border-radius: 6px; background: #fff; color: var(--csel-acento); font: inherit; font-weight: 600; cursor: pointer; }
.csel-form input[type=file]::file-selector-button:hover { background: #eef6f3; }

/* Página «Mi comunidad» */
.csel-inicio { max-width: 1080px; margin: 0 0 2rem; }
.csel-inicio__saludo { margin: 0 0 1.25rem; font-size: 1.15rem; color: #2a3340; }
#main-content .csel-inicio ul.csel-inicio__lista { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.csel-inicio__lista li { margin: 0; padding: 0; }
.csel-inicio__tarjeta { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid #d9dde3; border-left: 5px solid #1f6f5c; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); color: #5b6571; text-decoration: none !important; }
.csel-inicio__tarjeta:hover, .csel-inicio__tarjeta:focus { border-color: #1f6f5c; background: #f3f8f6; }
.csel-inicio__tarjeta strong { font-size: 1.1rem; color: #16212c; }
.csel-inicio__tarjeta span { font-size: .95rem; line-height: 1.4; }
@media (min-width: 760px) { #main-content .csel-inicio ul.csel-inicio__lista { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; } }

/* Burbuja de orientación del formulario de planteamientos */
.csel-guia { display: flex; align-items: flex-start; gap: .75rem; margin: 1rem 0; }
.csel-guia__avatar { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #1f6f5c url('marca/icono-simple.svg') center / 78% no-repeat; }
.csel-guia__burbuja { position: relative; flex: 1; padding: .9rem 1rem; border: 1px solid #b9d8cc; border-radius: 4px 14px 14px 14px; background: #eef6f3; color: #14513f; font-size: .95rem; line-height: 1.45; }
.csel-guia__burbuja::before { content: ''; position: absolute; top: .9rem; left: -8px; width: 14px; height: 14px; border-left: 1px solid #b9d8cc; border-bottom: 1px solid #b9d8cc; background: #eef6f3; transform: rotate(45deg); }
.csel-guia__burbuja strong { display: block; margin-bottom: .45rem; color: #0f3f31; }
#main-content .csel-guia ol { margin: 0; padding: 0 0 0 1.2rem; }
#main-content .csel-guia li { margin: .25rem 0; padding: 0; }

/* ---- Páginas de ayuda ("Cómo usar Transparencia 360"): móvil primero ---- */
.ayuda {
  --csel-borde: #d9dde3;
  --csel-fondo: #f6f8fa;
  --csel-texto-suave: #5b6571;
  --csel-acento: #1f6f5c;
  max-width: 1240px;
  margin: 0;
  line-height: 1.6;
  color: #1f2a37;
}
.ayuda h2 { margin: 0 0 .5rem; padding: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: #16212c; }
.ayuda h3 { margin: 0 0 .5rem; padding: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: #16212c; }
.ayuda-actualizado, .ayuda-migas, .ayuda-nota { margin: 0 0 1rem; font-size: .88rem; color: var(--csel-texto-suave); }
.ayuda-migas a { color: var(--csel-acento); }
.ayuda-hero { margin: 0 0 1.75rem; padding: 1.25rem; border: 1px solid #d5e5df; border-radius: 14px; background: #f1f6f4; }
.ayuda-hero p { margin: 0; font-size: 1.02rem; }

/* Tarjetas de temas: 1, 2 y 3 columnas según el ancho. */
.ayuda-tarjetas { display: grid; gap: .9rem; margin: .9rem 0 2rem; }
.ayuda-tarjeta { display: grid; gap: .25rem; padding: 1.1rem 1.25rem 1.1rem 4rem; position: relative; border: 1px solid var(--csel-borde); border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); color: #1f2a37; text-decoration: none !important; min-height: 48px; }
.ayuda-tarjeta:hover, .ayuda-tarjeta:focus-visible { border-color: var(--csel-acento); box-shadow: 0 2px 8px rgba(31, 111, 92, .18); }
.ayuda-tarjeta strong { font-size: 1.05rem; color: #16212c; }
.ayuda-tarjeta span:not(.ayuda-tarjeta__num) { font-size: .92rem; color: var(--csel-texto-suave); }
.ayuda-tarjeta__num { position: absolute; left: 1.1rem; top: 1.1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--csel-acento); color: #fff; font-weight: 700; }
@media (min-width: 640px) { .ayuda-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ayuda-tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ayuda-nota-roles, .ayuda-aviso, .ayuda-escritorio { margin: 0 0 2rem; padding: 1.25rem; border: 1px solid var(--csel-borde); border-radius: 14px; background: #fff; }
.ayuda-aviso { background: #fff6dd; border-color: #efd48a; }
#main-content .ayuda ul.ayuda-lista { margin: .5rem 0 0; padding: 0 0 0 1.1rem; }
.ayuda-lista li { margin-bottom: .5rem; }
.ayuda-pie { margin: 0 0 1rem; }

/* Pasos: número a la izquierda; texto e imagen en una columna en el celular y en dos en pantallas grandes. */
#main-content .ayuda ol.ayuda-pasos { margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: paso; }
.ayuda-paso { counter-increment: paso; position: relative; display: grid; gap: 1rem; margin: 0 0 1rem; padding: 1.1rem 1.1rem 1.1rem 3.4rem; border: 1px solid var(--csel-borde); border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.ayuda-paso::before { content: counter(paso); position: absolute; left: 1rem; top: 1.05rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--csel-acento); color: #fff; font-size: .9rem; font-weight: 700; }
.ayuda-paso__texto > :last-child { margin-bottom: 0; }
#main-content .ayuda .ayuda-paso ul, #main-content .ayuda .ayuda-paso ol { margin: .4rem 0 .8rem 1.1rem; padding: 0; }
.ayuda-paso li { margin-bottom: .35rem; }
#main-content .ayuda ul.ayuda-estados { margin: .5rem 0 0; padding: 0; list-style: none; }
.ayuda-estados li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .6rem; }
.ayuda-consejo { margin: .8rem 0 0; padding: .7rem .9rem; border-left: 4px solid var(--csel-acento); border-radius: 0 8px 8px 0; background: #f1f6f4; font-size: .93rem; }

/* Imágenes: ancho de celular, recortadas por arriba si son muy altas; se abren completas al tocarlas. */
.ayuda-figura { display: block; max-width: 340px; margin: 0 auto; text-decoration: none !important; }
.ayuda-figura img { display: block; width: 100%; height: auto; max-height: 520px; border: 1px solid var(--csel-borde); border-radius: 10px; box-shadow: 0 2px 8px rgba(16, 24, 40, .1); object-fit: cover; object-position: top; background: #fff; }
.ayuda-figura span { display: block; margin-top: .35rem; text-align: center; font-size: .88rem; color: var(--csel-acento); text-decoration: underline; }
.ayuda-figura--ancha { max-width: 100%; }
.ayuda-figura--ancha img { max-height: none; object-fit: contain; }
.ayuda-escritorio { display: none; }
@media (min-width: 900px) {
  .ayuda-paso { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; align-items: start; padding: 1.5rem 1.5rem 1.5rem 4rem; }
  .ayuda-paso:not(:has(.ayuda-figura)) { grid-template-columns: minmax(0, 1fr); }
  .ayuda-paso::before { left: 1.25rem; top: 1.45rem; }
  .ayuda-figura { max-width: 100%; margin: 0; }
  .ayuda-figura img { max-height: 600px; }
  .ayuda-escritorio { display: block; }
}
.ayuda-nav { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 1.5rem; }
.ayuda-nav .csel-boton { margin-top: 0; text-align: center; text-decoration: none !important; }
@media (min-width: 640px) { .ayuda-nav { flex-direction: row; flex-wrap: wrap; } }

/* Ventana modal de imágenes de la ayuda. */
html.ayuda-modal-abierto { overflow: hidden; }
.ayuda-modal { box-sizing: border-box; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 3.5rem .75rem 1rem; border: 0; background: rgba(12, 18, 24, .88); overflow: auto; }
.ayuda-modal[open] { display: block; }
.ayuda-modal::backdrop { background: rgba(12, 18, 24, .6); }
.ayuda-modal__imagen { display: block; margin: 0 auto; width: auto; max-width: 100%; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); cursor: default; }
.ayuda-modal__cerrar { position: fixed; top: .6rem; right: .75rem; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #16212c; font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.ayuda-modal__cerrar:focus-visible { outline: 3px solid #1f6f5c; outline-offset: 2px; }
@media (min-width: 900px) { .ayuda-modal__imagen { max-width: min(100%, 1200px); } }
@media (max-width: 899px) { .ayuda-modal__imagen--ancha { width: 960px; max-width: none; } }

/* Pasos con una captura de escritorio: la imagen va debajo del texto, a todo el ancho. */
.ayuda-paso--ancho .ayuda-figura { max-width: 100%; }
.ayuda-paso--ancho .ayuda-figura img { max-height: none; object-fit: contain; }
@media (min-width: 900px) { .ayuda-paso.ayuda-paso--ancho { grid-template-columns: minmax(0, 1fr); } }
.ayuda-grupo { margin: 0 0 .25rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--csel-acento); }
.ayuda-rol { margin: 0 0 1.25rem; padding: .6rem .9rem; border-left: 4px solid var(--csel-acento); border-radius: 0 8px 8px 0; background: #f1f6f4; font-size: .95rem; }

/* Editor de estados de los planteamientos */
.csel-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.csel-estados__enlace { margin: .4rem 0 1rem; font-size: .9rem; }
.csel-estados__tabla { display: grid; gap: .6rem; margin: 1rem 0; }
.csel-estados__fila { display: grid; grid-template-columns: 4.2rem 1fr 7.5rem; gap: .5rem .6rem; align-items: center; padding: .7rem; border: 1px solid #d9dde3; border-radius: 10px; background: #fff; }
.csel-estados__fila--cab { display: none; }
.csel-estados__fila input[type="text"], .csel-estados__fila input[type="number"], .csel-estados__fila select { width: 100%; box-sizing: border-box; }
.csel-estados__marca { display: flex; align-items: center; gap: .35rem; font-size: .9rem; }
.csel-estados__ayuda { font-size: .9rem; color: #5b6571; }
/* Módulos independientes del panel de la directiva */
.csel-modulo { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid #d9dde3; border-radius: 10px; background: #fff; }
.csel-modulo h4 { margin: 0 0 .25rem; font-size: 1.05rem; }
.csel-modulo__ayuda { margin: 0 0 .6rem; font-size: .9rem; color: #5b6571; }
.csel-modulo .csel-boton[disabled] { opacity: .5; cursor: not-allowed; }
@media (min-width: 760px) {
  .csel-estados__fila { grid-template-columns: 5rem 1fr 9rem 6rem 7rem; }
  .csel-estados__fila--cab { display: grid; padding: 0 .7rem; border: 0; background: none; font-size: .85rem; font-weight: 600; color: #5b6571; }
}

/* Editor de la página de obras (solo directiva) */
.obra-herramientas { margin: 0 0 1rem; }
.csel-obra-editor__acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.csel-obra-editor__acciones .csel-boton { margin-top: 0; text-decoration: none; }
.csel-obra-editor__tabla { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.csel-obra-editor__tabla th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--csel-texto-suave); }
.csel-obra-editor__tabla th, .csel-obra-editor__tabla td { padding: .6rem .5rem; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.csel-obra-editor__fechas { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .csel-obra-editor__fechas { grid-template-columns: 1fr 1fr; } }
.csel-obra-editor__bloque { margin: 1.4rem 0; padding: 1rem; border: 1px solid var(--csel-borde); border-radius: 10px; }
.csel-obra-editor__bloque legend { padding: 0 .4rem; font-weight: 700; }
.csel-obra-editor__adjunto { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; align-items: start; margin: .8rem 0; padding: .7rem; border: 1px solid #eef1f4; border-radius: 8px; background: #fff; }
.csel-obra-editor__miniatura img { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.csel-obra-editor__nuevo { display: grid; gap: .5rem; margin: .8rem 0; padding: .7rem; border: 1px dashed var(--csel-borde); border-radius: 8px; }
.csel-obra-editor__compromiso { display: grid; gap: .5rem; margin: .7rem 0; }
@media (min-width: 640px) { .csel-obra-editor__compromiso { grid-template-columns: 1fr 11rem; } .csel-obra-editor__nuevo { grid-template-columns: 1.2fr 11rem 1fr; align-items: center; } }
.csel-obra-editor__borrar { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--csel-borde); }
.csel-boton--peligro { background: #b3261e; }
