:root {
  --primary: #1a1a1a; /* Negro refinado */
  --secondary: #c5a100; /* Dorado Material Design */
  --secondary-light: #ffe58a; /* Dorado claro */
  --background: #f4f4f4; /* Gris claro para fondo general */
  --card-bg: #ffffff; /* Blanco para tarjetas */
  --text: #1a1a1a; /* Negro principal para texto */
  --text-muted: #555555;
  --gray-light: #eaeaea;
  --gray-medium: #cccccc;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --dorado: #c5a100;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}

header.cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  background-color: var(--background);
  color: var(--secondary);
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--dorado);
  font-weight: 700;
}

main {
  padding: 1rem;
}

#eventos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.evento {
  background-color: var(--card-bg);
  padding: 1.2rem 1rem;
  border-left: 6px solid var(--secondary);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.evento:hover {
  transform: translateY(-2px);
}

.evento.larga {
  border-left-color: red;
}

.fecha {
  font-weight: bold;
  color: var(--primary);
  font-size: 1rem;
}

.nombre {
  font-size: 1.2rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--gray-medium);
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .logo {
    max-width: 100%;
    margin-bottom: 0.8rem;
  }

  header.cabecera h1 {
    font-size: 1.5rem;
  }

  .evento {
    padding: 1rem;
  }

  .nombre {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }
}

.evento-dia {
  border-bottom: 1px solid #ccc;
  padding: 1em 0;
}

.fecha {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
}

.ausentes {
  list-style: none;
  padding-left: 1em;
}

.ausentes li::before {
  content: "👤 ";
}

.sustituto {
  margin-right: 0.3em;
  cursor: help;
}

.sustituto-icono {
  cursor: pointer;
  margin-right: 6px;
  font-size: 1.2em;
  position: relative;
}

.ausente-icono {
  cursor: pointer;
  margin-right: 6px;
  font-size: 1.2em;
  position: relative;
}

.tooltip-burbuja {
  position: absolute;
  background: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9em;
  top: 1.5em;
  left: 0;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}