/* Reset */
* { margin: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; }

.logo{
  color:#fff;
}

/* =========================================
   NAVBAR - DISEÑO PARA PC (ESCRITORIO)
========================================= */
nav {
  position: fixed;
  top: 0; width: 100%;
  background-color: #333;
  padding: 0.5rem 1rem;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  z-index: 1000;
}

/* Fuerzo que en PC siempre sea horizontal y visible */
nav ul { 
  list-style: none; 
  display: flex !important; /* Evito que se oculte al volver de móvil */
  flex-direction: row !important; /* FUERZO el modo horizontal */
  margin: 0; 
  padding: 0; 
}

nav ul li a {
  color: white; 
  text-decoration: none;
  padding: 0.5rem 1rem; 
  display: block;
}

.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { height: 3px; width: 25px; background: white; margin: 4px 0; }

/* =========================================
   NAVBAR - DISEÑO PARA MÓVIL (TABLETS/CELUS)
========================================= */
@media (max-width: 768px) {
  .hamburger { 
    display: flex; 
  }

  nav ul {
    /* En móvil, el !important de arriba no me deja ocultarlo, 
       así que lo sobreescribo aca solo para pantallas chicas */
    display: none !important; 
    flex-direction: column !important; 
    position: absolute;
    top: 55px; 
    left: 0;
    width: 100%;
    background-color: #333;
  }

  /* Esta regla la agrego para que fucione en móviles gracias al Media Query */
  nav ul.show {
    display: flex !important;
  }

  nav ul li { width: 100%; text-align: center; }
  nav ul li a { border-top: 1px solid #444; padding: 1rem; }
} 

/* Hero */
#hero {
  height: 100vh;
  background: url("../img/backgroundHero.png") center/cover no-repeat;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: flex-start;
  color: white; 
  text-align: center;
  text-shadow: 2px 2px 4px black;
  position: relative;
}
#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
#hero h1, #hero p {
  position: relative;
  z-index: 2;
}

/* Secciones */
section { padding: 4rem 2rem; }
.full-section { min-height: 100vh; }
.normal-section { min-height: auto; }

/* Tienda */
#tienda .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
  gap: 1rem;
}
.producto {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
}
.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.producto-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.producto h3 { margin-bottom: 0.5rem; color: #333; }
.producto p { margin: 0.5rem 0; color: #555; }
.producto .precio { font-weight: bold; color: #222; font-size: 1.1rem; }
.producto button {
  width: 100%; margin-top: 1rem; padding: 0.7rem;
  border: none; border-radius: 4px;
  background-color: hsl(211, 92%, 54%); color: white;
  cursor: pointer; transition: background 0.3s;
  font-size: 1rem;
}
.producto button:hover { background-color: #555; }

/* Responsive tienda */
@media (max-width: 1024px) {
  #tienda .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}
@media (max-width: 600px) {
  #tienda .grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}

/* Formulario + mapa */
#divForm { display: flex; flex-wrap: wrap; gap: 2rem; }
form {
  flex: 1 1 300px; max-width: 500px;
  background: #fff; padding: 1.5rem;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
fieldset { border: none; margin-bottom: 1rem; }
legend { font-weight: bold; margin-bottom: 0.5rem; color: #333; }
label { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: #555; }
input, select, textarea {
  width: 100%; padding: 0.6rem; margin-top: 0.3rem;
  border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem;
}
.form-buttons {
  display: flex; gap: 1rem; margin-top: 1rem;
}
.form-buttons button {
  flex: 1; padding: 0.7rem; border: none; border-radius: 4px;
  background-color: #333; color: white; cursor: pointer;
  transition: background 0.3s;
}
.form-buttons button:hover { background-color: #555; }

#divMap { flex: 1 1 300px; min-width: 300px; }
#divMap iframe {
  width: 100%;
  height: 350px; /* altura fija más chica del mapa*/
  border-radius: 8px;
  border: none;
}
@media (max-width: 768px) {
  #divMap iframe { height: 180px; }
}

/* Footer */
footer { background-color: #333; color: white; padding: 2rem 1rem; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.footer-section { flex: 1 }
.footer-bottom { text-align: center; margin-top: 1rem; font-size: 0.9rem; }

/* Menú hamburguesa en móviles */
#menu.show { display: block; }

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Texto redes */
.social a {
  font-weight: bold;     
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  color:cadetblue;
}

/* seccion reseñas */
.carrusel {
  overflow: hidden;
  width: 100%;
  max-width: 600px; /* ancho fijo para desktop */
  margin: 2rem auto;
}

.carrusel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.reseña {
  flex: 0 0 100%; /* ocupa todo el ancho → 1 reseña por vista */
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsivo: en pantallas chicas ocupa todo el ancho */
@media (max-width: 768px) {
  .carrusel {
    max-width: 100%;
  }
}
