/* ====== Variables (usa las tuyas) ====== */
:root{
  --bg: #ffffff;        /* fondo página */
  --text: #000000;      /* texto principal */
  --muted: #9aa4a9;     /* texto secundario */
  --tile-bg: #f4f8ff;   /* fondo tarjeta */
  --tile-hover: #ffffff;/* hover tarjeta */
  --accent: #e37bf5;    /* acento */
  --grad-a: #93278f;
  --grad-b: #9a529a;
  --grad-c: #00a1de;

  /* Derivados */
  --line: color-mix(in srgb, var(--text) 12%, #fff 88%);
  --line-strong: color-mix(in srgb, var(--text) 20%, #fff 80%);
  --shadow: 0 0 0 0 rgba(0,0,0,0);
}

/* ====== Sección ====== */
.decpat-section {
  color: var(--text);
  background: var(--bg);
  max-width: 1024px;
  margin: 0 auto;
  padding: 28px 16px;
  line-height: 1.5;
}

/* Título con subrayado en gradiente (sutil) */
.decpat-header h1 {
  font-size: 1.85rem;
  margin: 0 0 10px;
  font-weight: 800;
  /* línea inferior en gradiente institucional */
  border-image: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c)) 1;
  border-width: 0 0 3px 0;
  border-style: solid;
}

.decpat-intro {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

/* Grupo */
.decpat-group { margin-top: 20px; }
.decpat-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 16px 0 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}

/* Grid de tarjetas */
.decpat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .decpat-list { grid-template-columns: 1fr 1fr; }
}

/* Tarjeta / link */
.decpat-item { margin: 0; }

.decpat-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: var(--tile-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

/* Stripe lateral de acento (ultra sutil) */
.decpat-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b), var(--grad-c));
  opacity: .45;
}

/* Hover/Focus */
.decpat-link:hover,
.decpat-link:focus-visible {
  background: var(--tile-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  outline: none;
  box-shadow: var(--shadow);
}

/* Título y sub */
.decpat-title {
  font-weight: 650;
  font-size: .99rem;
}
.decpat-sub {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .92rem;
}

/* “PDF” pill con acento */
.decpat-tag {
  justify-self: end;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #fff 45%);
  background: color-mix(in srgb, var(--accent) 14%, #fff 86%);
  color: color-mix(in srgb, var(--accent) 70%, #000 30%);
}

/* Flecha */
.decpat-open {
  font-size: 1rem;
  opacity: .7;
}

/* Nota */
.decpat-note {
  margin-top: 22px;
  font-size: .93rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* Accesibilidad y motion */
@media (prefers-reduced-motion: reduce) {
  .decpat-link { transition: none; }
  .decpat-link:hover,
  .decpat-link:focus-visible { transform: none; }
}

/* ====== (Opcional) Tema oscuro rápido ======
   Si un día activas “dark mode”, basta con envolver con .theme-dark */
.theme-dark .decpat-section {
  --bg: #0f1012;
  --text: #f2f4f5;
  --muted: #a5b0b6;
  --tile-bg: #17191c;
  --tile-hover: #1b1e22;
  --line: color-mix(in srgb, var(--text) 12%, #000 88%);
  --line-strong: color-mix(in srgb, var(--text) 22%, #000 78%);
}
