/* =============================================
   mumtazmahal.sistewa.com — Main Stylesheet
   Colores base:
     #724154  → formas, detalles decorativos
     #000000  → fondos
     #766d42  → botones, headers, CTAs
     #000000  → textos
     #9f7d73  → líneas separadoras
   ============================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: #000000;
  background-color: #000000;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === Layout contenedor === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === Hero / Header === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(114, 65, 84, 0.15) 0%,
    rgba(0, 0, 0, 0.85) 70%
  );
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(114, 65, 84, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(118, 109, 66, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(159, 125, 115, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-logo {
  display: block;
  width: min(400px, 70vw);
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeInDown 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-title span {
  color: #766d42;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background-color: #9f7d73;
  margin: 1.5rem auto;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero-scroll:hover {
  color: #766d42;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* === Navegación de categorías === */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(159, 125, 115, 0.2);
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav-list {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 0;
  min-width: max-content;
  justify-content: center;
}

.category-nav-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 999px;
  white-space: nowrap;
}

.category-nav-btn:hover {
  color: #ffffff;
  background-color: rgba(118, 109, 66, 0.1);
}

.category-nav-btn.active {
  color: #ffffff;
  background-color: #766d42;
}

/* === Timeline Menu === */
.menu-section {
  padding: 4rem 0;
  background-color: #000000;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 40px;
  height: 2px;
  background-color: #9f7d73;
  margin: 0 auto 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* === Timeline === */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    #9f7d73 5%,
    #9f7d73 95%,
    transparent
  );
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 2.5rem;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 2.5rem;
    padding-right: 0;
  }
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: #724154;
  border: 2px solid #9f7d73;
  border-radius: 50%;
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -5px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -5px;
    right: auto;
  }
}

.timeline-category {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: #766d42;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(159, 125, 115, 0.3);
}

/* === Card de plato === */
.dish-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 125, 115, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dish-card:hover {
  border-color: rgba(118, 109, 66, 0.4);
  transform: translateX(4px);
  background-color: rgba(255, 255, 255, 0.05);
}

.dish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.dish-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #766d42;
  white-space: nowrap;
}

.dish-description {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dish-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background-color: rgba(114, 65, 84, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.dish-spacer {
  width: 2px;
  height: 2px;
  background-color: #9f7d73;
  border-radius: 50%;
}

.dish-allergens {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.dish-add-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(118, 109, 66, 0.3);
  background-color: transparent;
  color: #766d42;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dish-card:hover .dish-add-btn {
  background-color: #766d42;
  color: #ffffff;
  border-color: #766d42;
}

/* === Dish bottom sheet === */
.dish-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.dish-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0s 0s;
}

.dish-sheet {
  background: #0d0d0d;
  border: 1px solid rgba(159, 125, 115, 0.15);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.08s;
  padding-top: 0.5rem;
}

.dish-sheet-overlay.active .dish-sheet {
  transform: translateY(0);
  transition-delay: 0.1s;
}

.dish-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.75rem auto 0;
}

.dish-sheet-image {
  margin: 0.5rem 1.25rem 0;
  height: 240px;
  border-radius: 14px;
  border: 1px solid #766d42;
  overflow: hidden;
  background: #1a1a1a;
}

.dish-sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-sheet-body {
  padding: 1.5rem 1.5rem 2rem;
}

.dish-sheet-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  text-align: left;
}

.dish-sheet-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #766d42;
  margin-bottom: 1rem;
  text-align: left;
}

.dish-sheet-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  text-align: left;
}

.dish-sheet-info {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  text-align: left;
}

.dish-sheet-info strong {
  color: #766d42;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.15rem;
}

.dish-sheet-info span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sheet-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.dish-sheet-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  background-color: #766d42;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.dish-sheet-btn:hover {
  background-color: #8a7d4e;
}

/* === Language selector — círculo con bandera === */
.lang-selector {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
}

.lang-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #766d42;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(118, 109, 66, 0.15);
}

.lang-circle:hover {
  border-color: #8a7d4e;
  box-shadow: 0 0 20px rgba(118, 109, 66, 0.3);
  transform: scale(1.05);
}

.lang-flag-icon {
  width: 100%;
  height: 100%;
  display: block;
}

/* === Flag picker bottom sheet === */
.flag-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}

.flag-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s 0s;
}

.flag-sheet {
  background: #0d0d0d;
  border: 1px solid rgba(159, 125, 115, 0.15);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 1rem 1.5rem 2.5rem;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.08s;
  position: relative;
}

.flag-sheet-overlay.active .flag-sheet {
  transform: translateY(0);
  transition-delay: 0.1s;
}

.flag-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 1.25rem;
}

.flag-sheet-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.75rem;
}

.flag-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 0.75rem;
  justify-items: center;
}

.flag-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.flag-sheet-overlay.active .flag-circle {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(0.35s + var(--i, 0) * 0.08s);
}

.flag-circle-flag {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #766d42;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.3s ease;
}

.flag-circle:hover .flag-circle-flag {
  border-color: #8a7d4e;
  box-shadow: 0 0 16px rgba(118, 109, 66, 0.25);
  transform: scale(1.08);
}

.flag-circle:active .flag-circle-flag {
  transform: scale(0.95);
}

.flag-circle-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.flag-circle-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.15;
}

/* === Footer === */
.footer {
  background-color: #000000;
  border-top: 1px solid rgba(159, 125, 115, 0.15);
  padding: 3rem 1.25rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #766d42;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.footer-divider {
  width: 30px;
  height: 1px;
  background-color: #9f7d73;
  margin: 1rem auto;
}

/* === Animaciones === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* === Responsive === */
@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
  }

  .lang-selector {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lang-circle {
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
  }

  .flag-sheet {
    padding: 0.75rem 1rem 2rem;
  }

  .flag-sheet-grid {
    gap: 1rem 0.5rem;
  }

  .flag-circle-flag {
    width: 48px;
    height: 48px;
  }

  .flag-circle-label {
    font-size: 0.6rem;
  }

  .category-nav-list {
    justify-content: flex-start;
    padding: 0.5rem 0;
    gap: 0.15rem;
  }

  .category-nav-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
  }

  .timeline-item {
    padding-left: 2rem;
    padding-bottom: 2rem;
  }

  .dish-card {
    padding: 1rem;
  }

  .dish-name {
    font-size: 1rem;
  }

  .dish-sheet-image {
    height: 200px;
  }

  .dish-sheet-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .dish-sheet-name {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .timeline-category {
    font-size: 1.3rem;
  }
}

/* === Scrollbar personalizada === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #724154;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a5065;
}

/* === Selección de texto === */
::selection {
  background-color: #766d42;
  color: #000000;
}
