/* =========================================================================
   Araant — páginas del catálogo rehechas con el sistema nuevo (comprobador,
   provincias, sectores, organismos, fichas…). Piezas en partes/catalogo.php.
   Se carga después de sitio.css y marco.css. Prefijo ct-.

   Fondos: donde no hay vídeo, la luz del horizonte (la foto del crepúsculo) y
   una textura fina de grano y de columnas de documento, para que la página no
   sea un plano oscuro sin más.
   ========================================================================= */

:root {
  --cielo: #93a6c1;          /* azul de la luz del horizonte */
  --cielo-suave: rgba(147, 166, 193, 0.1);
  --arena: #d9cbb0;          /* el reflejo cálido del agua: solo detalles, nunca acciones */
}

/* --- Atmósfera de página ---------------------------------------------------- */
body.ct { position: relative; }
body.ct::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(147, 166, 193, 0.12), rgba(147, 166, 193, 0) 62%),
    radial-gradient(60% 45% at 0% 62%, rgba(217, 203, 176, 0.055), rgba(217, 203, 176, 0) 64%),
    var(--onyx);
}
.ct-seccion { position: relative; padding-block: var(--seccion); }
.ct-seccion--luz {
  background: linear-gradient(180deg, rgba(147, 166, 193, 0.085), rgba(147, 166, 193, 0) 70%);
  border-top: 1px solid var(--linea);
}
.ct-seccion--grafito { background: var(--grafito); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.ct-seccion--reticula {
  background-image: linear-gradient(to right, rgba(237, 237, 243, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.ct-seccion--compacta { padding-block: clamp(40px, 5vw, 72px); }

/* --- Cabecera de página ------------------------------------------------------- */
.ct-heroe { min-height: clamp(460px, 64svh, 700px); }
.ct-heroe .heroe__contenido { padding-top: calc(var(--barra) + 40px); padding-bottom: clamp(36px, 5vw, 72px); }
.ct-heroe .titular-xl { max-width: 20ch; }
.ct-heroe .entradilla { max-width: 52ch; }
.ct-heroe .entradilla b { color: var(--ivory); font-weight: 480; }
.ct-horizonte img { object-fit: cover; transform-origin: 50% 80%; }
.ct-heroe--foto .velo {
  background:
    linear-gradient(90deg, rgba(23, 23, 33, 0.62) 0%, rgba(23, 23, 33, 0.2) 62%, rgba(23, 23, 33, 0) 100%),
    linear-gradient(180deg, rgba(23, 23, 33, 0.5) 0%, rgba(23, 23, 33, 0) 34%, rgba(23, 23, 33, 0.35) 70%, var(--onyx) 100%);
}
.ct-grano {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* --- Tira de cifras ------------------------------------------------------------ */
.ct-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--linea-fuerte); border-bottom: 1px solid var(--linea); }
.ct-cifras__dato { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 22px 20px 20px; border-right: 1px solid var(--linea); }
.ct-cifras__dato:first-child { padding-left: 0; }
.ct-cifras__dato:last-child { border-right: 0; }
.ct-cifras dd { margin: 0; font-family: var(--f-titular); font-stretch: 112%; font-weight: 480; font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.005em; color: var(--ivory); }
.ct-cifras dt { margin-top: 10px; font-size: 13px; line-height: 1.35; color: var(--ash); }
.ct-cifras__dato--suave dd { color: var(--ash); }
.ct-cifras__dato--fuerte { background: linear-gradient(180deg, rgba(237, 237, 243, 0.06), rgba(237, 237, 243, 0)); }
.ct-heroe .ct-cifras { margin-top: clamp(28px, 4vw, 52px); max-width: 980px; }

/* --- Títulos de sección --------------------------------------------------------- */
.ct-titulo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hueco); row-gap: 14px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.ct-titulo .etiqueta { grid-column: 1 / -1; }
.ct-titulo .titular { grid-column: 1 / span 7; }
.ct-titulo__texto { grid-column: 9 / span 4; margin: 0; color: var(--ash); font-size: 16px; line-height: 1.5; }

/* --- Filas compactas de convocatoria --------------------------------------------- */
.ct-lista { display: grid; border-top: 1px solid var(--linea-fuerte); }
.ct-fila { border-bottom: 1px solid var(--linea); }
.ct-fila a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tit plazo" "meta plazo"; gap: 4px 28px;
  padding: 18px 12px 18px 0; text-decoration: none; color: var(--ivory);
  transition: background-color 0.25s var(--curva), padding 0.25s var(--curva);
}
.ct-fila a:hover, .ct-fila a:focus-visible { background: linear-gradient(90deg, rgba(237, 237, 243, 0.05), transparent); padding-left: 12px; }
.ct-fila__tit { grid-area: tit; font-weight: 480; font-size: 16px; line-height: 1.35; }
.ct-fila__meta { grid-area: meta; font-size: 13px; color: var(--ash); }
.ct-fila__plazo { grid-area: plazo; align-self: center; font-size: 13px; color: var(--ash); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-fila__plazo.apura { color: var(--onyx); background: var(--ivory); padding: 4px 12px; border-radius: var(--r-pildora); font-weight: 480; }

/* --- Buscador que filtra la página ------------------------------------------------ */
.ct-solojs { display: none; }
.js .ct-solojs { display: block; }
.ct-buscar { max-width: 560px; margin-top: clamp(24px, 3vw, 36px); }
.ct-buscar input {
  width: 100%; height: 56px; padding: 0 24px; border-radius: var(--r-control);
  background: rgba(23, 23, 33, 0.55); border: 1px solid var(--ivory); color: var(--ivory); font-size: 16px;
}
.ct-buscar input::placeholder { color: var(--ash); }
.ct-buscar input:focus { outline: 2px solid var(--ivory); outline-offset: 3px; }
[data-bloque][hidden], [data-texto][hidden] { display: none !important; }
.ct-vacio { margin: 0; padding: 28px 0; color: var(--ash); }

/* --- Etiquetas -------------------------------------------------------------------- */
.ct-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-pildora); font-size: 12px; line-height: 1; color: var(--ash); white-space: nowrap; }
.ct-tag--fuerte { background: var(--ivory); border-color: var(--ivory); color: var(--onyx); font-weight: 480; }

