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 Styles */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(34, 34, 34, 0.95);
  -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  color: #fff;
  padding: 15px;
  font-size: 14px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
  padding-right: 10px;
}

#cookie-banner a {
  color: #4FC3F7;
  text-decoration: none;
}

#cookie-banner a:hover {
  text-decoration: underline;
}

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

#reject-cookies {
  background: #f44336;
  color: white;
}

/* Hero section overlay improvement */
#hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 0.5rem;
}

/* 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;
  }
  
  /* Mobile cookie banner adjustments */
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  #cookie-banner p {
    padding-right: 0;
    text-align: center;
  }
  
  #cookie-banner div {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  #cookie-banner button {
    margin: 0;
    flex: 1;
    max-width: 150px;
  }
}

