/* Ruta: public/css/galeria.css — Galería PRIN (migrado desde Angular) */

.gallery-component-root {
  background-color: #F5F5F5;
  color: #2D0A0F;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.gallery-hero {
  position: relative;
  background-color: #4A0A12;
  background-size: cover;
  background-position: center 15%; /* Ajustado para mostrar más rostro/cuerpo */
  color: #FFFFFF;
  padding: 8rem 1.5rem; /* Más padding vertical */
  overflow: hidden;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 500px; /* Mucho más alto para mostrar casi toda la imagen */
}
/* Velo suave guinda — sin textura de puntos */
.gallery-hero .hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(74, 10, 18, 0.92) 0%, rgba(74, 10, 18, 0.78) 28%, rgba(107, 15, 26, 0.35) 52%, rgba(74, 10, 18, 0.08) 72%, transparent 88%);
  pointer-events: none;
  z-index: 1;
}
.gallery-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
  pointer-events: none;
}
.gallery-hero .hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  text-align: left;
  padding-left: 1.5rem;
}
@media (max-width: 768px) {
  .gallery-hero .hero-content {
    padding-left: 0.5rem;
  }
}
.gallery-hero .hero-main-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(74, 10, 18, 0.35);
}
@media (max-width: 768px) {
  .gallery-hero .hero-main-title {
    font-size: 2.5rem;
  }
}
.gallery-core-area {
  padding: 2rem 1.5rem 4rem 1.5rem;
  margin-top: 0;
  position: relative;
  z-index: 20;
}
.gallery-core-area .container-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-intro {
  max-width: 1200px;
  margin: 0 auto 2.25rem;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(141, 49, 60, 0.12);
  box-shadow: 0 10px 26px rgba(45, 10, 15, 0.06);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .gallery-intro {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gallery-intro__title {
  margin: 0 0 0.55rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #2D0A0F;
  line-height: 1.25;
}

.gallery-intro__desc {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(45, 10, 15, 0.75);
  max-width: 680px;
}

.gallery-intro__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .gallery-intro__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-intro__stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(107, 15, 26, 0.03);
  border: 1px solid rgba(107, 15, 26, 0.08);
}

.gallery-intro__stat .material-icons {
  font-size: 1.35rem;
  color: #CC0000;
}

.gallery-intro__stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #2D0A0F;
  line-height: 1.1;
}

.gallery-intro__stat-label {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45, 10, 15, 0.6);
  margin-top: 0.15rem;
}

.filters-outer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
.filters-outer-container .gallery-filters-nav {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-outer-container .gallery-filters-nav::-webkit-scrollbar {
  display: none;
}
.filters-outer-container .filters-scroll-wrapper {
  display: flex;
  gap: 0.85rem;
  padding: 0.5rem 0;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .filters-outer-container .filters-scroll-wrapper {
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.filters-outer-container .filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  background-color: #ebd7da;
  border: 2px solid #8d313c;
  color: #210206;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.filters-outer-container .filter-pill:hover {
  background-color: #dfbec3;
  transform: translateY(-1px);
}
.filters-outer-container .filter-pill:active {
  transform: translateY(0);
}
.filters-outer-container .filter-pill.active {
  background-color: #CC0000;
  border-color: #b30000;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.gallery-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(141, 49, 60, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  outline: none;
}
.gallery-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.4);
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(34, 2, 6, 0.12);
  border-color: rgba(141, 49, 60, 0.3);
}
.gallery-card:hover .card-image {
  transform: scale(1.05);
}
.gallery-card:hover .card-overlay {
  opacity: 1;
}
.gallery-card .card-image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: #110103;
}
.gallery-card .card-image-wrapper .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 1, 2, 0.85) 0%, rgba(10, 1, 2, 0.45) 55%, rgba(10, 1, 2, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  z-index: 2;
}
.gallery-card .card-overlay .overlay-top-meta {
  display: flex;
  justify-content: flex-start;
}
.gallery-card .card-overlay .badge-category {
  background-color: #CC0000;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.gallery-card .card-overlay .overlay-button {
  align-self: center;
  background-color: #FFFFFF;
  color: #CC0000;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: all 0.25s ease;
}
.gallery-card .card-overlay .overlay-button .material-icons {
  font-size: 1.5rem;
  font-weight: 800;
}
.gallery-card .card-overlay:hover .overlay-button {
  transform: scale(1.05);
  background-color: #CC0000;
  color: #FFFFFF;
}
.gallery-card .card-overlay .overlay-bottom-content {
  color: #FFFFFF;
  text-align: left;
}
.gallery-card .card-overlay .overlay-bottom-content .card-overlay-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  color: #FFFFFF;
}
.gallery-card .card-overlay .overlay-bottom-content .card-overlay-desc {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500;
}
.gallery-card .card-overlay .overlay-bottom-content .card-overlay-desc .material-icons {
  font-size: 0.9rem;
  color: #CC0000;
}

.gallery-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  border: 1px dotted rgba(107, 15, 26, 0.2);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px -10px rgba(45, 10, 15, 0.06), 0 1px 3px rgba(45, 10, 15, 0.02);
}
.gallery-empty-state .empty-icon {
  font-size: 3rem;
  color: rgba(107, 15, 26, 0.3);
  margin-bottom: 1rem;
}
.gallery-empty-state .empty-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #6B0F1A;
  margin: 0 0 0.5rem 0;
}
.gallery-empty-state .empty-desc {
  font-size: 0.85rem;
  color: rgba(45, 10, 15, 0.65);
  margin: 0 0 1.5rem 0;
}
.gallery-empty-state .btn-reset-filter {
  background-color: #6B0F1A;
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.gallery-empty-state .btn-reset-filter:hover {
  background-color: #4A0A12;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}
.gallery-pagination .btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #CC0000;
  color: #FFFFFF;
  border: 2px solid #b30000;
  padding: 0.9rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2);
  transition: all 0.25s ease;
  outline: none;
}
.gallery-pagination .btn-load-more .material-icons {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}
.gallery-pagination .btn-load-more:hover {
  background-color: #e60000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.35);
}
.gallery-pagination .btn-load-more:hover .material-icons {
  transform: translateY(2px);
}
.gallery-pagination .btn-load-more:active {
  transform: translateY(0);
}

