@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary: #f0a500;
  --primary-hover: #d18d00;
  --bg-glass: rgba(15, 15, 20, 0.7);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #cccccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-image: url('../img/collage_fondo_nuevo.png');
  background-size: 100% auto;
  background-position: top center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  min-height: 100vh;
}

body.admin-active {
  /* same background, no override needed */
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #111;
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
}

.menu-item:hover {
  transform: scale(1.02);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Override browser autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #000000 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 100;
  background: transparent;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: auto;
  height: 80px;
}

.header-nav {
  display: flex;
  gap: 15px;
}

/* Main Content */
.main-content {
  padding-top: 260px;
  padding-bottom: 40px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.view {
  width: 100%;
}

.menu-center-container {
  max-width: 60%;
}

/* Container */
.container-auth {
  width: 100%;
  max-width: 500px;
  padding: 40px;
}

.title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
/* Tooltip styles */
.menu-item {
  position: relative;
}

.dish-tooltip {
  display: none;
  position: absolute;
  top: -10px;
  left: 105%;
  width: 300px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 15px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

@media (min-width: 768px) {
  .menu-item:hover .dish-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .dish-tooltip {
    position: static;
    width: 100%;
    margin-top: 15px;
    transform: none;
  }
  .menu-item.active .dish-tooltip {
    display: block;
    opacity: 1;
  }
}

.dish-tooltip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.dish-tooltip h4 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.dish-tooltip p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #ddd;
}

.dish-tooltip .meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 5px;
}

.dish-tooltip .meta strong {
  color: #fff;
}


/* Responsive Layout */
.app-main {
  padding-top: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.left-column {
  flex: 1;
  min-width: 0;
}

.right-column {
  width: 400px;
  position: sticky;
  top: 100px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .main-content {
    padding-top: 40px !important;
  }

  .app-main {
    flex-direction: column;
    gap: 20px;
    padding-top: 40px !important;
  }
  
  .right-column {
    display: none !important;
  }
    .glass-nav {
      flex-direction: column !important;
      padding: 15px 10px !important;
      justify-content: center !important; 
      align-items: center !important;
      gap: 15px !important;
      position: relative !important;
    }
  
  .nav-btn {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    margin-left: 5px !important;
  }
  
  #main-logo {
    height: 160px !important;
    margin: 0 auto !important;
  }
  
  .nav-buttons {
    justify-content: center !important;
  }
  
  #nav-login {
    background-color: white !important;
    color: black !important;
    border: none !important;
  }
  
  .menu-center-container {
    max-width: 100% !important;
    padding: 20px !important;
  }
  
  .menu-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }
  
  .menu-item > div:first-child {
    width: 100%;
  }
  
  .menu-item-price-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cart-bottom-bar {
    flex-direction: column !important;
    gap: 15px;
    text-align: center;
  }
  
  .cart-bottom-bar button {
    width: 100%;
  }
  
  .glass-card {
    padding: 20px !important;
  }
  
  /* Make section titles responsive */
  h2.section-title {
    padding-left: 10px !important;
  }
}

.mobile-logo {
  display: none;
  font-family: \'Playfair Display\', serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 768px) {
  .mobile-logo {
    display: block;
  }
}

/* ── Footer ── */
#site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(240, 165, 0, 0.15);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

#site-footer a {
  color: var(--primary);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

#site-footer a:hover {
  opacity: 1;
}
