/* ==========================================================================
   Casa D'Oro — Menú Digital
   Paleta tomada del logo: vino/maroon, dorado, verde agave, crema
   ========================================================================== */

:root {
  --maroon: #7a1e2e;
  --maroon-dark: #4f1420;
  --maroon-light: #9c2c3f;
  --gold: #c9a227;
  --gold-light: #e8cc6b;
  --gold-soft: #f1e0ad;
  --green: #2f5d3a;
  --green-dark: #1f3f27;
  --cream: #f7eede;
  --cream-dark: #efe0c2;
  --ink: #2b1b12;
  --ink-soft: #5a4636;

  --font-display: 'Playfair Display', serif;
  --font-script: 'Cormorant Garamond', serif;
  --font-round: 'Baloo 2', sans-serif;
}

* { box-sizing: border-box; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-round);
  background-image:
    radial-gradient(circle at 10% 5%, rgba(201,162,39,0.10) 0, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(47,93,58,0.08) 0, transparent 35%);
}

h1, h2, h3, h4, .display-font { font-family: var(--font-display); }

::selection { background: var(--gold-light); color: var(--maroon-dark); }

/* ---------- Papel picado decorativo ---------- */
.papel-picado {
  height: 22px;
  width: 100%;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25.5%) 0 0/24px 22px,
    linear-gradient(-135deg, var(--maroon) 25%, transparent 25.5%) 0 0/24px 22px,
    linear-gradient(45deg, var(--green) 25%, transparent 25.5%) 12px 0/24px 22px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon) 55%, var(--maroon-light) 100%);
  overflow: hidden;
  padding-bottom: 1rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,162,39,0.06) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(201,162,39,0.06) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero-logo {
  max-width: 300px;
  width: 60%;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
  animation: floatIn .9s ease-out;
}
.hero-script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
  margin: .75rem 0 0;
}
.hero-sub {
  color: var(--cream-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin: 0;
}
.hero-mascota {
  position: absolute;
  right: 2%;
  bottom: -14px;
  height: 190px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.4));
  animation: wave 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(-16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2.5deg) translateY(-4px); }
}

/* ---------- FEATURED DISHES SLIDER ---------- */
.featured-dishes {
  padding: 2.75rem 0 1.5rem;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.featured-carousel {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 14px 32px rgba(90,60,20,.18);
}
.featured-carousel .carousel-item img {
  height: 60vw;
  max-height: 420px;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.featured-carousel .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  text-align: left;
  padding: 1.75rem 1.5rem 1.25rem;
  border-radius: 0;
  background: linear-gradient(0deg, rgba(31,15,10,.92) 0%, rgba(31,15,10,.65) 55%, transparent 100%);
}
.featured-carousel .carousel-caption h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  margin-bottom: .2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.featured-carousel .carousel-caption p {
  margin: 0;
  font-size: .88rem;
  color: var(--cream-dark);
  line-height: 1.35;
}
.featured-carousel .carousel-caption p.cap-sub {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold-light);
  opacity: .9;
  margin-top: .1rem;
}
.dish-price-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 800;
  font-size: .95rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.dish-price-badge::before { content: "$"; opacity: .75; margin-right: 1px; }
.featured-carousel .carousel-indicators { margin-bottom: .6rem; }
.featured-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  background-color: rgba(255,255,255,.4);
  opacity: 1;
}
.featured-carousel .carousel-indicators .active {
  background-color: var(--gold);
  border-color: #fff;
}
.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
  width: 12%;
  opacity: 1;
}
.cdo-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31,15,10,.45);
  border: 1.5px solid var(--gold-light);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(2px);
  transition: background .2s ease;
}
.featured-carousel .carousel-control-prev:hover .cdo-control-icon,
.featured-carousel .carousel-control-next:hover .cdo-control-icon {
  background: var(--maroon);
}

