﻿/* styles.css*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Roboto:wght@400;500&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  max-width: 100%;
  overflow-x: hidden;
}

header.encabezado-opaco {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: url('img/m1.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

header .titulos {
  color: white;
  text-align: center;
  z-index: 1;
}

header .titulos h1 {
  font-size: 3rem;
  margin: 0;
}

header .titulos h2 {
  font-size: 1.3rem;
  font-weight: 100;
  margin: 0;
}
nav {
  align-items: center;
  background-color: white;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-family: 'Roboto', sans-serif;
  max-width: 100%;
}

nav .menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 10px;
  padding: 10px;
}

nav .menu li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

nav .menu li a:hover {
  color: #007BFF;
}

.telefono-nav a {
  white-space: nowrap;
  color: #333;
  text-decoration: none;
  align-self: flex-end;
}

section {
	margin: 0 25px 0 25px;
}
a {
	color: white;
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.presentacion {
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	padding: 40px;
	max-width: 100%;
	overflow: hidden;
	max-width: 100%;
  	overflow-x: hidden;

}
footer {
	text-align: center;
	background-color: #222;
	height: auto;
	max-width: 100%;
	position: relative;
	padding: 20px 20px;
	 overflow-x: hidden;
}
footer .contacto {
  margin: 1px 0;
}

footer .contacto a {
	color: white;
	  text-decoration: none;
}
footer .contacto span {
	font-size: 16px;
}
.producto {
	background-color: #f5f5f5;
	border: 2px solid #ccc;
	width: 180px;
	padding-bottom: 20px;
}
.producto img {
	display: block;
	max-width: 99%;
}
.nav1 {
	background-color: transparent;
}
.colophon {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 100%;
	height: 50px;
	font-size: 14px;
	color: #666;
	background-color: #f9f9f9;
	border-top: 1px solid #ddd;
	font-family: Verdana;
	overflow-x: hidden;

}
.colophon .copyright {
	text-align: left;
	margin-left: 10px;
	white-space: nowrap;
}
.colophon .links {
	display: flex;
}
.colophon .links a {
	color: #666;
	background-color: #f9f9f9;
	display: flex;
	margin: 0px 0px 0px 10px;
}
.colophon .a:hover {
	text-decoration: none;
	background: #C0C0C0;
	margin: 0 15px;
}
.item {
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 300px;
	background: #F4F2F0;
	align-items: center; /* Alinea verticalmente */;
	box-shadow: 1px 5px 25px rgba(0,0,0,0.25);
	border-radius: 5px;
	margin-bottom: 20px;
    object-fit: contain;
}
.image1 {
	background-image: url('img/cocina.png');
	position: relative;
	width: 45%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}
.image2 {
	background-image: url('img/reposteria.png');
	background-repeat: no-repeat;
	position: relative;
	width: 45%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}
.image3 {
	background-image: url('img/camping.png');
	background-repeat: no-repeat;
	position: relative;
	width: 45%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}
.image4 {
	background-image: url('img/hogar.png');
	background-repeat: no-repeat;
	position: relative;
	width: 45%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}
.centrado {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	object-fit: fill;
}
.centrado a {
	color: white;
	font-size: 30px;
	font-weight: 800;
	text-shadow: 1px 0px 0px black, 0px 1px 0px black, -1px 0px 0px black, 0px -1px 0px black;
}
.text {
	width: 55%;
	height: 350px;
	display: flex;
	align-items: center;
}
.text p {
	line-height: 0.9;
	padding: 10px;
	text-align:  left;
	font-size: small;
}
.map-responsive {
	overflow: hidden;
	position: relative;
	max-width: 100%;
	height: 100%;
	width: 100%;
}
.map-responsive iframe {
	left: 0;
	top: 0;
	height: 500px;
	width: 100%;
	position: relative;
}
 main  .contenedor {
      max-width: 1000px;      /* Ancho máximo del contenido */
      margin: 10px auto;     /* Margen superior/inferior y centrado horizontal */
      padding: 20px;
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 0,1px;
    }
    
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .menu {
    flex-direction: column;
    gap: 10px;
  }

  .telefono-nav {
    align-self: flex-end;
    margin-top: 10px;
  }
  
  /* --- Estilos para el botón hamburguesa --- */
.hamburger {
  display: none;               /* oculto en pantallas grandes */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación al abrir/cerrar */
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Ocultar menú por defecto en móvil --- */
.nav-menu {
  display: flex;
  align-items: center;
}
.nav-menu .menu,
.nav-menu .telefono-nav {
  display: flex;
}

/* Media query para móvil */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .hamburger {
    display: flex;
  }
  /* Ocultar enlaces y teléfono */
  .nav-menu .menu,
  .nav-menu .telefono-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  /* Cuando estén “open” */
  .nav-menu .menu.open,
  .nav-menu .telefono-nav.open {
    display: flex;
  }
  .nav-menu .menu {
    gap: 15px;
    padding: 10px 0;
  }
}


