/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #fefefe;
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden; 
  transition: margin-left 0.3s ease-in-out;
}

/* Encabezado con imagen de fondo */
.hero {
  background: url("img/mantel.jpg") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  animation: fadeIn 2s ease-in;
  font-family: "Montserrat", sans-serif;
}

.hero h1 {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: white;
  -webkit-text-stroke: 1.2px #004d40;
  -webkit-text-fill-color: white;
  text-shadow: 
    -1px -1px 1px #004d40,  
     1px -1px 1px #004d40,  
    -1px  1px 1px #004d40,  
     1px  1px 1px #004d40,  
     2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Estilos para el logo principal */
.logo-principal {
  display: block;
  margin: 0 auto;
  max-width: 50%; /* Puedes cambiar este valor (ej: 40%, 60%) para ajustarlo */
  max-height: 250px; /* Limita también la altura para que no sea demasiado grande */
  height: auto;
  padding-top: 20px;
}

/* Media query para móviles */
@media (max-width: 768px) {
  .logo-principal {
    max-width: 70%; /* Se verá un poco más grande en móviles para que se aprecie mejor */
  }
}

/* Secciones generales */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  animation: slideIn 1s ease;
}

/* Galería de fotos */
.galeria-fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.galeria-fotos img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.galeria-fotos img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #004d40;
  color: white;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Menú hamburguesa */
.menu-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  width: 50px; 
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-toggle-icon {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Estilos base para ambos iconos (hamburguesa y 'X') */
.hamburger,
.close-menu-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #004d40;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, opacity 0.3s ease-in-out;
  cursor: pointer;
}

/* Efecto hover para ambos iconos */
.hamburger:hover,
.close-menu-icon:hover {
  background: #00695c;
}

/* Estado inicial: la 'X' está oculta y no es clickeable */
.close-menu-icon {
  opacity: 0;
  pointer-events: none;
}

/* Cuando el menú está abierto (body tiene la clase menu-open): */
body.menu-open .hamburger {
  opacity: 0;
  pointer-events: none;
}

body.menu-open .close-menu-icon {
  opacity: 1; 
  pointer-events: auto; 
}

/* Menú lateral */
.side-menu {
  position: fixed;
  top: 0;
  transform: translateX(-100%);
  width: 200px;
  height: 100%;
  background: #00695c;
  color: white;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
   transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.side-menu a:hover {
  text-decoration: underline;
}

.side-menu.open {
  transform: translateX(0)
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px; 
  font-size: 28px;
  cursor: pointer;
  color: white;
  z-index: 1001;
  padding: 5px;
  background: transparent;
  border-radius: 5px;
  transition: background 0.3s;
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #a7d9d0;
}


/* Fondo oscuro al abrir menú */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0; 
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

/* Responsividad */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .galeria-fotos img {
    width: 90%;
    height: auto;
  }

  .side-menu {
    width: 70%;
  }

  body.menu-open {
     margin-left: 250px;
    }
  
}

/* Estilo responsive para el iframe del mapa */
.mapa-iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.postres-grid { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.postre-item { 
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.postre-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.postre-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 10px;
}

.postre-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 10px;
    padding-bottom: 5px;
}

/* Estilos para el modal/lightbox de la imagen grande */
/* Estilos para el modal (oculto por defecto) */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

/* Estilos para el modal cuando está abierto */
.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal.open .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.precio-postre {
    font-size: 1.1rem;
    font-weight: bold;
    color: #004d40;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 0 10px;
}

/* Animación para el modal */
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutModal {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive para la sección de postres */
@media (max-width: 1024px) {
    .postre-item {
        flex: 0 0 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .postre-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    
    
    main {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .postre-item {
        flex: 0 0 calc(100% - 20px); 
        max-width: calc(100% - 20px);
    }
    .postre-item img {
        height: 200px;
    }
}

/* Estilos para el menú de la Carta */
.carta-layout {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    font-family: "Montserrat", sans-serif;
    color: #333;
    gap: 30px;
}

.carta-left-col {
    width: 15%;
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding-top: 50px;
    letter-spacing: 5px;
    color: #004d40;
}

.carta-right-col {
    width: 85%;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #004d40;
    margin-top: 30px;
    margin-bottom: 10px;
    letter-spacing: normal;
}

.menu-content h2:first-of-type {
    margin-top: 0;
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.menu-content li:last-child {
    border-bottom: none;
}

.menu-content li span {
    font-size: 1.1rem;
    line-height: 1.4;
}

.menu-content li .precio {
    font-weight: bold;
    color: #004d40;
    flex-shrink: 0;
    padding-right: 15px;
    width: 70px;
    text-align: right;
}

.detalle {
    font-size: 0.9rem;
    color: #666;
    display: block;
}

/* Estilos para los botones de idioma */
.lang-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-container button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.lang-container button:hover {
    transform: scale(1.1);
}

.lang-container img {
    width: 30px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-carta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.footer-logo {
    width: 80px;
    height: auto;
}

@media (max-width: 768px) {
    .carta-left-col {
        display: none;
    }
}