/* ============================================================
   CONCURSA · pages.css
   Estilos específicos de: landing, bases, 404
   Extiende granadilla.css — no lo sustituye.
   ============================================================ */

/* ---------- Bloques genéricos de sección pública ---------- */
.section { padding-block: var(--sp-7); }
.section--soft { background: var(--g-bg-soft); }
.section__head { max-width: 720px; margin-bottom: var(--sp-6); }
.section__head p { color: var(--g-text-muted); margin-top: var(--sp-3); }

/* ---------- Landing · pasos "Cómo funciona" ---------- */
.steps { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 1px solid var(--g-border); border-radius: var(--r-lg); padding: var(--sp-5); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--g-primary); color: #fff;
  font-weight: 800; font-size: 0.95rem; margin-bottom: var(--sp-3);
}
/* Aviso de que se esta en modo demostracion, en las pantallas publicas reales
   (inscripcion, votacion). Vive aqui porque pages.css si se carga siempre. */
.demo-banda {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 0 0 1.2rem; padding: .85rem 1rem;
  background: #f4f0fb; border: 1px solid #d9c9f0; border-left: 4px solid #7c4dbe;
  border-radius: 10px; font-size: .88rem; line-height: 1.55; color: #3d3357;
}
.demo-banda i { color: #7c4dbe; margin-top: .15rem; }

.step__icon { color: var(--g-accent); margin-bottom: var(--sp-3); }
.step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--sp-2); }
.step__desc { color: var(--g-text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Landing · premios ---------- */
.prizes { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .prizes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prizes { grid-template-columns: repeat(4, 1fr); } }
.prize {
  background: #fff; border: 2px solid var(--g-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  position: relative; overflow: hidden;
}
.prize--featured { border-color: var(--g-accent); }
.prize--public   { border-color: var(--g-secondary); background: #f0fdf9; }
.prize__medal {
  font-size: 0.75rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--g-text-muted);
}
.prize__amount { font-size: 1.9rem; font-weight: 800; color: var(--g-primary); line-height: 1; }
.prize--public .prize__amount { color: var(--g-secondary); }
.prize__desc { font-size: 0.88rem; color: var(--g-text-muted); margin: 0; }
.prize__badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--g-accent); color: var(--g-accent-text, #fff);
  font-size: 0.68rem; font-weight: 800;
  padding: 3px 8px; border-radius: var(--r-full);
}
.prize--public .prize__badge { background: var(--g-secondary); }

/* ---------- Landing · grid participantes ---------- */
.participants-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .participants-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .participants-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-card {
  background: #fff; border: 1px solid var(--g-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.shop-card__photo {
  aspect-ratio: 4 / 3; background: var(--g-bg-soft);
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: rgba(0,0,0,.15);
  /* La foto va como background-image, asi que HACE FALTA decirle como escalarla.
     Sin estas dos lineas se pinta a tamano natural (1200x900) dentro de una caja
     de 4:3 y solo se ve la esquina superior izquierda: en las ilustraciones de
     los escaparates, que son cielo arriba y escaparate abajo, se veia solo el
     cielo. */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.shop-card__body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; gap: var(--sp-1); }
.shop-card__name { font-weight: 700; font-size: 1rem; }
.shop-card__addr { font-size: 0.85rem; color: var(--g-text-muted); }
.shop-card__cat  {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  color: var(--g-primary); letter-spacing: .05em;
  margin-top: auto; padding-top: var(--sp-2);
}

/* ---------- Landing · FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq details {
  background: #fff; border: 1px solid var(--g-border);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400;
  color: var(--g-primary); transition: transform var(--t-base);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: var(--sp-3) 0 0; color: var(--g-text-muted); }

/* ---------- Bases ---------- */
.legal-layout { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 240px 1fr; align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--sp-6) + 60px); }
}
.legal-toc {
  background: var(--g-bg-soft); border: 1px solid var(--g-border);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.legal-toc h3 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--g-text-muted); margin-bottom: var(--sp-3);
}
.legal-toc ol { padding-left: 0; }
.legal-toc li { margin-bottom: var(--sp-1); }
.legal-toc a {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: 0.88rem; color: var(--g-text); line-height: 1.3;
}
.legal-toc a:hover { background: #fff; color: var(--g-primary); }

.legal-body { max-width: 720px; }
.legal-body h2 {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--g-border); scroll-margin-top: 80px;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 { margin-top: var(--sp-5); font-size: 1.05rem; }
.legal-body p, .legal-body li { color: var(--g-text); line-height: 1.7; }
.legal-body ul, .legal-body ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.legal-body ul li { list-style: disc; margin-bottom: var(--sp-2); }
.legal-body ol li { list-style: decimal; margin-bottom: var(--sp-2); }
.legal-body .note {
  background: var(--g-primary-light);
  border-left: 4px solid var(--g-primary);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--g-primary-dark);
  margin-bottom: var(--sp-4);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh; display: grid; place-items: center;
  text-align: center; padding: var(--sp-8) var(--sp-4);
}
.error-page__code {
  font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; line-height: 1;
  color: var(--g-primary); opacity: .12; margin-bottom: var(--sp-3);
}
.error-page h1 { margin-bottom: var(--sp-3); }
.error-page p  { color: var(--g-text-muted); max-width: 480px; margin-inline: auto; }


