/* ==========================================================================
   EL RINCÓN DE LA MUSA - HOJA DE ESTILOS LIGHT THEME
   Estética de Galería de Arte: Fondo Azul Agua Marina y Letras Color Borgoña
   ========================================================================== */

/* --- Variables y Paleta de Colores --- */
:root {
  /* Borgoña (Burgundy) */
  --burgundy: hsl(340, 70%, 20%);
  --burgundy-dark: hsl(340, 80%, 12%);
  --burgundy-deep: hsl(340, 85%, 8%);
  --burgundy-glow: hsl(340, 60%, 28%);
  
  /* Azul Mar / Agua Marina (Sea Blue / Aquamarine) */
  --seablue: hsl(175, 75%, 26%);
  --seablue-dark: hsl(180, 80%, 18%);
  --seablue-glow: hsl(175, 80%, 35%);
  --seablue-light: hsl(175, 45%, 88%);
  
  /* Rosa Palo (Pale Pink - de Acento) */
  --palepink: hsl(350, 45%, 88%);
  --palepink-dark: hsl(350, 30%, 78%);
  --palepink-light: hsl(350, 50%, 96%);
  --palepink-pale: hsl(350, 55%, 98%);
  
  /* Sistema de Colores */
  --bg-primary: hsl(165, 55%, 34%); /* Flat solid greenish aquamarine */
  --bg-secondary: rgba(255, 255, 255, 0.75);
  --text-primary: var(--burgundy-dark);
  --text-secondary: hsl(340, 35%, 24%);
  --text-muted: hsl(340, 20%, 42%);
  
  --border-color: rgba(128, 0, 32, 0.16);
  --border-hover: rgba(128, 0, 32, 0.36);
  --bg-card: rgba(255, 255, 255, 0.8);
  
  /* Tipografías Altamente Estilizadas */
  --font-serif: 'Italiana', serif;
  --font-sans: 'Cormorant Garamond', Georgia, serif;
  --font-sans-clean: 'Quicksand', 'Outfit', sans-serif;
  
  /* Sombras Borgoña Suaves */
  --shadow-sm: 0 4px 12px rgba(128, 0, 32, 0.04);
  --shadow-md: 0 8px 32px rgba(128, 0, 32, 0.08);
  --shadow-lg: 0 12px 48px rgba(128, 0, 32, 0.16);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* --- Reseteo y Estilos Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-image 0.4s ease;
}

/* Glowing background decorative artifacts */
.bg-glow {
  display: none; /* Hide glow elements for a flat solid background */
}
.bg-glow-burgundy {
  background-color: var(--palepink);
  top: 10%;
  right: -10%;
}
.bg-glow-blue {
  background-color: var(--seablue-light);
  bottom: -10%;
  left: -10%;
}

/* --- Barras de Desplazamiento --- */
.scrollbar-custom::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scrollbar-custom::-webkit-scrollbar-track {
  background: rgba(128, 0, 32, 0.05);
  border-radius: var(--radius-sm);
}
.scrollbar-custom::-webkit-scrollbar-thumb {
  background: var(--burgundy-glow);
  border-radius: var(--radius-sm);
}
.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background: var(--seablue-glow);
}

/* --- Layout y Contenedor Principal --- */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
}