/* --- Comprobador ------------------------------------------------------------------- */
.ct-comprobador {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px var(--hueco); align-items: end;
  margin-top: clamp(28px, 4vw, 48px); padding: clamp(18px, 2.2vw, 28px);
  background: rgba(23, 23, 33, 0.74); border: 1px solid var(--linea-fuerte); border-radius: var(--r-tarjeta);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ct-comprobador .boton { height: 52px; }
.ct-comprobador .campo { min-width: 0; }
.ct-comprobador .campo select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.ct-comprobador--prov { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.ct-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linea-fuerte); }
.ct-pasos li { padding: 28px clamp(16px, 2.4vw, 36px) 8px 0; border-right: 1px solid var(--linea); }
.ct-pasos li + li { padding-left: clamp(16px, 2.4vw, 36px); }
.ct-pasos li:last-child { border-right: 0; }
.ct-pasos .indice { font-family: var(--f-titular); font-stretch: 112%; font-weight: 480; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: var(--ash); letter-spacing: 0; }
.ct-pasos strong { display: block; margin: 18px 0 8px; font-family: var(--f-titular); font-stretch: 112%; font-weight: 480; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; }
.ct-pasos p { margin: 0; color: var(--ash); font-size: 15px; line-height: 1.5; max-width: 34ch; }

.ct-marca {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; line-height: 1; font-weight: 600; border: 1px solid var(--ash); color: var(--ash);
}
.ct-marca--si { background: var(--ivory); border-color: var(--ivory); color: var(--onyx); }
.ct-marca--rev { border-style: dashed; border-color: var(--ivory); color: var(--ivory); }
.ct-marca--no { border-color: var(--slate); color: var(--ash); }
.ct-leyenda { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; font-size: 14px; color: var(--ash); }
.ct-leyenda li { display: inline-flex; align-items: center; gap: 10px; }

