/* ============================================
   Proyectos (pÃƒÆ’Ã‚Â¡gina) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â proyectos-page.css
   ============================================ */

/* ---- Header estÃƒÆ’Ã‚Â¡tico ---- */
.proyectos-header {
  position: relative;
  background: #0b0c10;
}

/* ---- Nav active (por si no viene de productos.css) ---- */
.nav--active {
  color: #FF6A00 !important;
}

/* ---- Typography lock (Desktop - 13.svg) ---- */
.proyectos-header .nav a,
.proyectos-header .nav .menu-item-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.proyectos-header .nav .current-menu-item > a,
.proyectos-header .nav .current-menu-parent > a,
.proyectos-header .nav .current-menu-ancestor > a,
.proyectos-header .nav .current-page-ancestor > a {
  font-weight: 500;
}

.proyectos-header .cta {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---- Hero Proyectos ---- */
.proyectos-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0c10;
  text-align: center;
}

.proyectos-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.proyectos-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, calc(var(--proyectos-hero-overlay-opacity, 0.62) * var(--echos-overlay-intensity, 1)));
  z-index: 1;
}

.proyectos-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.proyectos-hero__title {
  margin: 0;
  font-family: 'Universo Sans', var(--font-sans);
  font-size: clamp(34px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
  font-style: normal;
}

.proyectos-hero__accent {
  color: var(--accent, #ff6a00);
}

.proyectos-hero__desc {
  margin: 0;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  max-width: 580px;
}

/* ============================================
   Los MÃƒÆ’Ã‚Â¡s Destacados ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Slider
   ============================================ */
.destacados {
  padding: 60px 0 70px;
  background: var(--bg, #F6F1E8);
}

/* ---- Header: tÃƒÆ’Ã‚Â­tulo + flechas ---- */
.destacados__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.destacados__title {
  margin: 0;
  font-family: 'Universo Sans', var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink, #0d0e10);
  line-height: 1;
}

.destacados__arrows {
  display: flex;
  align-items: center;
  gap: 16px;
}

.destacados__arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink, #0d0e10);
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.destacados__arrow:hover {
  opacity: .6;
}

.destacados__arrow--prev {
  color: #b0b0b0;
}

/* ---- Viewport / Track ---- */
.destacados__viewport {
  overflow: hidden;
  width: 100%;
}

.destacados__track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* ---- Card ---- */
.destacados__card {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 11;
}
.destacados__card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.destacados__card-link:focus-visible {
  outline: 2px solid #111319;
  outline-offset: -2px;
  border-radius: inherit;
}

.destacados__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  transition: transform .4s ease;
}

.destacados__card:hover .destacados__img {
  transform: scale(1.03);
}

/* ---- Info bar (bottom overlay) ---- */
.destacados__info {
  position: absolute;
  bottom: 14px;
  left: 5%;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(199, 204, 223, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
}

.destacados__info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.destacados__name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  color: #111319;
  letter-spacing: 0;
}

.destacados__date {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(17, 19, 25, .68);
  font-weight: 400;
  line-height: 1.15;
}

.destacados__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #111319;
  text-decoration: none;
  transition: background .2s;
}

.destacados__link:hover {
  background: rgba(17, 19, 25, .08);
}

/* ---- Dots ---- */
.destacados__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.destacados__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #111319;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}

.destacados__dot.is-active {
  background: #111319;
}

/* ============================================
   ÃƒÆ’Ã…Â¡ltimos Proyectos ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Grid con Filtros
   ============================================ */
.ultimos-proyectos {
  padding: 80px 0 90px;
  background: var(--bg, #F6F1E8);
}

/* ---- TÃƒÆ’Ã‚Â­tulo ---- */
.ultimos-proyectos__title {
  margin: 0 0 36px 0;
  font-family: 'Universo Sans', var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink, #0d0e10);
  line-height: 1;
  text-align: center;
}

/* ---- Filtros ---- */
.ultimos-proyectos__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 48px;
  background: #fff;
  border: 1.5px solid #d5d5d5;
  border-radius: 999px;
  padding: 6px 8px;
  width: fit-content;
}

.ultimos-proyectos__filter {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #666;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}

.ultimos-proyectos__filter:hover {
  color: #333;
}

.ultimos-proyectos__filter.is-active {
  color: #111319;
  font-weight: 600;
  background: #fff;
  border-color: #111319;
}

/* ---- Grid ---- */
.ultimos-proyectos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Card ---- */
.up-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.up-card__card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.up-card__card-link:focus-visible {
  outline: 2px solid #111319;
  outline-offset: -2px;
  border-radius: inherit;
}

.up-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.up-card:hover .up-card__img {
  transform: scale(1.04);
}

/* ---- Badge (top-right) ---- */
.up-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  color: #111319;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  letter-spacing: 0;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* ---- Info bar (bottom overlay) ---- */
.up-card__info {
  position: absolute;
  bottom: 14px;
  left: 5%;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(199, 204, 223, .80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  z-index: 2;
}

.up-card__info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.up-card__name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  color: #111319;
  letter-spacing: 0;
}

.up-card__date {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(17, 19, 25, .68);
  font-weight: 400;
  line-height: 1.15;
}

.up-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #111319;
  text-decoration: none;
  transition: background .2s;
  flex-shrink: 0;
}

.up-card__link:hover {
  background: rgba(17, 19, 25, .08);
}

/* ---- AnimaciÃƒÆ’Ã‚Â³n de filtro ---- */
.up-card.is-hidden {
  display: none;
}

.up-card.is-showing {
  animation: upCardFadeIn .4s ease forwards;
}

@keyframes upCardFadeIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .proyectos-hero {
    min-height: 460px;
  }
  .proyectos-hero__inner {
    padding: 88px 22px 72px;
  }
  .proyectos-hero__title {
    font-size: clamp(30px, 5.4vw, 34px);
    letter-spacing: 0;
  }
  .proyectos-hero__desc {
    font-size: 14px;
    max-width: 520px;
  }

  /* Destacados */
  .destacados {
    padding: 40px 0 50px;
  }
  .destacados__title {
    font-size: 24px;
  }
  .destacados__card {
    flex: 0 0 100%;
    aspect-ratio: 16 / 11;
  }
  .destacados__track {
    gap: 16px;
  }

  /* ÃƒÆ’Ã…Â¡ltimos Proyectos */
  .ultimos-proyectos {
    padding: 50px 0 60px;
  }
  .ultimos-proyectos__title {
    font-size: 24px;
    margin-bottom: 28px;
  }
  .ultimos-proyectos__filters {
    margin-bottom: 32px;
    padding: 4px 6px;
  }
  .ultimos-proyectos__filter {
    font-size: 13px;
    padding: 8px 18px;
  }
  .ultimos-proyectos__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .up-card {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 520px) {
  .proyectos-hero {
    min-height: 420px;
  }
  .proyectos-hero__inner {
    padding: 76px 18px 60px;
  }
  .proyectos-hero__title {
    font-size: clamp(26px, 8vw, 30px);
    letter-spacing: 0;
  }
  .proyectos-hero__desc {
    font-size: 14px;
    max-width: 320px;
  }

  /* Destacados */
  .destacados {
    padding: 32px 0 40px;
  }
  .destacados__title {
    font-size: 22px;
  }
  .destacados__head {
    margin-bottom: 20px;
  }
  .destacados__info {
    padding: 10px 14px;
  }
  .destacados__name {
    font-size: 15px;
  }
  .destacados__date {
    font-size: 13px;
  }

  /* ÃƒÆ’Ã…Â¡ltimos Proyectos */
  .ultimos-proyectos {
    padding: 40px 0 48px;
  }
  .ultimos-proyectos__title {
    font-size: 22px;
    margin-bottom: 22px;
  }
  .ultimos-proyectos__filters {
    margin-bottom: 26px;
    flex-wrap: wrap;
    border-radius: 16px;
    gap: 4px;
    padding: 6px;
  }
  .ultimos-proyectos__filter {
    font-size: 12px;
    padding: 7px 14px;
  }
  .up-card__name {
    font-size: 15px;
  }
  .up-card__date {
    font-size: 13px;
  }
  .up-card__info {
    padding: 10px 14px;
  }
  .up-card__badge {
    font-size: 11px;
    padding: 5px 14px;
    top: 12px;
    right: 12px;
  }
}

/* ============================================
   CTA Final ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â "Ãƒâ€šÃ‚Â¿Listo para comenzar?"
   ============================================ */
.prod-cta {
  background: #F5F1E8;
  padding: 80px 0;
  text-align: center;
}

.prod-cta__card {
  background: #EDE8DD;
  border-radius: 28px;
  padding: 70px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.prod-cta__title {
  margin: 0;
  font-family: 'Universo Sans', var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: #1a1000;
  letter-spacing: 0;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1;
}

.prod-cta__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: #555;
  line-height: 1.35;
  max-width: 460px;
}

.prod-cta__buttons {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botones oscuros CTA */
.btn-cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 28px;
  border-radius: 999px;
  background: #2E1A0E;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
  border: none;
}

.btn-cta-dark:hover {
  background: #1a0e05;
  transform: translateY(-2px);
}

.btn-cta-dark__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ---- CTA Responsive ---- */
@media (max-width: 980px) {
  .prod-cta__title {
    font-size: 30px;
  }
  .prod-cta__card {
    padding: 50px 30px 60px;
  }
}

@media (max-width: 520px) {
  .prod-cta {
    padding: 50px 0;
  }
  .prod-cta__card {
    padding: 40px 20px 50px;
    border-radius: 20px;
  }
  .prod-cta__title {
    font-size: 26px;
  }
  .prod-cta__buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   Proyectos list: server-side filters + pagination
   ============================================ */
.ultimos-proyectos__filter {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ultimos-proyectos__empty {
  background: #ffffff;
  border: 1.5px solid #d9d0c5;
  border-radius: 22px;
  padding: 40px 28px;
  text-align: center;
}

.ultimos-proyectos__empty-title {
  margin: 0 0 12px;
  font-family: 'Universo Sans', var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  text-transform: uppercase;
}

.ultimos-proyectos__empty-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #5a5a5a;
}

.proyectos-pagination {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.proyectos-pagination__item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #d5d5d5;
  background: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
}

.proyectos-pagination__item .page-numbers:hover {
  border-color: #111319;
}

.proyectos-pagination__item .page-numbers.current {
  background: #111319;
  border-color: #111319;
  color: #ffffff;
}

@media (max-width: 520px) {
  .ultimos-proyectos__empty {
    padding: 28px 18px;
  }

  .ultimos-proyectos__empty-title {
    font-size: 22px;
  }

  .proyectos-pagination {
    margin-top: 30px;
  }

  .proyectos-pagination__item .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}
