/**
 * Ruta: public/css/galeria.css
 * Galería de campaña — Albert Arenas Yabar (Cusco 2026)
 * Rediseño: carrusel 3D flotante + grid de álbumes + CTA.
 * Paleta y tokens tomados del rediseño hecho con IA; clases adaptadas
 * a la estructura real del blade (galeria.blade.php) y del JS (galeria.js).
 */

:root {
  --color-guinda: #6B0F1A;
  --color-guinda-dark: #4A0A12;
  --color-rojo: #CC0000;
  --color-rojo-dark: #A30000;
  --color-blanco: #FFFFFF;
  --color-texto: #2D0A0F;
  --color-fondo: #F5F5F5;
  --color-gris-texto: #5B6370;
  --color-border-subtle: rgba(107, 15, 26, 0.08);
}

.gallery-component-root {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.gallery-component-root *,
.gallery-component-root *::before,
.gallery-component-root *::after {
  box-sizing: border-box;
}

.container-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ════════════════════════════════════════════════════════════════════
   SECCIÓN 1 — HERO 3D: fondo "sunset glow" + título + panel del evento
   activo + carrusel flotante con profundidad
   ════════════════════════════════════════════════════════════════════ */
.hero-3d-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FBF4F0 0%, #F7EAE6 32%, #F3E2DE 68%, #F9EFE9 100%);
  border-bottom: 1px solid rgba(107, 15, 26, 0.14);
}

.ambient-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.ambient-light-sky {
  top: -100px;
  left: 12%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.14) 0%, rgba(204, 0, 0, 0) 70%);
}

.ambient-light-peach {
  bottom: -60px;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 15, 26, 0.16) 0%, rgba(107, 15, 26, 0) 70%);
}

.hero-3d-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-3d-container {
    padding: 4.5rem 2rem 3.5rem;
  }
}

.hero-3d-header {
  max-width: 780px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.15rem;
}

.tag-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-rojo);
  box-shadow: 0 0 8px rgba(204, 0, 0, 0.7);
  animation: pulse 2s infinite;
}

.tag-caption {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4B5563;
  text-transform: uppercase;
}

.hero-3d-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: #172033;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-3d-description {
  font-size: 1.05rem;
  color: #5B6577;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero-3d-description {
    font-size: 0.95rem;
  }
}

/* Panel dinámico del evento activo en el carrusel */
.active-event-display {
  margin-top: 1rem;
  width: 100%;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 1.35rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px -10px rgba(24, 34, 52, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.active-event-tagline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-active-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--color-rojo), var(--color-rojo-dark));
  color: #FFFFFF;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
}

.badge-active-live .live-icon {
  font-size: 0.85rem;
  color: #FFD700;
}

.active-event-cat {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-guinda);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.active-event-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #172033;
  line-height: 1.25;
  margin: 0.2rem 0;
}

.active-event-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #5B6577;
  font-weight: 600;
}

.active-event-meta-row .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.active-event-meta-row .meta-icon {
  font-size: 0.95rem;
  color: var(--color-rojo);
}

.active-event-meta-row .meta-sep {
  color: rgba(91, 101, 119, 0.35);
}

.active-event-desc {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.55;
  margin: 0.2rem 0 0;
  max-width: 620px;
}

/* ── Carrusel 3D flotante con profundidad y rotación física ── */
.carousel-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

@media (max-width: 768px) {
  .carousel-3d-wrapper {
    height: 415px;
    perspective: 850px;
  }
}

.carousel-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Flechas superpuestas a los costados de la foto central: control manual,
   independiente del autoplay (a diferencia de la nav discreta de abajo,
   estas quedan justo al lado de la imagen). */
.carousel-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: #374151;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-side-arrow .material-icons {
  font-size: 1.7rem;
}

