/* main.css - Paleta actualizada para GraffRoute */
:root {
  /* Colores principales del logo */
  --primary-black: #1a1a1a;
  --accent-cyan: #00ffdd;
  --accent-cyan-dark: #00d4b8;
  --accent-cyan-light: #66fff0;

  /* Colores de apoyo */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --border-gray: #e9ecef;
  --dark-gray: #343a40;

  /* Colores semánticos */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Efectos */
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-cyan: 0 4px 20px rgba(0, 255, 221, 0.2);
  --transition: all 0.3s ease;

  /* Gradientes */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-black),
    var(--dark-gray)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-black);
  line-height: 1.6;
  background-color: var(--light-gray);
}

/* Main Content ajustado para header */
.main-content {
  margin-top: 0;
  min-height: calc(100vh - 68px);
  padding-top: 45px;
}

/* Ajuste específico para index.php que necesita margen superior */
body.index-page .main-content {
  margin-top: 58px;
  padding-top: 0;
}

/* Ajuste específico para map.php que necesita margen superior */
body.map-page .main-content {
  margin-top: 18px;
  padding-top: 0;
}

/* Ajustar padding-top para móviles */
@media (max-width: 767px) {
  .main-content {
    padding-top: 52px;
    min-height: calc(100vh - 52px);
  }

  body.index-page .main-content {
    margin-top: 28px;
    padding-top: 0;
  }

  body.map-page .main-content {
    margin-top: 12px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding-top: 52px;
    min-height: calc(100vh - 52px);
  }

  body.index-page .main-content {
    margin-top: 24px;
    padding-top: 0;
  }

  body.map-page .main-content {
    margin-top: 10px;
    padding-top: 0;
  }
}

/* Estilos específicos para RED SOCIAL */
.feed-container {
  max-width: 1200px;
  margin: 0 auto;
}

.social-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.social-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.1;
  transform: skewX(-15deg);
}

.community-stats {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-cyan);
}

.post-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mural-post-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mural-post-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
  border-color: var(--accent-cyan);
}

.post-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-meta {
  flex: 1;
}

.post-author {
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 0.25rem;
}

.post-time {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

.post-image {
  position: relative;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(26, 26, 26, 0.8),
    rgba(0, 255, 221, 0.6)
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
}

.post-image:hover .post-overlay {
  opacity: 1;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 0.75rem;
}

.post-description {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sidebar {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
  border-left: 3px solid var(--accent-cyan);
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-gray);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
}

.trending-item:hover {
  background: rgba(0, 255, 221, 0.05);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-color: var(--accent-cyan);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: var(--transition);
}

.trending-item:hover .trending-thumb {
  border-color: var(--accent-cyan);
}

.quick-actions {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-cyan);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary-black);
  transition: var(--transition);
  margin-bottom: 0.75rem;
  background: var(--white);
}

.quick-action-btn:hover {
  background: rgba(0, 255, 221, 0.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-dark);
  text-decoration: none;
  transform: translateX(5px);
}

.quick-action-btn:last-child {
  margin-bottom: 0;
}

.filter-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 25px;
  text-decoration: none;
  color: var(--primary-black);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--accent-cyan);
  color: var(--primary-black);
  border-color: var(--accent-cyan);
  text-decoration: none;
  box-shadow: var(--shadow-cyan);
}

.create-post-prompt {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 2px dashed var(--border-gray);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.create-post-prompt:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 221, 0.05);
  box-shadow: var(--shadow-cyan);
}

/* Floating Action Button - Estilo map.php */
.btn-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 1001;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, #00ffdd 0%, #2196f3 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  color: white;
  transition: all 0.3s ease;
  animation: floatIn 0.5s ease-out;
  cursor: pointer;
}

.btn-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(0, 255, 221, 0.4);
  border-color: rgba(255, 255, 255, 1);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Asegurar que btn-dark no sobrescriba el estilo del botón flotante */
.btn-floating.btn-dark {
  background: linear-gradient(135deg, #00ffdd 0%, #2196f3 100%) !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  color: white !important;
}

/* Ocultar .fab en index.php (usar .btn-floating en su lugar) */
.index-page .fab {
  display: none !important;
}

/* Floating Action Button Legacy (mantener para compatibilidad con otras páginas) */
.fab {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  border: none;
  box-shadow: var(--shadow-cyan);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* En móviles, mantener posición original */
@media (max-width: 768px) {
  .fab {
    right: -10px;
  }

  .btn-floating {
    bottom: 70px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

.fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(0, 255, 221, 0.4);
}

.pulse {
  animation: pulse 2s infinite;
}

/* Actualizar los estilos CSS existentes - agregar al final del script */

.gallery-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-info-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  z-index: 10;
}

.gallery-info-btn:hover {
  background: rgba(0, 123, 255, 1);
  transform: scale(1.1);
}

.gallery-main-container {
  position: relative;
  background: black;
}

.gallery-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.route-avatar {
  background: var(--primary-blue) !important;
  color: white;
}

.content-type-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 0.5rem;
}

.route-image {
  position: relative;
  overflow: hidden;
}

.route-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.route-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, var(--light-gray), var(--border-gray));
}

.route-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
}

.route-info-overlay {
  display: flex;
  gap: 1rem;
  color: white;
  font-size: 0.875rem;
}

.route-info-overlay span {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.route-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.route-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.route-stat {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.route-difficulty {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
}

.difficulty-easy {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border-color: var(--success);
}

.difficulty-medium {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
  border-color: var(--warning);
}

.difficulty-hard {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border-color: var(--danger);
}

/* Mejoras en avatares y nombres clicables */
.user-avatar:hover,
.post-author:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.post-author {
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.post-author:hover {
  background: rgba(0, 123, 255, 0.1);
}

/* Preview de rutas con fotos - Diseño mejorado y flexible */
.route-murals-preview {
  position: relative;
  min-height: 300px;
  max-height: 450px; /* Limitar altura máxima en desktop */
  display: grid;
  gap: 8px;
  overflow: hidden;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.05),
    rgba(0, 255, 221, 0.02)
  );
}

/* Por defecto: grid 2x2 para 4 fotos */
.route-murals-preview {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px; /* Alturas fijas en lugar de fr */
  min-height: 400px;
  max-height: 450px;
}

/* 1 foto: ocupa todo el ancho */
.route-murals-preview.single-photo {
  grid-template-columns: 1fr;
  grid-template-rows: 400px; /* Altura fija */
  min-height: 400px;
  max-height: 450px;
}

/* 2 fotos: dos columnas iguales */
.route-murals-preview.two-photos {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 320px; /* Altura fija */
  min-height: 320px;
  max-height: 380px;
}

/* 3 fotos: una grande arriba, dos pequeñas abajo */
.route-murals-preview.three-photos {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 140px; /* Alturas fijas: grande arriba, pequeñas abajo */
  min-height: 420px;
  max-height: 450px;
}

.route-murals-preview.three-photos .mural-preview:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 1;
}

.route-murals-preview.three-photos .mural-preview:nth-child(2),
.route-murals-preview.three-photos .mural-preview:nth-child(3) {
  grid-row: 2;
}

/* 4 fotos: grid 2x2 (por defecto) */
.route-murals-preview.four-photos {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px; /* Alturas fijas */
  min-height: 400px;
  max-height: 450px;
}

