/* ============================================
   RESTAURANT MENU PRO - DISEÑO PREMIUM
   Inspirado en El Pòsit de Cambrils
   ============================================ */

/* Import premium Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

/* ============================================
   CSS VARIABLES - Sistema de colores dinámico
   ============================================ */
:root {
  /* Contenedor principal */
  --rmp-container-bg: #ffffff;
  --rmp-grid-bg: #fafafa;
  
  /* Títulos de sección */
  --rmp-section-title-color: #1a1a1a;
  --rmp-section-title-bg: transparent;
  
  /* Tarjetas */
  --rmp-card-bg: #ffffff;
  --rmp-card-border: #e8e8e8;
  --rmp-card-hover-border: #1a1a1a;
  
  /* Texto */
  --rmp-dish-title-color: #1a1a1a;
  --rmp-description-color: #666666;
  
  /* Precio */
  --rmp-price-color: #ffffff;
  --rmp-price-bg: #1a1a1a;
  
  /* Alérgenos */
  --rmp-allergen-bg: #f5f5f5;
  --rmp-allergen-text: #333333;
  
  /* Badges */
  --rmp-badge-gluten-free: #4CAF50;
  --rmp-badge-vegan: #8BC34A;
  --rmp-badge-vegetarian: #66BB6A;
  --rmp-badge-spicy: #FF5722;
}

/* ============================================
   CONTENEDOR PRINCIPAL DEL MENÚ
   ============================================ */
.rmp-menu {
  display: block;
  margin: 40px auto;
  max-width: 1200px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}

/* Forzar texto visible en fondos oscuros */
.rmp-menu,
.rmp-menu * {
  color-scheme: dark;
}

/* ============================================
   PANEL DE FILTRO DE ALÉRGENOS
   ============================================ */
.rmp-allergen-filter {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  border: 1px solid #3d3d3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.rmp-allergen-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  cursor: pointer;
}

.rmp-allergen-filter-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.rmp-allergen-filter-title svg {
  width: 24px;
  height: 24px;
  color: #f59e0b;
}

.rmp-allergen-filter-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmp-allergen-filter-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rmp-allergen-filter-toggle svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* Por defecto flecha hacia abajo (cerrado) */
}

/* Cuando está abierto, la flecha apunta hacia arriba */
.rmp-allergen-filter.open .rmp-allergen-filter-toggle svg {
  transform: rotate(180deg);
}

.rmp-allergen-filter-body {
  display: none; /* Cerrado por defecto */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  transition: all 0.3s ease;
}

/* Mostrar cuando está abierto (clase .open añadida por JS) */
.rmp-allergen-filter.open .rmp-allergen-filter-body {
  display: grid;
}

/* Opciones también ocultas por defecto */
.rmp-allergen-filter-options {
  display: none;
}

.rmp-allergen-filter.open .rmp-allergen-filter-options {
  display: flex;
}

.rmp-allergen-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #2d2d2d;
  border: 2px solid #3d3d3d;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rmp-allergen-filter-item:hover {
  border-color: #5d5d5d;
  background: #3d3d3d;
}

.rmp-allergen-filter-item.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.rmp-allergen-filter-item input[type="checkbox"] {
  display: none;
}

.rmp-allergen-filter-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #5d5d5d;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #1a1a1a;
}

.rmp-allergen-filter-item:hover .rmp-allergen-filter-checkbox {
  border-color: #7d7d7d;
}

.rmp-allergen-filter-item.active .rmp-allergen-filter-checkbox {
  background: #ef4444;
  border-color: #ef4444;
}

.rmp-allergen-filter-checkbox svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rmp-allergen-filter-item.active .rmp-allergen-filter-checkbox svg {
  opacity: 1;
}

.rmp-allergen-filter-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #3d3d3d;
  border-radius: 8px;
  padding: 4px;
}

.rmp-allergen-filter-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rmp-allergen-filter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e5e5;
  line-height: 1.3;
}

/* Opciones adicionales del filtro - estilos de layout */
.rmp-allergen-filter.open .rmp-allergen-filter-options {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #3d3d3d;
}

.rmp-allergen-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #a0a0a0;
  cursor: pointer;
  padding: 8px 16px;
  background: #2d2d2d;
  border-radius: 8px;
  border: 1px solid #3d3d3d;
  transition: all 0.2s ease;
}

.rmp-allergen-filter-option:hover {
  background: #3d3d3d;
  color: #ffffff;
}

.rmp-allergen-filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

/* Contador de resultados */
.rmp-filter-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #2d5a87;
}

.rmp-filter-results-text {
  font-size: 0.95rem;
  color: #7dd3fc;
  font-weight: 500;
}

