/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   HEADER NUEVO (3 columnas)
   + Menú móvil SOLO CSS
   ========================= */
.site-header {
  background-color: #2a7f2a;
  color: white;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* izquierda / centro / derecha */
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

/* Checkbox oculto */
.menu-toggle {
  display: none;
}

/* Hamburguesa (solo móvil) */
.hamburger {
  display: none;
  color: white;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 1.25rem;
}
.hamburger:hover {
  background: rgba(255,255,255,0.12);
}

/* Nav escritorio (izquierda) */
.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}
.nav-desktop a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.nav-desktop a:hover {
  text-decoration: underline;
}

/* Logo centrado */
.site-header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-header .logo img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 10px;
}

/* Acciones (derecha) */
.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}
.icon-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* Badge carrito */
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d94c4c;
  color: white;
  font-size: 0.75rem;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}

/* Idiomas (dropdown desktop) */
.lang {
  position: relative;
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  color: #333;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 140px;
  z-index: 50;
}
.lang-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  color: #333;
  font-weight: 700;
}
.lang-menu a:hover {
  background: #f2f2f2;
}
.lang:hover .lang-menu {
  display: block;
}

/* Menú móvil */
.nav-mobile {
  display: none;
  background: #246b24;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.nav-mobile ul {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
}
.nav-mobile a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.8rem 5%;
  font-weight: 700;
}
.nav-mobile a:hover {
  background: rgba(255,255,255,0.10);
}

/* Abrir menú móvil cuando el checkbox está checked
   (checkbox y nav-mobile son hermanos dentro de .site-header) */
.menu-toggle:checked ~ .nav-mobile {
  display: block;
}

/* Acciones extra en el menú móvil */
.mobile-actions {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.mobile-lang {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem 5%;
  color: white;
  align-items: center;
  flex-wrap: wrap;
}
.mobile-lang span {
  font-weight: 700;
}
.mobile-lang a {
  padding: 0;
  display: inline;
  text-decoration: underline;
}

/* RESPONSIVE (móvil) */
@media (max-width: 768px) {
  /* En móvil: ocultar menú escritorio */
  .nav-desktop {
    display: none;
  }

  /* Grid: izq (hamburguesa) / centro (logo) / dcha (acciones) */
  .header-container {
    grid-template-columns: auto 1fr auto;
  }

  /* Mostrar hamburguesa */
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Ocultar dropdown por hover en móvil (ya está en el menú móvil) */
  .lang-menu {
    display: none !important;
  }
}

/* HERO */
.hero {
  background: url('hero.jpg') center/cover no-repeat;
  color: black;
  text-align: center;
  padding: 6rem 1rem;
}

.hero h1 {
  font-family: 'Mistake Note', cursive;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* BUTTONS */
.btn-primary {
  background-color: #d94c4c;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #c13c3c;
}

.btn-secondary {
  background-color: #2a7f2a;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #246b24;
}

/* SECTIONS */
.section-container {
  padding: 4rem 0;
}

.section-title {
  font-family: 'Mistake Note', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* PRODUCTOS */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.producto-card {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.producto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.producto-card .precio {
  font-weight: bold;
  margin: 0.5rem 0;
}

/* RESERVA IMAGE */
.reserva-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 10px;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

input, textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #2a7f2a;
}

/* FOOTER */
footer {
  background-color: #2a7f2a;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.casella-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.casella-gallery img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.casella-reserva select{
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

@media (max-width: 768px){
  .casella-gallery{
    grid-template-columns: 1fr;
  }
  .casella-gallery img{
    height: 200px;
  }
}