/* ==========================================================================
   PARTICIPA
   --------------------------------------------------------------------------
   Pagina que explica el PROCEDIMIENTO (inscribirse / votar). La portada
   explica el concurso; esto es otra cosa y por eso vive aparte.
   ========================================================================== */

.participa-hero__eyebrow {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700;
  color: var(--g-accent); margin-bottom: var(--sp-2);
}

/* ---------- Los dos caminos ---------- */
.audience-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-5); margin-top: var(--sp-6);
}
@media (max-width: 820px) { .audience-grid { grid-template-columns: 1fr; } }

.audience {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6); border: 1px solid var(--g-border);
  border-radius: var(--r-lg); background: var(--g-bg);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.audience:hover {
  border-color: var(--g-primary); box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.audience__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-primary-light); color: var(--g-primary);
}
.audience__tag {
  text-transform: uppercase; letter-spacing: .06em;
  font-size: .74rem; font-weight: 700; color: var(--g-text-muted);
}
.audience__title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.audience__desc  { color: var(--g-text-muted); font-size: .94rem; line-height: 1.6; }
.audience__cta   { margin-top: auto; font-weight: 700; color: var(--g-primary); }

/* ---------- Fases de la inscripcion ---------- */
.phases { list-style: none; padding: 0; margin: var(--sp-6) 0 0; display: grid; gap: var(--sp-3); }

.phase {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-5); border: 1px solid var(--g-border);
  border-radius: var(--r-lg); background: var(--g-bg);
}
.phase--hecha     { border-color: #86efac; background: #f0fdf4; }
.phase--siguiente { border-color: var(--g-primary); box-shadow: var(--sh-1); }
.phase--pendiente { opacity: .72; }

.phase__num {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--g-primary-light); color: var(--g-primary);
}
.phase--hecha .phase__num     { background: #16a34a; color: #fff; }
.phase--siguiente .phase__num { background: var(--g-primary); color: #fff; }

.phase__body  { flex: 1; min-width: 0; }
.phase__title { font-size: 1.05rem; margin: 0 0 var(--sp-2); display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.phase__desc  { margin: 0 0 var(--sp-2); font-size: .93rem; }
.phase__ask   { margin: 0; font-size: .88rem; color: var(--g-text-muted); }

.phase__badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--g-primary); color: #fff;
}
.phase__badge--ok { background: #16a34a; }

.phase__action { flex-shrink: 0; align-self: center; }
@media (max-width: 700px) {
  .phase { flex-wrap: wrap; }
  .phase__action { width: 100%; }
  .phase__action .btn { width: 100%; }
}

/* ---------- Llamada a la accion ---------- */
.participa-cta {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-6); text-align: center;
}

/* ---------- Bloques de requisitos ---------- */
.requisitos {
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid var(--g-border);
}
.requisitos > h2 { font-size: 1.15rem; margin-bottom: var(--sp-4); }
.requisitos > h2:not(:first-child) { margin-top: var(--sp-6); }
.requisitos > p  { color: var(--g-text-muted); margin-bottom: var(--sp-4); max-width: 68ch; }

.proof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.proof-list li {
  position: relative; padding-left: var(--sp-6);
  font-size: .94rem; line-height: 1.6; max-width: 74ch;
}
.proof-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--g-accent);
}

/* ---------- Recompensas ---------- */
.rewards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .rewards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

.reward {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-5); border: 1px solid var(--g-border);
  border-radius: var(--r-lg); background: var(--g-bg);
}
.reward__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-primary-light); color: var(--g-accent);
}
.reward__title { font-size: .98rem; margin: 0 0 var(--sp-2); }
.reward__desc  { margin: 0; font-size: .88rem; color: var(--g-text-muted); line-height: 1.55; }