.carousel-side-arrow:hover {
  background: #FFFFFF;
  color: var(--color-rojo);
  border-color: rgba(204, 0, 0, 0.3);
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.carousel-side-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-side-arrow-left {
  left: 0.5rem;
}

.carousel-side-arrow-right {
  right: 0.5rem;
}

@media (max-width: 900px) {
  .carousel-side-arrow {
    width: 42px;
    height: 42px;
  }

  .carousel-side-arrow .material-icons {
    font-size: 1.35rem;
  }

  .carousel-side-arrow-left {
    left: 0.15rem;
  }

  .carousel-side-arrow-right {
    right: 0.15rem;
  }
}

.card-3d-item {
  position: absolute;
  width: 375px;
  height: 460px;
  border-radius: 1.35rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
  transform-origin: center center;
}

@media (max-width: 768px) {
  .card-3d-item {
    width: min(315px, 80vw);
    height: 395px;
    border-radius: 1.2rem;
  }
}

.card-3d-item.is-center {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  z-index: 10;
  opacity: 1;
  filter: blur(0px);
  box-shadow: 0 28px 65px -15px rgba(24, 34, 52, 0.18),
              0 10px 24px -6px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  pointer-events: auto;
}

.card-3d-item.is-center:hover .card-3d-photo {
  transform: scale(1.04);
}

.card-3d-item.is-next {
  transform: translate3d(60%, 0, -130px) scale(0.86) rotateY(-24deg);
  z-index: 7;
  opacity: 0.78;
  filter: blur(0.25px);
  box-shadow: 0 16px 38px -10px rgba(24, 34, 52, 0.12);
  pointer-events: auto;
}

.card-3d-item.is-prev {
  transform: translate3d(-60%, 0, -130px) scale(0.86) rotateY(24deg);
  z-index: 7;
  opacity: 0.78;
  filter: blur(0.25px);
  box-shadow: 0 16px 38px -10px rgba(24, 34, 52, 0.12);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .card-3d-item.is-next {
    transform: translate3d(46%, 0, -80px) scale(0.85) rotateY(-18deg);
    opacity: 0.7;
  }
  .card-3d-item.is-prev {
    transform: translate3d(-46%, 0, -80px) scale(0.85) rotateY(18deg);
    opacity: 0.7;
  }
}

.card-3d-item.is-far-next {
  transform: translate3d(115%, 0, -260px) scale(0.72) rotateY(-36deg);
  z-index: 4;
  opacity: 0.35;
  filter: blur(1px);
  box-shadow: 0 10px 24px -6px rgba(24, 34, 52, 0.08);
  pointer-events: auto;
}

.card-3d-item.is-far-prev {
  transform: translate3d(-115%, 0, -260px) scale(0.72) rotateY(36deg);
  z-index: 4;
  opacity: 0.35;
  filter: blur(1px);
  box-shadow: 0 10px 24px -6px rgba(24, 34, 52, 0.08);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .card-3d-item.is-far-next {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(85%, 0, -180px) scale(0.65) rotateY(-30deg);
  }
  .card-3d-item.is-far-prev {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-85%, 0, -180px) scale(0.65) rotateY(30deg);
  }
}

.card-3d-item.is-hidden {
  transform: translate3d(0, 0, -420px) scale(0.5);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.card-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background-color: #121A29;
}

.card-3d-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-3d-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 35%, rgba(14, 22, 38, 0.4) 65%, rgba(14, 22, 38, 0.92) 100%);
  pointer-events: none;
}

.card-top-badges {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  right: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 5;
  pointer-events: none;
}

.card-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(107, 15, 26, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-date-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-3d-caption {
  position: absolute;
  bottom: 1.35rem;
  left: 1.35rem;
  right: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  z-index: 5;
  pointer-events: none;
}

.card-location-line {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 0.02em;
}

.card-location-line .loc-pin {
  font-size: 0.95rem;
}

.card-center-prompt {
  margin-top: 0.45rem;
  pointer-events: auto;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(204, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.4);
}

.prompt-chip .prompt-icon {
  font-size: 0.9rem;
}

/* ── Flechas, dots y contador debajo del carrusel ── */
.carousel-3d-nav-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 15;
  flex-wrap: wrap;
}

