
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}


header {
  background-color: #000;
  color: #fff;
  padding: 1rem;
  text-align: center;
}


nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}


section {
  padding: 2rem;
  text-align: center;
}


.cuadro-interactivo {
  background-color: #000;
  color: white;
  width: 100%;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}


.titulo-centrado {
  text-align: center;
  margin-bottom: 0.3rem;
}

.titulo-link {
  color: white;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.titulo-link:hover {
  color: #d4af37;
}


.contenedor-apartados {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 20000px;
  margin: 0 auto;
}

.apartados ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: -30px;
}

.apartados a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.apartados a:hover {
  color: #d4af37;
}


.logo-centrado {
  text-align: center;
}

.logo-mercedes {
  width: 150px;
  height: auto;
  margin-right: 800px;
  margin-top: -20px;
  margin-bottom: 40px;
}





@media (max-width: 768px) {
  .contenedor-apartados {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .apartados ul {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-mercedes {
    width: 120px;
    margin-right: 0;
  }
}






.galeria {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.galeria h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #000;
  position: relative;
  padding-bottom: 1rem;
}


.galeria h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, 
    #000 0%, #000 33%, 
    #fff 33%, #fff 66%, 
    #000 66%, #000 100%);
}


.descripcion-galeria {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #666;
}

.filtros {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 0.5rem 1.5rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filtro-btn:hover, .filtro-btn.activo {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.imagen-galeria {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16/9;
}

.imagen-galeria:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.imagen-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.imagen-galeria:hover img {
  transform: scale(1.05);
}

.titulo-imagen {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.imagen-galeria:hover .titulo-imagen {
  transform: translateY(0);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.mostrar {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

#imagen-ampliada {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
}

#titulo-imagen-ampliado {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.cerrar {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cerrar:hover {
  color: #00A1E0;
}

.modal-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
}

.modal-btn {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .galeria h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .galeria {
    padding: 2rem 1rem;
  }
  
  .galeria-grid {
    grid-template-columns: 1fr;
  }
}
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  border-top: 1px solid #444;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: #ccc;
  text-decoration: underline;
  margin: 0 10px;
}

footer a:hover {
  color: #fff;
}

footer .social-icons {
  margin-top: 1rem;
}

footer .social-icons a {
  margin: 0 15px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #fff;
}