/* --- Glassmorphism Base --- */
.glass {
  background: rgba(255, 254, 254, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-burgundy {
  background-color: var(--burgundy);
  color: var(--palepink-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.15);
}
.btn-burgundy:hover {
  background-color: var(--burgundy-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(128, 0, 32, 0.25);
}
.btn-outline {
  background-color: rgba(128, 0, 32, 0.03);
  color: var(--burgundy);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background-color: rgba(128, 0, 32, 0.08);
  border-color: var(--border-hover);
  color: var(--burgundy-dark);
}
.btn-delete {
  color: #c92a2a;
}
.btn-delete:hover {
  background-color: rgba(201, 42, 42, 0.1);
  border-color: rgba(201, 42, 42, 0.3);
  color: #a61e1e;
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* --- HEADER --- */
.app-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.header-logo-img,
.woman-bust-img,
.header-logo-icon,
.woman-bust-icon {
  height: 145px;
  width: 145px;
  max-width: 145px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(128, 0, 32, 0.2));
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.logo-container:hover .header-logo-img,
.logo-container:hover .woman-bust-img,
.logo-container:hover .header-logo-icon,
.logo-container:hover .woman-bust-icon {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(128, 0, 32, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

.musa-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--burgundy-dark);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.musa-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--seablue);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Audio Widget */
.audio-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
}
.audio-btn {
  background: none;
  border: none;
  color: var(--burgundy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.audio-btn:hover {
  color: var(--seablue);
  transform: scale(1.1);
}
.music-icon {
  width: 18px;
  height: 18px;
}
.music-icon.playing {
  animation: pulseRotate 3s infinite linear;
  color: var(--seablue);
}
.audio-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 0;
  overflow: hidden;
  transition: var(--transition);
}
.audio-widget:hover .audio-controls {
  width: 100px;
  margin-left: 0.25rem;
}
.audio-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
#audioVolumeSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  accent-color: var(--seablue);
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* --- MENÚ DE TABS NAVEGACIÓN --- */
.app-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.nav-tab {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-tab:hover {
  background: rgba(128, 0, 32, 0.05);
  color: var(--burgundy);
}
.nav-tab.active {
  background-color: var(--burgundy);
  color: var(--palepink-light);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(128, 0, 32, 0.15);
}

/* --- TAB VIEWS --- */
.tab-view {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}
.tab-view.active {
  display: flex;
}

.catalog-section {
  padding: 2rem;
  border-radius: var(--radius-md);
}
.section-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- HERO SECTION / CAROUSEL --- */
.hero-section {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(251, 241, 242, 0.95) 0%, rgba(251, 241, 242, 0.4) 60%, rgba(251, 241, 242, 0.1) 100%);
  z-index: 1;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 12s ease;
}
.hero-slide.active .hero-img {
  transform: scale(1.06);
}
.hero-caption {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--palepink-light);
  background-color: var(--burgundy);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--burgundy-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- TOOLBAR: BÚSQUEDA Y FILTROS --- */
.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.search-bar-wrap {
  position: relative;
  flex: 1;
  max-width: 600px;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}
#artSearchInput {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 2.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans-clean);
  font-size: 0.95rem;
  transition: var(--transition);
}
#artSearchInput:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 10px rgba(128, 0, 32, 0.1);
  background: rgba(255, 255, 255, 0.95);
}
.clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.clear-btn:hover {
  color: var(--burgundy);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#btnToggleFavorites .heart-icon {
  transition: var(--transition);
}
#btnToggleFavorites[data-active="true"] {
  background-color: rgba(128, 0, 32, 0.08);
  border-color: var(--burgundy);
  color: var(--burgundy-dark);
}
#btnToggleFavorites[data-active="true"] .heart-icon {
  fill: var(--burgundy);
  color: var(--burgundy);
  transform: scale(1.1);
}

/* Filtros */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(128, 0, 32, 0.06);
  padding-top: 0.75rem;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.filter-group-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--seablue);
  min-width: 70px;
}
.folders-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.folders-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.breadcrumb-item {
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--burgundy-dark);
}
.breadcrumb-item:hover {
  color: var(--seablue);
  text-decoration: underline;
}
.breadcrumb-item.clickable {
  font-weight: 600;
}
.breadcrumb-separator {
  color: var(--text-muted);
  font-weight: normal;
  padding: 0 0.15rem;
}
.folder-actions {
  display: flex;
  gap: 0.5rem;
}
.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.folder-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.folder-card:hover {
  transform: translateY(-4px);
  border-color: var(--burgundy);
  box-shadow: var(--shadow-md), 0 0 10px rgba(128, 0, 32, 0.05);
  background: #ffffff;
}
.folder-card.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--palepink-light);
}
.folder-card.active .folder-icon {
  color: var(--palepink-light);
}
.folder-card.active .folder-count {
  color: rgba(255, 255, 255, 0.7);
}
.folder-card.active .folder-details {
  background: var(--burgundy);
  border-top-color: rgba(255,255,255,0.15);
}
.folder-card.active .folder-no-photo {
  background: rgba(255,255,255,0.1);
}
.btn-delete-folder {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255,255,255,0.92);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  z-index: 10;
  width: 26px;
  height: 26px;
  box-shadow: var(--shadow-sm);
}
.folder-card:hover .btn-delete-folder {
  opacity: 1;
}
.btn-delete-folder:hover {
  color: #c92a2a;
  background: white;
}
.folder-card.active .btn-delete-folder {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}
.folder-card.active .btn-delete-folder:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