.nav-btn-discreet {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-btn-discreet .material-icons {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.nav-btn-discreet:hover {
  background: #FFFFFF;
  color: var(--color-rojo);
  border-color: rgba(204, 0, 0, 0.3);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.15);
  transform: scale(1.08);
}

.nav-btn-discreet:active {
  transform: scale(0.96);
}

.nav-dots-tray {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-dot-pill {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(107, 15, 26, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-dot-pill:hover {
  background: rgba(107, 15, 26, 0.5);
}

.nav-dot-pill.active {
  width: 24px;
  background: var(--color-rojo);
  box-shadow: 0 0 10px rgba(204, 0, 0, 0.55);
}

.nav-counter-box {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: "Space Grotesk", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4B5563;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-counter-box .counter-curr {
  color: var(--color-rojo);
  font-weight: 800;
}

.nav-counter-box .counter-slash {
  color: #9CA3AF;
}

/* ════════════════════════════════════════════════════════════════════
   SECCIÓN 2 — ÁREA CENTRAL: encabezado, filtros y barra de resultados
   ════════════════════════════════════════════════════════════════════ */
.gallery-core-area {
  padding: 3rem 1rem 4rem;
}

@media (min-width: 768px) {
  .gallery-core-area {
    padding: 3.5rem 1.5rem 5rem;
  }
}

.section-heading-block {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-texto);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.15rem;
  }
}

.section-subtext {
  font-size: 0.925rem;
  color: var(--color-gris-texto);
  margin: 0;
  line-height: 1.5;
}

.gallery-filters-nav {
  overflow: hidden;
  width: 100%;
  margin-bottom: 1.25rem;
}

.filters-scroll-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: wrap;
}

.filters-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.filter-pill-modern {
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: var(--color-blanco);
  border: 1px solid rgba(107, 15, 26, 0.12);
  color: var(--color-texto);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pill-count-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(107, 15, 26, 0.08);
  color: var(--color-guinda);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.filter-pill-modern:hover {
  background: rgba(204, 0, 0, 0.05);
  border-color: rgba(204, 0, 0, 0.3);
  color: var(--color-rojo);
  transform: translateY(-1px);
}

.filter-pill-modern:hover .pill-count-badge {
  background: rgba(204, 0, 0, 0.15);
  color: var(--color-rojo);
}

.filter-pill-modern.active {
  background: var(--color-rojo);
  border-color: var(--color-rojo);
  color: var(--color-blanco);
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
}

.filter-pill-modern.active .pill-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-blanco);
  border-radius: 0.75rem;
  border: 1px solid rgba(107, 15, 26, 0.06);
  font-size: 0.85rem;
  color: var(--color-gris-texto);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.results-meta-bar strong {
  color: var(--color-texto);
}

.results-sep {
  color: rgba(107, 15, 26, 0.2);
}

/* ════════════════════════════════════════════════════════════════════
   SECCIÓN 3 — GRILLA DE ÁLBUMES: 1 col móvil, 2 tablet, 3 desktop
   ════════════════════════════════════════════════════════════════════ */
.albums-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1040px) {
  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.album-card {
  background: var(--color-blanco);
  border-radius: 1.15rem;
  border: 1px solid rgba(107, 15, 26, 0.08);
  box-shadow: 0 4px 18px rgba(45, 10, 15, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.album-card.is-hidden {
  display: none;
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(45, 10, 15, 0.1);
  border-color: rgba(204, 0, 0, 0.25);
}

.album-card:hover .album-cover-image,
.album-card:focus-visible .album-cover-image {
  transform: scale(1.05);
}

.album-card:hover .album-hover-overlay,
.album-card:focus-visible .album-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.album-card:hover .btn-ver-album,
.album-card:focus-visible .btn-ver-album {
  background-color: var(--color-rojo-dark);
}

.album-card:hover .btn-arrow-icon,
.album-card:focus-visible .btn-arrow-icon {
  transform: translateX(4px);
}

.album-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.4);
}

.album-card.is-active-album {
  border-color: rgba(204, 0, 0, 0.45);
  box-shadow: 0 16px 36px -8px rgba(204, 0, 0, 0.16), 0 0 0 2px var(--color-rojo);
  transform: translateY(-4px);
}

.album-card.is-active-album .album-title {
  color: var(--color-rojo);
}

.album-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #e5e7eb;
}

.album-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-gradient-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.album-badge-cat {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background-color: var(--color-guinda);
  color: var(--color-blanco);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
  line-height: 1.2;
}

.album-badge-count {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: var(--color-blanco);
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.album-badge-count .count-icon {
  font-size: 0.9rem;
  color: #FFD700;
}

.album-badge-count .count-text {
  white-space: nowrap;
}

.album-active-pill {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: linear-gradient(135deg, var(--color-rojo), var(--color-guinda));
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.album-active-pill .active-icon {
  font-size: 0.9rem;
  color: #FFD700;
}

.album-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3;
}

@media (min-width: 900px) {
  .album-hover-overlay {
    display: flex;
  }
}

.album-hover-btn {
  background-color: var(--color-rojo);
  color: var(--color-blanco);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.album-hover-btn .hover-search-icon {
  font-size: 1.15rem;
}

.album-hover-btn .hover-btn-text {
  white-space: nowrap;
}

.album-hover-btn:hover {
  background-color: var(--color-rojo-dark);
}

.album-card:hover .album-hover-overlay .album-hover-btn {
  transform: scale(1);
}

.album-info-body {
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.album-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-gris-texto);
  font-weight: 500;
}

.album-meta-row .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.album-meta-row .meta-icon {
  font-size: 0.9rem;
  color: var(--color-rojo);
}

.meta-divider {
  color: rgba(107, 15, 26, 0.25);
}

.meta-location {
  flex-shrink: 1;
  min-width: 0;
}

.meta-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

@media (min-width: 768px) {
  .meta-truncate {
    max-width: 190px;
  }
}

.album-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-texto);
  margin: 0 0 0.5rem 0;
  transition: color 0.2s ease;
}

