/**
 * =================================================================
 * ESTILOS DEL MÓDULO: GALERÍA FOTOGRÁFICA TURÍSTICA DE CUENCA
 * Concepto: Muro de Recuerdos de Viaje & Señalética de Madera
 * Prefijo exclusivo: cuenca-gallery-
 * =================================================================
 */

/* 1. SECCIÓN PRINCIPAL & CONTENEDOR */
.cuenca-gallery-section {
  position: relative;
  background-color: #F3ECE1;
  /* Textura orgánica sutil de papel artesanal / madera clara */
  background-image: 
    radial-gradient(rgba(92, 58, 33, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #F9F5EE 0%, #EDE4D6 50%, #F5ECE0 100%);
  background-size: 24px 24px, 100% 100%;
  padding: 6rem 0;
  border-top: 3px solid var(--color-dorado, #C99738);
  border-bottom: 3px solid var(--color-dorado, #C99738);
  overflow: hidden;
}

.cuenca-gallery-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* 2. ENCABEZADO DE LA GALERÍA */
.cuenca-gallery-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.cuenca-gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-teja, #B83A24);
  background: rgba(184, 58, 36, 0.08);
  border: 1px solid rgba(184, 58, 36, 0.25);
  font-family: var(--font-serif, 'Cinzel', serif);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.cuenca-gallery-title {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 2.6rem;
  color: var(--color-madera-dark, #382112);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.cuenca-gallery-subtitle {
  font-size: 1.15rem;
  color: var(--color-texto-muted, #6B625B);
  font-weight: 400;
  line-height: 1.6;
}

.cuenca-gallery-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.cuenca-gallery-header-divider .divider-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--color-dorado, #C99738), transparent);
}

.cuenca-gallery-header-divider .divider-icon {
  color: var(--color-dorado, #C99738);
  font-size: 1.1rem;
  animation: cuenca-spin-slow 20s linear infinite;
}

@keyframes cuenca-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3. CONTROLES SUPERIORES: POSTE TURÍSTICO & BITÁCORA */
.cuenca-gallery-top-controls {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* POSTE SEÑALIZADOR DE MADERA */
.cuenca-gallery-signpost-widget {
  background: rgba(92, 58, 33, 0.05);
  border-radius: 12px;
  padding: 1.5rem 1rem 1rem 1rem;
  border: 1px dashed rgba(92, 58, 33, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cuenca-gallery-pole-cap {
  background: var(--color-madera-dark, #382112);
  color: var(--color-dorado, #C99738);
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--color-dorado, #C99738);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.cuenca-gallery-pole-wood {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
  position: relative;
}

/* Línea vertical simulando el poste de madera central */
.cuenca-gallery-pole-wood::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  background: linear-gradient(90deg, #4A2E19, #6B4324, #382112);
  border-radius: 4px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.25);
  z-index: 1;
}

/* FLECHAS / RÓTULOS DE MADERA */
.cuenca-gallery-sign-arrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, #6B4324 0%, #52331B 100%);
  color: #F8F3EA;
  border: 1px solid #382112;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(56, 33, 18, 0.25);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
  font-family: var(--font-sans, sans-serif);
}

.cuenca-gallery-sign-arrow::before {
  /* Remache / Clavo metálico en el poste */
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #D9C3A5 30%, #20130A 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cuenca-gallery-sign-arrow:hover {
  transform: scale(1.03);
  background: linear-gradient(180deg, #87552E 0%, #633E20 100%);
  border-color: var(--color-dorado, #C99738);
  box-shadow: 0 6px 16px rgba(56, 33, 18, 0.35);
}

.cuenca-gallery-sign-right {
  clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
  padding-right: 1.5rem;
}

.cuenca-gallery-sign-left {
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 10% 100%, 0% 50%);
  padding-left: 1.5rem;
}

.cuenca-gallery-sign-arrow .sign-text {
  display: flex;
  flex-direction: column;
}

.cuenca-gallery-sign-arrow .sign-text strong {
  font-size: 0.86rem;
  letter-spacing: 0.3px;
  color: #FFF8EE;
  font-family: var(--font-serif, 'Cinzel', serif);
}

.cuenca-gallery-sign-arrow .sign-text small {
  font-size: 0.72rem;
  color: var(--color-adobe, #D9C3A5);
  font-weight: 500;
}

.cuenca-gallery-sign-arrow .sign-arrow-indicator {
  font-size: 0.8rem;
  color: var(--color-dorado, #C99738);
}

.cuenca-gallery-pole-base {
  width: 80px;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
  margin-top: 0.5rem;
}

/* BITÁCORA Y FILTROS */
.cuenca-gallery-traveler-brief {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cuenca-gallery-notebook-pin {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: #FFFDF9;
  border-radius: 8px;
  padding: 1.2rem 1.6rem;
  border: 1px solid rgba(217, 195, 165, 0.6);
  box-shadow: 0 6px 18px rgba(56, 33, 18, 0.06);
  position: relative;
}

/* Sello UNESCO estilo vintage */
.cuenca-gallery-stamp-unesco {
  flex-shrink: 0;
  transform: rotate(-8deg);
}

.cuenca-gallery-stamp-unesco .stamp-circle {
  width: 78px;
  height: 78px;
  border: 2px dashed var(--color-teja, #B83A24);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-teja, #B83A24);
  text-align: center;
  padding: 4px;
}

.cuenca-gallery-stamp-unesco i {
  font-size: 1.2rem;
}

.cuenca-gallery-stamp-unesco small {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cuenca-gallery-stamp-unesco span {
  font-size: 0.58rem;
  font-family: var(--font-serif, 'Cinzel', serif);
  font-weight: bold;
}

.cuenca-gallery-notebook-note {
  position: relative;
  flex-grow: 1;
}

.notebook-tape {
  position: absolute;
  top: -24px;
  left: 20px;
  width: 75px;
  height: 18px;
  background: rgba(220, 205, 180, 0.7);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.notebook-handwritten {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-madera, #5C3A21);
  line-height: 1.6;
  margin: 0;
}

/* BOTONES DE FILTRO */
.cuenca-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cuenca-gallery-filter-btn {
  background: #FFF;
  color: var(--color-madera-dark, #382112);
  border: 1px solid rgba(217, 195, 165, 0.8);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(56, 33, 18, 0.04);
}

.cuenca-gallery-filter-btn:hover {
  background: var(--color-adobe-light, #F4EBE1);
  border-color: var(--color-teja, #B83A24);
  transform: translateY(-1px);
}

.cuenca-gallery-filter-btn.active {
  background: var(--color-teja, #B83A24);
  color: #FFF;
  border-color: var(--color-teja, #B83A24);
  box-shadow: 0 4px 12px rgba(184, 58, 36, 0.25);
}

.cuenca-gallery-filter-btn.active i {
  color: var(--color-dorado, #C99738);
}

/* 4. MURO DE RECUERDOS (COLLAGE ORGÁNICO) */
.cuenca-gallery-wall-wrapper {
  position: relative;
  background: #EDE4D4;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 
    inset 0 3px 12px rgba(56, 33, 18, 0.12),
    0 10px 30px rgba(56, 33, 18, 0.08);
  border: 2px solid rgba(217, 195, 165, 0.8);
  overflow: hidden;
}

/* Retícula tipo mosaico orgánico */
.cuenca-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.2rem 1.8rem;
  align-items: start;
}

/* TARJETA INDIVIDUAL (ITEM DEL COLLAGE) */
.cuenca-gallery-item {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0.4s ease;
  transform: rotate(var(--item-rotation, 0deg));
}

/* Variaciones de ancho en el collage */
.cuenca-gallery-item-large {
  grid-column: span 6;
}

.cuenca-gallery-item-wide {
  grid-column: span 6;
}

.cuenca-gallery-item-medium {
  grid-column: span 4;
}

.cuenca-gallery-item-tall {
  grid-column: span 4;
}

/* Elevación al pasar el mouse */
.cuenca-gallery-item:hover,
.cuenca-gallery-item:focus-within {
  transform: rotate(0deg) scale(1.03) translateY(-8px);
  z-index: 15;
}

.cuenca-gallery-item.highlight-sign {
  animation: cuenca-pulse 1.2s ease 2;
  transform: rotate(0deg) scale(1.04);
  z-index: 20;
}

@keyframes cuenca-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 58, 36, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(184, 58, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 58, 36, 0); }
}

/* SUJETADORES DE VIAJE REALISTAS */

/* Cinta adhesiva (Washi Tape) */
.cuenca-gallery-tape {
  position: absolute;
  z-index: 5;
  width: 90px;
  height: 24px;
  background: rgba(235, 222, 198, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px);
  border-left: 2px dashed rgba(180, 160, 130, 0.5);
  border-right: 2px dashed rgba(180, 160, 130, 0.5);
}

.cuenca-gallery-tape-top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

/* Chinche / Pushpin metálico 3D */
.cuenca-gallery-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset -2px -2px 4px rgba(0, 0, 0, 0.3),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6);
}

.cuenca-gallery-pin-gold {
  background: radial-gradient(circle at 35% 35%, #FFF0C2, #C99738 60%, #875F15 100%);
}

.cuenca-gallery-pin-red {
  background: radial-gradient(circle at 35% 35%, #FFA394, #B83A24 60%, #6E1C0D 100%);
}

.cuenca-gallery-pin-bronze {
  background: radial-gradient(circle at 35% 35%, #D4B090, #7E5131 60%, #3B2110 100%);
}

/* Esquineros fotográficos de álbum */
.cuenca-gallery-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 5;
  border-color: var(--color-madera-dark, #382112);
  border-style: solid;
  opacity: 0.85;
}

.corner-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.corner-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

/* MARCO POLAROID / FOTOGRAFÍA IMPRESA */
.cuenca-gallery-photo-card {
  background: #FFFFFF;
  padding: 12px 12px 18px 12px;
  border-radius: 3px;
  box-shadow: 0 10px 25px rgba(56, 33, 18, 0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  outline: none;
  border: 1px solid rgba(220, 205, 185, 0.7);
  transition: box-shadow 0.35s ease;
}

.cuenca-gallery-photo-card:hover {
  box-shadow: 0 16px 36px rgba(56, 33, 18, 0.25);
}

.cuenca-gallery-photo-card:focus-visible {
  box-shadow: 0 0 0 3px var(--color-dorado, #C99738);
}

.cuenca-gallery-img-frame {
  position: relative;
  overflow: hidden;
  background: #E8E0D5;
  border-radius: 2px;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.cuenca-gallery-item-tall .cuenca-gallery-img-frame {
  aspect-ratio: 3 / 4;
}

.cuenca-gallery-item-wide .cuenca-gallery-img-frame {
  aspect-ratio: 16 / 9;
}

.cuenca-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cuenca-gallery-photo-card:hover .cuenca-gallery-img {
  transform: scale(1.06);
}

/* Badge distintivo sobre la foto */
.cuenca-gallery-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(56, 33, 18, 0.85);
  color: var(--color-dorado, #C99738);
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  border: 1px solid var(--color-dorado, #C99738);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

/* Capa hover */
.cuenca-gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(56, 33, 18, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cuenca-gallery-photo-card:hover .cuenca-gallery-hover-overlay {
  opacity: 1;
}

.cuenca-gallery-zoom-icon {
  background: var(--color-teja, #B83A24);
  color: #FFF;
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--color-dorado, #C99738);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.cuenca-gallery-photo-card:hover .cuenca-gallery-zoom-icon {
  transform: translateY(0);
}

/* PIE DE FOTO / LEYENDA */
.cuenca-gallery-caption {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cuenca-gallery-caption-title {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 1.05rem;
  color: var(--color-madera-dark, #382112);
  margin: 0;
  line-height: 1.25;
}

.cuenca-gallery-caption-sub {
  font-size: 0.84rem;
  color: var(--color-texto-muted, #6B625B);
  line-height: 1.4;
  margin: 0;
}

.cuenca-gallery-category-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-teja, #B83A24);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ESTADO SIN RESULTADOS */
.cuenca-gallery-no-results {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #FFF;
  border-radius: 8px;
  border: 1px dashed rgba(217, 195, 165, 0.8);
  margin-top: 2rem;
}

.cuenca-gallery-no-results i {
  font-size: 2.5rem;
  color: var(--color-dorado, #C99738);
  margin-bottom: 1rem;
}

.cuenca-gallery-no-results h3 {
  font-family: var(--font-serif, 'Cinzel', serif);
  color: var(--color-madera-dark, #382112);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cuenca-gallery-no-results p {
  color: var(--color-texto-muted, #6B625B);
  font-size: 0.95rem;
}

/* 5. VISOR DE IMÁGENES / LIGHTBOX */
.cuenca-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cuenca-gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.cuenca-gallery-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 12, 6, 0.92);
  backdrop-filter: blur(8px);
}

.cuenca-gallery-lightbox-modal {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 8px;
  border: 2px solid var(--color-dorado, #C99738);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cuenca-gallery-lightbox.active .cuenca-gallery-lightbox-modal {
  transform: scale(1);
}

/* Botón Cerrar */
.cuenca-gallery-lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(56, 33, 18, 0.85);
  color: #FFF;
  border: 1px solid var(--color-dorado, #C99738);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.cuenca-gallery-lightbox-close:hover {
  background: var(--color-teja, #B83A24);
  transform: rotate(90deg);
}

/* Botones de Navegación */
.cuenca-gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(56, 33, 18, 0.85);
  color: var(--color-dorado, #C99738);
  border: 1px solid var(--color-dorado, #C99738);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.cuenca-gallery-lightbox-nav:hover {
  background: var(--color-teja, #B83A24);
  color: #FFF;
  transform: translateY(-50%) scale(1.1);
}

.cuenca-gallery-lightbox-prev {
  left: 15px;
}

.cuenca-gallery-lightbox-next {
  right: 15px;
}

/* Contenido Principal del Lightbox */
.cuenca-gallery-lightbox-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  height: 100%;
  max-height: 85vh;
  overflow: hidden;
}

.cuenca-gallery-lightbox-figure {
  position: relative;
  background: #1A120B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
}

.cuenca-gallery-lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cuenca-gallery-lightbox-img.loaded {
  opacity: 1;
}

/* Indicador de carga */
.cuenca-gallery-lightbox-loader {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-dorado, #C99738);
  font-size: 1rem;
}

.cuenca-gallery-lightbox-loader i {
  font-size: 2rem;
}

/* Ficha Descriptiva */
.cuenca-gallery-lightbox-info {
  padding: 2.2rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lightbox-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.lightbox-category-badge {
  background: rgba(184, 58, 36, 0.1);
  color: var(--color-teja, #B83A24);
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  border: 1px solid rgba(184, 58, 36, 0.25);
  text-transform: uppercase;
}

.lightbox-counter {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-texto-muted, #6B625B);
  font-weight: bold;
}

.lightbox-title {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 1.65rem;
  color: var(--color-madera-dark, #382112);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.lightbox-subtitle {
  font-size: 0.95rem;
  color: var(--color-dorado, #C99738);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.lightbox-desc-box {
  background: var(--color-adobe-light, #F4EBE1);
  border-left: 3px solid var(--color-teja, #B83A24);
  padding: 1rem 1.2rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.lightbox-desc {
  font-size: 0.93rem;
  color: var(--color-texto, #2D2723);
  line-height: 1.65;
  margin: 0;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(217, 195, 165, 0.6);
  padding-top: 1.2rem;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.lightbox-location-tag {
  font-size: 0.85rem;
  color: var(--color-texto-muted, #6B625B);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lightbox-location-tag i {
  color: var(--color-teja, #B83A24);
}

.lightbox-btn-hotel {
  background: var(--color-madera, #5C3A21);
  color: #FFF !important;
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-dorado, #C99738);
  transition: all 0.25s ease;
}

.lightbox-btn-hotel:hover {
  background: var(--color-teja, #B83A24);
  transform: translateY(-1px);
}

/* 6. ADAPTACIÓN RESPONSIVE */
@media (max-width: 1080px) {
  .cuenca-gallery-top-controls {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cuenca-gallery-signpost-widget {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .cuenca-gallery-item-large,
  .cuenca-gallery-item-wide {
    grid-column: span 6;
  }

  .cuenca-gallery-item-medium,
  .cuenca-gallery-item-tall {
    grid-column: span 6;
  }

  .cuenca-gallery-lightbox-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .cuenca-gallery-lightbox-figure {
    min-height: 300px;
    max-height: 45vh;
  }
}

@media (max-width: 768px) {
  .cuenca-gallery-section {
    padding: 4.5rem 0;
  }

  .cuenca-gallery-title {
    font-size: 2.1rem;
  }

  .cuenca-gallery-wall-wrapper {
    padding: 1.5rem 1rem;
  }

  .cuenca-gallery-mosaic {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .cuenca-gallery-item-large,
  .cuenca-gallery-item-wide,
  .cuenca-gallery-item-medium,
  .cuenca-gallery-item-tall {
    grid-column: span 1;
  }

  .cuenca-gallery-notebook-pin {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }

  .cuenca-gallery-stamp-unesco {
    transform: rotate(0deg);
  }

  .notebook-tape {
    display: none;
  }

  .cuenca-gallery-filters {
    justify-content: center;
  }

  .cuenca-gallery-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .cuenca-gallery-lightbox-prev {
    left: 8px;
  }

  .cuenca-gallery-lightbox-next {
    right: 8px;
  }

  .cuenca-gallery-lightbox-info {
    padding: 1.4rem;
  }

  .lightbox-title {
    font-size: 1.35rem;
  }
}
