/* General */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;
  background: black;
}

.logo {
  width: 300px;
  max-width: 100%;
}

.social-links {
  margin-top: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  margin: 0 10px;
}

/* Fondo carrusel */
.background-carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.background-carousel img.active {
  opacity: 1;
}

/* Cabecera y navegación */
header {
  background: rgba(0, 0, 255, 0.3);
  text-align: center;
  padding: 20px;
}

nav {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.card {
  background-color: rgba(0, 0, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
  width: 220px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.card a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

/* Carrusel interno */
.carousel {
  position: relative;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.carousel img {
  width: 100%;
  height: auto;
  display: none;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  display: block;
}

/* Ubicación */
.location iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 8px;
}

/* Horarios */
.horarios ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: 1em;
}

/* Contenido de cada página */
main.contenido {
  padding: 20px;
  text-align: center;
}

main h1 {
  margin-bottom: 20px;
  font-size: 1.5em;
}

@media (max-width: 768px) {
  .card {
    width: 85%;
  }

  .location iframe {
    height: 160px;
  }
}