.album-card:hover .album-title {
  color: var(--color-rojo);
}

.album-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-gris-texto);
  margin: 0 0 1.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-card-action {
  margin-top: auto;
  width: 100%;
}

.btn-ver-album {
  width: 100%;
  background-color: var(--color-rojo);
  color: var(--color-blanco);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-ver-album .btn-arrow-icon {
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.btn-ver-album:hover {
  background-color: var(--color-rojo-dark);
}

.btn-ver-album:active {
  transform: scale(0.98);
}

.btn-ver-album.is-active {
  background-color: var(--color-guinda);
  box-shadow: 0 2px 8px rgba(107, 15, 26, 0.35);
}

.btn-ver-album.is-active:hover {
  background-color: var(--color-guinda-dark);
}

/* Estado vacío del filtro */
.gallery-empty-state {
  padding: 4rem 1.5rem;
  background: var(--color-blanco);
  border-radius: 1.15rem;
  border: 1px dashed rgba(107, 15, 26, 0.2);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3.5rem;
  color: rgba(107, 15, 26, 0.3);
  margin-bottom: 1rem;
}

.empty-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-guinda);
  margin: 0 0 0.5rem 0;
}

.empty-desc {
  font-size: 0.95rem;
  color: var(--color-gris-texto);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.btn-reset-filter {
  background: var(--color-rojo);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-reset-filter:hover {
  background: var(--color-rojo-dark);
}

/* ════════════════════════════════════════════════════════════════════
   VIDEOS — igual que el sitio original (sin cambios de fondo)
   ════════════════════════════════════════════════════════════════════ */
.gallery-videos {
  background: #F5F5F5;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 1.5rem);
  border-top: 1px solid rgba(107, 15, 26, 0.12);
}

.gallery-videos .container-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.gallery-videos__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.gallery-videos__tag {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-rojo);
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-videos__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-texto);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.gallery-videos__subtitle {
  font-size: 0.95rem;
  color: rgba(45, 10, 15, 0.72);
  line-height: 1.55;
  margin: 0;
}

.gallery-videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .gallery-videos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1040px) {
  .gallery-videos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

.gallery-videos__card {
  background: var(--color-blanco);
  border-radius: 1.15rem;
  border: 1px solid rgba(107, 15, 26, 0.08);
  box-shadow: 0 4px 18px rgba(45, 10, 15, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-videos__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(45, 10, 15, 0.1);
  border-color: rgba(204, 0, 0, 0.25);
}

.gallery-videos__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a0507;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-videos__player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.gallery-videos__player.is-vertical {
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

@media (max-width: 599px) {
  .gallery-videos__player.is-vertical {
    max-height: 320px;
  }
}

.gallery-videos__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-videos__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
  padding: 0;
  z-index: 2;
}

.gallery-videos__play-btn .material-icons {
  font-size: 3.5rem;
  color: #FFFFFF;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.gallery-videos__play-btn:hover {
  background: rgba(0, 0, 0, 0.40);
}

.gallery-videos__play-btn:hover .material-icons {
  transform: scale(1.1);
}

.gallery-videos__play-btn .pause-icon {
  display: none;
}

.gallery-videos__player.is-playing .gallery-videos__play-btn .play-icon {
  display: none;
}

.gallery-videos__player.is-playing .gallery-videos__play-btn .pause-icon {
  display: block;
}

.gallery-videos__player.is-playing .gallery-videos__play-btn {
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-videos__player.is-playing:hover .gallery-videos__play-btn {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.gallery-videos__platform-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--color-guinda);
  color: var(--color-blanco);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
  line-height: 1.2;
  pointer-events: none;
}

.badge-cloudinary { }
.badge-tiktok     { background: #010101; }
.badge-facebook   { background: #1877F2; }
.badge-youtube    { background: #FF0000; }

.gallery-videos__info {
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.gallery-videos__fecha {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-gris-texto);
  font-weight: 500;
}

.gallery-videos__fecha .material-icons {
  font-size: 0.9rem;
  color: var(--color-rojo);
}

.gallery-videos__card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-texto);
  margin: 0 0 0.5rem 0;
  transition: color 0.2s ease;
}

.gallery-videos__card:hover .gallery-videos__card-title {
  color: var(--color-rojo);
}

.gallery-videos__card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-gris-texto);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════
   CTA FINAL
   ════════════════════════════════════════════════════════════════════ */
.gallery-cta {
  background: var(--color-guinda);
  color: var(--color-blanco);
  padding: 3.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery-cta {
    padding: 4.5rem 2rem;
  }
}

.cta-decorative-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-rojo);
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 860px) {
  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-text-content {
  max-width: 650px;
}

.cta-tagline {
  font-size: 0.825rem;
  font-weight: 800;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-divider {
  width: 48px;
  height: 3px;
  background: var(--color-rojo);
  margin: 1rem 0;
}

@media (max-width: 860px) {
  .cta-divider {
    margin: 1rem auto;
  }
}

.cta-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 500px) {
  .cta-actions {
    flex-direction: row;
    max-width: none;
  }
}

.btn-cta {
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cta-primary {
  background: var(--color-rojo);
  color: #fff;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}

.btn-cta-primary:hover {
  background: var(--color-rojo-dark);
  transform: translateY(-2px);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════════
   ANIMACIONES
   ════════════════════════════════════════════════════════════════════ */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .card-3d-item,
  .card-3d-photo,
  .album-card,
  .album-cover-image,
  .btn-ver-album,
  .nav-btn-discreet,
  .filter-pill-modern {
    transition: none !important;
  }
  .tag-pulse-dot {
    animation: none !important;
  }
}