:root {
  /* Colores sensuales: rojo + negro */
  --primary: #e11d48;
  /* rojo principal */
  --primary-hover: #be123c;
  --secondary: #9f1239;
  /* rojo oscuro */
  --accent: #fb7185;
  /* rosado */

  --bg-body: #020617;
  /* casi negro */
  --bg-card: #0b1120;
  /* gris muy oscuro */
  --text-main: #f9fafb;
  /* texto principal claro */
  --text-muted: #9ca3af;
  /* texto secundario */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.8);

  --radius: 16px;
  --font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* TOPBAR global */

.topbar {
  width: 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 27, 66, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  gap: 12px;
}

.topbar-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.topbar-nav a:hover {
  border-color: rgba(248, 113, 113, 0.6);
  color: var(--text-main);
}

.topbar-nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

/* Layout principal */

.main-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

/* Headers */

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.catalog-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* Index: modo selección */

.mode-selection {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.title {
  font-size: 2.1rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.15), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 27, 66, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mode-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.mode-btn .icon {
  font-size: 2rem;
}

/* Grid & Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(24, 24, 27, 0.98));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(55, 65, 81, 0.6);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(248, 113, 113, 0.7);
}

.card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(248, 113, 113, 0.15), #020617);
  cursor: pointer;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 8px;
}

.short-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* Botones */

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-text:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

/* Cart FAB */

.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.cart-fab:hover {
  transform: scale(1.08) rotate(-5deg);
}

.cart-fab span {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid #020617;
}

/* Modals */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s;
}

.modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal-box {
  background: #020617;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 27, 66, 0.9);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-close {
  background: #0f172a;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.icon-close:hover {
  background: #1e293b;
  color: var(--text-main);
}

/* Quick View Body */

.q-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.q-figure img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

.q-info {
  margin-top: 16px;
}

.q-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

.q-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

/* Cart Items */

.cart-items {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.cart-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cart-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 0.85rem;
}

.cart-item-actions button:hover {
  background: #111827;
}

.cart-footer {
  padding: 16px 20px 18px;
  background: #020617;
  border-top: 1px solid rgba(30, 64, 175, 0.4);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cart-actions {
  display: flex;
  gap: 12px;
}

.hidden {
  display: none !important;
}

/* Responsive pequeño */
@media (max-width: 480px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.simple-menu {
  width: 100%;
  padding: 14px 0;
  background: #0f0f0f;
  border-bottom: 2px solid #a4113c;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.simple-menu nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.simple-menu a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 600;
}
}

.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-close {
  background: #0f172a;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.icon-close:hover {
  background: #1e293b;
  color: var(--text-main);
}

/* Quick View Body */

.q-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.q-figure img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

.q-info {
  margin-top: 16px;
}

.q-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

.q-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

/* Cart Items */

.cart-items {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.cart-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cart-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 0.85rem;
}

.cart-item-actions button:hover {
  background: #111827;
}

.cart-footer {
  padding: 16px 20px 18px;
  background: #020617;
  border-top: 1px solid rgba(30, 64, 175, 0.4);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cart-actions {
  display: flex;
  gap: 12px;
}

.hidden {
  display: none !important;
}

/* Responsive pequeño */
@media (max-width: 480px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.simple-menu {
  width: 100%;
  padding: 14px 0;
  background: #0f0f0f;
  border-bottom: 2px solid #a4113c;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.simple-menu nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.simple-menu a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.simple-menu a:hover {
  background: #a4113c;
  color: white;
}

/* Landing Page Styles */
.landing-page {
  overflow-x: hidden;
  position: relative;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #111827 0, #020617 100%);
}

.landing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

.landing-header {
  margin-bottom: 48px;
  animation: fadeInDown 1s ease-out;
}

.brand-title {
  font-size: 4rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: -2px;
  text-shadow: 0 10px 30px rgba(225, 29, 72, 0.3);
}

.brand-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
}

.landing-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.landing-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 180px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 27, 66, 0.5);
  border-radius: 32px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.landing-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.landing-btn:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.3);
}

.landing-btn:hover::before {
  opacity: 1;
}

.btn-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.landing-btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-label {
  font-size: 1.25rem;
  font-weight: 700;
}

.establishment-section {
  max-width: 1000px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid rgba(55, 65, 81, 0.5);
  animation: fadeInUp 1s ease-out 0.6s backwards;
  margin-bottom: 40px;
}

.establishment-section h2 {
  font-size: 2.5rem;
  margin-top: 0;
  color: var(--accent);
  margin-bottom: 16px;
}

.establishment-section p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.establishment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.est-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.est-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}