/**
 * Encuentra tu ayuda — 6 oct 2026.
 * Tema claro propio. No toca tokens.css ni hub.css.
 * Medidas del boceto scripts/input/diseno/encuentra-tu-ayuda-boceto-2026-10-06.html
 */

[hidden] {
  display: none !important;
}

body[data-page="ayudas"] {
  --ayu-f: #efeee9;
  --ayu-b: #faf9f6;
  --ayu-t: #1d1d1b;
  --ayu-s: #7d7d78;
  --ayu-v: #2f7d55;
  --ayu-vd: #1f5a3a;
  --ayu-l: #e6e5df;
  --ayu-sello-f: #eaf1ea;
  --ayu-sello-t: #1f5a3a;
  background: var(--ayu-f);
  color: var(--ayu-t);
}

body[data-page="ayudas"] .app-shell {
  max-width: 480px;
  margin: 0 auto;
}

body[data-page="ayudas"] .topbar {
  background: var(--ayu-f);
  color: var(--ayu-t);
}

body[data-page="ayudas"] .topbar .icon-btn {
  color: var(--ayu-t);
  border-color: var(--ayu-l);
}

body[data-page="ayudas"] .topbar .icon-btn svg {
  stroke: var(--ayu-t);
}

body[data-page="ayudas"] .subpage-brand__wordmark {
  color: var(--ayu-t);
  text-transform: none;
  letter-spacing: -0.01em;
}

body[data-page="ayudas"] .reloj-cuba {
  color: var(--ayu-s);
}

body[data-page="ayudas"] main {
  padding: 14px 12px 28px;
}

.ayu-card {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  background: var(--ayu-b);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding-bottom: 18px;
}

.ayu-pad {
  padding: 0 22px;
}

/* —— Entrada —— */

.ayu-ent {
  position: relative;
  height: 210px;
  margin-bottom: 6px;
}

.ayu-ent__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}

.ayu-ent::after {
  /* 7 oct · Fidel: «no se aprecia bien ENCUENTRA TU AYUDA, se pierde con el
     fondo». Velo claro detrás del texto, que se apaga hacia la foto. */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 249, 246, 0.92) 0%, rgba(250, 249, 246, 0.72) 42%, rgba(250, 249, 246, 0) 72%);
}

.ayu-ent__t {
  z-index: 1;
  position: absolute;
  left: 22px;
  top: 18px;
  right: 22px;
}

.ayu-et {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #555;
  text-transform: uppercase;
}

.ayu-ent__t h1 {
  /* 7 oct · Fidel: «demasiado finas las letras». Negrita, verde oscuro. */
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 32;
  margin: 16px 0 6px;
  color: var(--ayu-vd);
}

.ayu-ent__t p {
  font-size: 13.5px;
  font-weight: 500;
  color: #2c2c29;
  margin: 0;
  max-width: 220px;
}

.ayu-bus {
  margin: 10px 0 16px;
  border-bottom: 1px solid var(--ayu-t);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ayu-bus input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--ayu-t);
  outline: none;
}

.ayu-bus input::placeholder {
  color: var(--ayu-s);
}

.ayu-bus__flecha {
  color: var(--ayu-v);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
}

.ayu-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ayu-s);
  margin: 14px 0 8px;
  text-transform: uppercase;
}

.ayu-sel {
  display: flex;
  align-items: center;
  border: 1px solid var(--ayu-l);
  background: #fff;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 14px;
  gap: 8px;
  cursor: pointer;
}

.ayu-sel__pin {
  color: var(--ayu-v);
  flex-shrink: 0;
}

.ayu-sel select {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ayu-t);
  flex: 1;
  min-width: 0;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.ayu-sel__flecha {
  color: var(--ayu-s);
  flex-shrink: 0;
}

.ayu-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ayu-chips--filtro {
  margin: 14px 0 4px;
}

.ayu-chip {
  border: 1px solid var(--ayu-l);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  background: #fff;
  color: var(--ayu-t);
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.ayu-chip--on {
  background: var(--ayu-vd);
  color: #fff;
  border-color: var(--ayu-vd);
}

.ayu-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--ayu-t);
}

.ayu-g a {
  color: inherit;
  text-decoration: none;
}

.ayu-g img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 5px;
}

.ayu-g__n {
  color: var(--ayu-s);
  font-size: 10.5px;
}

.ayu-pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ayu-s);
  padding: 16px 22px 0;
}

/* —— Lista: cabecera con foto —— */

.ayu-cab {
  position: relative;
  height: 150px;
}

.ayu-cab--ficha {
  height: 170px;
}

.ayu-cab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.ayu-cab__tt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 22px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
}

.ayu-cab .ayu-cab__ico {
  /* 7 oct · opción B: encima del título, del alto de su letra.
     Con «.ayu-cab» delante para ganar a «.ayu-cab img» (la foto, 100 %). */
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
  display: block;
  margin-bottom: 6px;
}

.ayu-cab__tt b {
  font-size: 22px;
  font-weight: 400;
  display: block;
}

.ayu-cab__tt span {
  font-size: 12.5px;
  opacity: 0.9;
}

/* Filas sin foto */

.ayu-it {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ayu-l);
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}

.ayu-it__c {
  flex: 1;
  min-width: 0;
}

.ayu-it h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ayu-vd);
  font-weight: 650;
}

.ayu-it__o {
  font-size: 13px;
  color: #33332f;
  margin-bottom: 6px;
}

.ayu-it__r {
  font-size: 13px;
  color: #33332f;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
}

.ayu-it__r i {
  font-style: normal;
  width: 16px;
  text-align: center;
  color: var(--ayu-v);
  flex-shrink: 0;
}