.btn-rename-folder {
  position: absolute;
  top: 0.5rem;
  left: 2.3rem;
  background: rgba(255,255,255,0.92);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  z-index: 10;
  width: 26px;
  height: 26px;
  box-shadow: var(--shadow-sm);
}
.folder-card:hover .btn-rename-folder {
  opacity: 1;
}
.btn-rename-folder:hover {
  color: var(--burgundy);
  background: white;
}

.art-card-move-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 5;
  opacity: 0;
}
.art-card:hover .art-card-move-btn {
  opacity: 1;
}
.art-card-move-btn:hover {
  background: var(--burgundy);
  color: white;
  transform: scale(1.1);
}

.move-folder-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(128, 0, 32, 0.03);
  border: 1px solid var(--border-color);
  color: var(--burgundy-dark);
  font-family: var(--font-sans-clean);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
  width: 100%;
}
.move-folder-opt:hover {
  background: var(--burgundy);
  color: var(--palepink-light);
  border-color: var(--burgundy);
  transform: translateX(3px);
}
.btn-add-to-folder {
  position: absolute;
  bottom: 2.85rem;
  right: 0.4rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  z-index: 10;
  width: 26px;
  height: 26px;
  box-shadow: var(--shadow-sm);
}
.folder-card:hover .btn-add-to-folder {
  opacity: 1;
}
.btn-add-to-folder:hover {
  color: var(--seablue);
  background: white;
  border-color: var(--seablue);
}
.folder-card.active .btn-add-to-folder {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.folder-card.active .btn-add-to-folder:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

.btn-reorder-folder-prev,
.btn-reorder-folder-next {
  position: absolute;
  bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 50%;
  z-index: 10;
  width: 24px;
  height: 24px;
  box-shadow: var(--shadow-sm);
}

.btn-reorder-folder-prev {
  left: 0.4rem;
}

.btn-reorder-folder-next {
  left: 2.1rem;
}

.folder-card:hover .btn-reorder-folder-prev,
.folder-card:hover .btn-reorder-folder-next {
  opacity: 1;
}

.btn-reorder-folder-prev:hover,
.btn-reorder-folder-next:hover {
  color: var(--burgundy);
  background: white;
  border-color: var(--burgundy);
  transform: scale(1.1);
}

/* Card Placeholder para añadir obras */
.art-card-placeholder {
  border: 2px dashed rgba(128, 0, 32, 0.35);
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--burgundy-dark);
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
  min-height: 420px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  user-select: none;
  cursor: pointer;
}
.art-card-placeholder:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--burgundy);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.placeholder-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--burgundy);
  opacity: 0.6;
  transition: var(--transition-fast);
}
.art-card-placeholder:hover .placeholder-icon {
  opacity: 1;
  transform: scale(1.1);
}
.placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}
.placeholder-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.folder-icon {
  color: var(--burgundy);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin: 1.75rem auto 0.5rem;
}
.folder-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.25;
  padding: 0.6rem 0.85rem 0.75rem;
  border-top: 1px solid var(--border-color);
  background: rgba(255,255,255,0.6);
}
.folder-name {
  font-family: var(--font-sans-clean);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.filter-pill {
  background: rgba(128, 0, 32, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-pill:hover {
  background: rgba(128, 0, 32, 0.06);
  border-color: var(--border-hover);
  color: var(--burgundy-dark);
}
.filter-pill.active {
  background-color: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--palepink-light);
}
.filter-pill.active-blue {
  background-color: var(--seablue);
  border-color: var(--seablue);
  color: var(--palepink-light);
}

/* --- GRID DE OBRAS DE ARTE --- */
.art-grid-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.grid-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.grid-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

/* Tarjeta de Obra */
.art-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  height: 420px;
  cursor: pointer;
}
.art-card:hover {
  transform: translateY(-8px);
  border-color: var(--burgundy-glow);
  box-shadow: var(--shadow-md), 0 0 15px rgba(128, 0, 32, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

/* Imagen de la tarjeta */
.art-card-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-card:hover .art-card-img {
  transform: scale(1.05);
}
.art-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(251, 241, 242, 0.2) 0%, transparent 45%, rgba(251, 241, 242, 0.7) 100%);
}

/* Botón Favorito en la Tarjeta */
.art-card-fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.art-card-fav-btn:hover {
  background: var(--burgundy);
  color: var(--palepink-light);
  transform: scale(1.1);
}
.art-card-fav-btn.is-fav {
  color: var(--palepink-light);
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.art-card-fav-btn.is-fav svg {
  fill: var(--palepink-light);
}

/* Insignias en la imagen */
.art-card-pills {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 5;
}
.art-card-pill {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 105, 148, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--palepink-light);
}
.art-card-pill.pill-burgundy {
  background: rgba(128, 0, 32, 0.85);
}
.art-card-pill.pill-yellow,
.art-card-pill.pill-gold {
  background: rgba(218, 165, 32, 0.92);
  color: #1a1505;
  border-color: rgba(0, 0, 0, 0.15);
}
.art-card-pill.pill-blue {
  background: rgba(0, 105, 148, 0.85);
}
.art-card-pill.pill-green {
  background: rgba(34, 117, 76, 0.88);
}

/* Información de la Tarjeta */
.art-card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.art-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.art-card-artist {
  font-size: 0.85rem;
  color: var(--seablue);
  font-weight: 600;
}
.art-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.2rem;
}
.art-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.art-card-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.art-card-view-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.art-card:hover .art-card-view-link {
  color: var(--seablue);
  transform: translateX(3px);
}

