/* =====================
     VARIABLES
  ===================== */
:root {
  --brand: #7b1f68;
  --brand-dark: #5a1650;
  --brand-light: #f3e6f1;
  --accent: #e8a020;
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --text-dark: #1c1c1c;
  --text-muted: #888;
  --sidebar-w: 220px;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(123, 31, 104, 0.1);
  --shadow-hover: 0 10px 36px rgba(123, 31, 104, 0.22);
  --trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
     HERO BANNER
  ===================== */
.menu-hero {
  background: linear-gradient(
    135deg,
    var(--brand-dark) 0%,
    var(--brand) 55%,
    #a8346e 100%
  );
  position: relative;
  overflow: hidden;
  padding: 0;
}

.menu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.04'%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");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* columna texto */
.hero-text-col {
  padding: 52px 40px 52px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* columna carrusel */
.hero-carousel-col {
  padding: 0;
}

.hero-carousel-col .carousel,
.hero-carousel-col .carousel-inner,
.hero-carousel-col .carousel-item {
  height: 100%;
}

.hero-carousel-col .carousel-item img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-left: 4px solid var(--accent);
}

.hero-carousel-col .carousel-control-prev,
.hero-carousel-col .carousel-control-next {
  width: 40px;
}

/* =====================
     NAV MOBILE
  ===================== */
.mobile-cat-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 16px,
    #000 calc(100% - 16px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 16px,
    #000 calc(100% - 16px),
    transparent 100%
  );
}

.mobile-cat-nav::-webkit-scrollbar {
  display: none;
}

.mobile-cat-nav-inner {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  width: max-content;
}

.mob-cat-btn {
  flex-shrink: 0;
  background: transparent;
  border: 2px solid #e5e5e5;
  border-radius: 30px;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans);
}

.mob-cat-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* =====================
     LAYOUT PRINCIPAL
  ===================== */
.menu-layout {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  min-height: 60vh;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  margin-top: 5%;
}

/* --- SIDEBAR --- */
.menu-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  padding: 28px 0;
  display: block;
}

.sidebar-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 14px 10px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--trans);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sidebar-link .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  transition: var(--trans);
}

.sidebar-link:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.sidebar-link:hover .dot,
.sidebar-link.active .dot {
  background: var(--brand);
}

.sidebar-link.active {
  background: var(--brand-light);
  color: var(--brand);
}

.sidebar-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: #f0f0f0;
  border-radius: 20px;
  padding: 1px 7px;
  font-weight: 500;
  flex-shrink: 0;
}

.sidebar-link.active .sidebar-count {
  background: rgba(123, 31, 104, 0.12);
  color: var(--brand);
}

.sidebar-sep {
  height: 1px;
  background: #ececec;
  margin: 10px 14px;
}

/* --- ÁREA PRODUCTOS --- */
.menu-products-area {
  flex: 1;
  min-width: 0;
  padding: 28px 0 48px 28px;
}

/* =====================
     SECCIONES
  ===================== */
.menu-section {
  padding-top: 40px;
  padding-bottom: 8px;
}

.menu-section:first-child {
  padding-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  font-family: Georgia, serif;
}

.section-title .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #ddd 0%, transparent 100%);
}

.section-title .badge-cat {
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =====================
     TARJETAS
  ===================== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--trans);
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-light);
}

.product-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-light);
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .img-wrap img {
  transform: scale(1.06);
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.quick-add {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.75);
  transition: var(--trans);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(123, 31, 104, 0.4);
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: scale(1);
}

.card-info {
  padding: 12px 13px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-info h5 {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.3;
}

.card-info .desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 10px;
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.price-old {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-details {
  font-size: 0.7rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--brand-light);
  transition: var(--trans);
  white-space: nowrap;
}

.btn-details:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  text-decoration: none;
}

/* =====================
     MODAL
  ===================== */
.modal-content {
  border-radius: var(--radius);
  border: none;
  overflow: hidden;
}

.modal-header {
  padding: 0;
  border: none;
  position: relative;
}

.modal-header img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
}

.modal-body {
  padding: 20px 22px 10px;
}

.modal-body h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-family: Georgia, serif;
}

.modal-body .modal-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand);
}

.modal-price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-discount-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.qty-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  background: #f5f5f5;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control input {
  border: none;
  width: 42px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  color: var(--text-dark);
}

.btn-add-cart {
  flex: 1;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-add-cart:hover {
  background: var(--brand-dark);
}

.modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 12px 22px;
  justify-content: space-between;
}

.btn-ver-detalles {
  font-size: 0.8rem;
  color: var(--brand);
  background: var(--brand-light);
  border: none;
  border-radius: 6px;
  padding: 6px 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans);
}

.btn-ver-detalles:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.btn-cerrar {
  font-size: 0.8rem;
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  padding: 6px 13px;
  color: var(--text-muted);
  cursor: pointer;
}

/* =====================
     RESPONSIVE
  ===================== */
@media (max-width: 767px) {
  .menu-sidebar {
    display: none !important;
  }

  .mobile-cat-nav {
    display: block;
  }

  .menu-products-area {
    padding: 20px 0 32px;
  }

  .menu-layout {
    padding: 0 14px;
  }

  .hero-text-col {
    padding: 34px 22px 28px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-divider {
    margin: 0 auto;
  }

  .hero-carousel-col .carousel-item img {
    min-height: 210px;
    border-left: none;
    border-top: 4px solid var(--accent);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --sidebar-w: 185px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text-col {
    padding: 38px 26px 38px 34px;
  }
}
