* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cafe-oscuro: #4a230d;
  --cafe-medio: #6f4217;
  --dorado: #a9781b;
  --crema: #fffaf0;
  --texto: #5c3a22;
  --linea-cafe: rgba(111, 66, 23, 0.42);
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--texto);
  background-color: #2b1408;
  position: relative;
}

/* Fondo fijo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: url("imagenes/fondo111.jpg") center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Capa sobre el fondo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(43, 20, 8, 0.12);
  z-index: 1;
  pointer-events: none;
}

/* Contenedor general */
.menu-page {
  width: min(1100px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 14px;
  display: grid;
  grid-template-columns: minmax(0, 620px) 120px;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* Carta */
.menu-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 36px 30px;
  background: rgba(255, 250, 240, 0.93);
  border: 2px solid rgba(140, 92, 46, 0.48);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.30);
  position: relative;
  overflow: visible;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(145, 96, 47, 0.34);
  pointer-events: none;
}

/* Capas internas */
.menu-header,
.menu-title,
.carousel,
.order-info {
  position: relative;
  z-index: 1;
}

/* Encabezado */
.menu-header {
  text-align: center;
}

.logo {
  width: min(350px, 100%);
  display: block;
  margin: 0 auto 8px;
}

.schedule {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--cafe-oscuro);
  color: var(--crema);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Título */
.menu-title {
  margin-top: 16px;
  text-align: center;
}

.menu-title h1 {
  width: 100%;
  color: var(--cafe-oscuro);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  text-align: center;
  margin: 0 auto 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--linea-cafe);
}

/* Carrusel por secciones */
.carousel {
  margin-top: 6px;
  position: relative;
  touch-action: auto;
}

.carousel-window {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  border-bottom: 2px solid var(--linea-cafe);
  touch-action: auto;
}

.carousel-track {
  display: block;
  transform: none;
  transition: none;
}

/* Ocultar todas las secciones */
.carousel-slide {
  display: none;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 8px 46px 14px;
  text-align: center;
  overflow: visible;
}

/* Mostrar solo la activa */
.carousel-slide.active {
  display: block;
}

/* Número de sección */
.section-number {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(74, 35, 13, 0.72);
  margin-bottom: 6px;
}

/* Título de cada sección */
.carousel-slide h2 {
  color: var(--cafe-oscuro);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  margin-bottom: 12px;
  text-align: center;
}

/* Artículos del menú */
.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1.6px solid rgba(111, 66, 23, 0.28);
  text-align: left;
}

.menu-item h3 {
  color: var(--cafe-oscuro);
  font-size: 1.18rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

.menu-item p {
  font-size: 0.86rem;
  line-height: 1.25;
}

.menu-item span {
  color: var(--cafe-oscuro);
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--cafe-oscuro);
  color: var(--crema);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.carousel-btn.prev {
  left: 2px;
}

.carousel-btn.next {
  right: 2px;
}

/* Puntos */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(74, 35, 13, 0.35);
  cursor: pointer;
}

.dot.active {
  background: var(--cafe-oscuro);
  transform: scale(1.25);
}

.swipe-text {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 8px;
  color: rgba(74, 35, 13, 0.75);
}

/* Aviso final */
.order-info {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(111, 66, 23, 0.08);
  border-radius: 16px;
  text-align: center;
}

.order-info h2 {
  color: var(--cafe-oscuro);
  font-size: 1.05rem;
}

