/* Ajustes de fidelidad visual frente al diseño de referencia. */

/* Encabezados visuales de las tarjetas de consulta/postulación.
 * Sustituyen el eyebrow por el bloque azul/verde del diseño aprobado. */
.action-card.primary,
.action-card.secondary {
  border-top: 0;
  padding: 0;
  gap: 0;
}

.action-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 16px 20px;
  color: #fff;
}

.action-card-top.board {
  background: #234b9f;
}

.action-card-top.auditor {
  background: #8caf31;
}

.action-card-top__icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  color: #fff;
}

.action-card-top__icon svg {
  width: 40px;
  height: 40px;
}

.action-card-top__title {
  color: #fff;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.2px;
}

.action-card > h2 {
  margin: 20px 20px 0;
}

.action-card > p {
  margin: 10px 20px 0;
}

.action-card > form {
  margin: 14px 20px 0;
}

.action-card > .term-preview {
  margin: 14px 20px 0;
}

.action-card > .card-bottom {
  margin: auto 20px 0;
  padding: 18px 0 20px;
}

/* Botón que abre el modal del censo: mismo lenguaje visual del diseño,
 * con inversión de colores al pasar el cursor o usar teclado. */
.action-card.primary .download-link {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 16px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.action-card.primary .download-link:hover,
.action-card.primary .download-link:focus-visible {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(51, 81, 149, .16);
}

.action-card.primary .download-link svg:last-child {
  margin-left: 4px;
}

/* En el modal, las descargas mantienen el mismo patrón de inversión. */
dialog .download-options .btn.outline {
  border-color: var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

dialog .download-options .btn.outline:hover,
dialog .download-options .btn.outline:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* La vista previa del período actúa como acceso directo a los documentos del Revisor Fiscal. */
.action-card.secondary .term-preview-link {
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.action-card.secondary .term-preview-link:hover,
.action-card.secondary .term-preview-link:focus-visible {
  border-color: var(--green);
  background: #f1f6e9;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(121, 179, 58, .12);
}

.action-card.secondary .card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action-card.secondary .revisor-action-btn {
  margin: 0;
  min-height: 42px;
  border-color: #b8c6dc;
  background: #fff;
  color: var(--blue);
}

.action-card.secondary .revisor-action-btn:hover,
.action-card.secondary .revisor-action-btn:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  text-decoration: none;
}

.revisor-doc-target {
  scroll-margin-top: 130px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.revisor-doc-target.is-targeted {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(121, 179, 58, .22), var(--shadow);
  transform: translateY(-1px);
}

@media (min-width: 641px) {
  /* Bloque introductorio inmediatamente debajo del hero. */
  .intro {
    text-align: center;
    max-width: 760px;
    margin: 30px auto 38px;
    font-size: 15px;
    line-height: 1.32;
    color: #263750;
    font-weight: 500;
  }

  /* Tarjetas de contexto: Junta Directiva / Revisor Fiscal. */
  .context-grid {
    gap: 16px;
  }

  .context-card {
    align-items: center;
    gap: 18px;
    min-height: 132px;
    padding: 18px 20px;
  }

  .context-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 700;
  }

  .context-card p {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.36;
    color: #2f3e57;
    font-weight: 500;
  }

  /* Iconografía más cercana al arte de referencia. */
  .context-card .icon-disc.solid {
    position: relative;
    width: 72px;
    height: 72px;
    min-width: 72px;
  }

  .context-card .icon-disc.solid svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.65;
  }

  /* El arte del Revisor Fiscal usa documento + lupa. */
  .context-card:nth-child(2) .icon-disc.solid::before {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 11px;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--blue);
  }

  .context-card:nth-child(2) .icon-disc.solid::after {
    content: '';
    position: absolute;
    right: 5px;
    bottom: 7px;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
  }

  /* Banda ¿Quiénes pueden votar? */
  .voter-band {
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    min-height: 112px;
    padding: 16px 22px;
  }

  .voter-band h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 700;
  }

  .voter-band p {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.36;
    color: #2f3e57;
    font-weight: 500;
  }

  .voter-band .icon-disc {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: var(--blue);
    color: #fff;
  }

  .voter-band .icon-disc svg {
    width: 39px;
    height: 39px;
    stroke-width: 1.65;
  }

  /* Tarjetas de acción, replicando el inicio visual del diseño suministrado. */
  .action-card-top {
    gap: 20px;
    min-height: 112px;
    padding: 18px 26px;
  }

  .action-card-top__icon {
    width: 74px;
    height: 74px;
    min-width: 74px;
  }

  .action-card-top__icon svg {
    width: 46px;
    height: 46px;
  }

  .action-card-top__title {
    font-size: 23px;
    line-height: 1.08;
  }

  .action-card > h2 {
    margin: 24px 26px 0;
    font-size: 23px;
    line-height: 1.08;
  }

  .action-card > p {
    margin: 12px 26px 0;
    font-size: 14px;
    line-height: 1.38;
  }

  .action-card > form {
    margin: 16px 26px 0;
  }

  .action-card > .term-preview {
    margin: 16px 26px 0;
  }

  .action-card > .card-bottom {
    margin: auto 26px 0;
    padding: 20px 0 24px;
  }
}
