/* Ayudas — convocatorias (formulario dinámico) */

.act-hero {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.act-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.act-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--page-accent);
}

.act-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111;
}

.act-lead {
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
}

.act-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.act-projects {
  padding: clamp(36px, 5vw, 56px) 0;
  background: linear-gradient(180deg, #fafbf8 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.act-projects__head--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.act-title--sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}

.act-slider {
  position: relative;
}

.act-slider__viewport {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 17, 19, 0.06);
}

.act-slider__track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.act-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  height: 280px;
  align-items: stretch;
}

.act-slide__media {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  background: var(--page-accent-soft, #eef5e6);
  overflow: hidden;
}

.act-slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.act-slide__media--empty .act-slide__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eef5e6, #f7faf4);
}

.act-slide__body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.act-slide__cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-accent);
}

.act-slide__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.act-slide__title a {
  color: #111;
  text-decoration: none;
}

.act-slide__title a:hover,
.act-slide__title a:focus-visible {
  color: var(--page-accent);
}

.act-slide__summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 48ch;
}

.act-slide__link {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  width: fit-content;
}

.act-slide__link:hover,
.act-slide__link:focus-visible {
  text-decoration: underline;
}

.act-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.act-slider__btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.act-slider__btn:hover,
.act-slider__btn:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.act-slider__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: min(100%, 420px);
}

.act-slider__dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd6c8;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.act-slider__dot.is-active {
  width: 22px;
  background: var(--green);
}

.act-projects__empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .act-slide {
    grid-template-columns: 1fr;
    height: auto;
  }

  .act-slide__media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .act-slide__media img,
  .act-slide__media--empty .act-slide__placeholder {
    position: absolute;
    inset: 0;
  }
}

.act-hero__art {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.act-hero__art img {
  width: min(420px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.95;
}

.act-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.act-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(15, 17, 19, 0.06);
  overflow: hidden;
}

.act-panel__head {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafbf8;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.act-switch-wrap {
  flex: 1 1 min(0, 100%);
  min-width: min(100%, 280px);
}

.act-switch__label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
}

.act-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.act-tab {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.act-tab:hover {
  border-color: rgba(118, 176, 65, 0.45);
  box-shadow: 0 2px 10px rgba(15, 17, 19, 0.06);
}

.act-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.act-tab[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.act-switch__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, #5a5f55);
  max-width: 52ch;
}

.act-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--page-accent-soft);
  color: var(--page-accent);
  font-weight: 800;
  font-size: 0.86rem;
}

.act-panel__body {
  padding: 22px 18px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.act-content h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
}

.act-content .act-sub {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.act-dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.act-dl__item {
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--page-border-subtle);
  background: #fff;
}

.act-dl__term {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--page-accent);
  font-size: 0.9rem;
}

.act-dl__desc {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.act-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 34px rgba(15, 17, 19, 0.06);
}

.act-form h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
}

.act-form p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.act-field {
  display: grid;
  gap: 6px;
}

.act-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #111;
}

.act-field input,
.act-field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  width: 100%;
}

.act-field textarea {
  min-height: 96px;
  resize: vertical;
}

.act-field--full {
  grid-column: 1 / -1;
}

.act-docs {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.act-docs__title {
  margin: 0 0 10px;
  font-weight: 800;
  color: #111;
  font-size: 0.95rem;
}

.act-docs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.act-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.act-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .act-panel__body {
    grid-template-columns: 1fr;
  }

  .act-select select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .act-hero__grid {
    grid-template-columns: 1fr;
  }

  .act-hero__art {
    justify-content: flex-start;
  }

  .act-grid {
    grid-template-columns: 1fr;
  }
}

