:root {
  --color-primario: #007bff;
  --color-fondo: #f4f4f4;
  --color-texto: #333;
  --color-footer: #4D5BF9;
  --color-blanco: #fff;
  --sombra: 0 2px 6px rgba(0,0,0,0.2);
}

body {
  font-family: Arial, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  margin: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------- HEADER ---------- */
header {
  position: relative;
  width: 100%;
  height: 250px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('img/moteros_bercianos.jpg') center/cover no-repeat;
  color: var(--color-blanco);
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 5vw, 40px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

header img.logo-principal {
  position: absolute;
  width: 40%;
  max-width: 300px;
  left: 5px;
  object-fit: contain;
  z-index: 2;
}
header img.facebook_img {
  position: absolute;
  width: 10%;
  max-width: 70px;
  right: 10px;
  top: 10px;
  object-fit: contain;
  z-index: 2;
  transition: opacity 0.3s;
  transition: scale 0.3s;
}
header img.facebook_img:hover {
  transform: scale(1.1);
  opacity:0.7;
}

/* ---------- ÁLBUMES ---------- */
h2.year {
  margin-top: 40px;
  font-size: 28px;
  color: var(--color-primario);
  border-bottom: 2px solid var(--color-primario);
  padding-bottom: 5px;
  text-align: center;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.album {
  background: var(--color-blanco);
  border-radius: 10px;
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.album img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.album-title {
  padding: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-texto);
}

.album a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---------- FOOTER ---------- */
footer {
  width: 100%;
  background: var(--color-footer);
  color: var(--color-blanco);
  text-align: center;
  border-radius: 15px;
  margin-top: 50px;
  padding: 2px 0;
}

footer h4, footer h5 {
  margin: 10px 0;
  font-weight: normal;
}

footer a {
  color: var(--color-blanco);
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.8;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .album img { height: 160px; }
  .album-title { font-size: 16px; }
  h2.year { font-size: 24px; }
}