/* --- GRID DE CATEGORÍAS (AUTORES, ESTILOS...) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.category-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  min-height: 180px;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--burgundy-glow);
  box-shadow: var(--shadow-md), 0 0 10px rgba(128, 0, 32, 0.08);
  background: rgba(255, 255, 255, 0.95);
}
.category-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.category-card-icon {
  color: var(--seablue);
  width: 24px;
  height: 24px;
}
.category-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  line-height: 1.2;
}
.category-card-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.category-card-count {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--seablue);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

/* Estados de Carga */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}
.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(128, 0, 32, 0.1);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1.25rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- MODALES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(128, 0, 32, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content {
  background-color: var(--palepink-pale);
  background-image: linear-gradient(160deg, var(--palepink-pale) 0%, hsl(350, 40%, 93%) 100%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 95vh;
  width: 100%;
  color: var(--text-primary);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.detail-modal {
  max-width: 95vw;
  width: 1250px;
  max-height: 90vh;
}
.form-modal {
  max-width: 95vw;
  width: 1350px;
  height: 92vh;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.modal-title-wrap {
  display: flex;
  flex-direction: column;
}
.modal-art-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--burgundy-dark);
  line-height: 1.2;
}
.modal-art-artist {
  font-size: 0.95rem;
  color: var(--seablue);
  font-weight: 600;
}
.btn-close-modal {
  background: rgba(128, 0, 32, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-close-modal:hover {
  background: var(--burgundy);
  color: var(--palepink-light);
  transform: scale(1.05);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.footer-actions-left {
  display: flex;
  gap: 0.75rem;
}

/* --- VISOR INTERACTIVO (DETALLES) --- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.viewer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.art-interactive-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(128, 0, 32, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}
.image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(128, 0, 32, 0.15);
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
}
.modal-art-image {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  object-fit: contain;
}

.viewer-instruction {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

/* PUNTOS CALIENTES / HOTSPOTS */
.hotspot-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--palepink-light);
  border: 2px solid var(--burgundy);
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(128, 0, 32, 0.4);
  transition: var(--transition-fast);
  z-index: 100;
}
.hotspot-pin::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px dashed var(--seablue);
  opacity: 0.7;
  animation: pinPulse 2s infinite ease-out;
}
.hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.3);
  background-color: var(--seablue);
  box-shadow: 0 0 15px var(--seablue);
}
.hotspot-pin.active {
  background-color: var(--seablue);
  transform: translate(-50%, -50%) scale(1.2);
  border-color: var(--palepink-light);
  box-shadow: 0 0 20px var(--seablue-glow);
}