/* ---------- TOOLBAR ---------- */
.toolbar-wrap {
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  z-index: 1030;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.search-box {
  position: relative;
}
.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-style: normal;
}
.search-box input {
  padding-left: 34px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-soft);
  background: #fff;
}
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,39,.25);
}
.btn-lang, .btn-fav {
  border-radius: 999px;
  border: 1.5px solid var(--maroon);
  background: #fff;
  color: var(--maroon);
  font-weight: 700;
  white-space: nowrap;
  padding: .375rem .9rem;
}
.btn-lang:hover, .btn-fav:hover { background: var(--maroon); color: #fff; }
.btn-fav.active { background: var(--maroon); color: #fff; }
.fav-count {
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: 999px;
  font-size: .7rem;
  padding: 1px 6px;
  margin-left: 3px;
  font-weight: 800;
}

.category-nav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-top: .25rem;
}
.category-nav::-webkit-scrollbar { height: 5px; }
.category-nav::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 4px; }
.cat-pill {
  flex: 0 0 auto;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  background: #fff;
  border-radius: 999px;
  padding: .4rem 1rem;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.cat-pill:hover { background: var(--green); color: #fff; }
.cat-pill.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  box-shadow: 0 3px 8px rgba(122,30,46,.35);
}

/* ---------- CATEGORY SECTIONS ---------- */
.category-section { padding: 3rem 0 1rem; scroll-margin-top: 130px; }
.category-section:nth-of-type(even) { }

.cat-header {
  text-align: center;
  margin-bottom: 2rem;
}
.cat-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: .25rem;
}
.cat-title {
  color: var(--maroon);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: .1rem;
}
.cat-title-en {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--green-dark);
  font-size: 1.2rem;
}
.cat-divider {
  width: 120px;
  height: 3px;
  margin: .6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.cat-divider::after {
  content: "❖";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  color: var(--gold);
  background: var(--cream);
  padding: 0 8px;
  font-size: .8rem;
}

/* ---------- DISH SUBSECTION ---------- */
.dish-section {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 18px rgba(90,60,20,.06);
  position: relative;
}
.dish-section-title {
  color: var(--maroon);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: .15rem;
  border-bottom: 2px dotted var(--gold-soft);
  padding-bottom: .4rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.dish-section-title .en {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 1rem;
}
.dish-section-desc {
  font-size: .88rem;
  color: var(--ink-soft);
  margin: .6rem 0 1rem;
  line-height: 1.5;
}
.dish-section-desc .en { display: block; font-style: italic; opacity: .85; margin-top: .15rem; }

.dish-list { display: flex; flex-direction: column; gap: .1rem; }
.dish-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.dish-item:hover { background: var(--cream); }
.dish-item .dish-name-wrap { min-width: 0; }
.dish-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.dish-name .note { color: var(--maroon); font-weight: 600; font-size: .78rem; margin-left: .3rem; }
.dish-name-sub {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--ink-soft);
  font-size: .85rem;
}
.dish-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.dish-price {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 1.02rem;
  white-space: nowrap;
}
.dish-price::before { content: "$"; opacity:.7; margin-right:1px; }
.dish-price.no-price { color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.fav-heart {
  background: none;
  border: none;
  color: var(--gold-soft);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
}
.fav-heart.active { color: var(--maroon); }

.dish-sep {
  border: none;
  border-top: 1px dashed var(--cream-dark);
  margin: .1rem 0;
}

/* highlight búsqueda */
.dish-item.no-match { display: none; }
.dish-item mark {
  background: var(--gold-light);
  color: var(--maroon-dark);
  padding: 0 2px;
  border-radius: 3px;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}

/* ---------- LOADING ---------- */
.loading-mascota { height: 100px; animation: bounce 1.2s infinite ease-in-out; }
.loading-text { color: var(--ink-soft); font-weight: 600; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(180deg, var(--green-dark), #142b1a);
  color: var(--cream-dark);
}
.footer-logo { max-width: 160px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.footer-tagline { font-size: .9rem; opacity: .9; }
.footer-heading {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: .75rem;
}
.footer p { font-size: .88rem; }
.footer-link {
  color: var(--cream-dark);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-link:hover { color: var(--gold-light); }
.btn-order-online {
  display: inline-block;
  margin-top: .5rem;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .15s ease, background .2s ease;
}
.btn-order-online:hover {
  background: var(--gold-light);
  color: var(--maroon-dark);
  transform: translateY(-2px);
}
.social-row { display: flex; gap: .6rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  transition: all .2s ease;
}
.social-btn:hover { background: var(--gold); color: var(--green-dark); }
.footer-mascota { height: 70px; }
.footer-rule { border-color: rgba(232,204,107,.25); margin: 2rem 0 1rem; }
.footer-copy { font-size: .78rem; opacity: .75; }

/* ---------- FLOATING BUTTON ---------- */
.waiter-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--maroon);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  z-index: 1040;
  overflow: hidden;
  padding: 0;
  animation: pulse 2.4s infinite;
}
.waiter-fab img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.6) translateY(6px); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,39,.55), 0 8px 20px rgba(0,0,0,.35); }
  70% { box-shadow: 0 0 0 14px rgba(201,162,39,0), 0 8px 20px rgba(0,0,0,.35); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0), 0 8px 20px rgba(0,0,0,.35); }
}

/* ---------- SweetAlert overrides ---------- */
.swal2-popup.cdo-popup {
  border-radius: 20px;
  font-family: var(--font-round);
  border: 3px solid var(--gold);
}
.cdo-swal-title { color: var(--maroon); font-family: var(--font-display); }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .hero-logo { max-width: 220px; }
  .dish-section { padding: 1.15rem 1rem 1rem; }
  .waiter-fab { width: 56px; height: 56px; }
}