.rmp-filter-results-count {
  font-weight: 700;
  color: #ffffff;
}

.rmp-filter-clear {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  font-style: normal !important;
}

.rmp-filter-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
}

/* ============================================
   SECCIONES DEL MENÚ
   ============================================ */
.rmp-section {
  margin-bottom: 48px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.rmp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.rmp-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #ffffff !important;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rmp-section-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--rmp-price-bg);
  color: var(--rmp-price-color);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 100px;
  font-family: "DM Sans", sans-serif;
}

/* ============================================
   GRID DE PLATOS
   ============================================ */
.rmp-grid {
  display: grid;
  gap: 24px;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
}

.rmp-menu.rmp-cols-1 .rmp-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
.rmp-menu.rmp-cols-2 .rmp-grid { grid-template-columns: repeat(2, 1fr); }
.rmp-menu.rmp-cols-3 .rmp-grid { grid-template-columns: repeat(3, 1fr); }
.rmp-menu.rmp-cols-4 .rmp-grid { grid-template-columns: repeat(4, 1fr); }

.rmp-grid.rmp-grid-cols-1 { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
.rmp-grid.rmp-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rmp-grid.rmp-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rmp-grid.rmp-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   TARJETA DE PLATO (CARD)
   ============================================ */
.rmp-card {
  display: flex;
  flex-direction: column;
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.rmp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: #f59e0b;
}

/* Imagen del plato */
.rmp-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}

.rmp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rmp-card:hover .rmp-img-wrap img {
  transform: scale(1.05);
}

/* Precio overlay */
.rmp-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.rmp-price::before {
  content: none; /* Quitamos el símbolo € ya que viene en el HTML */
}

/* Contenido de la tarjeta */
.rmp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: transparent !important;
  gap: 8px;
}

.rmp-dish-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rmp-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-size: 0.9rem;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ocultar descripción vacía */
.rmp-desc:empty {
  display: none;
}

/* ============================================
   BADGES DE CARACTERÍSTICAS
   Sin gluten, Vegano, Picante, etc.
   ============================================ */
.rmp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.rmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rmp-badge-gluten-free {
  background: #dcfce7;
  color: #166534;
}

.rmp-badge-vegan {
  background: #ecfccb;
  color: #3f6212;
}

.rmp-badge-vegetarian {
  background: #d1fae5;
  color: #065f46;
}

.rmp-badge-spicy {
  background: #fee2e2;
  color: #991b1b;
}

.rmp-badge-option-gf {
  background: #fef3c7;
  color: #92400e;
}

.rmp-badge-lactose-free {
  background: #e0e7ff;
  color: #3730a3;
}

/* ============================================
   ALÉRGENOS EN TARJETAS
   ============================================ */
.rmp-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rmp-allergens:empty {
  display: none;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.rmp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rmp-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rmp-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0);
}

/* Indicador de tipo (Contiene / Trazas) */
.rmp-allergen-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ============================================
   VISTA LISTA
   ============================================ */
.rmp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.rmp-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  box-shadow: none;
  transition: background 0.2s ease;
}

.rmp-list-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.rmp-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: none;
  box-shadow: none;
}

.rmp-list-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Cuando no hay descripción, reducir gap */
.rmp-list-content:not(:has(.rmp-list-desc)) {
  gap: 8px;
}

.rmp-list-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #ffffff;
}

.rmp-list-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Si no hay descripción (.rmp-list-desc está vacío o no existe) */
.rmp-list-desc:empty {
  display: none;
}

.rmp-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.rmp-list-badges:empty {
  display: none;
}

.rmp-list-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.rmp-list-allergens:empty {
  display: none;
  margin-top: 0;
}

.rmp-list-allergen-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rmp-list-allergen-tag img {
  width: 16px;
  height: 16px;
  filter: brightness(0);
}

