/* Estilos comunes para páginas de distritos */

/* Justificación de texto en tarjetas y contenido */
.dz-card p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  line-height: 1.6 !important;
}

.dz-activity p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  line-height: 1.6 !important;
}

.dz-weather-block p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  line-height: 1.6 !important;
}

.dz-section-desc {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  line-height: 1.5 !important;
}

.dz-gallery-category-header p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  line-height: 1.6 !important;
}

.dz-gallery-item-header p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  line-height: 1.6 !important;
}

/* Mejora general del espaciado y legibilidad */
.dz-card {
  line-height: 1.6 !important;
}

.dz-activity {
  line-height: 1.6 !important;
}

.dz-weather-block {
  line-height: 1.6 !important;
}

/* Estilos para botones y elementos interactivos */
.dz-btn {
  transition: all 0.3s ease !important;
}

.dz-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Estilos para el botón flotante de YouTube */
.dz-youtube-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.dz-youtube-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, #CC0000, #AA0000);
}

.dz-youtube-float:active {
  transform: scale(0.95);
}

.dz-youtube-float-text {
  position: absolute;
  right: 70px;
  background: #FF0000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dz-youtube-float-text::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid #FF0000;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.dz-youtube-float:hover .dz-youtube-float-text {
  opacity: 1;
}

/* Estilos para el botón de YouTube en la sección hero */
.dz-btn-youtube:hover {
  background: linear-gradient(135deg, #CC0000, #AA0000) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .dz-youtube-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .dz-youtube-float-text {
    display: none; /* Ocultar tooltip en móviles para evitar problemas de espacio */
  }

  .dz-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .dz-hero-actions .dz-btn {
    width: 100%;
    justify-content: center;
  }

  /* Ajustes de justificación para móviles */
  .dz-card p,
  .dz-activity p,
  .dz-weather-block p {
    text-align: left !important; /* En móviles es mejor alineación izquierda */
    hyphens: none !important;
  }
}