@charset "UTF-8";

.noticias-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0a1210;
  overflow: hidden;
}

.noticias-hero--empty {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1210 0%, #1a3d34 100%);
}

.noticias__section .proyectos-portfolio__toolbar-form {
  align-items: center;
}

.noticias__section .proyectos-portfolio__toolbar-search {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.noticias-hero .swiper {
  width: 100%;
}

.noticias-hero__slide {
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.noticias-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.noticias-hero__slide.swiper-slide-active .noticias-hero__bg {
  transform: scale(1.08);
}

.noticias-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 10, 0.55) 0%,
    rgba(6, 12, 10, 0.45) 45%,
    rgba(6, 12, 10, 0.72) 100%
  );
}

.noticias-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3.25rem 0 3.75rem;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  box-sizing: border-box;
}

.noticias-hero__content .container-fluid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.noticias-hero__category {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.65rem;
  text-align: center;
}

.noticias-hero__title {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.2;
  max-width: 52rem;
  margin: 0 auto 0.75rem;
  text-align: center;
}

@keyframes noticias-hero-link-halo {
  0%,
  100% {
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.35),
      1px 0 0 rgba(255, 255, 255, 0.28),
      -1px 0 0 rgba(255, 255, 255, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.28),
      0 -1px 0 rgba(255, 255, 255, 0.28);
  }

  50% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.55),
      0 0 10px rgba(255, 255, 255, 0.28),
      1px 0 0 rgba(255, 255, 255, 0.65),
      -1px 0 0 rgba(255, 255, 255, 0.65),
      0 1px 0 rgba(255, 255, 255, 0.65),
      0 -1px 0 rgba(255, 255, 255, 0.65);
  }
}

.noticias-hero__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.55s ease;
}

.noticias-hero__title a:hover,
.noticias-hero__title a:focus-visible {
  color: #fff;
  animation: noticias-hero-link-halo 2s ease-in-out infinite;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .noticias-hero__title a:hover,
  .noticias-hero__title a:focus-visible {
    animation: none;
    text-shadow:
      0 0 3px rgba(255, 255, 255, 0.5),
      1px 0 0 rgba(255, 255, 255, 0.45),
      -1px 0 0 rgba(255, 255, 255, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.45),
      0 -1px 0 rgba(255, 255, 255, 0.45);
  }
}

.noticias-hero__meta {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
  width: 100%;
}

.noticias-hero .swiper-pagination {
  bottom: 1.15rem;
}

.noticias-hero .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
}

.noticias-hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--bs-primary);
}

.noticias__section {
  background: #fff;
}

.noticias__toolbar-form {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.noticias__toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  width: 100%;
}

.noticias__toolbar-search {
  flex: 1 1 18rem;
  min-width: min(100%, 12rem);
  max-width: none;
}

.noticias__search-shell {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  gap: 0.35rem;
  padding: 0 0.85rem 0 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 28, 20, 0.14);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.noticias__search-shell:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 146, 122, 0.14);
}

.noticias__search-icon {
  position: static;
  transform: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  margin-left: 0.15rem;
  line-height: 1;
}

.noticias__search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 0.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  line-height: 1.25;
  box-shadow: none;
}

.noticias__search-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.noticias__search-count {
  flex: 0 1 auto;
  max-width: 48%;
  margin: 0;
  padding: 0 0.1rem 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0, 28, 20, 0.52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.noticias__search-count:empty {
  display: none;
}

.noticias__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: min(100%, 16rem);
}

.noticias__period-filters {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  padding-top: 0;
}

.noticias__toolbar .proyectos-portfolio__toolbar-form {
  gap: 0;
}

.noticias__toolbar.proyectos-portfolio__toolbar {
  display: flex;
  align-items: center;
}

.noticias__toolbar .proyectos-portfolio__toolbar-inner,
.noticias__toolbar .noticias__toolbar-form,
.noticias__toolbar .noticias__toolbar-main {
  align-items: center;
}

.noticias__toolbar .proyectos-portfolio__area-chip,
.noticias__toolbar .noticias__calendar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.noticias__toolbar .noticias__calendar-toggle i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.noticias__toolbar.is-stuck .noticias__search-shell {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.14);
}

.noticias__toolbar.is-stuck .noticias__search-count {
  color: rgba(0, 0, 0, 0.5);
}

.noticias__toolbar.is-stuck .noticias__period-filters .proyectos-portfolio__area-chip,
.noticias__toolbar.is-stuck .noticias__calendar-toggle {
  white-space: nowrap;
}

.noticias__calendar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.noticias__calendar-toggle {
  gap: 0.4rem;
}

.noticias__calendar-toggle.is-active {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.noticias__calendar-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 1060;
  min-width: min(100vw - 2rem, 18.5rem);
  padding: 0.85rem 0.9rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.65rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.noticias__calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.noticias__calendar-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  text-transform: capitalize;
}

.noticias__calendar-nav {
  display: inline-flex;
  gap: 0.25rem;
}

.noticias__calendar-nav button {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.4rem;
  background: #fff;
  color: #111;
  line-height: 1;
  padding: 0;
}

.noticias__calendar-nav button:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.noticias__calendar-weekdays,
.noticias__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.noticias__calendar-weekdays {
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}

.noticias__calendar-weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 0;
}

.noticias__calendar-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.noticias__calendar-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.noticias__calendar-day.is-available {
  color: #0a3d32;
  font-weight: 600;
  cursor: pointer;
  background: rgba(var(--bs-primary-rgb), 0.14);
  border-color: rgba(var(--bs-primary-rgb), 0.28);
}

.noticias__calendar-day.is-available::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.noticias__calendar-day.is-available:hover {
  background: rgba(var(--bs-primary-rgb), 0.22);
  border-color: rgba(var(--bs-primary-rgb), 0.45);
}

.noticias__calendar-day.is-selected {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.noticias__calendar-day.is-selected::after {
  background: #fff;
  box-shadow: 0 0 0 1px var(--bs-primary);
}

.noticias__calendar-loading {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 1.25rem 0.5rem;
}

@media (min-width: 992px) {
  .noticias__toolbar-main {
    flex-wrap: nowrap;
  }

  .noticias__toolbar-actions {
    flex: 0 0 auto;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .noticias__toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .noticias__calendar-popover {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

.noticias__grid {
  min-height: 12rem;
}

.noticias-card {
  position: relative;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.noticias-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.noticias-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9ecef;
}

.noticias-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.noticias-card:hover .noticias-card__media img {
  transform: scale(1.04);
}

.noticias-card__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(0, 0, 0, 0.2);
}

.noticias-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.noticias-card__category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.noticias-card__title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: #111;
}

.noticias-card__excerpt {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.62);
  margin: 0 0 0.75rem;
  flex: 1;
}

.noticias-card__date {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: auto;
}

.noticias__sentinel {
  height: 2px;
  width: 100%;
  margin: 2rem 0;
}

.noticias__loading {
  text-align: center;
  padding: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
}

.noticias__no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(0, 0, 0, 0.55);
}

.noticias__no-results.is-visible {
  display: block;
}

@media (max-width: 767.98px) {
  .noticias__toolbar-form {
    flex-direction: column;
    align-items: stretch;
  }
}
