/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: "Inter", sans-serif;
  background: #faf7f2;
  color: #2c1810;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --bg-cream: #faf7f2;
  --bg-dark: #2c1810;
  --bg-warm: #8b4513;
  --accent: #d4a04a;
  --accent-light: #e8c97a;
  --text-dark: #2c1810;
  --text-light: #faf7f2;
  --text-muted: #6b5b4f;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}
header.scrolled {
  background: rgba(44, 24, 16, 0.98);
}
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo i {
  font-size: 1.6rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
nav a:hover,
nav a.active {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 40%, #3d2317 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(212, 160, 74, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(212, 160, 74, 0.05) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a04a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-tag {
  display: inline-block;
  background: rgba(212, 160, 74, 0.15);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 160, 74, 0.2);
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 74, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(250, 247, 242, 0.2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== SECTION BASE ===== */
section {
  padding: 80px 24px;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 12px;
  border-radius: 3px;
}

/* ===== INFO SECTION ===== */
#info {
  background: var(--bg-cream);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.info-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: center;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.info-card i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.info-card .hours-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
}
.info-card .hours-row .day {
  font-weight: 600;
}
.info-card .hours-row .time {
  color: var(--text-muted);
}
.hours-today {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: rgba(212, 160, 74, 0.1);
  color: var(--bg-warm);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== MENU ===== */
#menu {
  background: white;
}
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.menu-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #e0d5c8;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
}
.menu-tab:hover {
  border-color: var(--accent);
  color: var(--bg-warm);
}
.menu-tab.active {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.menu-item {
  background: var(--bg-cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.menu-item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e8ddd0;
}
.menu-item-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #d4a04a;
  background: linear-gradient(135deg, #f5ede4 0%, #e8ddd0 100%);
}
.menu-item-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.menu-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.menu-item .price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  white-space: nowrap;
}
.menu-item .desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 14px;
}
.menu-item .add-btn {
  align-self: flex-end;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: var(--bg-dark);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-item .add-btn:hover {
  background: var(--bg-warm);
}
.menu-category-title {
  grid-column: 1 / -1;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin: 16px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

/* ===== FLOATING CART BUTTON ===== */
.cart-float {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.cart-float:hover {
  transform: scale(1.1);
  background: var(--bg-warm);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.cart-float .cart-count-float {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  transition: transform 0.3s;
}
.cart-float .cart-count-float.bounce {
  transform: scale(1.3);
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: white;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
}
.cart-sidebar.open {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #eee;
}
.cart-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}
.cart-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s;
}
.cart-header .close-btn:hover {
  color: var(--text-dark);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}
.cart-empty i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 12px;
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe5;
}
.cart-item-info {
  flex: 1;
}
.cart-item-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
}
.cart-item-info .cart-item-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.cart-item-qty button:hover {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}
.cart-item-qty span {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.cart-item .remove-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.cart-item .remove-btn:hover {
  color: #e74c3c;
}
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  background: #faf7f2;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-total .total-price {
  color: var(--accent);
}
.cart-footer .whatsapp-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cart-footer .whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}
.cart-footer .whatsapp-btn:disabled {
  background: #ccc;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}
.cart-footer .note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== UBICACIÓN ===== */
#ubicacion {
  background: var(--bg-cream);
}
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ===== CONTACTO ===== */
#contacto {
  background: white;
  padding-bottom: 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: center;
}
.contact-item {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-cream);
  transition: transform 0.3s;
}
.contact-item:hover {
  transform: translateY(-3px);
}
.contact-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-item a {
  color: var(--bg-warm);
  font-weight: 600;
}
.contact-item a:hover {
  color: var(--accent);
}
.contact-item .btn {
  margin-top: 12px;
  display: inline-flex;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: rgba(250, 247, 242, 0.6);
  text-align: center;
  padding: 32px 24px;
}
footer p {
  font-size: 0.85rem;
}
footer .social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.3s;
  font-size: 1.1rem;
}
footer .social-links a:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav a {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-open nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .nav-open nav a {
    display: block;
    font-size: 1.1rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  section {
    padding: 60px 16px;
  }
  .cart-sidebar {
    max-width: 100%;
  }
  .map-container iframe {
    height: 300px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .menu-item-img,
  .menu-item-img-placeholder {
    height: 160px;
  }
}