.ct-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(28px, 3vw, 40px) 0 clamp(8px, 1vw, 16px); }
.ct-grupo { display: flex; align-items: baseline; gap: 16px; margin: clamp(36px, 4vw, 56px) 0 8px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.ct-grupo .cifra { font-family: var(--f-texto); font-stretch: 100%; font-size: 15px; font-weight: 480; color: var(--ash); letter-spacing: 0; }
.ct-res { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.ct-res__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 13px; color: var(--ash); }
.ct-res__tit { margin: 0 0 8px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; letter-spacing: 0.01em; }
.ct-res__tit a { display: inline-block; padding-block: 2px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--curva); }
.ct-res__tit a:hover { background-size: 100% 1px; }
.ct-res__dato { margin: 0 0 14px; font-size: 14px; color: var(--ash); }
.ct-res__dato b { color: var(--ivory); font-weight: 480; }
.ct-checks { display: grid; gap: 8px; margin: 0; padding: 0; }
.ct-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ash); }
.ct-checks li .ct-marca { margin-top: 1px; }
.ct-checks__mas { grid-template-columns: 1fr !important; padding-left: 34px; }
.ct-res__acc { display: grid; gap: 10px; justify-items: stretch; min-width: 168px; }
.ct-res__acc .boton { min-height: 44px; font-size: 15px; }
.ct-aviso { margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--linea-fuerte); border-radius: var(--r-tarjeta); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; background: rgba(30, 30, 42, 0.7); }
.ct-aviso h2 { font-size: clamp(22px, 2.2vw, 30px); max-width: 24ch; }
.ct-aviso p { margin: 8px 0 0; max-width: 52ch; color: var(--ash); }

/* --- Índices en columnas (provincias, organismos) -------------------------------- */
.ct-indice { columns: 4 250px; column-gap: clamp(24px, 3vw, 48px); }
.ct-bloque { break-inside: avoid; margin: 0 0 clamp(28px, 3vw, 44px); }
.ct-bloque__tit { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--linea-fuerte);
  font-family: var(--f-texto); font-stretch: 100%; font-size: 12px; font-weight: 480; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.ct-bloque__lista a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--linea);
  color: var(--ivory); text-decoration: none; font-size: 15px; line-height: 1.35;
  transition: padding 0.25s var(--curva), background-color 0.25s var(--curva);
}
.ct-bloque__lista a:hover, .ct-bloque__lista a:focus-visible { background: linear-gradient(90deg, rgba(237, 237, 243, 0.05), transparent); padding-left: 10px; }
.ct-bloque__lista .cifra { flex: none; color: var(--ash); font-size: 14px; }
.ct-mas { margin-top: 4px; }
.ct-mas summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--ash); font-size: 14px; }
.ct-mas summary::-webkit-details-marker { display: none; }
.ct-mas summary::after { content: "+"; margin-left: 10px; font-size: 20px; line-height: 1; transition: transform 0.25s var(--curva); }
.ct-mas[open] summary::after { transform: rotate(45deg); }
.ct-mas summary:hover { color: var(--ivory); }

/* --- Directorio por niveles y fichas ------------------------------------------------ */
.ct-nivel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px var(--hueco); padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--linea-fuerte); }
.ct-nivel:first-child { border-top: 0; padding-top: 0; }
.ct-nivel__cab h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; margin: 0 0 10px; }
.ct-nivel__cab .texto-s { margin: 0 0 14px; max-width: 30ch; }
.ct-nivel__n { margin: 0; font-size: 13px; color: var(--ash); }
.ct-nivel__n b { color: var(--ivory); font-weight: 480; }
.ct-bloque__lista--cols { columns: 2 340px; column-gap: clamp(24px, 4vw, 64px); }
.ct-bloque__lista--cols li { break-inside: avoid; }
.ct-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hueco); border-top: 1px solid var(--linea-fuerte); }
.ct-tres__col { padding: 24px clamp(16px, 2vw, 32px) 8px 0; border-right: 1px solid var(--linea); }
.ct-tres__col + .ct-tres__col { padding-left: clamp(16px, 2vw, 32px); }
.ct-tres__col:last-child { border-right: 0; }
.ct-tres__col h3 { margin: 0 0 14px; font-family: var(--f-texto); font-stretch: 100%; font-size: 12px; font-weight: 480; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.ct-tres__col .texto-s { margin: 0; }
.ct-tres__col .texto-s b { color: var(--ivory); font-weight: 480; }

.ct-tres--dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- Barras de reparto, cuatro celdas, normas y preguntas ---------------------------- */
.ct-barras { border-top: 1px solid var(--linea-fuerte); }
.ct-barras a { display: grid; grid-template-columns: minmax(160px, 3fr) minmax(0, 8fr) 56px; align-items: center; gap: 20px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--linea); color: var(--ivory); text-decoration: none; transition: background-color 0.25s var(--curva); }
.ct-barras a:hover, .ct-barras a:focus-visible { background: linear-gradient(90deg, rgba(237, 237, 243, 0.05), transparent); }
.ct-barras__nombre { font-size: 16px; font-weight: 420; }
.ct-barras__barra { display: block; height: 6px; background: var(--linea); border-radius: 3px; overflow: hidden; }
.ct-barras__barra i { display: block; height: 100%; width: var(--p, 0%); background: var(--ivory); border-radius: 3px; transform-origin: left; }
.animado .ct-barras__barra i { animation: ct-barra 1.1s var(--curva-suave) both; }
.ct-barras__n { text-align: right; color: var(--ash); font-size: 15px; }
@keyframes ct-barra { from { transform: scaleX(0); } }
.ct-cuatro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linea-fuerte); border-left: 1px solid var(--linea); }
.ct-cuatro__celda { padding: clamp(22px, 2.6vw, 36px); border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.ct-cuatro__celda h3 { margin: 0 0 12px; font-family: var(--f-texto); font-stretch: 100%; font-size: 12px; font-weight: 480; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.ct-cuatro__celda p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--mist); max-width: 52ch; }
.ct-cuatro__celda--riesgo { background: linear-gradient(180deg, rgba(237, 237, 243, 0.06), rgba(237, 237, 243, 0)); }
.ct-normas { border-top: 1px solid var(--linea-fuerte); }
.ct-normas li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px var(--hueco); padding: 26px 0; border-bottom: 1px solid var(--linea); }
.ct-normas h3 { margin: 0 0 10px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.25; }
.ct-normas__cuerpo p { margin: 0 0 8px; color: var(--ash); font-size: 16px; line-height: 1.55; }
.ct-normas__cuerpo p b { color: var(--ivory); font-weight: 480; }
.ct-faq { border-top: 1px solid var(--linea-fuerte); }
.ct-faq details { border-bottom: 1px solid var(--linea); }
.ct-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 420; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; transition: transform 0.25s var(--curva); }
.ct-faq details[open] summary::after { transform: rotate(45deg); }
.ct-faq p { margin: 0 0 20px; max-width: 62ch; color: var(--ash); line-height: 1.6; }