.rmp-list-price {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  white-space: nowrap;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

/* ============================================
   PLATO OCULTO POR FILTRO
   ============================================ */
.rmp-card.rmp-filtered-out,
.rmp-list-item.rmp-filtered-out {
  display: none !important;
}

/* ============================================
   SECCIÓN VACÍA (después de filtrar)
   ============================================ */
.rmp-section.rmp-section-empty {
  display: none;
}

/* ============================================
   MENÚ DEL DÍA - LAYOUT ESPECIAL
   ============================================ */
.rmp-menu-daily {
  background: var(--rmp-container-bg);
  padding: 0;
}

.rmp-menu-daily .rmp-inner {
  background: #1a1a1a;
  padding: 48px 32px;
  border-radius: 24px;
  color: #ffffff;
}

.rmp-menu-daily-header {
  text-align: center;
  margin-bottom: 40px;
}

.rmp-menu-daily-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.rmp-menu-daily-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.rmp-daily-section {
  margin-bottom: 32px;
  text-align: center;
}

.rmp-daily-section-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.rmp-daily-dish-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rmp-daily-dish {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 8px;
}

.rmp-menu-daily .rmp-list-allergens {
  justify-content: center;
  margin-top: 8px;
}

.rmp-menu-daily-price-block {
  margin-top: 40px;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rmp-menu-daily-price {
  font-family: "DM Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.rmp-menu-daily-price-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SISTEMA DE PESTAÑAS (TABS)
   ============================================ */
.rmp-tabs-container {
  max-width: 1200px;
  margin: 40px auto;
  font-family: "DM Sans", sans-serif;
}

.rmp-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 16px;
  border: 1px solid #3d3d3d;
}

.rmp-tabs-style-pills .rmp-tab-btn {
  padding: 12px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #a0a0a0;
  background: #2d2d2d;
  border: 2px solid #3d3d3d;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.rmp-tabs-style-pills .rmp-tab-btn:hover {
  background: #3d3d3d;
  border-color: #5d5d5d;
  color: #ffffff;
}

.rmp-tabs-style-pills .rmp-tab-btn.active {
  background: #f59e0b;
  color: #1a1a1a;
  border-color: #f59e0b;
  font-weight: 700;
}

/* Estilo Underline */
.rmp-tabs-style-underline .rmp-tabs-nav {
  background: transparent;
  border-bottom: 2px solid #3d3d3d;
  padding: 0;
  gap: 0;
  border-radius: 0;
  border: none;
}

.rmp-tabs-style-underline .rmp-tab-btn {
  padding: 16px 24px;
  font-weight: 600;
  color: #a0a0a0;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.rmp-tabs-style-underline .rmp-tab-btn:hover {
  color: #ffffff;
}

.rmp-tabs-style-underline .rmp-tab-btn.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

/* Contenido de pestañas */
.rmp-tabs-content {
  position: relative;
  min-height: 200px;
}

.rmp-tab-panel {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.rmp-tab-panel.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  animation: rmpFadeIn 0.4s ease;
}

@keyframes rmpFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.rmp-tab-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #a0a0a0;
  gap: 16px;
}

.rmp-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #3d3d3d;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: rmpSpin 0.8s linear infinite;
}

@keyframes rmpSpin {
  to { transform: rotate(360deg); }
}

/* ============================================
   UTILIDADES Y FIXES
   ============================================ */
.rmp-empty {
  text-align: center;
  padding: 60px 20px;
  color: #a0a0a0;
  font-size: 1rem;
}