/* ---------- Avisos ---------- */
.notice {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  font-size: .92rem; line-height: 1.6; margin-bottom: var(--sp-5);
}
.notice--info { background: var(--g-primary-light); color: var(--g-primary-dark); }
.notice--warn { background: #fef3c7; color: #78350f; }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }

.participa-volver { margin-top: var(--sp-8); text-align: center; }
.participa-volver a { color: var(--g-primary); font-weight: 600; }


/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: var(--sp-2); }

.faq__item {
  border: 1px solid var(--g-border); border-radius: var(--r-md);
  background: var(--g-bg); overflow: hidden;
}
.faq__item[open] { border-color: var(--g-primary); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); cursor: pointer;
  font-weight: 600; font-size: .96rem; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex-shrink: 0;
  width: 9px; height: 9px; margin-left: var(--sp-2);
  border-right: 2px solid var(--g-text-muted);
  border-bottom: 2px solid var(--g-text-muted);
  transform: rotate(45deg); transition: transform var(--t-base);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__q:focus-visible { outline: 2px solid var(--g-primary); outline-offset: -2px; }

.faq__cat {
  flex-shrink: 0; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--g-text-muted); font-weight: 600;
}

.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: .93rem; line-height: 1.65; color: var(--g-text-muted);
  max-width: 78ch;
}


/* ---------- Resumen en lenguaje llano de las bases ---------- */
.resumen-llano {
  max-width: 760px; margin-bottom: var(--sp-8);
  padding: var(--sp-6); border-radius: var(--r-lg);
  background: var(--g-primary-light); color: var(--g-primary-dark);
}
.resumen-llano h2 { font-size: 1.1rem; margin-bottom: var(--sp-4); }
.resumen-llano p  { font-size: .96rem; line-height: 1.7; margin-bottom: var(--sp-3); }
.resumen-llano p:last-of-type { margin-bottom: 0; }
.resumen-llano .field-hint { color: inherit; opacity: .8; font-size: .85rem; }

/* ---------- FICHA PUBLICA DEL ESCAPARATE (mobile first) -------------------- */
/* La ficha es la pagina que mas se comparte (cada comercio manda su enlace), asi
   que tiene que verse bien en el movil y no comerse la pantalla en el portatil.
   La portada va ACOTADA en alto: antes era 16/10 a todo el ancho y en un monitor
   grande ocupaba 900 px de alto; no se veia nada mas. */
.ficha { padding-bottom: var(--sp-8); }
.ficha__volver { margin: var(--sp-4) 0; font-size: .9rem; }

/* Envoltura: portada + ficha del negocio (dos columnas en escritorio) */
.ficha__hero { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-5); }

.ficha__portada {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--g-primary-light); min-width: 0;
}
.ficha__portada img {
  width: 100%; display: block;
  height: clamp(210px, 30vw, 380px);      /* el limite que faltaba */
  object-fit: cover; object-position: center;
}
.ficha__portada--vacia {
  height: clamp(210px, 30vw, 380px); display: grid; place-items: center;
  font-size: 2.6rem; color: var(--g-primary); opacity: .5;
}

/* La ficha del negocio va en tarjeta: categoria, nombre, direccion, nota y boton */
.ficha__cabecera {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: #fff; border: 1px solid var(--g-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  min-width: 0;
}
.ficha__cat {
  text-transform: uppercase; letter-spacing: .1em; font-size: .74rem;
  font-weight: 800; color: var(--g-accent); margin: 0 0 .3rem;
}
.ficha__cabecera h1 { margin: 0; font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.15; }
.ficha__lema { color: var(--g-text-muted); font-style: italic; margin: var(--sp-2) 0 0; }
.ficha__dir { margin: var(--sp-2) 0 0; color: var(--g-text-muted); font-size: .92rem; }

.ficha__acciones {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; margin-top: auto; padding-top: var(--sp-3);
  border-top: 1px solid var(--g-border);
}
.ficha__acciones .btn { width: 100%; min-height: 46px; }
.ficha__media { margin: 0; font-size: .9rem; color: var(--g-text-muted); }
.ficha__media strong { font-size: 1.3rem; color: var(--g-primary); }