/* Texto lateral escritorio */
.side-title {
  position: sticky;
  top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(169, 120, 27, 0.85);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.side-title span {
  font-family: Arial, sans-serif;
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
}

.side-title small {
  margin-top: 16px;
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  color: rgba(255, 250, 240, 0.9);
}

/* TABLETAS */
@media (max-width: 1024px) {
  body::after {
    background: rgba(43, 20, 8, 0.10);
  }

  .menu-page {
    display: block;
    padding: 30px 0;
  }

  .menu-card {
    width: 84%;
    max-width: 620px;
    padding: 24px 32px 30px;
  }

  .logo {
    width: min(330px, 100%);
  }

  .side-title {
    display: none;
  }

  .carousel-slide {
    padding: 8px 42px 14px;
  }

  .carousel-slide h2 {
    font-size: 2.1rem;
  }

  .menu-item h3 {
    font-size: 1.12rem;
  }
}

/* CELULARES */
@media (max-width: 850px) {
  body::before,
  body::after {
    height: 100vh;
    height: 100dvh;
  }

  body::after {
    background: rgba(43, 20, 8, 0.14);
  }

  .menu-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 0;
    overflow: visible;
  }

  .menu-card {
    width: 94%;
    max-width: 430px;
    padding: 20px 20px 24px;
    background: rgba(255, 250, 240, 0.93);
    overflow: visible;
  }

  .menu-card::before {
    inset: 10px;
  }

  .logo {
    width: min(280px, 100%);
  }

  .schedule {
    font-size: 0.8rem;
    padding: 7px 16px;
  }

  .menu-title {
    margin-top: 14px;
  }

  .menu-title h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .carousel {
    margin-top: 4px;
    touch-action: auto;
  }

  .carousel-window {
    overflow: visible;
    touch-action: auto;
  }

  .carousel-slide {
    padding: 8px 34px 12px;
    overflow: visible;
  }

  .section-number {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .carousel-slide h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .menu-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 0;
  }

  .menu-item h3 {
    font-size: 1rem;
  }

  .menu-item p {
    font-size: 0.76rem;
  }

  .menu-item span {
    font-size: 0.82rem;
  }

  .carousel-btn {
    top: 54%;
    width: 32px;
    height: 32px;
    font-size: 1.55rem;
  }

  .carousel-btn.prev {
    left: 0;
  }

  .carousel-btn.next {
    right: 0;
  }

  .carousel-dots {
    gap: 7px;
    margin-top: 10px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .swipe-text {
    font-size: 0.72rem;
    margin-top: 8px;
  }

  .order-info {
    margin-top: 12px;
    padding: 11px 12px;
  }

  .order-info h2 {
    font-size: 0.95rem;
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 480px) {
  body::after {
    background: rgba(43, 20, 8, 0.08);
  }

  .menu-page {
    padding: 16px 0;
  }

  .menu-card {
    width: 94%;
    max-width: 395px;
    padding: 18px 18px 22px;
  }

  .logo {
    width: min(260px, 100%);
  }

  .schedule {
    font-size: 0.76rem;
    padding: 6px 14px;
  }

  .menu-title h1 {
    font-size: 1.9rem;
  }

  .carousel-slide {
    padding: 8px 30px 10px;
  }

  .carousel-slide h2 {
    font-size: 1.48rem;
  }

  .menu-item {
    padding: 5px 0;
  }

  .menu-item h3 {
    font-size: 0.92rem;
  }

  .menu-item p {
    font-size: 0.68rem;
  }

  .menu-item span {
    font-size: 0.76rem;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 1.45rem;
  }

  .order-info h2 {
    font-size: 0.88rem;
  }
}

/* ========================= */
/* SECCIÓN 9: EVENTOS */
/* ========================= */

.event-slide {
  text-align: center;
}

.event-message {
  padding: 12px 10px 16px;
  border-bottom: 2px solid var(--linea-cafe);
}

.event-message h3 {
  color: var(--cafe-oscuro);
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.event-message p {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--texto);
  margin-bottom: 14px;
}

.reserve-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cafe-oscuro);
  color: var(--crema);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(74, 35, 13, 0.25);
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.event-photo {
  min-height: 115px;
  border: 2px dashed rgba(111, 66, 23, 0.42);
  border-radius: 14px;
  background: rgba(111, 66, 23, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(74, 35, 13, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
}

.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Celulares */
@media (max-width: 850px) {
  .event-message {
    padding: 10px 6px 14px;
  }

  .event-message h3 {
    font-size: 1.35rem;
  }

  .event-message p {
    font-size: 0.88rem;
  }

  .reserve-button {
    font-size: 0.84rem;
    padding: 9px 16px;
  }

  .event-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .event-photo {
    min-height: 120px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .event-message h3 {
    font-size: 1.2rem;
  }

  .event-message p {
    font-size: 0.8rem;
  }

  .event-photo {
    min-height: 105px;
  }
}

/* ========================= */
/* FOTOS DE BUFFET */
/* ========================= */

.buffet-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.buffet-photo {
  height: 135px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--linea-cafe);
  box-shadow: 0 8px 18px rgba(74, 35, 13, 0.22);
  background: rgba(111, 66, 23, 0.08);
}

.buffet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Celulares */
@media (max-width: 850px) {
  .buffet-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .buffet-photo {
    height: 135px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .buffet-photo {
    height: 120px;
  }
}

/* ========================= */
/* PÁGINA EXTRA: EVENTOS */
/* ========================= */

.event-slide {
  text-align: center;
}

.event-message {
  padding: 12px 10px 16px;
  border-bottom: 2px solid var(--linea-cafe);
}

.event-message h3 {
  color: var(--cafe-oscuro);
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.event-message p {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--texto);
  margin-bottom: 14px;
}

.reserve-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cafe-oscuro);
  color: var(--crema);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(74, 35, 13, 0.25);
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.event-photo {
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--linea-cafe);
  background: rgba(111, 66, 23, 0.08);
  box-shadow: 0 8px 18px rgba(74, 35, 13, 0.22);
}

.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Celulares */
@media (max-width: 850px) {
  .event-message {
    padding: 10px 6px 14px;
  }

  .event-message h3 {
    font-size: 1.35rem;
  }

  .event-message p {
    font-size: 0.88rem;
  }

  .reserve-button {
    font-size: 0.84rem;
    padding: 9px 16px;
  }

  .event-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .event-photo {
    height: 135px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .event-message h3 {
    font-size: 1.2rem;
  }

  .event-message p {
    font-size: 0.8rem;
  }

  .event-photo {
    height: 120px;
  }
}