.rmp-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a0a0a0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .rmp-menu.rmp-cols-4 .rmp-grid,
  .rmp-grid.rmp-grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .rmp-menu.rmp-cols-4 .rmp-grid,
  .rmp-menu.rmp-cols-3 .rmp-grid,
  .rmp-grid.rmp-grid-cols-4,
  .rmp-grid.rmp-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rmp-allergen-filter-body {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .rmp-menu {
    margin: 20px 16px;
  }
  
  .rmp-grid,
  .rmp-grid.rmp-grid-cols-2,
  .rmp-grid.rmp-grid-cols-3,
  .rmp-grid.rmp-grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rmp-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .rmp-section-title {
    font-size: 1.5rem;
  }
  
  .rmp-allergen-filter-body {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rmp-list-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .rmp-list-price {
    font-size: 1rem;
  }
  
  .rmp-tabs-nav {
    padding: 12px;
    gap: 8px;
  }
  
  .rmp-tabs-style-pills .rmp-tab-btn {
    flex: 1;
    min-width: calc(50% - 8px);
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .rmp-allergen-filter {
    padding: 16px;
  }
  
  .rmp-allergen-filter-body {
    grid-template-columns: 1fr;
  }
  
  .rmp-allergen-filter-item {
    padding: 10px 14px;
  }
  
  .rmp-section-title {
    font-size: 1.25rem;
  }
  
  .rmp-card {
    border-radius: 12px;
  }
  
  .rmp-content {
    padding: 16px;
  }
  
  .rmp-dish-title {
    font-size: 1rem;
  }
  
  .rmp-menu-daily .rmp-inner {
    padding: 32px 20px;
  }
  
  .rmp-menu-daily-title {
    font-size: 1.5rem;
  }
  
  .rmp-menu-daily-price {
    font-size: 2rem;
  }
}

/* ============================================
   SOPORTE PARA MODO CLARO (si el tema lo requiere)
   ============================================ */
.rmp-menu.rmp-light-mode .rmp-card {
  background: #ffffff;
  border-color: #e5e5e5;
}

.rmp-menu.rmp-light-mode .rmp-dish-title,
.rmp-menu.rmp-light-mode .rmp-list-title {
  color: #1a1a1a;
}

.rmp-menu.rmp-light-mode .rmp-desc,
.rmp-menu.rmp-light-mode .rmp-list-desc {
  color: #666666;
}

.rmp-menu.rmp-light-mode .rmp-section-title {
  color: #1a1a1a !important;
  text-shadow: none;
}

.rmp-menu.rmp-light-mode .rmp-section-header {
  border-bottom-color: #1a1a1a;
}

.rmp-menu.rmp-light-mode .rmp-list-item {
  border-color: #e5e5e5;
}

.rmp-menu.rmp-light-mode .rmp-list-item:hover {
  background: #fafafa;
}

.rmp-menu.rmp-light-mode .rmp-list-price {
  color: #1a1a1a;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .rmp-menu {
    background: #ffffff !important;
    box-shadow: none !important;
  }
  
  .rmp-allergen-filter {
    display: none !important;
  }
  
  .rmp-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    break-inside: avoid;
  }
  
  .rmp-card:hover {
    transform: none !important;
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */
.rmp-card {
  animation: rmpCardFadeIn 0.5s ease both;
}

@keyframes rmpCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rmp-card:nth-child(1) { animation-delay: 0.05s; }
.rmp-card:nth-child(2) { animation-delay: 0.1s; }
.rmp-card:nth-child(3) { animation-delay: 0.15s; }
.rmp-card:nth-child(4) { animation-delay: 0.2s; }
.rmp-card:nth-child(5) { animation-delay: 0.25s; }
.rmp-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   LEYENDA DE ALÉRGENOS
   ============================================ */
.rmp-allergens-legend {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #3d3d3d;
  border-radius: 16px;
  padding: 24px;
  margin-top: 48px;
}

.rmp-allergens-legend-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}

.rmp-allergens-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.rmp-allergens-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e5e5e5;
}

.rmp-allergens-legend-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rmp-allergens-legend p {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   ESTILOS FORZADOS - ALTA PRIORIDAD
   Para asegurar que se apliquen sobre el tema
   ============================================ */

/* Panel de filtros - forzado */
.rmp-allergen-filter {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border: 1px solid #3d3d3d !important;
  border-radius: 20px !important;
  padding: 28px !important;
  margin-bottom: 32px !important;
}

.rmp-allergen-filter-title {
  color: #ffffff !important;
  font-size: 1.2rem !important;
}

.rmp-allergen-filter-item {
  background: #2d2d2d !important;
  border: 2px solid #3d3d3d !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  cursor: pointer !important;
}

.rmp-allergen-filter-item:hover {
  background: #3d3d3d !important;
  border-color: #5d5d5d !important;
}

.rmp-allergen-filter-item.active {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
}

.rmp-allergen-filter-label {
  color: #e5e5e5 !important;
}

.rmp-allergen-filter-checkbox {
  background: #1a1a1a !important;
  border: 2px solid #5d5d5d !important;
}

.rmp-allergen-filter-item.active .rmp-allergen-filter-checkbox {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

/* Títulos de sección - forzado */
.rmp-section-title,
h3.rmp-section-title,
.rmp-menu .rmp-section-title {
  color: #ffffff !important;
  font-size: 1.75rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rmp-section-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding-bottom: 16px !important;
  margin-bottom: 24px !important;
}

/* Títulos y textos de platos - forzado */
.rmp-dish-title,
.rmp-list-title,
h4.rmp-dish-title,
h4.rmp-list-title {
  color: #ffffff !important;
}

.rmp-desc,
.rmp-list-desc,
p.rmp-desc,
p.rmp-list-desc {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Precios - forzado */
.rmp-list-price {
  color: #ffffff !important;
  background: transparent !important;
}

/* Tags de alérgenos - forzado */
.rmp-tag,
.rmp-list-allergen-tag,
span.rmp-tag,
span.rmp-list-allergen-tag {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #1a1a1a !important;
  border-radius: 20px !important;
  padding: 6px 12px !important;
  font-weight: 600 !important;
}

/* Tarjetas - forzado */
.rmp-card,
article.rmp-card {
  background: #2d2d2d !important;
  border: 1px solid #3d3d3d !important;
}

.rmp-card:hover {
  border-color: #f59e0b !important;
}

/* Lista - forzado */
.rmp-list-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: transparent !important;
}

.rmp-list-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Filtrado - ocultar elementos */
.rmp-filtered-out {
  display: none !important;
}

.rmp-section-empty {
  display: none !important;
}