.ayu-it__ch {
  color: var(--ayu-v);
  font-size: 18px;
  flex-shrink: 0;
}

.ayu-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 6px;
}

.ayu-tag--h {
  background: #eaf1ea;
  color: var(--ayu-vd);
}

.ayu-tag--b {
  background: #efeee9;
  color: #66665f;
}

.ayu-mas {
  display: block;
  width: 100%;
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid var(--ayu-l);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ayu-vd);
  cursor: pointer;
  box-sizing: border-box;
}

.ayu-vacio {
  margin: 16px 0;
  font-size: 13px;
  color: var(--ayu-s);
}

/* —— Ficha —— */

.ayu-panel {
  background: var(--ayu-b);
  margin-top: -20px;
  position: relative;
  border-radius: 22px 22px 0 0;
  padding: 18px 22px 0;
}

.ayu-ficha h2 {
  font-weight: 500;
  font-size: 19px;
  margin: 10px 0 4px;
  line-height: 1.25;
  color: var(--ayu-t);
}

.ayu-org {
  font-size: 13px;
  color: #4a4a46;
  margin: 0 0 4px;
}

.ayu-big {
  font-size: 46px;
  font-weight: 300;
  margin: 6px 0 10px;
  line-height: 1.1;
  color: var(--ayu-t);
}

.ayu-big small {
  font-size: 15px;
  color: var(--ayu-s);
  margin-left: 8px;
  font-weight: 400;
}

.ayu-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ayu-l);
  padding: 10px 0;
  font-size: 13px;
  color: var(--ayu-t);
}

.ayu-row span:first-child {
  color: var(--ayu-s);
  flex-shrink: 0;
}

.ayu-row span:last-child {
  text-align: right;
}

.ayu-da {
  background: var(--ayu-sello-f);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ayu-t);
}

.ayu-da img {
  height: 22px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.ayu-da img[src*="comunidad-madrid"] {
  width: 22px;
  object-fit: cover;
  object-position: left center;
  border-radius: 3px;
}

.ayu-da b {
  color: var(--ayu-sello-t);
}

.ayu-btn {
  display: block;
  background: #111;
  color: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 14px;
  margin-top: 12px;
  font-size: 14.5px;
  text-decoration: none;
  font-weight: 500;
}

.ayu-sec {
  display: block;
  border: 1px solid var(--ayu-l);
  border-radius: 14px;
  text-align: center;
  padding: 11px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ayu-t);
  text-decoration: none;
  background: transparent;
}

.ayu-fu {
  font-size: 11px;
  color: var(--ayu-s);
  margin-top: 10px;
  line-height: 1.4;
}

.ayu-como {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ayu-s);
}

.ayu-ayuda {
  background: #f1f0eb;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--ayu-t);
  text-decoration: none;
}

.ayu-ayuda small {
  display: block;
  color: var(--ayu-s);
  margin-top: 2px;
}

.ayu-ayuda__fl {
  color: var(--ayu-s);
  flex-shrink: 0;
}

button.ayu-ayuda {
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

@media (min-width: 480px) {
  body[data-page="ayudas"] main {
    padding: 0 20px 40px;
  }
}

/* —— Sello del módulo —— */
.ayu-sello {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.ayu-sello img {
  display: block;
}
.ayu-sello--grande img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.ayu-sello--medio img {
  width: 30px;
  height: 30px;
}
.ayu-sello__eti {
  margin-top: 4px;
  font-size: 10px;
  color: #4a4a46;
  white-space: nowrap;
}
.ayu-ent__marca {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ayu-ent__marca .ayu-et {
  margin-top: -14px;
}
.ayu-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ayu-s);
  text-decoration: none;
}
.ayu-volver img {
  width: 22px;
  height: 22px;
}

/* 6 oct · «Autónomos y empresas» no cabe con los otros dos a 390 px: dos filas (Fidel: «A»). */
#ayu-dest-chips { flex-wrap: wrap; gap: 6px; }
#ayu-dest-chips .ayu-chip { flex: 0 0 auto; padding: 7px 10px; font-size: 12.5px; text-align: center; white-space: nowrap; }
#ayu-filtros { flex-wrap: nowrap; gap: 6px; }
#ayu-filtros .ayu-chip { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }

/* —— Contador (7 oct · 0196) —— */

.ayu-cnt {
  margin: 16px 0 6px;
}

.ayu-cnt__n {
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: var(--ayu-v);
}

.ayu-cnt__t {
  font-size: 13px;
  color: var(--ayu-s);
  margin-top: 4px;
}

.ayu-cnt__lista > summary {
  list-style: none;
  cursor: pointer;
  color: var(--ayu-v);
  font-size: 13px;
  margin-top: 8px;
}

.ayu-cnt__lista > summary::-webkit-details-marker,
.ayu-cnt__com > summary::-webkit-details-marker {
  display: none;
}

.ayu-cnt__lista > summary::after {
  content: " ▾";
}

.ayu-cnt__lista[open] > summary::after {
  content: " ▴";
}

.ayu-cnt__lista[open] {
  padding-bottom: 6px;
}

.ayu-cnt__fila {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ayu-l);
  font-size: 14px;
  list-style: none;
}

.ayu-cnt__com > summary {
  cursor: pointer;
}

.ayu-cnt__fila b {
  font-weight: 600;
}

.ayu-cnt__prov {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0 7px 14px;
  border-bottom: 1px solid var(--ayu-l);
  font-size: 13px;
  color: var(--ayu-s);
}

.ayu-cnt__nota {
  font-size: 11.5px;
  color: var(--ayu-s);
  margin-top: 8px;
}
