/* Fuente elegante */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400&display=swap');

@font-face {
  font-family: "lacolmenab";
  src: url("../fonts/lacolmena.woff") format('woff');
}

@font-face {
  font-family: "lacolmena";
  src: url("../fonts/lacolmena.woff") format('woff');
}

/* Estilos generales */
body {
  font-family: 'lacolmena', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

header {
  background-color: #ffffff;
  color: #4f6e5e;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.flags img {
  width: 24px;
  height: auto;
  margin: 0 2px;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid #ccc;
  transition: transform 0.2s;
}

.flags img:hover {
  transform: scale(1.1);
}


.logo-container {
  text-align: center;
  flex-grow: 1;
}

.logo {
  max-height: 60px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.8rem;
}

h2 {
  font-family: 'lacolmena';
}

/* Menú de navegación */
nav {
  background-color: #c4cfbe;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem;
  gap: 0.5rem;
}

nav a {
  color: #4f6e5e;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #4f6e5e;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #4f6e5e;
  color: white;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: space-between;
  position: absolute;
  right: 1rem;
  top: 1.2rem;
}

.menu-toggle span {
  background: #4f6e5e;
  height: 3px;
  border-radius: 2px;
  display: block;
}

/* Sección principal */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section.info-page {
  margin-bottom: 2rem;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

form input[type="text"],
form input[type="number"],
form input[type="time"],
form select {
  padding: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button[type="submit"] {
  background-color: #4f6e5e;
  color: white;
  border: none;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

form button[type="submit"]:hover {
  background-color: #3e594c;
}

/* Diseño tipo delivery */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.producto-card {
  background: #fff;
  border: 1px solid #c4cfbe;
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(79,110,94,0.1);
}

.producto-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.producto-card h4 {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: #4f6e5e;
}

.producto-card .precio {
  font-size: 0.9rem;
  color: #7a8c7b;
  margin-bottom: 0.6rem;
}

.producto-card .cantidad-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.producto-card .cantidad-control button {
  width: 28px;
  height: 28px;
  background: #c4cfbe;
  color: #4f6e5e;
  border: 1px solid #4f6e5e;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
}

.producto-card .cantidad-control input {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.2rem;
}

/* Modal de confirmación */
#modalConfirm {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modalConfirm .modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#modalConfirm button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#btnConfirmar {
  background-color: #4f6e5e;
  color: white;
}

#btnCancelar {
  background-color: #ccc;
  color: #333;
}

/* Pie de página */
footer {
  background-color: #4f6e5e;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #4f6e5e;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
  }

  nav.show {
    display: flex;
  }

  nav a {
    color: white;
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid #3e594c;
    background-color: #4f6e5e;
  }

  nav a:hover {
    background-color: #3e594c;
  }

  .producto-card img {
    height: 80px;
  }
}


.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.home-card span {
  background: rgba(79, 110, 94, 0.8);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.actividades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}

.actividad-card {
  background: #f8f9f6;
  border: 1px solid #c4cfbe;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.actividad-card h3 {
  color: #4f6e5e;
  margin-top: 0.5rem;
}

.actividad-card p a {
  color: #4f6e5e;
  font-weight: bold;
  text-decoration: underline;
}

.actividad-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}


/* Responsive para tablet en adelante */
@media (min-width: 768px) {
  .actividades-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-datos-cliente {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
}

.form-datos-cliente input[type="text"], .form-datos-cliente input[type="number"] {
  flex: 1 1 180px;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 120px;
}

.form-datos-cliente button {
  background-color: #4f6e5e;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 140px;
  transition: background-color 0.3s;
}

.form-datos-cliente button:hover {
  background-color: #3e594c;
}

.btn-ver-carta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #4f6e5e;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-ver-carta:hover {
  background-color: #3e594c;
}

.btn-volver {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #4f6e5e;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #3e594c;
}

textarea {
  min-width: 100%;
  max-width: 100%;
  min-height: 100px;
}
