html{
    /* El valor debe ser igual o un poco mayor a la altura de tu barra sticky */
  scroll-padding-top: 90px;
}
body {
  max-width: 1920px;
   margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  background-color: #4a3f35;
  color: white;
 
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

a {
        text-decoration: none;
         color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4a3f35;
  padding: 1rem;
  position: sticky;
  top: 0;
    z-index: 1000; /* que siempre esté encima */
     height: 80px; /* Altura de ejemplo */
}

header h1 {
  color: #fdfbf9ff;
}


#hero {
  position: relative;
  text-align: center;
}


#hero img {
  width: 100%;
  height:100%;
  border-radius: 0.5rem;
}

#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0.5rem;
}

#biografia, #pinturas, #local {
  padding: 2rem;
}

.bio-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.bio-content img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.galeria {
  display:flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background-color: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  width: 100%; /* Puedes ajustar este valor si el div tiene un tamaño fijo */
  height: 100%;
  overflow: auto ; /* Esto es importante para ocultar partes de la imagen que sobresalgan */
  position: relative; /* Es necesario si quieres usar position: absolute en la imagen */
}

.card img {
   width: 100%;
  height: 100%;
  object-fit: cover; /* ¡Esta es la clave! */

}

.local-card {
  background-color: rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  overflow: hidden;
}

.local-card img {
  width: 100%;
}
.menu {
  display: flex;
  gap: 1rem;
   z-index: 1000; /* por encima de otros */
}



.menu a {
  color: #ffffff;
  text-decoration: none;
}

.menu-button {
  display: none;
  cursor: pointer;
  color:  #ffffff;
  background:  #4a3f35;
  
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 15px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
}
#cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
  padding-right: 10px;

}
#cookie-banner button {
  margin-left: 5px;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
#accept-cookies { background: #4CAF50; color: white; }

}

/* Vista móvil */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: fixed;       /* fijo a pantalla para que no se corte */
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;            /* ancho del panel */
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    padding: 2rem 1rem;
    overflow-y: auto;      /* scroll si el contenido es largo */
    border-left: 2px solid #c9a47e;
  }

  .menu a {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .menu-button {
    display: block;
     
  }

.header:focus-within .menu {
    display: flex;
  }
  
.header:focus-within h1 {
 display: none;
}
}

