/* Encabezado fijo */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: #F4E3C1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  color: #e74c3c;
  font-weight: bold;
}

/* Navegación */
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #A93226;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #e67e22;
}

/* Ajuste del contenido para dejar espacio al header */
body {
  padding-top: 80px; /* Espacio para el header fijo */
}

/* Reseteo de márgenes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

h1, h2 {
  color: #5c4033;
}

/* Sección de Bienvenida */
#bienvenida {
  background-image: url('imagenes/grande-pan.jpg');
  background-size: cover;        /* cubre el contenedor */
  background-position: center;   /* centra la imagen */
  background-repeat: no-repeat;  /* evita repeticiones */
  width: 100%;
  min-height: 100vh;             /* ocupa toda la altura del viewport */
  display: flex;                 /* para centrar tu texto */
  align-items: center;
}

.bienvenida-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.bienvenida-texto {
  background: rgba(255, 255, 255, 0.7); /* fondo semitransparente para legibilidad */
  padding: 1rem;
  border-radius: 8px;
  max-width: 600px;
  text-align: center;
}

.bienvenida-texto h1 {
  font-size: 3.5rem;
  color: #e74c3c;
  margin-bottom: 20px;
}

.bienvenida-texto p {
  font-size: 1.2rem;
  color: #34495e;
  margin-bottom: 40px;
}

.img-pequena {
  width: 350px;
  border-radius: 50px;
  margin-bottom: 30px;
}

.bienvenida-imagen { display: none; } /* ocultamos la imagen HTML antigua */

.bienvenida-imagen img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}
/* Sección de Productos */
#productos {
  padding: 40px 0;
  background-color: #fff8f0;
  text-align: center;
}

#productos h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #e74c3c;
}

.productos-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  background-color: #fff8f0;
}

.producto {
  text-decoration: none;
  color: inherit;
  min-width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.producto:hover {
  transform: scale(1.05);
}

.productos-container a.producto {
  text-decoration: none;
  color: inherit;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.productos-container a.producto:hover {
  transform: scale(1.02);
}

.info-producto {
  margin-top: 10px;
  padding: 0 5px;
}

/* Imagen del producto */
.producto .imagen {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.producto .imagen:hover {
  transform: scale(1.05);
}

/* Nombre del producto */
.nombre-producto {
  font-weight: bold;
  font-size: 1.1rem;
  color: #5c4033;
  text-align: center;
  margin-bottom: 5px;
}

.precio-producto {
  font-size: 1rem;
  color: #e74c3c;
  text-align: center;
}

/* Sección de Nuestra Historia */

#historia {
  background-color: #fff8f0;
  padding: 40px 0;
}

#historia .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px;
}

#historia .texto {
  flex: 1 1 45%; /* ancho flexible, se acomoda mejor */
  max-width: 600px;
  padding: 10px;
}

#historia .texto h2 {
  font-size: 2.6rem;
  margin-bottom: 30px;
  text-align: left;
}

#historia .texto p {
  font-size: 1.2rem;
  color: #34495e;
  line-height: 1.8;
  margin-bottom: 50px;
}

#historia .imagen img {
    flex: 1 1 45%; /* ancho flexible, se acomoda mejor */
  max-width: 600px;
  border-radius: 10px;
}

/* Sección de Comprar */

.btn-comprar {
  padding: 10px 25px;
  font-size: 1rem;
  background-color: #25D366; /* Verde WhatsApp */
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-comprar:hover {
  background-color: #1ebe5d;
}

/* Sección de footer */
footer {
  background-color: #5c4033;
  color: #fff8f0;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info, .footer-redes {
  flex: 1 1 300px;
}

.footer-info h3,
.footer-redes h4 {
  color: #f8d9b5;
  margin-bottom: 10px;
}

.footer-redes a {
  color: #ffe4c4;
  text-decoration: none;
  margin: 0 5px;
}

.footer-redes a:hover {
  text-decoration: underline;
  color: #ffd6a0;
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #d8c6b0;
}
