:root {
  /* Client Colors 
       Blue: #193e73
       Gold: #de9e01
       Red: #b9231d
       Teal: #073747
    */

  /* Palette Assignment */
  --primary: #de9e01; /* Gold for Headings/Highlights */
  --primary-dark: #b88200;
  --secondary: #b9231d; /* Red for Buttons/Accents */

  /* Theme Colors */
  --background: #073747; /* Dark Teal Background */
  --surface: #10445a; /* Slightly lighter teal for cards, mixing nicely with bg */
  --surface-alt: #193e73; /* Blue for alternate sections or distinct cards */
  --menu-bg: #000000b3; /* Slightly lighter teal for cards, mixing nicely with bg */
  --text: #ffffff;
  --text-muted: #e2e8f0; /* Lighter muted text for contrast on dark teal */

  /* Fonts */
  --font-heading: "Luckiest Guy", cursive;
  --font-body: "Outfit", sans-serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 2px;
  /* Strong cartoon border effect */
  -webkit-text-stroke: 0.01em #000;
  text-shadow: 2px 2px 0 #000;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.highlight {
  color: #fff;
  position: relative;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--primary);
  z-index: -1;
  opacity: 0.6;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.section {
  padding: var(--spacing-lg) 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: var(--menu-bg); /* Dark Teal with opacity */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-socials {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-left: 1rem;
}

.nav-socials a {
  font-size: 1.5rem;
  color: var(--text);
  transition: var(--transition);
}

.nav-socials a:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url("../img/entrada.webp");
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; removed for better mobile support */
  /* margin-top: -80px; removed to fix full-screen issue */
  padding-top: 80px; /* Push content down so it's not behind navbar */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Much lighter gradient, only darkening bottom for text readability */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(7, 55, 71, 0.8) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.5rem 2.5rem;
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid #000; /* Black border for button too */
  box-shadow: 3px 3px 0 #000; /* Cartoon Pop shadow */
  text-transform: uppercase;
  -webkit-text-stroke: 1px #000; /* Subtle stroke for button text */
  text-shadow: 2px 2px 0 #000;
}

.btn-primary:hover {
  background: #ff3333;
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.btn-outline {
  display: inline-block;
  padding: 0.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 1px;
  border-radius: 50px;
  border: 2px solid #fff;
  transition: var(--transition);
  margin-left: 1rem;
  text-transform: uppercase;
}

.btn-outline:hover {
  background: #fff;
  color: var(--background);
}

/* Menu Grid */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.menu-category-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
  border-bottom: 1px solid rgba(212, 163, 115, 0.2);
  padding-bottom: 1rem;
  display: inline-block;
  width: 100%;
}

.menu-category-section {
  text-align: center;
}

.category-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

.menu-item {
  background: rgba(
    25,
    62,
    115,
    0.6
  ); /* Slightly more opaque for better text read */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Hidden by default for scroll reveal */
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease; /* Mixed transitions */
}

.menu-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.menu-item:hover {
  transform: translateY(
    -8px
  ); /* Override transform on hover, but keep reveal state */
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.menu-item-image-container {
  width: 100%;
  height: 220px;
  background-color: #073747;
  overflow: hidden;
  position: relative;
}

.menu-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-image {
  transform: scale(1.1);
}

.menu-item-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  border-bottom: 2px dashed rgba(222, 158, 1, 0.3); /* Gold dashes */
  padding-bottom: 0.8rem;
  gap: 10px;
}

.menu-item h4 {
  color: var(--text);
  font-size: 1.2rem;
  font-family: var(--font-heading);
  margin: 0;
  -webkit-text-stroke: 0.01em #000;
  text-shadow: 2px 2px 0 #000;
}

.price {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Section specific */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.bg-dark {
  background: var(--surface);
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 2rem 0 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to top, #151515, var(--background));
  position: relative;
  overflow: hidden;
}

.footer-chiva {
  max-width: 300px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.social-links {
  display: flex;
  gap: 3.5rem;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 2rem; /* Larger icons for footer */
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

/* Mobile Responsive */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .logo {
    font-size: 1.2rem;
  }
  .logo img {
    height: 40px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    background: var(--menu-bg);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 2px solid var(--primary);
  }



  .nav-links.active {
    transform: translateY(0);
  }

  .nav-socials {
    margin-left: 0;
    margin-top: 1rem;
    gap: 1.5rem; /* More space between icons */
  }

  .nav-links a {
      font-size: 1.5rem; /* Larger font for menu links */
  }

  .nav-socials i {
      font-size: 1.8rem; /* Larger social icons */
  }


  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Mobile 2-column grid for menu items */
  .category-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .menu-item {
    border-radius: 8px;
  }

  .menu-item-image-container {
    height: 120px;
  }

  .menu-item-content {
    padding: 0.8rem;
  }

  .menu-item-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.3rem;
  }

  .menu-item h4 {
    font-size: 1.0rem;
    line-height: 1.2;
    -webkit-text-stroke: 0.01em #000;
    text-shadow: 2px 2px 0 #000;
  }

  .price {
    font-size: 0.85rem;
  }

  .description {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

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

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  border: 2px solid var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
  z-index: 2001;
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--secondary);
  transform: rotate(90deg);
}

.modal-image-container {
  width: 100%;
  height: 250px;
  background: #000;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

#modalTitle {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.modal-price {
  display: block;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 #000;
}

#modalDescription {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-btn {
  width: 100%;
  cursor: pointer;
}
