/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

/* HEADER */
header {
  background-color: #5a4848;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  font-family:'Times New Roman', Times, serif;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
}

nav a:hover {
  background-color: #444;
  border-radius: 5px;
}

.idiomas select {
  padding: 0.3rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.carrito {
  font-size: 1.5rem;
  cursor: pointer;
}

/* MAIN */


.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

/* HERO BANNER SECTION */
.hero-banner {
  background-image: url('img/groc4_12.png');
  background-size: 100%;
  background-position: top left;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  width: 100vw;
  height: 65vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.hero-text p {
  font-size: 1.5rem;
  font-style: italic;
}

/* Grilla responsiva de estilos */
.estilos-section {
  padding: 2rem;
  background-color: #fff;
  text-align: center;
}

.estilos-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.estilos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

.estilo-item {
  flex: 1 1 auto;
  max-width: 300px;
  min-width: 200px;
  text-align: center;
}

.estilo-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.estilo-item p {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}

/* Formulario de Contacto */
.contact-section {
  background-color: #eee;
  padding: 2rem;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

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

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  resize: vertical;
}

button {
  background-color: #333;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #555;
}

/* FOOTER */
footer {
  background-color: #222;
  color: white;
  padding: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links, .footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a, .footer-social a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social img.icon {
  width: 24px;
  height: 24px;
}

.footer-links a:hover, .footer-social a:hover {
  text-decoration: underline;
}

footer p {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.parrafo-columnas {
  column-count: 2;
  width: 75%;
  text-align: justify;
  column-gap: 30px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-right {
    flex-direction: column;
    align-items: flex-end;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links, .footer-social {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Estilos del nuevo DIV */
.nueva-seccion {
    width: calc(100% - 400px); /* 100% - 200px de cada lado */
    margin: 50px auto 50px auto; /* 50px de espacio arriba y abajo, y centrado */
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.item-fila-1,
.item-fila-2,
.item-fila-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.item-fila-1 img,
.item-fila-2 img,
.item-fila-3 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-fila-1 p,
.item-fila-2 p,
.item-fila-3 p {
    margin: 0;
}

/* Estilos para pantallas grandes */
@media (min-width: 768px) {
    .item-fila-1,
    .item-fila-2,
    .item-fila-3 {
        flex-direction: row; /* En pantallas grandes, se alinean en horizontal */
        justify-content: center;
        gap: 30px;
    }
    
    .item-fila-2.reverse {
        flex-direction: row-reverse; /* Se invierte el orden de la segunda fila */
    }
}

/* Contenedor de la galería con CSS Grid */
.galeria-grid {
    display: grid;
    /* Ajusta automáticamente las columnas. Repite (auto-fit) y el ancho mínimo de cada columna es 300px. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espacio entre las celdas */
    padding: 20px;
    max-width: 1200px; /* Ancho máximo de la galería */
    margin: 40px auto; /* Margen arriba y abajo, y centrado */
}

/* Estilos para cada celda de la galería */
.celda-arte {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga del contenedor */
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

.celda-arte:hover {
    transform: translateY(-5px); /* Efecto al pasar el mouse por encima */
}

/* Estilos de la imagen dentro de la celda */
.celda-arte img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilos de la información (título, precio, etc.) */
.info-arte {
    padding: 15px;
}

.info-arte h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.info-arte p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.info-arte .descripcion {
    font-style: italic;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Estilos para el contenedor de cada sección de la galería */
.seccion-galeria {
    margin-bottom: 60px; /* Espacio entre cada sección */
}

.seccion-galeria h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #444;
}

/* El resto de los estilos de galeria-grid y celda-arte que ya tenías */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.celda-arte {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.celda-arte img {
    width: 100%;
    height: auto;
    display: block;
}

.info-arte {
    padding: 15px;
}

.info-arte h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.info-arte p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}