/* ==========================================================================
   CHIFA FELICIDAD - CSS DESIGN SYSTEM & STYLESHEET
   Aesthetics: Luxury Oriental Dark Mode, Crimson Red & Gold Accents, Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #0a0b0e;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(28, 32, 42, 0.9);
  
  --red-primary: #a81c1c;
  --red-bright: #e74c3c;
  --red-gradient: linear-gradient(135deg, #c0392b 0%, #8b0000 100%);
  
  --gold-primary: #d4af37;
  --gold-bright: #ffd700;
  --gold-light: #f9e79f;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa7c11 100%);
  
  --text-main: #f8f9fa;
  --text-muted: #a0a5b5;
  --text-gold: #f39c12;

  --border-gold: rgba(212, 175, 55, 0.25);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-title: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Glass */
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
  --shadow-red: 0 10px 30px rgba(168, 28, 28, 0.25);
  --glass-backdrop: blur(16px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Oriental Pattern Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

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

img, video {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn-trigger {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cart-btn-trigger:hover {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.cart-badge {
  background: var(--red-bright);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  background: var(--red-gradient);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
  border-color: var(--gold-bright);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b0c10;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-bright);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.7) 0%, rgba(10, 11, 14, 0.95) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(168, 28, 28, 0.3);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: var(--glass-backdrop);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Feature Bar */
.features-bar {
  background: rgba(18, 20, 26, 0.8);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: var(--glass-backdrop);
  padding: 1.5rem 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.feature-info h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section Title Header */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Section Padding */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

/* Menu Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--gold-gradient);
  color: #0b0c10;
  border-color: var(--gold-bright);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-backdrop);
}

.menu-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.menu-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.menu-card:hover .menu-card-img {
  transform: scale(1.08);
}

.menu-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--red-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,215,0,0.3);
}

.menu-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.menu-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.add-cart-btn {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--gold-gradient);
  color: #0b0c10;
  transform: scale(1.1);
}

/* PDF Section Banner */
.pdf-banner {
  background: linear-gradient(135deg, rgba(168, 28, 28, 0.3) 0%, rgba(10, 11, 14, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  backdrop-filter: var(--glass-backdrop);
}

.pdf-banner-info {
  max-width: 600px;
}

.pdf-banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pdf-banner-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 14, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Modal Windows */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: var(--glass-backdrop);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-container {
  background: #12141a;
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--red-bright);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: #12141a;
  border-left: 1px solid var(--border-gold);
  z-index: 2500;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.cart-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info h4 {
  font-size: 0.95rem;
  color: #fff;
}

.cart-item-info p {
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 11, 14, 0.95);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-total-price {
  color: var(--gold-bright);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* PDF Modal Specific */
.pdf-modal-container {
  max-width: 900px;
  height: 85vh;
}

.pdf-iframe {
  width: 100%;
  height: calc(100% - 60px);
  border: none;
  border-radius: 12px;
  margin-top: 15px;
}

/* Footer */
.footer {
  background: #060709;
  border-top: 1px solid var(--border-gold);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .nav-links {
    display: none;
  }
  .pdf-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
}