@keyframes pinPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hotspot-badge-demo {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--palepink-light);
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  margin: 0 3px;
}

/* Panel del hotspot seleccionado */
.hotspot-analysis-panel {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(128, 0, 32, 0.04);
  border-left: 4px solid var(--burgundy-glow);
  animation: fadeIn 0.25s ease-out;
}
.hotspot-analysis-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.hotspot-analysis-panel h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--burgundy);
}
.btn-close-panel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}
.btn-close-panel:hover {
  color: var(--burgundy);
}
#hotspotAnalysisText {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Columna Derecha: Información */
.info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}
.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Tabla de Ficha Técnica */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table td {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.specs-table tr td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 35%;
}
.specs-table tr td:last-child {
  color: var(--text-primary);
}

/* Paleta de Colores */
.color-palette-bar {
  display: flex;
  height: 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(128, 0, 32, 0.15);
  margin-bottom: 0.75rem;
}
.color-palette-block {
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.color-palette-block:hover {
  transform: scaleY(1.15);
  z-index: 5;
}
.palette-colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.palette-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-family: monospace;
  background: rgba(128, 0, 32, 0.03);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
}
.palette-color-chip:hover {
  background: rgba(128, 0, 32, 0.08);
  color: var(--burgundy-dark);
}
.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.art-long-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Comentarios y Anotaciones */
.comments-card {
  display: flex;
  flex-direction: column;
}
.comments-list-wrap {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-right: 0.25rem;
}
.comment-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(128, 0, 32, 0.05);
}
.comment-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--palepink-light);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  text-transform: uppercase;
}
.comment-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--burgundy);
}
.comment-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.comment-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.no-comments {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(128, 0, 32, 0.05);
  padding-top: 1rem;
}
.textarea-btn-wrap {
  display: flex;
  gap: 0.5rem;
}
.textarea-btn-wrap textarea {
  flex: 1;
}

/* --- FORMULARIO / ATELIER DE LA MUSA --- */
#artworkForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.form-modal-body {
  padding: 1.5rem 2.25rem;
  overflow-y: auto;
  flex: 1;
}

/* Estilos de Toggles para subida de archivos */
.image-source-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.image-source-toggle .btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--seablue);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}
.image-source-toggle .btn:hover {
  background: rgba(128, 0, 32, 0.05);
}
.image-source-toggle .btn.active {
  background: var(--burgundy);
  color: white;
  border-color: var(--burgundy);
}
.form-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-section-data, .form-section-hotspots {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--seablue);
  letter-spacing: 0.5px;
}
.form-input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  color: var(--burgundy-dark);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans-clean);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--burgundy);
  background: #ffffff;
  box-shadow: 0 0 8px rgba(128, 0, 32, 0.1);
}
select.form-input option {
  background-color: var(--palepink-light);
  color: var(--burgundy-dark);
}
.input-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Configurador de Paleta */
.palette-setup-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.color-picker-tool {
  background: none;
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.form-palette-preview {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
}
.form-palette-chip {
  width: 2rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(128, 0, 32, 0.2);
  cursor: pointer;
  position: relative;
}
.form-palette-chip:hover::after {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  text-shadow: 0 0 3px black;
  font-size: 1rem;
}

/* Layout de Hotspots en formulario */
.hotspot-intro-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.hotspots-creator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.canvas-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.canvas-container {
  position: relative;
  max-width: 100%;
  cursor: crosshair;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(128, 0, 32, 0.1);
}
.canvas-img {
  max-width: 100%;
  max-height: 260px;
  display: block;
  object-fit: contain;
}
.canvas-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}
.temp-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--seablue);
  border: 2px solid white;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 105, 148, 0.5);
  pointer-events: none;
}
.form-saved-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--burgundy);
  border: 1.5px solid var(--palepink-light);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  pointer-events: none;
}
.coords-display {
  font-family: monospace;
  font-weight: bold;
  color: var(--burgundy);
  background: rgba(128, 0, 32, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.hotspot-inputs-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hotspot-inputs-card h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--burgundy);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

/* Lista de Hotspots Agregados */
.added-hotspots-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(128, 0, 32, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
}
.empty-hotspots-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
}
.form-hotspot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.form-hotspot-item-text {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 0.5rem;
}
.btn-delete-hotspot {
  background: none;
  border: none;
  color: #c92a2a;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.btn-delete-hotspot:hover {
  color: #a61e1e;
  transform: scale(1.1);
}

