/* HEADER GENERAL */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* OLITAS */
.header-wave {
  width: 100%;
  height: 50px;
  background: url('../img/wave-top.svg') repeat-x;
  background-size: contain;
  transform: rotate(180deg);
  transition: height 0.3s ease, opacity 0.3s ease;
}
.footer-wave {
  width: 100%;
  height: 50px;
  background: url('../img/wave-top.svg') repeat-x;
  background-size: contain;
  transition: height 0.3s ease, opacity 0.3s ease;
    margin-bottom: -5px;
}
/* CONTENEDOR PRINCIPAL */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* MENU HAMBURGUESA */
.menu-left {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.menu-left:hover .menu-text { 
  color: #f7a9a8; 
}
.menu-left:hover .menu-hamburguesa div { 
  background-color: #f7a9a8; 
}
.menu-hamburguesa {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 17px;
}
.menu-hamburguesa div {
  height: 3px;
  background: #5b5959;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.menu-text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #5b5959;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* LOGO */
.logo img {
  height: 150px;
  transition: height 0.3s ease;
}
@keyframes logo-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px); }
  30% { transform: translateX(4px); }
  45% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  90% { transform: translateX(2px); }
}
/* Aplica el efecto cuando pasas el mouse sobre el logo */
.logo img:hover {
  animation: logo-shake 0.6s ease;
}

/* ICONOS DERECHA */
.right-icons img { 
  width: 50px; 
}
.right-icons img:hover { 
  scale: calc(1.2);
}

/* MENU LATERAL */
.menu-lateral {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100%;
  background: #413937;
  display: flex;
  flex-direction: column; /* <--- esto hace que apilen verticalmente */
  justify-content: flex-start; /* opcional: empieza desde arriba */
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 999;
  padding-top: 80px; /* deja espacio para el título y botón */
}
.menu-lateral.open { 
  transform: translateX(0); 
}
.menu-lateral ul { 
  list-style: none; padding:0; 
  margin:0; 
  text-align:center; 
}
.menu-lateral li { 
  margin: 15px 0; 
  width: 130px; 
  height: 30px; 
  padding: 5px 0px; 
  border-radius: 5px; 
  align-content: center;
}
.menu-lateral li a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  padding: 10px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}
.menu-lateral li a.active,
.menu-lateral li:hover { 
  background: #f7a9a8; 
  color: #3b2b26; 
  font-weight: 600; 
}
.menu-lateral li a:hover {
  color: #3b2b26;
  font-weight: 600;
}
.menu-lateral li a.active {
  padding: 10px 40px;
  border-radius: 5px;
}
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tache { 
  width: 15px; 
  height: 15px; 
  background-image: url(../img/cerrar.png); 
  background-position: center; 
  background-size: 100%; 
  margin-top: 60px;
}
.tache:hover { 
  background-image: url(../img/cancel.png); 
}

/* HEADER FIJO AL SCROLL */
#header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 900; /* debajo del main header al inicio */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
#header-fixed.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tamaño compacto header fijo */
#header-fixed .logo img { 
  height: 100px; 
}
#header-fixed .menu-text { 
  font-size: 15px; 
}
#header-fixed .menu-hamburguesa { 
  width: 20px; height: 14px; 
}
#header-fixed .menu-hamburguesa div { 
  height: 2px; 
}
#header-fixed .right-icons img { 
  width: 40px; 
}
/* Main header desaparece suavemente */
#main-header.scrolled {
  opacity: 0;
  z-index: 1001; /* encima del fijo mientras se desvanece */
  transition: opacity 0.5s ease;
}
/* Placeholder para evitar que el contenido suba */
#header-placeholder { 
  height: 180px; 
}

.menu-lateral .menu-title {
  color: #fff;
  font-family: 'BergstenaDecorated', sans-serif;
  font-size: 36px;
  text-align: center;
  margin-bottom: 30px; /* separa del listado de links */
  margin-top: 50%;
}
.menu-title:hover {
  text-decoration:underline;
}


/*****FOOTER****/
.footer {
  background-color: #fff;
  position: relative;
  color: #d8d8d8;
  text-align: center;
  overflow: hidden;
  margin-top: 60px;
}

.footer-waves img {
  width: 100%;
  display: block;
  margin-bottom: -5px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 20px;
  background-color: #413937;
  position: relative; /* importante para que las líneas se posicionen bien */
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px;
  text-align: left;
  position: relative; /* necesario para posicionar el divisor */
  text-align: center;
}

/* Líneas divisorias */
.footer-section.acerca:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%; /* centrada verticalmente */
  right: 0;
  width: 2px;
  height: 70%; /* la mitad del alto del contenedor */
  background-color: rgba(255, 255, 255, 0.2); /* tono claro, sutil */
}
.footer-section.centro:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%; /* centrada verticalmente */
  right: 0;
  width: 2px;
  height: 90%; /* la mitad del alto del contenedor */
  background-color: rgba(255, 255, 255, 0.2); /* tono claro, sutil */
}

/* Centrado solo en la sección del medio */
.footer-section.center {
  text-align: center;
}

/* Resto del estilo permanece igual */
.footer-section h3 {
  font-size: 55px;
  margin-bottom: 10px;
  margin-top: 170px;
  color: #f7a9a8;
}
.footer-section p {
  line-height: 1.4;
  color: #d8d8d8;
  font-family: 'Mono', serif;
  font-size: 14px;
}
.footer-section.center {
  text-align: center;
}
.footer-logo {
  width: 230px;
  margin: 10px auto;
  margin-bottom: 20px;
}
.footer-bottom {
  background-color: #d3bcf6;
  color: #666;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
.footer-section.acerca p {
    padding-right: 20px;
    text-align: justify;
}
.cont-socialmedia {
  width: 55%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.cuadro {
    display: grid;
    grid-template-columns: 10% 80%;
    gap: 10%;
    height: 40px;
    margin: 15px 0;
    align-content: center;
    align-items: center;
}
.cont-socialmedia img {
    width: 35px;
}
.cuadro a {
    font-family: 'Mono';
    color: #d8d8d8;
    font-size: 15px;
    text-align: justify;
    font-weight: 600;
    text-decoration: none;
}
.cuadro a:hover {
  color: #f7a9a8;
}


/*************BOTON WSP****************/
.whatsapp-button {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 65px;
  height: 65px;
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
    width: 50px;
    display: block;
    margin: 0 auto;
    margin-top: 8px;
}

/*************BOTON CANASTA****************/
.cart-button {
  position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #f7a9a8;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}
.cart-button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
}
.cart-button img {
  width: 35px;
}