.mural-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 100%; /* Respetar altura del grid */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--light-gray);
}

.mural-preview:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 255, 221, 0.3);
  z-index: 10;
}

.mural-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mural-placeholder {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 2rem;
}

.murals-count-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95rem;
  z-index: 20;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.murals-count-overlay::before {
  content: "+";
  font-size: 1.1rem;
}

.route-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 20px 15px 15px;
  z-index: 15;
}

.route-overlay-info .route-info-overlay {
  display: flex;
  gap: 12px;
  color: white;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.route-overlay-info .route-info-overlay span {
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-overlay-info .route-info-overlay i {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Ajustes para que se vea bien en el feed */
.route-post .route-preview {
  position: relative;
  background: #f8f9fa;
  min-height: 200px;
  max-height: 500px; /* Limitar altura máxima del contenedor en desktop */
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

/* En desktop, asegurar que no se extienda demasiado */
@media (min-width: 992px) {
  .route-post .route-preview {
    max-height: 500px;
  }

  .route-murals-preview {
    max-height: 450px;
  }
}

/* ============================================
   MODAL DE MURAL - Vista rápida con foto completa
   ============================================ */
.mural-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.mural-modal-overlay.active {
  opacity: 1;
}

.mural-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mural-modal-overlay.active .mural-modal-content {
  transform: scale(1);
}

.mural-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mural-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.mural-modal-close i {
  font-size: 1.2rem;
}

.mural-modal-image {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mural-modal-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.mural-modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  max-height: calc(95vh - 60vh);
}

.mural-modal-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mural-modal-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mural-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0;
  line-height: 1.3;
}

.mural-modal-artist {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--medium-gray);
  font-size: 1rem;
}

.mural-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--accent-cyan);
  flex-shrink: 0;
}

.mural-modal-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.mural-modal-location i {
  color: var(--accent-cyan);
}

.mural-modal-description {
  color: var(--primary-black);
  font-size: 1rem;
  line-height: 1.6;
  padding: 1rem;
  background: rgba(0, 255, 221, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--accent-cyan);
}

.mural-modal-description p {
  margin: 0;
}

.mural-modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
}

.mural-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  background: var(--white);
  color: var(--primary-black);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.mural-action-btn:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
}

.mural-action-btn.liked {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #e74c3c;
}

.mural-action-btn.liked:hover {
  background: rgba(231, 76, 60, 0.2);
}

.mural-action-btn.saved {
  background: rgba(0, 255, 221, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-dark);
}

.mural-action-btn.saved:hover {
  background: rgba(0, 255, 221, 0.2);
}

.mural-action-btn i {
  font-size: 1.1rem;
}

.mural-action-btn.view-details-btn {
  margin-left: auto;
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
}

.mural-action-btn.view-details-btn:hover {
  background: var(--accent-cyan-dark);
  color: var(--white);
}

.action-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.mural-action-btn.liked .action-count {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.mural-modal-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
  flex-wrap: wrap;
}

.mural-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.mural-stat-item i {
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* Responsive para modal */
@media (max-width: 768px) {
  .mural-modal-overlay {
    padding: 0;
  }

  .mural-modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .mural-modal-image {
    max-height: 50vh;
  }

  .mural-modal-image img {
    max-height: 50vh;
  }

  .mural-modal-info {
    padding: 1.5rem;
    max-height: calc(100vh - 50vh);
  }

  .mural-modal-title {
    font-size: 1.5rem;
  }

  .mural-modal-actions {
    flex-direction: column;
  }

  .mural-action-btn {
    width: 100%;
    justify-content: center;
  }

  .mural-action-btn.view-details-btn {
    margin-left: 0;
  }

  .mural-modal-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.route-post .route-preview:hover .mural-preview {
  transform: translateY(-2px);
}

.route-post {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.route-preview {
  pointer-events: none; /* Evita conflictos con el clic principal */
}

/* Fila principal de acciones */
.action-buttons-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem 0.75rem;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-gray);
}

.action-btn {
  background: none;
  border: none;
  color: var(--medium-gray);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  min-width: fit-content;
}

.action-btn:hover {
  color: var(--accent-cyan-dark);
  background: rgba(0, 255, 221, 0.1);
  transform: translateY(-1px);
}

.action-btn i {
  font-size: 1.1rem;
  transition: var(--transition);
}

.action-btn.liked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 4px 16px rgba(0, 255, 221, 0.3);
}

.action-btn.saved {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 4px 16px rgba(0, 255, 221, 0.3);
}

.action-btn i {
  font-size: 1.1rem;
}

.action-text {
  font-weight: 500;
  white-space: nowrap;
}

.action-count {
  background: var(--accent-cyan);
  color: var(--primary-black);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.action-btn.view-details {
  margin-left: auto;
  background: var(--accent-cyan);
  color: var(--primary-black);
  font-weight: 600;
}

.action-btn.view-details:hover {
  background: var(--accent-cyan-dark);
  color: var(--white);
  transform: translateY(-1px) scale(1.02);
}

/* Estadísticas compactas */
.post-stats-compact {
  padding: 0.5rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.stats-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--medium-gray);
}