.ficha__cuerpo { display: grid; gap: var(--sp-4); }
.ficha__bloque {
  background: #fff; border: 1px solid var(--g-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  min-width: 0;
}
.ficha__bloque h2 { margin: 0 0 var(--sp-3); font-size: 1.05rem; }
.ficha__bloque p { line-height: 1.65; }
.ficha__vacio { color: var(--g-text-muted); font-size: .9rem; }
.ficha__chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.ficha__chips li {
  font-size: .8rem; padding: .25rem .6rem; border-radius: var(--r-full);
  background: var(--g-primary-light); color: var(--g-primary-dark);
}
.ficha__datos { margin: 0; display: grid; gap: var(--sp-2); }
.ficha__datos div { display: grid; grid-template-columns: 92px 1fr; gap: var(--sp-2); font-size: .92rem; }
.ficha__datos dt { color: var(--g-text-muted); font-weight: 600; }
.ficha__datos dd { margin: 0; }
.ficha__datos a { color: var(--g-primary); }
.ficha__mapa {
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: var(--g-bg-soft); border-radius: var(--r-md);
}
.ficha__mapa p { margin: 0 0 var(--sp-2); }
.ficha__mapa-acciones { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ficha__mapa-acciones .btn { flex: 1 1 auto; }
.ficha__galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.ficha__galeria figure { margin: 0; }
.ficha__galeria img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); display: block;
}
.ficha__compartir {
  padding: var(--sp-4) var(--sp-5);
  background: var(--g-primary-light); border-radius: var(--r-lg);
}
.ficha__compartir h2 { margin: 0 0 .2rem; font-size: 1rem; }
.ficha__compartir p { margin: 0 0 var(--sp-3); font-size: .9rem; color: var(--g-text-muted); }

@media (min-width: 760px) {
  .ficha__acciones .btn { width: auto; }
  .ficha__cuerpo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .ficha__bloque--ancho { grid-column: 1 / -1; }
  .ficha__galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* En escritorio, la portada y la ficha del negocio, una al lado de la otra */
@media (min-width: 900px) {
  .ficha__hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
  }
  /* La portada se queda en un alto comodo: sin esto crecia con la tarjeta. */
  .ficha__portada img, .ficha__portada--vacia { height: clamp(300px, 26vw, 420px); }
}

/* Nada de la ficha puede provocar scroll horizontal: las descripciones que
   vienen del directorio traen direcciones y URLs largas sin espacios. */
.ficha, .ficha * { min-width: 0; }
.ficha__bloque p, .ficha__datos dd, .ficha__galeria, .ficha__chips {
  overflow-wrap: anywhere; word-break: break-word;
}
.ficha img, .ficha figure, .ficha iframe { max-width: 100%; }
.ficha__galeria { overflow: hidden; }
.mi-insc {
  margin-top: var(--sp-5); padding: var(--sp-5);
  border-radius: var(--r-lg); border: 1px solid var(--g-border);
  background: #fff; border-left: 5px solid var(--g-primary);
}
.mi-insc h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.mi-insc p { margin: 0 0 .6rem; line-height: 1.6; }
.mi-insc--ok    { border-left-color: #15803d; }
.mi-insc--espera { border-left-color: #b45309; }
.mi-insc--mal   { border-left-color: #b91c1c; }
.mi-insc__comercio { font-size: .92rem; color: var(--g-text-muted); }
.mi-insc__motivo {
  background: #fef2f2; border-radius: var(--r-md);
  padding: var(--sp-3); font-size: .92rem;
}

/* ---------- SESION DEL VOTANTE EN LA CABECERA ------------------------------ */
.votante-chip {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap; font-size: .86rem;
  background: var(--g-primary-light); border-radius: var(--r-full);
  padding: .35rem .8rem;
}
.votante-chip__hola { display: inline-flex; align-items: center; gap: .35rem; }
.votante-chip a {
  color: var(--g-primary); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.votante-chip a:hover { text-decoration: underline; }
@media (max-width: 559px) {
  .votante-chip { font-size: .78rem; padding: .3rem .6rem; }
  .votante-chip__hola strong { display: inline; }
}

/* ---------- PAGINAS DE MARCA DEL AYUNTAMIENTO (concursos, como funciona) ---- */
.cf-lista { display: grid; gap: var(--sp-3); }
.cf-tarjeta {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--g-border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
}
.cf-tarjeta__texto { min-width: 0; flex: 1 1 320px; }
.cf-tarjeta h2 { margin: .2rem 0 .35rem; font-size: 1.15rem; }
.cf-tarjeta__estado {
  display: inline-block; margin: 0; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--r-full);
  background: var(--g-primary-light); color: var(--g-primary-dark);
}
.cf-tarjeta__estado--ok { background: #dcfce7; color: #166534; }
.cf-tarjeta__estado--warn { background: #fef3c7; color: #92400e; }
.cf-tarjeta__sub { margin: 0 0 .3rem; color: var(--g-text-muted); font-size: .92rem; }
.cf-tarjeta__meta { margin: 0; color: var(--g-text-muted); font-size: .84rem; }
.cf-tarjeta__acciones { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 520px) {
  .cf-tarjeta__acciones { width: 100%; }
  .cf-tarjeta__acciones .btn { flex: 1 1 auto; }
}

