/* PÁGINA DE CONVOCATORIAS */
.calls-page {
  background:
    radial-gradient(circle at top, rgba(221, 151, 26, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f8f5 0%, #eef2ec 100%);
  padding-bottom: 90px;
}

/* HERO */
.calls-hero {
  position: relative;
  background:
    linear-gradient(rgba(8, 18, 35, 0.52), rgba(8, 18, 35, 0.58)),
    url("../assets/img/banner-conv.png") center/cover no-repeat;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 0 44px;
  overflow: hidden;
}

.calls-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 151, 26, 0.28) 0%, rgba(221, 151, 26, 0) 72%);
  pointer-events: none;
}

.calls-hero__content {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.calls-hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.calls-hero__title::after {
  content: "";
  display: block;
  width: 110px;
  height: 5px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98917 0%, #dd971a 50%, #f0b847 100%);
}

.calls-hero__subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.calls-breadcrumb {
  position: absolute;
  left: 40px;
  bottom: 28px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #6b7280;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.calls-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.calls-breadcrumb strong {
  color: #2f6f44;
}

/* TITULOS */
.calls-section-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 800;
  color: #111a2f;
  letter-spacing: -0.02em;
}

.calls-section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98917 0%, #dd971a 50%, #f0b847 100%);
}

.calls-section-title--small {
  font-size: 1.5rem;
}

/* BLOQUES */
.calls-intro,
.calls-filters,
.calls-layout {
  width: min(1320px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.calls-intro {
  margin-top: 44px;
  margin-bottom: 24px;
}

.calls-intro__card,
.calls-filters__card,
.calls-list-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(17, 26, 47, 0.08);
}

.calls-intro__card {
  padding: 30px 34px;
}

.calls-intro__card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #344054;
}

/* FILTROS */
.calls-filters {
  margin-bottom: 30px;
}

.calls-filters__card {
  padding: 28px 30px;
  box-sizing: border-box;
}

.calls-filters__top {
  margin-bottom: 10px;
}

.calls-filters__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) repeat(2, minmax(180px, 0.8fr)) auto;
  gap: 16px;
  align-items: end;
}

.calls-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.calls-filter label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #344054;
}

.calls-filter__input,
.calls-filter__select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(17, 26, 47, 0.10);
  padding: 0 16px;
  font-size: 0.96rem;
  color: #1f2937;
  background: #f8faf8;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.calls-filter__input:focus,
.calls-filter__select:focus {
  border-color: rgba(47, 111, 68, 0.35);
  box-shadow: 0 0 0 4px rgba(47, 111, 68, 0.08);
  background: #fff;
  transform: translateY(-1px);
}

.calls-filter__reset {
  height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf3ed 0%, #e4ece4 100%);
  color: #2f6f44;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.calls-filter__reset:hover {
  background: linear-gradient(135deg, #e5ede5 0%, #dce6dc 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 111, 68, 0.08);
}

@media (max-width: 768px) {
  .calls-filters__card {
    padding: 24px 20px;
  }

  .calls-filters__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .calls-filter {
    width: 100%;
    min-width: 0;
  }

  .calls-filter__input,
  .calls-filter__select,
  .calls-filter__reset {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* LAYOUT */
.calls-layout {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.calls-layout__grid {
  width: 100%;
}

.calls-list-panel {
  width: 100%;
  max-width: 100%;
  padding: 30px;
}

.calls-list {
  width: 100%;
  display: grid;
  gap: 32px;
}
.calls-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
  background: #ffffff;
  border-radius: 32px;
  padding: 34px;
  border: 1px solid rgba(0, 114, 63, 0.10);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.calls-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #00723F, #DD971A);
}

.calls-item__image {
  width: 100%;
  min-width: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.calls-item__image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
  transform: none;
}

.calls-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .calls-item {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .calls-item__image {
    padding: 12px;
  }

  .calls-item__image img {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .calls-item {
    padding: 20px;
    border-radius: 24px;
    gap: 20px;
  }

  .calls-item__image {
    padding: 10px;
    border-radius: 20px;
  }

  .calls-item__image img {
    height: 280px;
    border-radius: 14px;
  }
}

.calls-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.calls-item__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calls-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.calls-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.calls-pill--category {
  background: rgba(0, 114, 63, 0.10);
  color: #00723F;
}

.calls-item__date {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}

.calls-item__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  color: #1f2740;
}

.calls-item__info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calls-item__info-box {
  background: #f8faf8;
  border: 1px solid rgba(0, 114, 63, 0.10);
  border-radius: 22px;
  padding: 20px 22px;
}

.calls-item__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #c69214;
}

.calls-item__value {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #1f2937;
  font-weight: 600;
}

.calls-item__text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #5b6475;
}

.calls-item__footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.calls-item__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c69214, #dd971a);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(221, 151, 26, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calls-item__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(221, 151, 26, 0.34);
}

@media (max-width: 1100px) {
  .calls-item {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .calls-item__image img {
    min-height: 280px;
    max-height: 360px;
  }
}

@media (max-width: 768px) {
  .calls-item {
    padding: 20px;
    border-radius: 24px;
    gap: 20px;
  }

  .calls-item__title {
    font-size: 1.55rem;
  }

  .calls-item__info-grid {
    grid-template-columns: 1fr;
  }

  .calls-item__image img {
    min-height: 220px;
    max-height: 300px;
  }

  .calls-item__text {
    font-size: 1rem;
    line-height: 1.7;
  }
}
/* CONVOCATORIAS */
.convocatorias__viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.convocatorias__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  transition: transform 0.45s ease;
  align-items: stretch;
  will-change: transform;
}

.conv-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.conv-card__image {
  width: 100%;
  background: #e9ecef;
  overflow: hidden;
}

.conv-card__image img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: top center;
  transition: none;
  transform: none;
}

.conv-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 22px;
  background: #ffffff;
}

.conv-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2f7d43;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conv-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
  color: #1f2740;
}

.conv-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a6274;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}

.conv-card__button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: #2f7d43;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 0;
  transition: background 0.25s ease;
}

.conv-card__button:hover {
  background: #256537;
}

@media (max-width: 1100px) {
  .convocatorias__track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .conv-card__image img {
    height: 460px;
  }
}

@media (max-width: 768px) {
  .convocatorias__track {
    grid-auto-columns: 100%;
    gap: 18px;
  }

  .conv-card__image img {
    height: 400px;
  }

  .conv-card__body {
    padding: 16px 14px 20px;
  }

  .conv-card__title {
    font-size: 0.96rem;
  }

  .conv-card__text {
    font-size: 0.92rem;
  }
}
/* RESPONSIVO */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 24px;
  background: #00723F;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background 0.25s ease;
}

.back-to-top:hover {
  background: #346c3d;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top__icon {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .back-to-top__icon {
    font-size: 1.9rem;
  }
}