.stat-compact {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.stat-compact i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.stat-compact.likes i {
  color: #e74c3c;
}

.stat-compact.location {
  color: var(--accent-cyan-dark);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-compact.location i {
  color: var(--accent-cyan-dark);
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-buttons-row {
    padding: 0.75rem 1rem 0.5rem;
    gap: 0.5rem;
  }

  .action-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
  }

  .action-text {
    display: none;
  }

  .action-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .post-stats-compact {
    padding: 0.4rem 1rem;
  }

  .stats-inline {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .stat-compact.location {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .stats-inline {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .stat-compact.location {
    order: -1;
    flex-basis: 100%;
    margin-bottom: 0.25rem;
    max-width: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .route-murals-preview {
    min-height: 250px;
    gap: 6px;
    padding: 6px;
  }

  /* En móvil: siempre grid 2 columnas para mejor visualización */
  .route-murals-preview.single-photo,
  .route-murals-preview.two-photos,
  .route-murals-preview.three-photos,
  .route-murals-preview.four-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 250px;
  }

  .route-murals-preview.single-photo {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .route-murals-preview.three-photos .mural-preview:nth-child(1),
  .route-murals-preview.three-photos .mural-preview:nth-child(2),
  .route-murals-preview.three-photos .mural-preview:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .mural-preview {
    min-height: 120px;
    margin: 0;
  }

  .mural-preview:nth-child(1),
  .mural-preview:nth-child(2),
  .mural-preview:nth-child(3),
  .mural-preview:nth-child(4) {
    left: auto;
    position: relative;
  }

  .murals-count-overlay {
    top: 8px;
    right: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .route-overlay-info {
    padding: 15px 12px 12px;
  }

  .route-overlay-info .route-info-overlay {
    font-size: 0.8rem;
    gap: 8px;
  }

  .route-overlay-info .route-info-overlay span {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .route-overlay-info .route-info-overlay {
    flex-direction: column;
    gap: 5px;
  }
}

/* Responsive para rutas */
@media (max-width: 991px) {
  .route-info-overlay {
    flex-direction: column;
    gap: 0.5rem;
  }

  .route-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .route-preview {
    min-height: 150px;
  }

  .route-image img,
  .route-placeholder {
    height: 150px;
  }

  .content-type-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Animaciones de carga */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--light-gray) 25%,
    var(--border-gray) 50%,
    var(--light-gray) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive para tablets */
@media (max-width: 991px) {
  .route-info-overlay {
    flex-direction: column;
    gap: 0.5rem;
  }

  .route-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Responsive para móviles */
@media (max-width: 576px) {
  .route-preview {
    min-height: 150px;
  }

  .route-image img,
  .route-placeholder {
    height: 150px;
  }

  .content-type-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Mejorar responsividad */
@media (max-width: 768px) {
  .gallery-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .gallery-info-btn {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1rem;
  }

  .gallery-header {
    padding: 0.75rem 1rem;
  }

  .gallery-header h5 {
    font-size: 1rem;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-cyan);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 255, 221, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-cyan);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-image img {
    height: 300px;
  }

  .social-header {
    padding: 2rem 0;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .post-header {
    padding: 1rem;
  }

  .post-content {
    padding: 1rem;
  }

  .post-actions {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .sidebar {
    margin-bottom: 1rem;
  }

  .quick-actions {
    padding: 1rem;
  }

  .action-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .action-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Animaciones específicas para red social */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Efectos especiales con cyan */
.glow-cyan {
  box-shadow: 0 0 10px rgba(0, 255, 221, 0.5);
}

.border-cyan {
  border-color: var(--accent-cyan) !important;
}

.bg-cyan-light {
  background: rgba(0, 255, 221, 0.1);
}

/* Estilos para Artistas Destacados */
.featured-artists {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-cyan);
}

.artist-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.artist-card:hover {
  background: rgba(0, 255, 221, 0.05);
  border-color: var(--accent-cyan);
  transform: translateX(5px);
}

.artist-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

.artist-card:hover .artist-avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 255, 221, 0.3);
}

/* Utilities actualizadas */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--medium-gray);
}
.fw-bold {
  font-weight: 600;
}
.fw-semibold {
  font-weight: 500;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.me-1 {
  margin-right: 0.25rem;
}
.me-2 {
  margin-right: 0.5rem;
}
.me-3 {
  margin-right: 1rem;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}
.flex-1 {
  flex: 1;
}
.text-primary {
  color: var(--accent-cyan-dark);
}
.text-warning {
  color: var(--warning);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-info {
  color: var(--info);
}
.bg-white {
  background-color: var(--white);
}
.bg-light {
  background-color: var(--light-gray);
}
.bg-opacity-20 {
  background-color: rgba(255, 255, 255, 0.2);
}
.rounded {
  border-radius: 8px;
}
.p-3 {
  padding: 1rem;
}
.p-4 {
  padding: 1.5rem;
}
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.small {
  font-size: 0.875rem;
}

/* Estilos para la sección de comentarios */
.comments-section {
  border-top: 1px solid var(--border-gray);
  padding: 1.5rem 0;
  margin: 1rem 0;
}

.comments-header {
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.comments-list {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 255, 221, 0.02);
  border: 1px solid rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
}

.comment-item:hover {
  background: rgba(0, 255, 221, 0.05);
  border-color: rgba(0, 255, 221, 0.2);
  transform: translateX(3px);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 255, 221, 0.2);
}

.comment-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.4);
}

.comment-content {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-black);
  margin-bottom: 0.5rem;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--primary-black);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
}

.comment-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.comments-footer {
  border-top: 1px solid var(--border-gray);
  padding: 1rem 0.5rem;
  text-align: center;
  margin-top: 1rem;
}

.comments-footer a {
  color: var(--accent-cyan) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
}

.comments-footer a:hover {
  text-decoration: none !important;
  background: rgba(0, 255, 221, 0.2);
  transform: translateY(-2px);
}

/* Estilos para agregar comentarios */
.add-comment-section {
  border-top: 1px solid var(--border-gray);
  padding: 1.5rem 0;
}

.comment-input-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0 0.5rem;
}

.comment-input-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0, 255, 221, 0.2);
}

.comment-input-wrapper {
  flex: 1;
}

.comment-input {
  border: 2px solid var(--border-gray);
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  background: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 221, 0.25),
    0 4px 12px rgba(0, 255, 221, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.comment-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Mejoras en las estadísticas del post */
.post-stats {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-gray);
  background: rgba(0, 255, 221, 0.02);
  border-radius: 8px;
  padding: 1rem;
}

.post-stats small {
  font-size: 0.85rem;
  font-weight: 500;
}

.post-stats i {
  color: var(--accent-cyan);
  margin-right: 0.25rem;
}

/* Mejoras en los botones de acción */
.action-buttons {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  /* si quieres puedes añadir más */
  align-items: center;
}

/* Mejoras generales en las tarjetas de posts */
.post-card {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-header {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 249, 250, 0.9)
  );
}

.post-content {
  padding: 1.5rem;
  background: var(--white);
}

.post-actions {
  background: var(--white);
  border-top: 1px solid var(--border-gray);
}

/* Mejoras en el input de comentarios */
.comment-input-container {
  background: rgba(0, 255, 221, 0.02);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 221, 0.1);
}

/* Espaciado adicional para elementos internos */
.post-title {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-black);
}

.post-description {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.post-location {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

/* Mejoras en los filtros */
.filter-tabs {
  margin: 2rem 0;
  padding: 0.5rem;
  background: rgba(0, 255, 221, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 221, 0.1);
}

.filter-tab {
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.2);
}

.filter-tab.active {
  background: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
}

/* Mejoras en las estadísticas */
.stat-item {
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.05),
    rgba(0, 255, 221, 0.1)
  );
  border: 1px solid rgba(0, 255, 221, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 221, 0.2);
}

/* Mejoras en los artistas destacados */
.artist-card {
  margin: 0.75rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.02);
  border: 1px solid rgba(255, 193, 7, 0.1);
  transition: all 0.3s ease;
}

.artist-card:hover {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.3);
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

/* Mejoras en los tags */
.tag {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.1),
    rgba(0, 255, 221, 0.15)
  );
  border: 1px solid rgba(0, 255, 221, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 221, 0.1);
}

.tag:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 221, 0.3);
}

/* Mejoras en los botones de acción rápida */
.quick-action-btn {
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.05),
    rgba(0, 255, 221, 0.1)
  );
  border: 1px solid rgba(0, 255, 221, 0.2);
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 221, 0.2);
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.1),
    rgba(0, 255, 221, 0.15)
  );
}

/* Mejoras en las tarjetas de trending */
.trending-item {
  margin: 0.75rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.trending-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

/* Mejoras en la actividad en vivo */
.activity-item {
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(0, 255, 221, 0.08);
  border-color: rgba(0, 255, 221, 0.3);
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0, 255, 221, 0.15);
}

/* Mejoras en el botón de crear post */
.create-post-prompt {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.05),
    rgba(0, 255, 221, 0.1)
  );
  border: 2px dashed rgba(0, 255, 221, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.create-post-prompt:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.1),
    rgba(0, 255, 221, 0.15)
  );
  border-color: rgba(0, 255, 221, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 221, 0.2);
}

/* Mejoras en el botón flotante */
.fab {
  margin: 2rem;
  box-shadow: 0 6px 20px rgba(0, 255, 221, 0.3);
  transition: all 0.3s ease;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 255, 221, 0.4);
}

