/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Satoshi", sans-serif;
  line-height: 1.6;
  color: #4a4a4b;
  background-color: #e6e4d9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* Navegación Sticky */
.navbar {
  position: sticky;
  top: 0;
  background-color: #e6e4d9;
  color: #e6e4d9;
  padding: 0rem 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  width: 170px;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

.hamburger {
  display: none; /* Oculto en desktop */
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #e6e4d9; /* Color base */
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex; /* Horizontal en desktop */
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: "parisienne", cursive;
  font-size: 1.8rem;
  padding-right: 1.5rem;
  color: #2d5a42;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #c24f32;
}

/* Responsivo: Menú desplegable en móvil */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Mostrar hamburguesa en móvil */
  }

  .hamburger span {
    background-color: #2d5a42; /* Verde en móvil */
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2d5a42;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.open {
    display: block; /* Mostrar al abrir */
  }

  .nav-menu ul {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 1rem;
    padding: 0 1rem;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu a {
    color: #e6e4d9; /* Blanco para visibilidad */
    padding: 0.5rem;
    display: block;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
/* Hero */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  background-color: #000;
}

.carousel {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none; /* Desactiva clics en slides inactivos */
}

.slide.active {
  opacity: 1;
  pointer-events: auto; /* Activa clics en el slide activo */
}

.overlay {
  position: absolute;
  bottom: 20%;
  left: 10%;
  text-align: left;
}

/* Estilos específicos para cada banner (texto dentro de la caja) */
.overlay-1 .hero-box h2 {
  font-family: "Instrument Serif", serif;
  font-size: 5.2rem;
  font-weight: 500;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 0;
  text-align: start;
}

.overlay-1 .hero-box p {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 2rem;
}

.overlay-2 .hero-box h2 {
  font-family: "Instrument Serif", serif;
  font-size: 5.2rem;
  font-weight: 500;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 0;
  text-align: start;
}

.overlay-2 .hero-box p {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 2rem;
}

.overlay-3 .hero-box h2 {
  font-family: "Instrument Serif", serif;
  font-size: 5.2rem;
  font-weight: 500;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 0;
  text-align: start;
}

.overlay-3 .hero-box p {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #c24f32;
  color: #e6e4d9;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: #7db5e3;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  background-color: #e6e4d9;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #c24f32;
}

/* Responsivo Mobile-First */
@media (max-width: 768px) {
  .overlay {
    left: 5%;
    right: 5%;
  }
  .hero-box {
    padding: 1.5rem;
    max-width: none;
    background-color: #00000062;
  }
  .overlay-1 .hero-box h2,
  .overlay-2 .hero-box h2,
  .overlay-3 .hero-box h2 {
    font-size: 2rem;
  }
  .overlay-1 .hero-box p,
  .overlay-2 .hero-box p,
  .overlay-3 .hero-box p {
    font-size: 1rem;
  }
}

/* Secciones */
section {
  padding: 0rem 0;
}

h2 {
  font-family: "Instrument Serif", serif;
  font-size: 2.5rem;
  color: #2d5a42;
  text-align: center;
  margin-bottom: 2rem;
}

/* About */
.about {
  padding: 6.4rem 0;
}

.about-content {
  display: flex;
  flex-direction: row; /* Lado a lado en desktop */
  gap: 2rem;
  align-items: center;
}

.about-left {
  flex: 1; /* Ocupa espacio disponible */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-carousel {
  position: relative;
  width: 100%;
  max-width: 600px; /* Tamaño fijo para consistencia */
  height: 450px;
  overflow: hidden;
  border-radius: 10px;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.about-slide.active {
  opacity: 1;
}

.about-indicators {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 1rem;
}

.about-indicator {
  width: 10px;
  height: 10px;
  background-color: #7db5e3;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.about-indicator.active {
  background-color: #c24f32;
}

.about-text {
  flex: 1; /* Ocupa espacio disponible */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text h2 {
  font-family: "Instrument Serif", serif;
  font-size: 2.5rem;
  color: #2d5a42;
  text-align: left;
  margin: 0;
}

.about-text p {
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

/* Responsivo Mobile-First */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column; /* Apila verticalmente en móvil */
  }
  .about-carousel {
    height: 250px;
    width: 325px;
  }
  .about-text h2 {
    text-align: center;
  }
  .about-text p {
    text-align: center;
  }
}

/* Menu */
.menu-categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Wrap en pantallas muy pequeñas */
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%; /* Dentro del .container */
  justify-content: center; /* Centra botones horizontalmente */
}

.category {
  flex: 0 0 auto; /* No crece ni encoge, tamaño fijo */
  flex-basis: 200px; /* Ancho base fijo para evitar achicarse */
}

.category-toggle {
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Overlay semi-transparente para legibilidad */
  background-size: cover; /* Escala imagen para cubrir */
  background-position: center; /* Centra imagen */
  background-repeat: no-repeat; /* No repetir */
  border: none;
  padding: 0;
  width: 100%; /* Ocupa todo el espacio de .category */
  height: 100px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #e6e4d9; /* Texto blanco para contraste */
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Sombra para mejor legibilidad */
}

.category-toggle:hover {
  opacity: 0.8;
}

.category-toggle.active {
  opacity: 0.6;
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  width: 100%; /* Ancho completo del contenedor (.menu-categories) */
  margin-top: 1rem;
}

.category-content.open {
  max-height: 2000px; /* Alto suficiente para muchos ítems sin cortar */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  background-image: url("img/Mizzica_Collage.png"); /* Collage de fondo - reemplaza con tu URL */
  background-size: cover; /* Escala para cubrir */
  background-position: center; /* Centra */
  background-repeat: repeat; /* No repetir */
  border-radius: 10px;
}

.menu-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(
    255,
    255,
    255,
    0.712
  ); /* Blanco semi-transparente para legibilidad */
  border-radius: 10px;
  align-items: stretch;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil para destacar sobre el collage */
}

.menu-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.item-details h3 {
  font-family: "Instrument Serif", serif;
  color: #2d5a42;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.item-details p {
  font-size: 1rem;
  color: #4a4a4b;
  flex: 1;
}

.price {
  font-weight: bold;
  color: #c24f32;
  align-self: flex-end;
}

/* Responsivo para Menú */
@media (max-width: 768px) {
  .menu-categories {
    flex-direction: column; /* Vertical en móvil */
    flex-wrap: nowrap;
  }
  .category {
    flex-basis: auto; /* Auto en móvil para ancho completo */
  }
  .category-toggle {
    width: 100%;
  }
  .category-content.open {
    grid-template-columns: 1fr; /* Una columna en móvil */
    max-height: 500px; /* Altura fija para scroll */
    overflow-y: auto; /* Scroll vertical dentro del contenedor */
  }
  .menu-item {
    flex-direction: column; /* Vertical en móvil */
    text-align: center; /* Centra texto */
    gap: 0.5rem;
  }
  .menu-item img {
    align-self: center; /* Centra imagen */
    width: 120px; /* Un poco más grande en móvil */
    height: 120px;
  }
}

/* Contact */
.contact {
  padding: 4rem 0;
}

.contact h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: "Instrument Serif", serif;
  font-size: 2.6rem;
  color: #2d5a42;
}

.contact-icons {
  display: flex;
  flex-direction: row; /* Horizontal */
  gap: 2rem;
  justify-content: center; /* Centra horizontalmente */
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column; /* Ícono arriba, texto abajo */
  align-items: center;
  text-align: center;
  max-width: 200px; /* Limita ancho para consistencia */
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: #2d5a42; /* Verde */
  border-radius: 50%; /* Circular */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* Tamaño del ícono */
  color: #e6e4d9; /* Blanco */
  margin-bottom: 1rem;
}

.contact-item p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-item a {
  color: #7db5e3;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item ul {
  list-style-type: disc; /* Viñetas */
  padding-left: 1.5rem; /* Indentación */
  margin: 0.5rem 0 0 0;
  text-align: left;
}

.contact-item li {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.contact-form-container {
  display: flex;
  flex-direction: row; /* Lado a lado en desktop */
  gap: 2rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1; /* Ocupa espacio disponible */
}

.contact-image {
  flex: 1; /* Ocupa espacio disponible */
}

.contact-image img {
  width: 55%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsivo Mobile-First */
@media (max-width: 768px) {
  .contact-icons {
    flex-direction: column; /* Vertical en móvil */
    gap: 1.5rem;
  }
  .contact-item {
    max-width: none;
  }
  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .contact-form-container {
    flex-direction: column; /* Apila en móvil */
  }
  .contact-form {
    max-width: none;
  }
}

/* Responsivo Mobile-First */
@media (max-width: 768px) {
  .contact-icons {
    flex-direction: column; /* Vertical en móvil */
    gap: 1.5rem;
  }
  .contact-item {
    max-width: none;
  }
  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .contact-form-container {
    flex-direction: column; /* Apila en móvil */
  }
  .contact-form {
    max-width: none;
    width: 100%; /* Ancho completo en móvil */
  }
  .contact-image {
    display: flex;
    justify-content: center; /* Centra imagen horizontalmente */
  }
  .contact-image img {
    max-width: 100%; /* Asegura que no exceda el contenedor */
  }
}
/* Footer */
.footer {
  background-color: #2d5a42;
  color: #e6e4d9;
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center; /* Centra todo horizontalmente */
  gap: 1rem;
}

.footer-logo {
  width: auto;
  height: 100px; /* Alto pequeño */
  object-fit: contain;
}

.footer-text {
  text-align: left; /* Alinea texto a la izquierda */
}

.footer-text p {
  margin: 0.5rem 0;
}

/* Responsivo Mobile-First */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column; /* Apila en móvil */
    gap: 0.5rem;
  }
  .footer-text {
    text-align: center; /* Centra texto en móvil */
  }
}

/* Botón WhatsApp Flotante */
.whatsapp-button {
  position: fixed;
  bottom: 80px;
  right: 80px;
  width: 80px;
  height: 80px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 40px;
  height: 40px;
}

/* Responsivo Mobile-First */
@media (max-width: 768px) {
  .overlay h2 {
    font-size: 2rem;
  }
  .overlay p {
    font-size: 1rem;
  }
  .menu-item {
    flex-direction: column;
    text-align: center;
  }
  .whatsapp-button {
    width: 70px;
    height: 70px;
    bottom: 40px;
    right: 40px;
  }
  .whatsapp-button img {
    width: 35px;
    height: 35px;
  }
}

/* Responsivo: Menú desplegable en móvil */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Mostrar hamburguesa en móvil */
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2d5a42;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.open {
    display: block; /* Mostrar al abrir */
  }

  .nav-menu ul {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 1rem;
    padding: 0 1rem;
  }

  .nav-menu li {
    text-align: center;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
