/* Fuente y colores base */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #1a1a1a;
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

/* ---------- ENCABEZADO ---------- */
.header {
  background-color: #ffffff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.titulo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #005f99;
}

.nav a {
  margin-left: 20px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #005f99;
}

/* ---------- INPUT DE CROMOS ---------- */
.add-cromo {
  margin-top: 10px;
}

.add-cromo input {
  padding: 10px 16px;
  border-radius: 30px;
  border: 1px solid #ccc;
  outline: none;
  width: 200px;
  transition: all 0.3s ease;
}

.add-cromo input:focus {
  border-color: #005f99;
  box-shadow: 0 0 5px rgba(0, 95, 153, 0.3);
}

.add-cromo button {
  padding: 10px 18px;
  border-radius: 30px;
  background-color: #005f99;
  color: white;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.add-cromo button:hover {
  background-color: #004974;
}

/* ---------- LÍNEA DE TIEMPO ---------- */
.linea-tiempo {
  height: 10px;
  position: relative;
  margin: 60px 0;
  overflow-x: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, transparent, #002244 30%, #002244 70%, transparent);
  border-radius: 10px;
  padding: 40px 0;
}

.banderita {
  position: relative;
  margin: 0 40px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.banderita:hover {
  transform: scale(1.2);
}

.banderita::before {
  content: "📍";
  font-size: 24px;
}

.tooltip {
  display: none;
  position: absolute;
  top: -70px;
  left: -50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10;
}

.banderita:hover .tooltip {
  display: block;
}

/* ---------- DETALLE CROMO ---------- */
.detalle-cromo {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  transition: all 0.3s ease;
}

.detalle-cromo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.detalle-cromo h2 {
  margin-top: 0;
  color: #005f99;
}

.detalle-cromo button {
  background-color: #ccc;
  color: #1a1a1a;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 20px;
}

.detalle-cromo button:hover {
  background-color: #999;
}

.oculto {
  display: none;
}