/* Mejoras en los sidebars */
.sidebar {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-gray);
}

/* Mejoras en las estadísticas de la comunidad */
.community-stats {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 249, 250, 0.9)
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-gray);
}

/* Mejoras en los artistas destacados */
.featured-artists {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.05),
    rgba(255, 193, 7, 0.1)
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Mejoras en la nube de tags */
.tag-cloud {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.05),
    rgba(0, 255, 221, 0.1)
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 255, 221, 0.2);
}

/* Mejoras en la actividad en vivo */
.live-activity {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 249, 250, 0.9)
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-gray);
}

/* Mejoras en las acciones rápidas */
.quick-actions {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 221, 0.05),
    rgba(0, 255, 221, 0.1)
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 255, 221, 0.2);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .post-card {
    margin-bottom: 1.5rem;
  }

  .post-header,
  .post-content,
  .post-actions {
    padding: 1rem;
  }

  .action-buttons {
    gap: 1rem;
    justify-content: center;
  }

  .action-btn {
    min-width: 100px;
    padding: 0.6rem 1.2rem;
  }

  .comments-section {
    padding: 1rem 0;
    margin: 0.75rem 0;
  }

  .comment-item {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .comment-input-container {
    padding: 0.75rem;
  }

  .sidebar {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
}

/* Layout más compacto para el contenido del post */
.post-content {
  padding: 0.5rem 1rem;
}

.post-title {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-black);
  line-height: 1.2;
}

.post-description {
  margin-bottom: 0.4rem;
  line-height: 1.3;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-location {
  margin-bottom: 0.4rem;
  padding: 0.2rem 0;
  font-size: 0.8rem;
}

/* Acciones más compactas (feed principal) */
.post-actions {
  padding: 0.4rem 0.75rem;
}

.action-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.2rem 0;
  margin: 0.1rem 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 2px solid var(--border-gray);
  border-radius: 18px;
  background: var(--white);
  color: var(--primary-black);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  min-width: 90px;
  justify-content: center;
}

.action-btn:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
}

.action-btn.liked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
}

.action-btn.saved {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
}

.action-btn i {
  font-size: 0.9rem;
}

/* Estadísticas más compactas y alineadas con los botones */
.post-stats {
  margin: 0;
  padding: 0;
  border-top: none;
  background: transparent;
  border-radius: 0;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
}

.post-stats small {
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-stats i {
  color: var(--accent-cyan);
  margin-right: 0.2rem;
}

/* Comentarios más compactos */
.comments-section {
  border-top: 1px solid var(--border-gray);
  padding: 0.5rem 0;
  margin: 0.3rem 0;
}

.comments-header {
  margin-bottom: 0.5rem;
  padding: 0 0.3rem;
  font-size: 0.8rem;
}

.comments-list {
  margin-bottom: 0.75rem;
  padding: 0 0.3rem;
}

.comment-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem;
  border-radius: 8px;
  background: rgba(0, 255, 221, 0.02);
  border: 1px solid rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
}

.comment-item:hover {
  background: rgba(0, 255, 221, 0.05);
  border-color: rgba(0, 255, 221, 0.2);
  transform: translateX(2px);
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 255, 221, 0.2);
}

.comment-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 255, 221, 0.4);
}

.comment-content {
  flex: 1;
  min-width: 0;
  padding: 0.1rem 0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--primary-black);
  margin-bottom: 0.2rem;
}

.comment-text {
  font-size: 0.75rem;
  color: var(--primary-black);
  line-height: 1.3;
  margin-bottom: 0.2rem;
  word-wrap: break-word;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.4rem;
  border-radius: 5px;
  border-left: 2px solid var(--accent-cyan);
}

.comment-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}

.comments-footer {
  border-top: 1px solid var(--border-gray);
  padding: 0.5rem 0.3rem;
  text-align: center;
  margin-top: 0.5rem;
}

.comments-footer a {
  color: var(--accent-cyan) !important;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 16px;
  background: rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
  font-size: 0.75rem;
}

.comments-footer a:hover {
  text-decoration: none !important;
  background: rgba(0, 255, 221, 0.2);
  transform: translateY(-1px);
}

/* Input de comentarios más compacto */
.add-comment-section {
  border-top: 1px solid var(--border-gray);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.comment-input-container {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem;
  background: rgba(0, 255, 221, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 221, 0.1);
}

.comment-input-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 2px 6px rgba(0, 255, 221, 0.2);
}

.comment-input-wrapper {
  flex: 1;
}

.comment-input {
  border: 2px solid var(--border-gray);
  border-radius: 18px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  background: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.comment-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 221, 0.25),
    0 3px 10px rgba(0, 255, 221, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.comment-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Nuevos estilos sin afectar los existentes */
.hero-enhanced {
  background: linear-gradient(
    135deg,
    var(--primary-black) 0%,
    var(--dark-gray) 50%,
    var(--primary-black) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.stats-counter {
  background: rgba(0, 255, 221, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  margin-top: 2rem;
}

.live-activity {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 249, 250, 0.9)
  );
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-cyan);
  backdrop-filter: blur(10px);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(0, 255, 221, 0.05);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-black);
  font-weight: bold;
  font-size: 0.8rem;
}

.featured-artists {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warning);
}

.artist-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.artist-card:hover {
  background: rgba(255, 193, 7, 0.1);
  transform: translateX(5px);
}

.artist-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-black);
}

.mural-spotlight {
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
  position: relative;
  overflow: hidden;
}

.spotlight-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
}

.community-stats {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--success);
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 255, 221, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 255, 221, 0.1);
  transform: translateY(-2px);
}

.stat-item i {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-black);
  margin-bottom: 0.25rem;
}

.user-activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-activity-item:hover {
  background: rgba(0, 255, 221, 0.05);
}

.user-activity-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--primary-black);
}

.user-activity-info {
  flex: 1;
}

.tag-cloud {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  background: rgba(0, 255, 221, 0.1);
  color: var(--accent-cyan-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin: 0.25rem;
  border: 1px solid var(--accent-cyan);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background: var(--accent-cyan);
  color: var(--primary-black);
  transform: scale(1.05);
}

.tag-count {
  opacity: 0.7;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  animation: floatAround 20s linear infinite;
  opacity: 0.03;
}

@keyframes floatAround {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

.pulse-notification {
  position: relative;
}

.pulse-notification::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .filters-wrapper {
    margin-top: 1.5rem;
  }

  .stats-counter {
    margin-top: 1rem;
  }

  .hero-particles {
    display: none;
  }
}

/* Estilos para estados activos de botones */
.action-btn.liked {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.action-btn.saved {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.action-btn.following {
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}

.action-btn.liked:hover,
.action-btn.saved:hover,
.action-btn.following:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mejorar la visualización de contadores */
.action-btn small {
  opacity: 0.8;
  margin-left: 0.25rem;
}

/* ============================================
 MEJORAS EN LA SECCIÓN DE POSTS - SOLO DESKTOP
 ============================================ */

/* Stories Section - Estilo Facebook - ESTILOS BASE (aplican en todas las pantallas) */
.stories-section-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-gray);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
}

.stories-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block !important;
  visibility: visible !important;
}

.stories-scroll {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  width: 100%;
  max-width: 100%;
  visibility: visible !important;
}