/* --- Ficha de convocatoria ------------------------------------------------------------ */
.ct-heroe--ficha { min-height: clamp(420px, 56svh, 620px); }
.ct-heroe--ficha .titular-xl { max-width: 30ch; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.1; }
.ct-oficial { display: block; max-width: 70ch; font-size: 14px; line-height: 1.5; color: var(--ash); }
.ct-oficial span { color: var(--ivory); font-weight: 480; margin-right: 6px; }
.ct-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: clamp(24px, 3vw, 36px); }
.ct-acciones .boton { min-height: 48px; }
.ct-acciones .savef { margin: 0; }
.ct-acciones .savebtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 32px; border: 1px solid var(--linea-fuerte); background: transparent; color: var(--ivory); font: inherit; font-size: 16px; font-weight: 420; cursor: pointer; transition: background-color 0.2s var(--curva), color 0.2s var(--curva), border-color 0.2s var(--curva); }
.ct-acciones .savebtn:hover { border-color: var(--ivory); }
.ct-acciones .savebtn.is-on { background: var(--ivory); border-color: var(--ivory); color: var(--onyx); }
.ct-meta { margin: 18px 0 0; font-size: 13px; color: var(--ash); }
.ct-heroe--ficha .ct-cifras { margin-top: clamp(20px, 2.6vw, 32px); max-width: 640px; }
.ct-ficha { align-items: start; }
.ct-prosa { min-width: 0; max-width: 820px; }
.ct-prosa > h2, .ct-estudio > h2 { margin: clamp(36px, 4vw, 56px) 0 16px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.ct-prosa > h2:first-child, .ct-estudio > h2:first-child { margin-top: 0; }
.ct-prosa h3, .ct-estudio h3 { margin: 28px 0 10px; font-family: var(--f-texto); font-stretch: 100%; font-size: 13px; font-weight: 480; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.ct-prosa p, .ct-estudio p { max-width: 68ch; color: var(--mist); font-size: 17px; line-height: 1.6; }
.ct-prosa a, .ct-estudio a { text-underline-offset: 0.2em; }
.ct-lead { font-size: 19px !important; line-height: 1.5 !important; color: var(--ivory) !important; }
.ct-nota { font-size: 14px !important; color: var(--ash) !important; }
.ct-cnae { padding: 14px 18px; border: 1px solid var(--linea); border-radius: var(--r-tarjeta); font-size: 14px !important; word-break: break-word; }
.ct-peso { margin-left: 8px; font-weight: 400; font-size: 12px; letter-spacing: 0.04em; color: var(--ash); }
.ct-dl { margin: 0 0 8px; border-top: 1px solid var(--linea-fuerte); }
.ct-dl > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.ct-dl dt { font-weight: 480; font-size: 15px; color: var(--ivory); }
.ct-dl dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ash); }
.ct-ficha-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.ct-ficha-dl dt { color: var(--ash); }
.ct-ficha-dl dd { margin: 0; color: var(--ivory); overflow-wrap: anywhere; }
.ct-vinetas { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.ct-vinetas li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--mist); }
.ct-vinetas li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ash); }
.ct-vinetas--tic li::before { content: "✓"; top: 0; width: auto; height: auto; background: none; font-size: 13px; color: var(--ash); }
.ct-dos-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.ct-pasos-lista { counter-reset: p; display: grid; gap: 14px; margin: 0 0 20px; padding: 0; }
.ct-pasos-lista li { counter-increment: p; position: relative; padding-left: 40px; font-size: 16px; line-height: 1.55; color: var(--ash); }
.ct-pasos-lista li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 0; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ash); }
.ct-pasos-lista strong { color: var(--ivory); font-weight: 480; }
.ct-estudio { margin-bottom: clamp(36px, 4vw, 56px); }
.ct-veredicto { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: clamp(28px, 3vw, 40px); border: 1px solid var(--linea-fuerte); border-radius: var(--r-tarjeta); background: rgba(30, 30, 42, 0.7); }
.ct-veredicto p { flex: 1; margin: 0; font-size: 16px !important; color: var(--ash) !important; }
.ct-veredicto p b { color: var(--ivory); font-weight: 480; }
.ct-checks--grandes { gap: 14px; }
.ct-checks--grandes li { font-size: 16px; }
.ct-marca--neutro { border-color: var(--slate); color: var(--ash); }
.ct-cita { display: block; margin-top: 8px; padding: 2px 0 2px 14px; border-left: 2px solid var(--ivory); font-style: normal; font-size: 14px; line-height: 1.5; color: var(--ash); quotes: "«" "»"; }
.ct-cita::before { content: open-quote; }
.ct-cita::after { content: close-quote; }
.ct-cita--sin { border-left-style: dashed; border-left-color: var(--slate); }
.ct-cifras--ficha { max-width: 760px; margin: 16px 0 12px; }
.ct-cifras--ficha dd { font-size: clamp(26px, 3vw, 40px); }
.ct-ficha .tabla-envoltorio { margin: 8px 0 16px; }
.ct-cierre-vacio { display: none; }
@media (max-width: 960px) {
  .ct-dl > div { grid-template-columns: 1fr; }
  .ct-dos-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-veredicto { flex-direction: column; align-items: flex-start; }
  .ct-acciones .boton, .ct-acciones .savebtn, .ct-acciones .savef { width: 100%; justify-content: center; }
}

