/*
 * Case pages and the /casos index (src/cases): the parts of their own, ca- classes. Linked after
 * article.css, whose g- parts (breadcrumbs, title, body, FAQ, sources) and CTA blocks they reuse, and
 * before site-chrome.css (always last). In the language of Jose's home design
 * (docs/design/package/inmercost-web-daci-2026-11-04): the soft #EEF6EA cards with 20 px corners of
 * «TU CASO», the green #4C9D33 check marks of «¿Cómo vendemos…?», the italic numbers of the cards.
 */

.ca-fecha {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--g-muted);
}

/* "¿Es tu caso?" */

.ca-reconoce {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--g-soft);
}

/* The label «Te suena si...»: set like a small heading, but not one (the page's H2s are questions). */
.ca-reconoce__titulo {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.ca-reconoce ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ca-reconoce li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}

.ca-reconoce li::before {
  content: '';
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4c9d33
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2L4 7.5L8.5 2.5' fill='none' stroke='%2310260C' stroke-width='1.8'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* "¿Cómo lo hacemos contigo, paso a paso?" */

.ca-pasos {
  margin: 40px 0 0;
}

.ca-pasos h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.ca-pasos > p {
  margin: 0 0 16px;
}

.ca-pasos__lista {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.ca-pasos__lista li {
  position: relative;
  padding: 18px 20px 18px 66px;
  border: 1px solid var(--g-line);
  border-radius: 20px;
  background: #fff;
  counter-increment: paso;
}

.ca-pasos__lista li::before {
  content: counter(paso);
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g-soft);
  color: var(--g-accent);
  font-weight: 700;
}

.ca-pasos__lista h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.ca-pasos__lista p {
  margin: 6px 0 0;
  color: var(--g-muted);
}

/* The closing line after the steps (CaseFile steps.outro). */
.ca-pasos > .ca-pasos__lista + p {
  margin: 16px 0 0;
}

/* The /casos index: one card per case, as in «TU CASO» of the home */

.ca-indice .g-header {
  max-width: 760px;
}

.ca-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ca-tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 20px;
  background: var(--g-soft);
}

.ca-tarjeta__numero {
  font-size: 20px;
  font-style: italic;
  color: var(--g-accent);
}

.ca-tarjeta__titulo {
  margin: 0;
  font-size: 1.4375rem;
  line-height: 1.2;
}

.g-main .ca-tarjeta__titulo a {
  color: var(--g-text);
  text-decoration: none;
}

/* The whole card opens the case; the title is the only link */
.ca-tarjeta__titulo a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.g-main .ca-tarjeta__titulo a:focus-visible {
  outline: none;
}

.ca-tarjeta:focus-within {
  outline: 3px solid #4c9d33;
  outline-offset: 2px;
}

.ca-tarjeta__texto {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--g-muted);
}

.ca-tarjeta__mas {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--g-accent);
}

.ca-tarjeta:hover .ca-tarjeta__mas {
  text-decoration: underline;
}