/* Enlace de acción PRIN (noticias: Leer noticia) */
.btn-link-prin {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #CC0000;
  cursor: pointer;
  transition: color 0.25s ease;
}

.btn-link-prin:hover {
  color: #A30000;
}

#noticias-pagination.is-hidden {
  display: none !important;
}

.gallery-videos {
  background: linear-gradient(180deg, #F5F5F5 0%, #FFFFFF 100%);
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid rgba(107, 15, 26, 0.12);
}
.gallery-videos .container-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-videos__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.gallery-videos__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(45, 10, 15, 0.72);
  line-height: 1.55;
}
.gallery-videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-videos__card {
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(107, 15, 26, 0.1);
  box-shadow: 0 4px 24px rgba(45, 10, 15, 0.08);
}
.gallery-videos__tag {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #CC0000;
  display: block;
  margin-bottom: 0.5rem;
}
.gallery-videos__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #2D0A0F;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.gallery-videos__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #4A0A12;
}
.gallery-videos__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery-videos__meta {
  padding: 1.15rem 0 0;
  text-align: center;
}
.gallery-videos__card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2D0A0F;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}
.gallery-videos__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #CC0000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gallery-videos__link .material-icons {
  font-size: 1.1rem;
}
.gallery-videos__link:hover {
  color: #A30000;
  text-decoration: underline;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 2, 4, 0.8);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  outline: none;
}
.lightbox-overlay .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 0;
  margin: 0;
  outline: none;
}
.lightbox-overlay .lightbox-wrapper {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 950px;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(107, 15, 26, 0.15);
  z-index: 2;
}
.lightbox-overlay .lightbox-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: rgba(45, 10, 15, 0.65);
  color: #FFFFFF;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 100;
}
.lightbox-overlay .lightbox-close-btn .material-icons {
  font-size: 1.35rem;
}
.lightbox-overlay .lightbox-close-btn:hover {
  background-color: #CC0000;
  transform: rotate(90deg);
}
.lightbox-overlay .lightbox-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .lightbox-overlay .lightbox-grid {
    grid-template-columns: 55% 45%;
  }
}
.lightbox-overlay .lightbox-media-panel {
  background-color: #4A0A12;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .lightbox-overlay .lightbox-media-panel {
    aspect-ratio: auto;
    min-height: 480px;
  }
}
.lightbox-overlay .lightbox-media-panel .lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox-overlay .lightbox-info-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
@media (min-width: 768px) {
  .lightbox-overlay .lightbox-info-panel {
    padding: 2.5rem;
  }
}
.lightbox-overlay .lightbox-info-panel .lightbox-category-tag {
  align-self: flex-start;
  background-color: rgba(107, 15, 26, 0.08);
  color: #6B0F1A;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.lightbox-overlay .lightbox-info-panel .lightbox-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #6B0F1A;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}
.lightbox-overlay .lightbox-info-panel .lightbox-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.lightbox-overlay .lightbox-info-panel .lightbox-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: rgba(45, 10, 15, 0.65);
}
.lightbox-overlay .lightbox-info-panel .lightbox-meta-item .material-icons {
  font-size: 1.05rem;
  color: #CC0000;
}
.lightbox-overlay .lightbox-info-panel .lightbox-content-divider {
  height: 1px;
  background-color: rgba(107, 15, 26, 0.08);
  margin-bottom: 1.5rem;
}
.lightbox-overlay .lightbox-info-panel .lightbox-desc {
  font-size: 0.9rem;
  color: rgba(45, 10, 15, 0.85);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}
.lightbox-overlay .lightbox-info-panel .lightbox-callout-box {
  background-color: rgba(204, 0, 0, 0.02);
  border-left: 3px solid #CC0000;
  padding: 1rem 1.25rem;
  border-radius: 0 1rem 1rem 0;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.lightbox-overlay .lightbox-info-panel .lightbox-callout-box .icon-callout {
  color: #CC0000;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.lightbox-overlay .lightbox-info-panel .lightbox-callout-box .callout-text {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: rgba(45, 10, 15, 0.85);
}
.lightbox-overlay .lightbox-info-panel .lightbox-actions-panel {
  display: flex;
  gap: 1rem;
}
.lightbox-overlay .lightbox-info-panel .lightbox-actions-panel button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lightbox-overlay .lightbox-info-panel .lightbox-actions-panel .lightbox-btn-accept {
  background-color: #6B0F1A;
  color: #FFFFFF;
  border: none;
}
.lightbox-overlay .lightbox-info-panel .lightbox-actions-panel .lightbox-btn-accept:hover {
  background-color: #4A0A12;
}
.lightbox-overlay .lightbox-info-panel .lightbox-actions-panel .lightbox-btn-share {
  background-color: rgba(204, 0, 0, 0.08);
  color: #CC0000;
  border: 1px solid rgba(204, 0, 0, 0.15);
}
.lightbox-overlay .lightbox-info-panel .lightbox-actions-panel .lightbox-btn-share:hover {
  background-color: rgba(204, 0, 0, 0.15);
  border-color: rgba(204, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-up {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gallery-card.is-hidden {
  display: none !important;
}

#gallery-lightbox[hidden] {
  display: none !important;
}

#gallery-pagination.is-hidden,