/* --- Sectores ----------------------------------------------------------------------- */
.ct-sectores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linea-fuerte); border-left: 1px solid var(--linea); }
.ct-sectores li { border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.ct-sectores a {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 280px; height: 100%;
  padding: clamp(22px, 2.4vw, 32px); color: var(--ivory); text-decoration: none; overflow: hidden;
  transition: background-color 0.3s var(--curva);
}
.ct-sectores a::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--curva-suave); }
.ct-sectores a:hover, .ct-sectores a:focus-visible { background: var(--grafito); }
.ct-sectores a:hover::before, .ct-sectores a:focus-visible::before { transform: scaleX(1); }
.ct-sectores h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; letter-spacing: 0.01em; margin: 0; }
.ct-sectores p { margin: 0; color: var(--ash); font-size: 15px; line-height: 1.5; }
.ct-sectores__n { display: flex; align-items: baseline; gap: 10px; align-self: end; }
.ct-sectores__n b { font-family: var(--f-titular); font-stretch: 112%; font-weight: 480; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.ct-sectores__n span { font-size: 13px; color: var(--ash); }
.ct-sectores a::after { content: "→"; position: absolute; right: clamp(22px, 2.4vw, 32px); bottom: clamp(22px, 2.4vw, 32px); color: var(--ash); transition: transform 0.3s var(--curva), color 0.3s; }
.ct-sectores a:hover::after { transform: translateX(5px); color: var(--ivory); }
.ct-matriz { border-top: 1px solid var(--linea-fuerte); }
.ct-matriz__fila { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px var(--hueco); padding: 22px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.ct-matriz__fila h3 { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.2; }
.ct-matriz__fila h3 a { display: inline-block; padding-block: 3px; text-decoration: none; }
.ct-matriz__fila h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ct-matriz__fila h3 span { display: block; margin-top: 4px; font-family: var(--f-texto); font-stretch: 100%; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ash); }
.ct-matriz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-matriz__chips .cv-chip b { margin-left: 8px; font-weight: 480; color: var(--ivory); }
.ct-matriz__chips .cv-chip:hover b { color: inherit; }

/* --- Dos columnas con barra lateral (fichas de provincia, organismo…) ---------------- */
.ct-dos { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ct-dos h2 { font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 18px; }
.ct-dos h2 + .ct-lista, .ct-dos h2 + p { margin-top: 0; }
.ct-dos .ct-lista + h2 { margin-top: clamp(36px, 4vw, 56px); }
.ct-lateral { position: sticky; top: calc(var(--barra) + 24px); display: grid; gap: 28px; }
.ct-lateral__bloque { padding: 24px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-tarjeta); background: rgba(30, 30, 42, 0.7); }
.ct-lateral__bloque h3 { margin: 0 0 14px; font-family: var(--f-texto); font-stretch: 100%; font-size: 12px; font-weight: 480; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.ct-lateral__bloque p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ash); }
.ct-ranking li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 14px; line-height: 1.35; }
.ct-ranking li:last-child { border-bottom: 0; }
.ct-ranking .cifra { flex: none; color: var(--ash); }
.ct-ranking a { display: inline-block; padding-block: 3px; color: var(--ivory); text-decoration: none; }
.ct-ranking a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --- Adaptación ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .ct-comprobador { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-comprobador .boton { grid-column: 1 / -1; }
  .ct-comprobador--prov { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-sectores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ct-cuatro { grid-template-columns: 1fr; }
  .ct-normas li { grid-template-columns: 1fr; }
  .ct-barras a { grid-template-columns: minmax(120px, 4fr) minmax(0, 6fr) 48px; gap: 12px; }
  .ct-nivel { grid-template-columns: 1fr; }
  .ct-tres { grid-template-columns: 1fr; }
  .ct-tres__col, .ct-tres__col + .ct-tres__col { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--linea); }
  .ct-titulo .titular, .ct-titulo__texto { grid-column: 1 / -1; }
  .ct-dos { grid-template-columns: 1fr; }
  .ct-lateral { position: static; }
  .ct-matriz__fila { grid-template-columns: 1fr; }
  .ct-res { grid-template-columns: 64px minmax(0, 1fr); }
  .ct-res__acc { grid-column: 2; grid-auto-flow: column; justify-content: start; min-width: 0; }
}
@media (max-width: 640px) {
  .ct-heroe { min-height: 0; }
  .ct-heroe .heroe__contenido { padding-top: calc(var(--barra) + 24px); }
  .ct-comprobador, .ct-comprobador--prov { grid-template-columns: 1fr; padding: 18px; }
  .ct-pasos { grid-template-columns: 1fr; }
  .ct-pasos li, .ct-pasos li + li { padding: 24px 0 24px; border-right: 0; border-bottom: 1px solid var(--linea); }
  .ct-sectores { grid-template-columns: 1fr; }
  .ct-sectores a { min-height: 0; padding-bottom: 72px; }
  .ct-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-cifras__dato { padding: 18px 14px 16px; }
  .ct-cifras__dato:nth-child(odd) { padding-left: 0; }
  .ct-cifras__dato:nth-child(even) { border-right: 0; }
  .ct-cifras__dato { border-bottom: 1px solid var(--linea); }
  .ct-fila a { grid-template-columns: 1fr; grid-template-areas: "tit" "meta" "plazo"; }
  .ct-fila__plazo { justify-self: start; margin-top: 6px; }
  .ct-res { grid-template-columns: 1fr; gap: 16px; }
  .ct-res .cv-item__plazo { width: 88px; min-height: 64px; }
  .ct-res__acc { grid-column: 1; grid-auto-flow: row; }
  .ct-indice { columns: 1; }
  .ct-aviso { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-fila a, .ct-bloque__lista a, .ct-sectores a, .ct-sectores a::before { transition: none; }
}