/* --- FOOTER --- */
.app-footer {
  margin-top: auto;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}


/* --- DISEÑO RESPONSIVO (MEDIA QUERIES) --- */
@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hotspots-creator-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .hero-section {
    height: 240px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-actions {
    justify-content: flex-end;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .hotspots-creator-layout {
    grid-template-columns: 1fr;
  }
  .modal-content {
    max-height: 95vh;
  }
}

/* Nuevos Estilos para Galería y Otras Imágenes */
.gallery-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.gallery-strip-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  opacity: 0.65;
  box-shadow: var(--shadow-sm);
}
.gallery-strip-thumb:hover {
  opacity: 0.95;
}
.gallery-strip-thumb.active {
  border-color: var(--burgundy);
  opacity: 1;
  transform: scale(1.05);
}
.gallery-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.additional-images-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.25rem;
}
.additional-image-thumbnail {
  position: relative;
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.additional-image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(128, 0, 32, 0.85);
  border: none;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-weight: bold;
}
.btn-remove-thumb:hover {
  background: #c92a2a;
  transform: scale(1.1);
}

/* Carpeta con foto grande en la parte superior */
.folder-thumbnail-img {
  width: 100%;
  height: 130px;
  border-radius: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(240, 232, 228, 0.6);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}
.folder-no-photo {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(128,0,32,0.07) 0%, rgba(0,105,148,0.05) 100%);
}
.btn-edit-folder-photo {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  width: 28px;
  height: 28px;
}
.folder-card:hover .btn-edit-folder-photo {
  opacity: 1;
}
.btn-edit-folder-photo:hover {
  color: var(--seablue);
  background: white;
  border-color: var(--seablue);
  transform: scale(1.15);
}
/* Botón mover carpeta */
.btn-move-folder {
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  width: 28px;
  height: 28px;
}
.folder-card:hover .btn-move-folder {
  opacity: 1;
}
.btn-move-folder:hover {
  color: var(--burgundy);
  background: white;
  border-color: var(--burgundy);
  transform: scale(1.15);
}
/* Modal mover carpeta */
#moveFolderModal .modal-content {
  max-width: 420px;
  width: 90vw;
}
.move-folder-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.move-folder-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.7);
}
.move-folder-option:hover {
  background: rgba(128,0,32,0.06);
  border-color: var(--burgundy);
  color: var(--burgundy-dark);
}
.move-folder-option.root-option {
  font-style: italic;
  color: var(--text-muted);
}
/* Drag and drop folder state */
.folder-card.drag-over {
  border-color: var(--seablue) !important;
  background: rgba(0,105,148,0.08) !important;
  box-shadow: 0 0 0 2px rgba(0,105,148,0.3) !important;
}

