/* ===== HEADER CON IMAGEN DE FONDO (COMÚN PARA TODAS LAS PÁGINAS) ===== */

.app-header {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  min-height: 120px;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.header-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  min-height: 120px;
}

/* Asegurar que el texto sea legible sobre la imagen */
.header-left h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.btn-share-header {
  background-color: rgba(52, 152, 219, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-share-header:hover {
  background-color: rgba(52, 152, 219, 1);
  transform: scale(1.05);
}

.header-left .subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

/* Reloj sobre la imagen - Estilo base */
.clock-container {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 150px;
}

.clock-container #clock {
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 5px;
}

.clock-container #date {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Botón de inicio común */
.btn-home {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-home:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .app-header {
    min-height: 140px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    min-height: 140px;
  }

  .header-left {
    margin-bottom: 15px;
  }

  .header-left h1 {
    font-size: 1.6rem;
  }

  .header-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .clock-container {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .clock-container #clock {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .header-left h1 {
    font-size: 1.4rem;
  }

  .header-left .subtitle {
    font-size: 0.85rem;
  }

  .clock-container {
    padding: 8px 12px;
  }

  .clock-container #clock {
    font-size: 1.2rem;
  }

  .clock-container #date {
    font-size: 0.85rem;
  }
}
