/* ===== ESTILO GENERAL ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #f5f5f5;
  color: #111;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header-container {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 100%;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  outline: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* ===== SECCIÓN HERO ===== */
.hero {
  position: relative;
  padding: 50px 20px;
  background: url('img/fondo.jpg') no-repeat center/cover;
  color: #fff;
  background-attachment: fixed;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero h1, .hero h2, .hero p {
  position: relative;
  z-index: 1;
  margin: 0 0 15px 0;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== HORARIOS ===== */
.horarios {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin: 60px auto;
  max-width: 500px;
  text-align: left;
  transition: transform 0.3s ease;
}

.horarios:hover {
  transform: translateY(-5px);
}

.horarios h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 20px;
  border-bottom: 2px solid #25D366;
  display: inline-block;
  padding-bottom: 6px;
}

.horarios p {
  margin: 10px 0;
  font-size: 17px;
  color: #444;
}

.horarios strong {
  color: #000;
}

.horarios .whatsapp-btn {
  margin-top: 20px;
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.horarios .whatsapp-btn:hover {
  background: #1ebe57;
  transform: scale(1.05);
}

/* ===== PRODUCTOS Y CARRUSEL ===== */
.productos {
  padding: 40px 20px;
}

.carrusel {
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 15px 0;
}

.carrusel-track {
  display: flex;
  width: max-content;
  animation: scroll-carrusel 40s linear infinite;
}

@keyframes scroll-carrusel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.producto {
  min-width: 220px;
  margin: 0 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.producto p {
  margin-top: 8px;
  font-weight: bold;
  color: #222;
}

/* ===== CONTACTO ===== */
.contacto {
  background: #ddd;
  padding: 40px 20px;
  text-align: center;
}

.contacto h2 {
  margin-bottom: 15px;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-bottom: 15px;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
  background: #1ebe57;
  transform: scale(1.05);
  outline: none;
}

.redes a {
  display: inline-block;
  margin: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  color: #333;
  transition: color 0.3s ease;
}

.redes a:hover,
.redes a:focus {
  color: #25D366;
  outline: none;
}

.mapa {
  margin-top: 30px;
  text-align: center;
}

.mapa iframe {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #ccc;
  padding: 20px 0;
  font-size: 14px;
}

footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: #25D366;
  outline: none;
}

/* ===== GALERÍA ===== */
.galeria {
  padding: 40px 20px;
  background-color: #f5f5f5;
  max-width: 1100px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.grid-galeria a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-galeria a:hover,
.grid-galeria a:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

.grid-galeria img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.volver-btn {
  display: inline-block;
  margin-top: 40px;
  background: #111;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.volver-btn:hover,
.volver-btn:focus {
  background: #25D366;
  transform: scale(1.05);
  outline: none;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  cursor: pointer;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  animation: fadeInUp 0.5s ease forwards;
}

#lightbox:focus {
  outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    align-items: center;
  }

  .logo img {
    height: 80px;
    margin: 0 auto;
  }

  /* Desactivo animación y habilito scroll manual con snap */
  .carrusel-track {
    animation: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    gap: 0;
    width: auto;       /* que no sea width: max-content */
    justify-content: flex-start; /* alinear al inicio */
  }

  .producto {
    flex: 0 0 auto;      /* ancho automático según contenido */
    max-width: 85%;     /* para que no supere el 85% */
    margin: 0 8px;      /* margen pequeño para separación */
    scroll-snap-align: center;
    box-sizing: border-box;
    padding: 0;
  }
  .producto img {
    object-fit: contain !important;
    height: auto !important;
    max-height: 250px !important;
    width: 100% !important;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero h1 { font-size: 1.8em; }
  .hero h2 { font-size: 1.2em; }
  .hero p { font-size: 1em; }

  .horarios {
    padding: 20px;
    margin: 30px 10px;
  }

  .horarios h3 {
    font-size: 18px;
  }

  .carrusel {
    padding: 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1001;
  }

  nav.show ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .grid-galeria img {
    height: 140px;
  }

  .volver-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}