/* Multi-folder checkbox selector en el formulario */
.folder-checkboxes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5);
  min-height: 48px;
}
.folder-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(255,255,255,0.8);
  color: var(--text-secondary);
  user-select: none;
}
.folder-checkbox-label:hover {
  border-color: var(--burgundy);
  color: var(--burgundy-dark);
  background: rgba(128,0,32,0.05);
}
.folder-checkbox-label input[type="checkbox"] {
  accent-color: var(--burgundy);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.folder-checkbox-label:has(input:checked) {
  background: rgba(128,0,32,0.1);
  border-color: var(--burgundy);
  color: var(--burgundy-dark);
  font-weight: 600;
}

/* Sección de carpetas en acordeón al fondo del formulario */
.form-folder-section {
  border-top: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 0.5rem;
}
.form-folder-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(128, 0, 32, 0.03);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans-clean);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy-dark);
  transition: background var(--transition-fast);
  text-align: left;
}
.form-folder-toggle:hover {
  background: rgba(128, 0, 32, 0.07);
}
.form-folder-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-folder-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}
.form-folder-toggle[aria-expanded="true"] .form-folder-chevron {
  transform: rotate(180deg);
}
.form-folder-badge {
  background: var(--burgundy);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
  line-height: 1.6;
}

/* Contenedor desplazable con barra vertical arriba y abajo */
.form-folder-body {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(128,0,32,0.06);
  background: rgba(255,255,255,0.75);
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--burgundy-accent) rgba(128, 0, 32, 0.05);
}

.form-folder-body::-webkit-scrollbar {
  width: 8px;
}
.form-folder-body::-webkit-scrollbar-track {
  background: rgba(128, 0, 32, 0.05);
  border-radius: 4px;
}
.form-folder-body::-webkit-scrollbar-thumb {
  background: var(--burgundy-accent);
  border-radius: 4px;
}
.form-folder-body::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy-dark);
}

.folder-group-wrapper {
  margin-bottom: 1rem;
}
.folder-group-wrapper:last-child {
  margin-bottom: 0;
}

.folder-checkbox-group-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--burgundy-dark);
  margin-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(128,0,32,0.15);
  padding-bottom: 0.25rem;
}

.folder-checkbox-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.folder-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(128,0,32,0.15);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.folder-checkbox-label:hover {
  background: rgba(128,0,32,0.06);
  border-color: var(--burgundy);
}






/* --- DRAG & DROP STYLES --- */
.folder-card.drag-hover {
  background: var(--seablue-light) !important;
  border-color: var(--seablue) !important;
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(0, 105, 148, 0.4);
}
.art-card.is-dragging {
  opacity: 0.4;
  transform: scale(0.95);
  border: 2px dashed var(--burgundy);
}

.art-card-edit-btn {
  position: absolute;
  top: 0.75rem;
  left: 3.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 5;
  opacity: 0;
}
.art-card:hover .art-card-edit-btn {
  opacity: 1;
}
.art-card-edit-btn:hover {
  background: var(--burgundy);
  color: white;
  transform: scale(1.1);
}

.art-card-delete-btn {
  position: absolute;
  top: 0.75rem;
  left: 5.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c92a2a;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 5;
  opacity: 0;
}
.art-card:hover .art-card-delete-btn {
  opacity: 1;
}
.art-card-delete-btn:hover {
  background: #c92a2a;
  color: white;
  transform: scale(1.1);
}

/* ==========================================================================
   ESTILOS DE AUTENTICACIÓN, PERFIL Y PANEL DE ADMINISTRADORA
   ========================================================================== */
.header-user-widget {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--burgundy);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-name-text {
  font-weight: 600;
  color: var(--burgundy-dark);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-admin {
  background: #7c2d12;
  color: #fef3c7;
  border: 1px solid #b45309;
}

.badge-approved {
  background: #14532d;
  color: #dcfce7;
  border: 1px solid #15803d;
}

.badge-pending {
  background: #713f12;
  color: #fef9c3;
  border: 1px solid #a16207;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.admin-user-card:hover {
  border-color: var(--burgundy);
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-name {
  font-weight: 600;
  color: var(--burgundy-dark);
  font-size: 0.9rem;
}

.admin-user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-user-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Ocultar sección de comentarios en fichas imprimibles */
@media print {
  #modalArtCommentsWrap,
  .comments-list,
  #modalAddCommentBox,
  .comment-item-card {
    display: none !important;
  }
}

