/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
}

/* Header */
.site-header {
  background-color: #002147;
  color: white;
  padding: 1rem 2rem;
}


.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  height: 80px;
}

.site-title {
  font-size: 1.8rem;
  color: white;
}

/* Secciones generales */
.content-section {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0d47a1;
  font-size: 2rem;
}

.content-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Carrusel automático */
.carrusel {
  width: 100%;
  max-width: 1150px;
  margin: 2rem auto;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.imagenes {
  display: flex;
  animation: deslizar 30s infinite;
  transition: transform 0.8s ease-in-out;
}

.imagenes img {
  min-width: 100%;
  height: 370px;
  object-fit: contain; /* ← Aquí está el cambio importante */
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #f0f0f0; /* Fondo claro para evitar transparencias */
}

@keyframes deslizar {
  0% { transform: translateX(0); }
  16% { transform: translateX(-100%); }
  32% { transform: translateX(-200%); }
  48% { transform: translateX(-300%); }
  64% { transform: translateX(-400%); }
  80% { transform: translateX(-500%); }
  100% { transform: translateX(0); }
}

/* Clubes */
.clubs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.club-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.club-card:hover {
  transform: translateY(-5px);
}

.club-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.club-card p {
  padding: 1rem;
  font-weight: bold;
  margin: 0;
}

/* Cafetería y seguridad - imágenes full width */
.full-width-img {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 8px;
}

/* Botón menú cafetería */
.boton {
  background-color: #0d47a1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: #0b3984;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  max-width: 600px;
  width: 90%;
  margin: auto;
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: #0d47a1;
}

.modal-content p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0d47a1;
}

/* Footer */
.main-footer {
  background-color: #002147;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-area {
    flex-direction: column;
    align-items: center;
  }

  .content-section p {
    font-size: 0.95rem;
  }

  .imagenes img {
    height: 250px;
  }

  .carrusel {
    max-width: 100%;
  }

  .boton {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* Indicadores del carrusel */
.indicadores {
  text-align: center;
  padding: 0.5rem 0;
}

.indicadores span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicadores span.active {
  background-color: #0d47a1;
}