/* Estilos generales */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f5f0;
    color: #333;
    text-align: center;
}

/* HEADER / NAVBAR */
header {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 74, 65, 0.8), rgba(22, 74, 65, 0.5)), url('assets/fiambreria.jpg') no-repeat center/cover;
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.headercontacto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 10px 20px;
  margin: 0 auto;
}

.logoencontacto {
  width: 120px;
  transition: transform 0.3s ease-in-out;
  margin-left: 0;
}

.logoencontacto:hover {
  transform: scale(1.05);
}

.navlist {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 0;
}

.navlist li {
  display: inline;
}

.navlist a {
  color: white;
  text-align: end;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s;
  font-family: 'Poppins', sans-serif;
}

.navlist a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
  /* Ocultar checkbox */
  #menu-toggle {
    display: none;
  }
  
  /* Icono hamburguesa */
  .menu-icon-action {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
  }

/* SECCIÓN CONTACTO */
#contacto {
    padding: 50px 20px;
}

#contacto h2 {
    font-size: 28px;
    color: #164A41;
    margin-bottom: 15px;
}

#contacto p {
    font-size: 18px;
    margin-bottom: 20px;
}

.contacto-info {
    background: #9DC88D;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto 20px;
}

.contacto-info p {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
}

/* Google Maps */
.map-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 10px;
}

/* ICONOS DE REDES */
.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.icons a {
    font-size: 24px;
    color: #164A41;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
}

.icons a:hover {
    transform: scale(1.1);
}

/* FOOTER */
footer {
    background: #164A41;
    color: white;
    padding: 20px;
    margin-top: 50px;
    font-size: 14px;
}

#devBy {
    color: gray;
}

/* ESTILO RESPONSIVE */
@media (max-width: 768px) {
  .headercontacto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 15px 20px;
    width: 100%;
  }

  .logoencontacto {
    margin-left: 0;
  }

  .menu-icon-action {
    display: block;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Estilos del menú desplegable */
  .navlist {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #164A41;
    flex-direction: column;
    align-items: auto; /* centrado horizontal */
    justify-content: auto; /* centrado vertical si tiene altura */
    padding: 20px 0;
    z-index: 1000;
    text-align: auto;
  }

  /* Mostrar menú cuando el checkbox está activado */
  #menu-toggle:checked + .menu-icon-action + .navlist {
    display: flex;
  }

  .navlist li {
    padding: 10px 0;
    width: 100%;
  }

  .navlist a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
  }

  .navlist a:hover {
    background-color: white;
    color: #F1B24A;
  }
}

  

@media (min-width: 769px) {

    .menu-icon-action {
        display: none !important;
    }

    .navlist li {
        margin: 0 15px;
    }
}