/* ===== IMPORTACIÓN DE FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #d72f89;
  --secondary-color: #f5aeb8;
  --accent-color: #fdc60a;
  --gradient-start: #d72f89;
  --gradient-end: #9d2148;
  --font-title: 'Roboto', sans-serif;
  --font-text: 'Cabin', sans-serif;
}

/* ===== ESTILOS PRINCIPALES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-text);
  background: white;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER FLOTANTE CON LOGO ===== */
.header-floating {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--secondary-color);
  width: 100%;
  transition: background 0.5s ease;
  min-height: 70px;
  flex-shrink: 0;
}

.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: 1rem;
  height: 100%;
}

.logo-image {
  height: 60px;
  width: auto;
  max-height: 80px;
  min-height: 35px;
  object-fit: contain;
  display: block;
}

.header-search {
  flex: 0 1 400px;
  min-width: 250px;
  transition: opacity 0.3s ease, visibility 0.3s ease, width 0.3s ease;
}

.header-search.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-family: var(--font-text);
  border: 2px solid var(--secondary-color);
  border-radius: 60px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.2s;
  color: #2b1d24;
}

.search-input:focus {
  border-color: var(--accent-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(253, 198, 10, 0.2);
}

.search-input::placeholder {
  color: var(--primary-color);
  opacity: 0.7;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-family: var(--font-title);
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  backdrop-filter: blur(4px);
}

.clear-search:hover {
  background: var(--accent-color);
  color: var(--gradient-end);
  transform: translateY(-50%) scale(1.1);
}

/* ===== MENÚ SUPERIOR CENTRAL ===== */
.main-menu {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 0 2rem;
}

.menu-item {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
  border-radius: 30px;
}

.menu-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
  color: white;
  font-weight: 700;
  background: rgba(253, 198, 10, 0.2);
}

.menu-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* ===== FILTRO DE CATEGORÍAS ===== */
.categories-header-bar {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 0.5rem 2rem;
  width: 100%;
  position: sticky;
  top: 70px;
  z-index: 9999;
  border-bottom: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 0;
  left: 0;
  right: 0;
  display: block;
}

.categories-header-bar[style*="display: none"] {
  display: none !important;
}

.categories-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.categories-bar-carousel-container {
  position: relative;
  max-width: 100%;
  padding: 0 35px;
  margin: 0 auto;
  width: 100%;
}

.categories-bar-carousel {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255,255,255,0.3);
  padding: 0.3rem 0;
}

.categories-bar-carousel::-webkit-scrollbar {
  height: 6px;
}

.categories-bar-carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.categories-bar-carousel::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.categories-bar-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  padding: 0.2rem 0;
}

.category-bar-chip {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  display: inline-block;
}

.category-bar-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: white;
}

.category-bar-chip.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--gradient-end);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(253, 198, 10, 0.3);
}

.category-bar-chip .count {
  background: rgba(0,0,0,0.2);
  border-radius: 30px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

.last-updated {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: #5d4a5b;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 900;
  border: 1px solid var(--secondary-color);
  white-space: nowrap;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  padding: 0 1rem;
}

/* ===== CARD INFORMATIVO DEL FESTIVAL ===== */
.festival-card {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 2rem 0;
  padding: 0;
  background: transparent;
  width: 100%;
  min-height: 500px;
  z-index: 2;
}

.festival-content {
  flex: 6;
  min-width: 0;
  padding: 0;
  max-width: 60%;
  overflow-y: auto;
  max-height: 600px;
}

.festival-content::-webkit-scrollbar {
  width: 6px;
}

.festival-content::-webkit-scrollbar-track {
  background: rgba(245, 174, 184, 0.2);
  border-radius: 10px;
}

.festival-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.festival-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: #2b1d24;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.festival-text {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-align: justify;
  padding: 0;
}

.festival-images-container {
  flex: 4;
  min-width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.festival-top-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.festival-top-image {
  width: 90%;
  height: auto;
  max-width: 90%;
  object-fit: contain;
  opacity: 0.9;
}

.festival-static-image-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.festival-static-image {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
}

.festival-download-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.festival-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--accent-color);
  color: var(--gradient-end);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  cursor: pointer;
  border: none;
}

.festival-download-button:hover {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== GRID DE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
  width: 100%;
}

.card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 25px -8px rgba(90, 45, 65, 0.12);
  transition: transform 0.2s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--secondary-color);
  cursor: pointer;
  width: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -8px rgba(215, 47, 137, 0.15);
}

.card-img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f2f0;
  position: relative;
  overflow: hidden;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-images {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f2f0;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: #f5f2f0;
  text-align: center;
  padding: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a3e4a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.image-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  z-index: 10;
}