.stories-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.story-card {
  flex: 0 0 auto;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.story-card:hover {
  transform: translateY(-2px);
}

.story-image-wrapper {
  position: relative;
  width: 110px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
  border: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Asegurar que historias vistas no tengan contorno verde */
.story-card:not(.unviewed) .story-image-wrapper {
  border-color: transparent !important;
}

.story-preview-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: relative;
  border: none !important;
  outline: none !important;
}

/* Quitar contorno verde de imágenes en historias vistas */
.story-card:not(.unviewed) .story-preview-image {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.story-image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
  position: relative;
}

.story-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.2),
    transparent
  );
  z-index: 1;
}

/* Overlay adicional para mejorar legibilidad del texto */
.story-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.3),
    transparent
  );
  z-index: 1;
  pointer-events: none;
}

/* Overlay para mejorar legibilidad del texto sobre la imagen */
.story-preview-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

/* Avatar overlay - Avatar en la parte superior izquierda (estilo Facebook) - ESTILOS BASE */
.story-avatar-top-left {
  position: absolute !important;
  top: 8px;
  left: 8px;
  z-index: 3 !important;
  display: block !important;
  visibility: visible !important;
}

.story-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  overflow: hidden;
  background: var(--light-gray);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  visibility: visible !important;
}

.story-card:hover .story-avatar-small {
  transform: scale(1.05);
}

/* Solo avatares de historias no vistas tienen contorno verde */
.story-card:not(.unviewed) .story-avatar-small {
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-width: 2px;
}

.story-avatar-small.unviewed {
  border-color: var(--accent-cyan);
  border-width: 2px;
}

.story-avatar-small img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.avatar-fallback-small {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
  color: var(--white);
  font-weight: 600;
  font-size: 0.7rem;
  visibility: visible !important;
}

/* Caption overlay - Caption dentro de la imagen en la parte inferior (estilo Facebook) - ESTILOS BASE */
.story-caption-overlay {
  position: absolute !important;
  bottom: 32px;
  left: 0;
  right: 0;
  padding: 0 10px 4px;
  z-index: 2 !important;
  max-height: 50px;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
}

.story-caption-text {
  color: var(--white) !important;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.5);
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  visibility: visible !important;
}

/* Nombre del usuario en la parte inferior (estilo Facebook) - ESTILOS BASE */
.story-name-overlay {
  position: absolute !important;
  bottom: 8px;
  left: 0;
  right: 0;
  padding: 0 10px;
  z-index: 2 !important;
  display: block !important;
  visibility: visible !important;
}

.story-name-text {
  color: var(--white) !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block !important;
  visibility: visible !important;
}

/* Estilo especial para el texto "Crear historia" */
.story-card.create-story-card .story-name-text {
  text-align: center;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.3px;
}

.story-card.create-story-card:hover .story-name-text {
  text-shadow: 0 1px 4px rgba(0, 255, 221, 0.5), 0 0 6px rgba(0, 255, 221, 0.3);
}

/* Estilos para el botón de crear historia - ESTILOS BASE (aplican en todas las pantallas) */
.story-card.create-story-card .story-image-wrapper {
  border: 3px solid var(--border-gray);
  cursor: pointer;
}

.story-card.create-story-card:hover .story-image-wrapper {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
}

/* Overlay oscuro para la card de crear historia */
.create-story-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2 !important;
  transition: background 0.3s ease;
  border-radius: 12px;
  display: block !important;
  visibility: visible !important;
}

.story-card.create-story-card:hover .create-story-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* Icono grande de crear historia centrado */
.create-story-icon-large {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3 !important;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
}

.create-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 255, 221, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid var(--white);
  font-weight: 600;
  visibility: visible !important;
}

.story-card.create-story-card:hover .create-icon-circle {
  background: var(--accent-cyan-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 255, 221, 0.5), 0 0 20px rgba(0, 255, 221, 0.3);
}

.story-card.create-story-card:active .create-icon-circle {
  transform: scale(0.95);
}

