:root {
  --primary: #c0392b; /* Deep Spanish Red */
  --primary-hover: #a93226;
  --accent: #d4af37; /* Gold for premium feel */
  --bg-dark: #121212;
  --bg-surface: #1e1e1e;
  --text-main: #f5f5f5;
  --text-muted: #aaaaaa;
  
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: 1px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.mt-4 {
  margin-top: 1.5rem;
  display: inline-block;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95); /* var(--bg-dark) with opacity */
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.menu-section {
  scroll-margin-top: 100px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
}

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

.nav-links a {
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-primary {
  background-color: var(--primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 15%;
  left: 5%;
  text-align: left;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  padding: 0 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.carousel-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
  color: #fff;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-dark);
}

.carousel-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  font-size: 2rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-controls button:hover {
  background: var(--primary);
}

#prev-slide { left: 2rem; }
#next-slide { right: 2rem; }

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Menu Teaser */
.menu-teaser {
  padding: 6rem 0;
  background-color: var(--bg-surface);
}

.menu-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.star-dishes {
  list-style: none;
  margin-top: 1.5rem;
}

.star-dishes li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.star-dishes li strong {
  color: var(--accent);
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.menu-teaser-image img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  background: var(--bg-dark);
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.menu-image img:hover {
  transform: scale(1.02);
}

/* Gallery Sliding Track */
.gallery {
  padding: 6rem 0;
}

.gallery-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 3rem;
}

.gallery-slider-track {
  display: flex;
  gap: 1rem;
  /* Abrupt but smooth transition */
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1); 
}

.gallery-slide-item {
  flex: 0 0 calc(33.333% - 0.66rem);
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-slide-item:hover img {
  transform: scale(1.05);
}

/* Reservations */
.reservations {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #1a2a1e 100%); /* Subtle green tint for World Cup */
}

.reservations-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* iPhone Frame */
.iphone-frame {
  width: 280px;
  height: 580px;
  border: 12px solid #111;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  background: #000;
  margin: 0 auto;
}

.iphone-frame .notch {
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #111;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.iphone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Form Wrapper & World Cup Header */
.worldcup-header {
  margin-bottom: 2rem;
}

.text-worldcup {
  color: var(--accent);
  font-weight: 300;
  text-shadow: none;
}

.worldcup-header p {
  font-weight: 300;
  letter-spacing: 0.5px;
}

.reservation-form {
  background: var(--bg-dark);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  max-width: 450px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.btn-whatsapp {
  width: 100%;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #0a0a0a;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

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

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.footer-contact a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.3); /* gold subtle border */
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}

/* Menu Page Styles */
.menu-header {
  padding: 8rem 0 4rem;
  background: url('/images/banner_events.png') center/cover;
  position: relative;
}

.menu-header::before {
  content: '';
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.7);
}

.menu-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.menu-page {
  padding: 4rem 5%;
}

.menu-section {
  margin-bottom: 4rem;
}

.menu-category {
  font-size: 2rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
}

.menu-item.classic-menu-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.menu-item.classic-menu-item:hover {
  transform: translateX(10px);
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.menu-item h3 {
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: 400;
}

.menu-item .price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.menu-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* Tooltip styles */
.img-preview-icon {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
}

.img-tooltip {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 140px;
  height: 140px;
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 3px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.img-tooltip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.img-preview-icon:hover .img-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 300;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
}

.cintillo-mundialista {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 1rem 5%;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* In a real app we'd add a hamburger menu */
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content p {
    display: none;
  }

  .carousel-controls,
  .carousel-indicators {
    display: none;
  }

  .menu-teaser-grid, .reservations-container, .footer-content, .menu-list {
    grid-template-columns: 1fr;
  }
  
  .carousel-controls button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .gallery-slide-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .gallery-slide-item {
    flex: 0 0 100%;
  }
}

.eye-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.preview-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  background-color: #000;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
  pointer-events: none;
}

.preview-tooltip img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.eye-icon:hover .preview-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.menu-header-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(18, 18, 18, 0.95);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    display: none; /* hidden by default on mobile */
    border-bottom-left-radius: 8px;
    border-left: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.active {
    display: flex !important;
  }
  .hero-carousel {
    height: 50vh !important;
  }
  .menu-header-grid {
    grid-template-columns: 1fr 1.5fr; /* text smaller, video larger */
    gap: 1rem;
  }
  .page-title {
    font-size: 2rem !important;
  }
  .page-subtitle {
    font-size: 1rem !important;
  }
}