.card-content {
  padding: 1.5rem 1.2rem 1.2rem;
  flex: 1;
}

.event-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2b1d24;
  margin-bottom: 0.8rem;
  word-break: break-word;
}

.categories-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}

.category-badge {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.9rem;
  border-radius: 40px;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
}

.category-badge[data-category="Académicas"] { background: #266cb4; border-color: #1a4d7a; color: white; }
.category-badge[data-category="Artes Escénicas"] { background: #8F4889; border-color: #6a3666; color: white; }
.category-badge[data-category="Artes Visuales"] { background: #73cae6; border-color: #4a9ab3; color: #2b1d24; }
.category-badge[data-category="Artes Plásticas"] { background: #b28e5c; border-color: #8b6b45; color: white; }
.category-badge[data-category="Música"] { background: #d72f89; border-color: #a12266; color: white; }
.category-badge[data-category="Literatura"] { background: #ac6d14; border-color: #7e500f; color: white; }
.category-badge[data-category="Deporte"] { background: #027a35; border-color: #015b28; color: white; }
.category-badge[data-category="Multidisciplina"] { background: #f5aeb8; border-color: #c48b93; color: #2b1d24; }
.category-badge[data-category="Fotografía"] { background: #8F4889; border-color: #6a3666; color: white; }
.category-badge[data-category="Cine"] { background: #266cb4; border-color: #1a4d7a; color: white; }
.category-badge[data-category="Teatro"] { background: #b28e5c; border-color: #8b6b45; color: white; }
.category-badge[data-category="Danza"] { background: #f5aeb8; border-color: #c48b93; color: #2b1d24; }
.category-badge[data-category="Pintura"] { background: #ac6d14; border-color: #7e500f; color: white; }
.category-badge[data-category="Urbana"] { background: #d72f89; border-color: #a12266; color: white; }
.category-badge[data-category="Clásica"] { background: #73cae6; border-color: #4a9ab3; color: #2b1d24; }
.category-badge[data-category="Popular"] { background: #027a35; border-color: #015b28; color: white; }

.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  margin: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--secondary-color);
  padding-bottom: 0.4rem;
}

.field-label {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--primary-color);
  text-transform: capitalize;
  font-size: 0.8rem;
}

.field-value {
  font-family: var(--font-text);
  color: #2f2128;
  word-break: break-word;
}

/* ===== CARRUSEL DE EVENTOS DESTACADOS ===== */
.visibles-section {
  width: 100%;
  margin: 2rem 0;
  padding: 0;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.visibles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1rem 0;
}

.visibles-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding-left: 1rem;
}

.visibles-title::before {
  content: '⭐';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.visibles-controls {
  display: flex;
  gap: 0.5rem;
}

.visibles-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--secondary-color);
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 20;
}

.visibles-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.visibles-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0 1.5rem;
}

.visibles-carousel {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--secondary-color);
  padding: 0.5rem 0;
}

.visibles-carousel::-webkit-scrollbar {
  height: 6px;
}

.visibles-carousel::-webkit-scrollbar-track {
  background: var(--secondary-color);
  border-radius: 10px;
}

.visibles-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.visibles-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0.5rem;
}

.visible-card {
  width: 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--secondary-color);
  flex-shrink: 0;
}

.visible-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

/* Corrección: Imágenes de cards destacadas */
.visible-image-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #f5f2f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visible-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: #f5f2f0;
}

.visible-card:hover .visible-image-container img {
  transform: scale(1.05);
}

.visible-multi-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.visible-content {
  padding: 1rem;
}

.visible-event-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2b1d24;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.visible-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.visible-category {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.visible-category:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.visible-lugar, .visible-fecha {
  font-family: var(--font-text);
  font-size: 0.75rem;
  color: #5a3e4a;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Carrusel interno para cards destacadas */
.destacado-card-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.destacado-card-images {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.destacado-card-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f2f0;
}

/* Corrección: Imágenes dentro del carrusel interno */
.destacado-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f5f2f0;
}

.destacado-card-prev,
.destacado-card-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a3e4a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 10;
}

.destacado-card-prev:hover,
.destacado-card-next:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.destacado-card-prev {
  left: 4px;
}

.destacado-card-next {
  right: 4px;
}

.destacado-card-indicators {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}

.destacado-card-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.destacado-card-indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.destacado-card-indicator:hover {
  background: var(--primary-color);
  opacity: 0.8;
}

.destacado-card-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2px 6px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-family: var(--font-text);
  z-index: 10;
}

/* ===== FOOTER ===== */
.footer {
  background: white;
  color: #2b1d24;
  width: 100%;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  margin-top: auto;
  padding: 3rem 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-info-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a3a40;
}

.footer-social-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.footer-social-icons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: white;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a3a40;
}

.footer-description-text {
  margin-bottom: 1rem;
  text-align: justify;
}

.footer-info-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.footer-link-bullet {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  transform: translateX(3px);
}

.footer-pleca {
  width: 100%;
  margin-top: 2rem;
}

.footer-pleca-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== UTILIDADES ===== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message, .empty-state, .no-results {
  text-align: center;
  padding: 2rem;
  background: #f5f2f0;
  border-radius: 24px;
  color: #5a3e4a;
  margin: 2rem 0;
  border: 1px solid var(--secondary-color);
}

.scroll-indicator {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(215, 47, 137, 0.3);
  transition: all 0.2s;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  font-size: 1.2rem;
}

.scroll-indicator.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-indicator:hover {
  transform: scale(1.1);
  background: var(--gradient-end);
}

.background-check {
  position: fixed;
  bottom: 70px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #027a35;
  opacity: 0.3;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1001;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media screen and (max-width: 768px) {
  .main-content {
    padding: 0 0.5rem;
  }

  .header-floating {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.3rem 0.5rem;
    min-height: auto;
    gap: 0.2rem;
  }
  
  .header-logo {
    width: auto;
    flex: 0 0 auto;
    margin-right: 0;
  }
  
  .logo-image {
    height: 30px;
  }
  
  .main-menu {
    width: auto;
    flex: 1 1 auto;
    margin: 0;
    gap: 0.2rem;
    justify-content: flex-end;
  }
  
  .menu-item {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
  
  .header-search {
    width: 100%;
    min-width: auto;
    order: 3;
    margin-top: 0.2rem;
  }
  
  .search-input {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .clear-search {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    right: 8px;
  }
  
  .categories-header-bar {
    top: 0;
    padding: 0.2rem 0.3rem;
  }
  
  .categories-bar-carousel-container {
    padding: 0 22px;
  }
  
  .category-bar-chip {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
  
  .carousel-arrow {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  
  .festival-card {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
  }
  
  .festival-content {
    max-width: 100%;
    max-height: none;
    padding: 0;
  }
  
  .festival-title {
    font-size: 1.5rem;
  }
  
  .festival-text {
    font-size: 0.9rem;
    padding: 0;
  }
  
  .festival-images-container {
    min-width: 100%;
  }
  
  .festival-static-image {
    max-height: 30vh;
  }
  
  .festival-download-button {
    width: 100%;
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
    margin: 0.8rem 0;
    padding: 0;
  }
  
  .card {
    width: 100% !important;
    margin: 0;
  }
  
  .card-content {
    padding: 0.8rem;
  }
  
  .event-title {
    font-size: 1rem;
  }
  
  .visibles-section {
    margin: 1rem 0;
  }
  
  .visibles-header {
    padding: 0.5rem 0.5rem 0;
  }
  
  .visibles-title {
    font-size: 1.2rem;
  }
  
  .visibles-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .visible-card {
    width: 200px;
  }
  
  .visible-image-container {
    height: 120px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem 2rem;
  }
  
  .footer-column {
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    height: 50px;
  }
  
  .footer-info-title {
    text-align: center;
    border-left: none;
    border-bottom: 2px solid var(--accent-color);
    padding-left: 0;
    padding-bottom: 0.5rem;
  }
  
  .footer-link-item {
    justify-content: center;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
  
  .last-updated {
    bottom: 10px;
    left: 10px;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .header-floating {
    padding: 0.2rem 0.3rem;
  }
  
  .logo-image {
    height: 25px;
  }
  
  .menu-item {
    padding: 0.15rem 0.3rem;
    font-size: 0.7rem;
  }
  
  .search-input {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .clear-search {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
  
  .category-bar-chip {
    padding: 0.15rem 0.5rem;
    font-size: 0.6rem;
  }
  
  .festival-title {
    font-size: 1.3rem;
  }
  
  .festival-text {
    font-size: 0.8rem;
  }
  
  .visible-card {
    width: 160px;
  }
  
  .visible-image-container {
    height: 100px;
  }
  
  .visible-event-title {
    font-size: 0.75rem;
  }
  
  .card-content {
    padding: 0.6rem;
  }
  
  .event-title {
    font-size: 0.9rem;
  }
  
  .category-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
  
  .field-row {
    font-size: 0.75rem;
  }
  
  .field-label {
    font-size: 0.65rem;
  }
  
  .scroll-indicator {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    bottom: 15px;
    right: 10px;
  }
}