
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Playfair+Display&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: white;
  color: #b3b3b5;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

header {
  background-color: #f4f4f4;
  padding: 0rem 0rem;
  color: white;
  position: fixed;
  width: 100%;
      min-width:50px; /*  Opcional: Establecer un ancho mínimo para dispositivos móviles */
      /* o */
      width: 100vw; /* Establecer el ancho al 100% de la viewport */
    top: auto
}

/* Estilos base para nav */
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f4f4f4;
  padding: 10px 50px;
}

header nav img.logo {
  max-height: 60px;
  width: auto;
}

/* Menú normal en escritorio */
header nav ul {
  display: flex;
  grid-row-gap: 40px;
  list-style: none;
  margin: 20;
  padding: 20;
    height: auto
}

header nav ul li a {
  color: #b3b3b5;
  text-decoration: none;
  font-weight: bold;
}

header nav ul li a:hover {
  color: #f4f4f4;
}

/* Icono hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  font-size: 20px;
  color: #b3b3b5;
  background: none;
  border: none;
  cursor: pointer;
}

/* RESPONSIVE: para pantallas pequeñas */
@media (max-width: 768px) {
  header nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  header nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: #f4f4f4;
  }

  header nav ul.active {
    display: flex;
  }

  header nav ul li {
    padding: 10px 0;
    text-align: center;
  }
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #b3b3b5;
  font-weight: 100;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background-color: #f4f4f4;
  color: white;
  text-align: center;
  padding: 2rem 2rem;
}
.bio-section {
  padding: 40px 20px;
  background-color: white; /* Puedes cambiarlo o usar transparente */
}

.bio-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.bio-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px white;
  transition: transform 0.4s ease;
}
.bio-image:hover {
  transform: scale(1.05);
}

.bio-text {
  flex: 1;
  min-width: 280px;
  color: #b3b3b5;
}

.bio-text h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #7e7e7e;
}

.bio-text p {
  font-size: 1em;
  line-height: 1.6;
}

/* Responsivo: en móviles, columna */
@media (max-width: 768px) {
  .bio-container {
    flex-direction: column;
    text-align: center;
  }

  .bio-text h2 {
    font-size: 1.5em;
  }
}
section {
  padding: 2rem;
}

h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #7e7e7e;
}
video {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background: none;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  padding-left: 20px;
  padding-right: 20px;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: none;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
}
.gallery-section {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2em;
  color: #58585a;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 10px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
  border-radius: 8px;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.item-actions {
  margin-top: 10px;
}

.item-actions select,
.item-actions button {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 1em;
}

.item-actions button {
  background-color: #58585a;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.item-actions button:hover {
  background-color: #3a3a3b;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}
.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.obra {
  background-color: #b3b3b5;
  border-radius: 10px;
  padding: 1rem;
  width: 300px;
  transition: transform 0.3s;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.obra img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

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

button {
  background-color: #58585a;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  cursor: pointer;
}

button:hover {
  background-color: #6c7a89;
}

footer {
  background-color: #f4f4f4;
  color: #7e7e7e;
  text-align: center;
  padding: 1rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #f4f4f4;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .galeria {
    flex-direction: column;
    align-items: center;
  }

  .obra {
    width: 90%;
  }
}

.carrito-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.carrito-section h2 {
  text-align: center;
  color: #58585a;
  margin-bottom: 20px;
}

#carrito-contenido {
  margin-bottom: 20px;
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  background: #fff;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.carrito-item p {
  margin: 0;
}

.carrito-total {
  text-align: right;
  font-size: 1.2em;
}

.carrito-total button {
  background-color: #58585a;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.carrito-total button:hover {
  background-color: #3a3a3b;