/* Aplicar mejoras solo en pantallas grandes (992px+) */
@media (min-width: 992px) {
  /* Buscador de rutas */
  .filters-wrapper {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .route-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .route-search .search-routes-input {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 255, 221, 0.25);
    background: linear-gradient(
      135deg,
      rgba(0, 255, 221, 0.03),
      rgba(0, 255, 221, 0.08)
    );
    transition: all 0.3s ease;
  }

  .route-search .search-routes-input:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 255, 221, 0.15);
    background: linear-gradient(
      135deg,
      rgba(0, 255, 221, 0.05),
      rgba(0, 255, 221, 0.1)
    );
  }

  .route-search .input-group-text {
    background: transparent;
    border: none;
    color: var(--accent-cyan-dark);
    padding-left: 1.25rem;
    padding-right: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .route-search .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0.75rem 1.25rem 0.75rem 0.5rem;
    font-size: 0.95rem;
    height: 100%;
    line-height: 1.5;
  }

  .route-search .search-routes-input {
    height: auto;
    min-height: 44px;
  }

  .route-search .search-routes-input .input-group-text,
  .route-search .search-routes-input .form-control {
    min-height: 44px;
  }

  .route-search .form-control:focus {
    outline: none;
    box-shadow: none;
  }

  .route-search .form-control::placeholder {
    color: var(--medium-gray);
  }

  /* Contador de resultados */
  .search-results-counter {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 221, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--accent-cyan-dark);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 255, 221, 0.2);
  }

  .search-results-counter i {
    margin-right: 0.5rem;
    color: var(--accent-cyan);
  }

  .stories-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .story-card {
    flex: 0 0 auto;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .story-card:hover {
    transform: translateY(-2px);
  }

  /* Estos estilos están ahora en los estilos base fuera de este bloque */

  /* Story Image Wrapper - Contenedor principal con la imagen de la historia */
  .story-image-wrapper {
    position: relative;
    width: 110px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }

  /* Las cards normales no tienen margen inferior */
  .story-card:not(.create-story-card) .story-image-wrapper {
    margin-bottom: 0;
  }

  /* Solo historias no vistas tienen contorno verde */
  .story-card:not(.unviewed) .story-image-wrapper {
    border-color: transparent !important;
    border-width: 3px;
  }

  .story-card:not(.unviewed) .story-image-wrapper::before {
    display: none !important;
  }

  /* Quitar cualquier contorno verde de la imagen en historias vistas */
  .story-card:not(.unviewed) .story-preview-image {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .story-card.unviewed .story-image-wrapper {
    border-color: var(--accent-cyan);
    border-width: 3px;
  }

  .story-card.unviewed .story-image-wrapper::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
  }

  .story-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
  }

  .story-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    position: relative;
  }

  .story-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.2),
      transparent
    );
    z-index: 1;
  }

  /* Overlay adicional para mejorar legibilidad del texto */
  .story-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.3),
      transparent
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Overlay para mejorar legibilidad del texto sobre la imagen */
  .story-preview-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
  }

  /* Estos estilos están ahora en los estilos base fuera de este bloque */

  /* Legacy support para create-story-card */
  .story-avatar-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
  }

  .story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    overflow: hidden;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-black);
    position: relative;
  }

  .story-avatar.create-avatar {
    border-color: var(--border-gray);
  }

  .story-card.create-story-card:hover .story-avatar.create-avatar {
    border-color: var(--accent-cyan);
  }

  .story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story-avatar.unviewed::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }

  .create-story-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    border: 3px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .story-card.create-story-card:hover .create-story-icon {
    background: var(--accent-cyan-dark);
    transform: scale(1.1);
  }

  /* Story info - Solo para la card de crear historia */
  .story-info {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .story-name {
    font-size: 0.75rem;
    color: var(--primary-black);
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .story-card.create-story-card .story-name {
    color: var(--medium-gray);
    font-weight: 600;
  }

  .story-card.create-story-card:hover .story-name {
    color: var(--accent-cyan-dark);
  }

  /* Las cards normales no muestran el nombre debajo */
  .story-card:not(.create-story-card) .story-info {
    display: none;
  }

  .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
  }

  /* Responsive para historias */
  @media (max-width: 768px) {
    .stories-section-wrapper {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100% !important;
      max-width: 100% !important;
      padding: 0.75rem !important;
      margin-bottom: 1rem !important;
      background: var(--white) !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
      border: 1px solid var(--border-gray) !important;
      overflow: visible !important;
    }

    .stories-container {
      display: block !important;
      visibility: visible !important;
      width: 100% !important;
      max-width: 100% !important;
      overflow: visible !important;
      position: relative !important;
    }

    .stories-scroll {
      display: flex !important;
      visibility: visible !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      align-items: flex-start !important;
      gap: 0.5rem !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      width: 100% !important;
      max-width: 100% !important;
      padding: 0.25rem 0 !important;
      scroll-behavior: smooth !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }

    .stories-scroll::-webkit-scrollbar {
      display: none !important;
    }

    .story-card {
      width: 90px !important;
      min-width: 90px !important;
      max-width: 90px !important;
      flex: 0 0 auto !important;
      display: flex !important;
      visibility: visible !important;
    }

    .story-image-wrapper {
      width: 90px !important;
      height: 150px !important;
      min-width: 90px !important;
      max-width: 90px !important;
      display: block !important;
      visibility: visible !important;
      overflow: hidden !important;
    }

    .story-preview-image {
      object-fit: cover !important;
      object-position: center !important;
      width: 100% !important;
      height: 100% !important;
      display: block !important;
    }

    /* Mejorar botón de crear historia en móviles */
    .story-card.create-story-card {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    .story-card.create-story-card .story-image-wrapper {
      border-width: 2.5px !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-card.create-story-card:hover .story-image-wrapper {
      border-color: var(--accent-cyan) !important;
      box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3) !important;
    }

    .create-story-overlay {
      background: rgba(0, 0, 0, 0.35) !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-card.create-story-card:hover .create-story-overlay {
      background: rgba(0, 0, 0, 0.25) !important;
    }

    .create-story-icon-large {
      display: block !important;
      visibility: visible !important;
    }

    .create-icon-circle {
      width: 40px !important;
      height: 40px !important;
      font-size: 1rem !important;
      border-width: 2.5px !important;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
      display: flex !important;
      visibility: visible !important;
    }

    .story-card.create-story-card:hover .create-icon-circle {
      transform: scale(1.05) !important;
      box-shadow: 0 4px 14px rgba(0, 255, 221, 0.4) !important;
    }

    .story-card.create-story-card:active .create-icon-circle {
      transform: scale(0.98) !important;
    }

    .story-name-text {
      font-weight: 600 !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    }

    .story-avatar {
      width: 70px !important;
      height: 70px !important;
    }

    /* Avatar en la parte superior izquierda - móviles */
    .story-avatar-top-left {
      position: absolute !important;
      top: 6px !important;
      left: 6px !important;
      z-index: 3 !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-avatar-small {
      width: 28px !important;
      height: 28px !important;
      border-width: 2px !important;
      display: flex !important;
      visibility: visible !important;
    }

    .story-avatar-small img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block !important;
    }

    .avatar-fallback-small {
      visibility: visible !important;
      font-size: 0.6rem !important;
    }

    /* Caption overlay - móviles */
    .story-caption-overlay {
      position: absolute !important;
      bottom: 28px !important;
      left: 0 !important;
      right: 0 !important;
      padding: 0 8px 3px !important;
      z-index: 2 !important;
      max-height: 40px !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-caption-text {
      font-size: 0.65rem !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      visibility: visible !important;
    }

    /* Nombre del usuario - móviles */
    .story-name-overlay {
      position: absolute !important;
      bottom: 6px !important;
      left: 0 !important;
      right: 0 !important;
      padding: 0 8px !important;
      z-index: 2 !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-name-text {
      font-size: 0.65rem !important;
      display: block !important;
      visibility: visible !important;
    }

    .create-story-icon {
      width: 24px !important;
      height: 24px !important;
      font-size: 0.75rem !important;
    }

    .create-icon-circle {
      width: 40px !important;
      height: 40px !important;
      font-size: 1rem !important;
      border-width: 2px !important;
    }

    .story-name {
      font-size: 0.7rem !important;
    }

    .story-user-name {
      font-size: 0.6rem !important;
    }
  }

  @media (max-width: 480px) {
    .stories-section-wrapper {
      padding: 0.5rem !important;
      border-radius: 10px !important;
      margin-bottom: 0.75rem !important;
    }

    .stories-scroll {
      gap: 0.4rem !important;
      padding: 0.2rem 0 !important;
    }

    .story-card {
      width: 85px !important;
      min-width: 85px !important;
      max-width: 85px !important;
    }

    .story-image-wrapper {
      width: 85px !important;
      height: 140px !important;
      min-width: 85px !important;
      max-width: 85px !important;
      overflow: hidden !important;
    }

    .story-preview-image {
      object-fit: cover !important;
      object-position: center !important;
      width: 100% !important;
      height: 100% !important;
      display: block !important;
    }

    /* Avatar en móviles pequeños */
    .story-avatar-top-left {
      top: 5px !important;
      left: 5px !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-avatar-small {
      width: 24px !important;
      height: 24px !important;
      border-width: 1.5px !important;
      display: flex !important;
      visibility: visible !important;
    }

    .story-avatar-small img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block !important;
    }

    .avatar-fallback-small {
      font-size: 0.55rem !important;
      visibility: visible !important;
    }

    /* Caption en móviles pequeños */
    .story-caption-overlay {
      bottom: 24px !important;
      padding: 0 6px 2px !important;
      max-height: 35px !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-caption-text {
      font-size: 0.6rem !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      visibility: visible !important;
    }

    /* Nombre del usuario en móviles pequeños */
    .story-name-overlay {
      bottom: 5px !important;
      padding: 0 6px !important;
      display: block !important;
      visibility: visible !important;
    }

    .story-name-text {
      font-size: 0.6rem !important;
      font-weight: 600 !important;
      display: block !important;
      visibility: visible !important;
    }

    /* Mejorar botón de crear historia en móviles pequeños */
    .story-card.create-story-card {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    .story-card.create-story-card .story-image-wrapper {
      border-width: 2px !important;
      display: block !important;
      visibility: visible !important;
    }

    .create-story-overlay {
      display: block !important;
      visibility: visible !important;
    }

    .create-story-icon-large {
      display: block !important;
      visibility: visible !important;
    }

    .create-icon-circle {
      width: 34px !important;
      height: 34px !important;
      font-size: 0.85rem !important;
      border-width: 2px !important;
      display: flex !important;
      visibility: visible !important;
    }

    .story-card.create-story-card:hover .create-icon-circle {
      transform: scale(1.08) !important;
    }
  }

  /* Efectos hover mejorados */
  /* Historias vistas: sombra sin color cyan */
  .story-card:not(.unviewed):hover .story-image-wrapper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  /* Solo historias no vistas tienen sombra verde/cyan */
  .story-card.unviewed:hover .story-image-wrapper {
    box-shadow: 0 4px 16px rgba(0, 255, 221, 0.5);
  }

  /* Tarjetas de posts mejoradas */
  .post-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 221, 0.1);
    position: relative;
  }

  .post-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
      90deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 255, 221, 0.15);
    border-color: var(--accent-cyan);
  }

  .post-card:hover::before {
    opacity: 1;
  }

  /* Header del post mejorado */
  .post-header {
    padding: 1.75rem 2rem;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 1),
      rgba(248, 249, 250, 0.95)
    );
    border-bottom: 1px solid rgba(0, 255, 221, 0.1);
  }

  .user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }

  .user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 221, 0.3);
  }

  .post-author {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
  }

  .post-author:hover {
    color: var(--accent-cyan-dark);
  }

  .post-time {
    font-size: 0.9rem;
  }

  /* Imagen del post mejorada */
  .post-image img {
    min-height: 500px;
    max-height: 700px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .post-card:hover .post-image img {
    transform: scale(1.03);
  }

  /* Contenido del post mejorado */
  .post-content {
    padding: 2rem 2rem 1.5rem;
  }

  .post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .post-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 221, 0.08);
    border-radius: 20px;
    color: var(--accent-cyan-dark);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 255, 221, 0.2);
  }

  .post-location i {
    color: var(--accent-cyan);
  }

  .post-description {
    line-height: 1.75;
    font-size: 1.05rem;
  }

  /* Acciones del post mejoradas */
  .post-actions {
    background: linear-gradient(
      135deg,
      rgba(248, 249, 250, 0.5),
      rgba(255, 255, 255, 1)
    );
    border-top: 1px solid rgba(0, 255, 221, 0.1);
  }

  .action-buttons {
    gap: 1rem;
  }

  .action-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 221, 0.05);
    border: 1px solid rgba(0, 255, 221, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
  }

  .action-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 221, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .action-btn:hover::before {
    width: 300px;
    height: 300px;
  }

  .action-btn:hover {
    background: rgba(0, 255, 221, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 221, 0.2);
  }

  .action-btn i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
  }

  .action-btn span {
    position: relative;
    z-index: 1;
  }

  .like-count {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 0.5rem;
  }

  /* Estadísticas del post mejoradas */
  .post-stats {
    padding: 1rem 1.5rem;
    background: rgba(0, 255, 221, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 221, 0.1);
  }

  .post-stats small {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .post-stats i {
    margin-right: 0.5rem;
  }

  /* Sección de comentarios mejorada */
  .comments-section {
    padding: 1.5rem 2rem;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 255, 221, 0.1);
  }

  .comments-header small {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
  }

  .comment-item {
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .comment-item:hover {
    background: rgba(0, 255, 221, 0.05);
    border-color: rgba(0, 255, 221, 0.2);
    transform: translateX(4px);
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    font-weight: 700;
    font-size: 0.9rem;
  }

  .comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
  }

  .comment-text {
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  /* Input de comentarios mejorado */
  .add-comment-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 255, 221, 0.1);
  }

  .comment-input-container {
    background: rgba(0, 255, 221, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(0, 255, 221, 0.1);
    transition: all 0.3s ease;
  }

  .comment-input-container:focus-within {
    background: rgba(0, 255, 221, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 255, 221, 0.1);
  }

  .comment-input-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    font-weight: 700;
    font-size: 0.9rem;
  }

  .comment-input {
    font-size: 0.95rem;
  }

  /* Filtros mejorados (desktop) */
  .filters-wrapper {
    margin-bottom: 2rem;
  }

  .route-search .search-routes-input {
    max-width: 100% !important;
    width: 100% !important;
  }

  .filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.5rem;
    background: rgba(0, 255, 221, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 221, 0.1);
  }

  .filter-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .filter-tab:hover {
    background: rgba(0, 255, 221, 0.1);
    color: var(--accent-cyan-dark);
  }

  .filter-tab.active {
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    color: var(--primary-black);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 12px rgba(0, 255, 221, 0.2);
  }

  /* Create Post Prompt mejorado (desktop) */
  .create-post-prompt {
    background: linear-gradient(
      135deg,
      rgba(0, 255, 221, 0.05),
      rgba(0, 255, 221, 0.1)
    );
    border: 2px dashed rgba(0, 255, 221, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
  }

  .create-post-prompt:hover {
    background: linear-gradient(
      135deg,
      rgba(0, 255, 221, 0.1),
      rgba(0, 255, 221, 0.15)
    );
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 221, 0.15);
  }

  .create-post-prompt h5 {
    font-weight: 700;
    margin-top: 1rem;
  }

  /* Botón Load More mejorado (desktop) */
  .btn-outline-primary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan-dark);
    transition: all 0.3s ease;
  }

  .btn-outline-primary:hover {
    background: linear-gradient(
      135deg,
      var(--accent-cyan),
      var(--accent-cyan-light)
    );
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 221, 0.3);
  }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .post-content {
    padding: 0.4rem 0.75rem;
  }

  .post-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .post-description {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .post-actions {
    padding: 0.4rem 0.75rem;
  }

  .action-buttons {
    gap: 0.6rem;
    padding: 0.2rem 0;
    margin: 0.2rem 0;
  }

  .action-btn {
    min-width: 80px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  .comments-section {
    padding: 0.4rem 0;
    margin: 0.2rem 0;
  }

  .comment-item {
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    gap: 0.6rem;
    border-radius: 10px;
    background: rgba(0, 255, 221, 0.05);
    border: 1px solid rgba(0, 255, 221, 0.15);
    box-shadow: 0 2px 6px rgba(0, 255, 221, 0.1);
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-width: 1.5px;
    min-width: 32px;
    min-height: 32px;
  }

  .comment-text {
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
  }

  .comment-author {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .comment-time {
    font-size: 0.7rem;
  }

  .comment-input-container {
    padding: 0.3rem;
  }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Layout principal */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .col-lg-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .col-lg-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Tarjetas de posts */
  .post-card {
    margin-bottom: 1rem;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  .post-header {
    padding: 0.75rem;
  }

  .post-content {
    padding: 0.5rem 0.75rem;
  }

  .post-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    text-align: left;
  }

  .post-description {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-align: left;
    line-height: 1.4;
  }

  .post-location {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    text-align: left;
  }

  .post-actions {
    padding: 0.5rem 0.75rem;
  }

  .action-buttons {
    gap: 0.5rem;
    padding: 0.2rem 0;
    margin: 0.2rem 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .action-btn {
    min-width: 80px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    flex: 1;
    max-width: 120px;
  }

  /* Estadísticas del post */
  .post-stats {
    margin: 0.3rem 0;
    padding: 0.4rem 0.75rem;
    text-align: center;
  }

  .post-stats small {
    font-size: 0.7rem;
  }

  /* Comentarios */
  .comments-section {
    padding: 0.4rem 0.75rem;
    margin: 0.2rem 0;
  }

  .comments-header {
    margin-bottom: 0.4rem;
    padding: 0;
    text-align: left;
  }

  .comments-list {
    margin-bottom: 0.6rem;
    padding: 0;
  }

  .comment-item {
    padding: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .comment-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .comment-content {
    padding: 0.1rem 0;
  }

  .comment-author {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }

  .comment-text {
    font-size: 0.7rem;
    padding: 0.3rem;
    margin-bottom: 0.15rem;
  }

  .comment-time {
    font-size: 0.6rem;
  }

  .comments-footer {
    padding: 0.4rem 0;
    margin-top: 0.4rem;
  }

  .comments-footer a {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Input de comentarios */
  .add-comment-section {
    padding: 0.4rem 0.75rem;
    margin-top: 0.4rem;
  }

  .comment-input-container {
    padding: 0.4rem;
    gap: 0.5rem;
  }

  .comment-input-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .comment-input {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 16px;
  }

  /* Sidebar responsive */
  .sidebar {
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  /* Filtros */
  .filter-tabs {
    margin: 1rem 0;
    padding: 0.4rem;
    gap: 0.5rem;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Quick actions */
  .quick-actions {
    margin-bottom: 1rem;
  }

  .quick-action-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Trending items */
  .trending-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .trending-thumb {
    width: 60px;
    height: 60px;
  }

  /* Estadísticas comunitarias */
  .community-stats,
  .featured-artists,
  .tag-cloud {
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .stat-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin: 0.2rem;
  }

  /* Artistas destacados */
  .artist-card {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .artist-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  /* Create post prompt */
  .create-post-prompt {
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .create-post-prompt h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .create-post-prompt p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  /* Main content centering */
  .main-content {
    padding: 0;
  }

  /* Post meta alignment */
  .post-meta {
    text-align: left;
  }

  .post-author {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  /* User avatar responsive */
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  /* Dropdown responsive */
  .dropdown-menu {
    font-size: 0.8rem;
    min-width: 180px;
  }

  .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .filters-wrapper {
    margin-top: 2rem;
  }

  .post-header,
  .post-content,
  .post-actions {
    padding: 0.5rem;
  }

  .comments-section,
  .add-comment-section {
    padding: 0.3rem 0.5rem;
  }

  .action-buttons {
    gap: 0.4rem;
  }

  .action-btn {
    min-width: 70px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }

  .post-title {
    font-size: 0.95rem;
  }

  .post-description {
    font-size: 0.75rem;
  }

  .filter-tabs {
    gap: 0.4rem;
  }

  .filter-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .sidebar {
    padding: 0.5rem;
  }

  .community-stats,
  .featured-artists,
  .tag-cloud {
    padding: 0.75rem;
  }

  /* Ajustes específicos para móviles muy pequeños */
  .post-card {
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  /* Comentarios optimizados para móviles muy pequeños */
  .comment-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    border-radius: 8px;
    background: rgba(0, 255, 221, 0.08);
    border: 1px solid rgba(0, 255, 221, 0.2);
    box-shadow: 0 1px 4px rgba(0, 255, 221, 0.15);
  }

  .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    border-width: 1px;
    min-width: 28px;
    min-height: 28px;
  }

  .comment-text {
    padding: 0.4rem;
    font-size: 0.75rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 2px solid var(--accent-cyan);
  }

  .comment-author {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }

  .comment-time {
    font-size: 0.65rem;
    opacity: 0.8;
  }

  .post-author {
    font-size: 0.85rem;
  }

  .post-time {
    font-size: 0.7rem;
  }

  .comment-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .comment-input-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .action-btn {
    min-width: 65px;
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .filter-tabs {
    margin: 0.75rem 0;
    padding: 0.3rem;
  }

  .filter-tab {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  .create-post-prompt {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .create-post-prompt h5 {
    font-size: 1rem;
  }

  .create-post-prompt p {
    font-size: 0.8rem;
  }
}

/* Responsive para pantallas medianas */
@media (min-width: 769px) and (max-width: 991px) {
  .post-content {
    padding: 0.6rem 1rem;
  }

  .post-actions {
    padding: 0.6rem 1rem;
  }

  .action-buttons {
    gap: 0.8rem;
  }

  .action-btn {
    min-width: 95px;
    padding: 0.45rem 0.9rem;
  }

  .comments-section {
    padding: 0.6rem 0;
  }

  .comment-item {
    padding: 0.5rem;
  }
}

/* Ajustes adicionales para móviles - centrado perfecto */
@media (max-width: 768px) {
  /* Asegurar que el contenido principal esté centrado */
  .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Centrar el feed container */
  .feed-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Asegurar que las columnas estén bien alineadas */
  .col-lg-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-lg-3 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Ajustar el orden en móviles */
  .order-lg-1 {
    order: 2;
  }

  .order-lg-2 {
    order: 1;
  }

  .order-lg-3 {
    order: 3;
  }

  /* Asegurar que los posts no se salgan del contenedor */
  .post-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Centrar el contenido de los posts */
  .post-header,
  .post-content,
  .post-actions {
    width: 100%;
    box-sizing: border-box;
  }

  /* Asegurar que las imágenes se ajusten correctamente */
  .post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Centrar los botones de acción */
  .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  /* Asegurar que los comentarios estén bien alineados */
  .comments-section {
    width: 100%;
    box-sizing: border-box;
  }

  .comment-item {
    width: 100%;
    box-sizing: border-box;
  }

  /* Centrar el input de comentarios */
  .comment-input-container {
    width: 100%;
    box-sizing: border-box;
  }

  /* Asegurar que el sidebar esté bien alineado */
  .sidebar {
    width: 100%;
    box-sizing: border-box;
  }

  /* Centrar las estadísticas */
  .community-stats,
  .featured-artists,
  .tag-cloud {
    width: 100%;
    box-sizing: border-box;
  }

  /* Asegurar que los filtros estén centrados */
  .filter-tabs {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Asegurar que el create post prompt esté centrado */
  .create-post-prompt {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Estilos para páginas de error */
.error-page-card {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border-gray);
  max-width: 600px;
  margin: 2rem auto;
}

.error-icon {
  margin-bottom: 2rem;
}

.error-icon i {
  font-size: 4rem;
  color: var(--warning);
  opacity: 0.8;
}

.error-title {
  color: var(--primary-black);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.error-message {
  color: var(--medium-gray);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.error-details {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.error-details p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.error-details ul {
  margin: 0;
  padding-left: 1.5rem;
}

.error-details li {
  margin-bottom: 0.5rem;
  color: var(--medium-gray);
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  min-width: 160px;
}

.error-actions .btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
}

.error-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
  color: var(--white);
}

.error-actions .btn-outline-secondary {
  border: 2px solid var(--medium-gray);
  color: var(--medium-gray);
  background: transparent;
}

.error-actions .btn-outline-secondary:hover {
  background: var(--medium-gray);
  color: var(--white);
  transform: translateY(-2px);
}

/* Responsive para páginas de error */
@media (max-width: 768px) {
  .error-page-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .error-title {
    font-size: 2rem;
  }

  .error-message {
    font-size: 1.1rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .error-page-card {
    padding: 1.5rem 1rem;
  }

  .error-title {
    font-size: 1.8rem;
  }

  .error-icon i {
    font-size: 3rem;
  }
}
