/* ===========================================
   CATALOGO UNIFIED - OFERTAPP
   Estilos unificados para el módulo de catálogo
   Estilo juicy, limpio y consistente con mi_pagina
   =========================================== */

/* ===========================================
   RESET Y BASE
   =========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: #2d3748;
  background: #f7fafc;
  line-height: 1.6;
}

/* ===========================================
   BOTONES GENÉRICOS (fuera del navbar)
   Usamos selectores más específicos
   =========================================== */

.container .btn,
.page-header .btn,
.filters-section .btn,
.offers-grid .btn,
.empty-state .btn,
.pagination .btn {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.container .btn-outline,
.empty-state .btn-outline {
  background: transparent;
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
}

.container .btn-outline:hover,
.empty-state .btn-outline:hover {
  background: #ff6b6b;
  color: white;
  transform: translateY(-2px);
}

.container .btn-primary,
.empty-state .btn-primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
}

.container .btn-primary:hover,
.empty-state .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}


/* ===========================================
   CONTAINER Y PAGE HEADER
   =========================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 5% 3rem;
}

.page-header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 3rem 5% 2rem;
  margin-top: 80px;
  text-align: center;
  position: relative;
}

.back-button {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) translateX(-5px);
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.page-header h1 i {
  color: #ffd700;
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 300;
}

/* ===========================================
   SECCIÓN DE FILTROS - ESTILO JUICY
   =========================================== */

.filters-section,
.filters-section-dynamic {
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  overflow: visible;
  border: 1px solid rgba(255, 107, 107, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-section:hover,
.filters-section-dynamic:hover {
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.08);
}

/* ===========================================
   HEADER DE FILTROS
   =========================================== */

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  border-radius: 24px 24px 0 0;
  margin: 0;
  transition: all 0.3s ease;
}

.filters-section-dynamic:has(.filters-content:not(.expanded)) .filters-header {
  border-radius: 24px;
}

.filters-header:hover {
  background: linear-gradient(135deg, #ff5757 0%, #ff7a7a 100%);
}

.filters-header h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.filters-header h2 i {
  font-size: 1rem;
  opacity: 0.9;
}

.toggle-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clear-filters {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.clear-filters:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.toggle-arrow {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.toggle-arrow.rotated {
  transform: rotate(180deg);
}

.toggle-arrow.rotated:hover {
  transform: rotate(180deg) scale(1.1);
}

/* ===========================================
   CONTENIDO DE FILTROS
   =========================================== */

.filters-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.75rem;
}

.filters-content.expanded {
  max-height: 600px;
  padding: 1.75rem;
  overflow: visible;
}

/* ===========================================
   BARRA DE BÚSQUEDA - ESTILO LIMPIO (SIN BORDES ROJOS)
   =========================================== */

.filters-search-row {
  padding: 0 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.filters-search-row .search-bar-wrapper {
  position: relative;
  width: 100%;
  z-index: 100;
}

.filters-search-row .search-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

/* Removidos los bordes rojos excesivos y efectos agresivos del focus */
.filters-search-row .search-bar:focus-within {
  border-color: #cbd5e1;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.filters-search-row .search-bar i.fa-search {
  color: #94a3b8;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* Color más sutil en focus */
.filters-search-row .search-bar:focus-within i.fa-search {
  color: #64748b;
}

.filters-search-row .search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  min-width: 0;
  font-family: inherit;
}

.filters-search-row .search-bar input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Botón searchClear con icono X visible */
.filters-search-row .search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: #e2e8f0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.filters-search-row .search-clear::before {
  content: "✕";
  font-weight: 600;
  font-size: 0.75rem;
}

.filters-search-row .search-clear:hover {
  background: #ff6b6b;
  color: white;
  transform: scale(1.1);
}

/* ===========================================
   SUGERENCIAS DE BÚSQUEDA
   =========================================== */

.filters-search-row .search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.filters-search-row .search-suggestions.active {
  display: block;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f8fafc;
}

.search-suggestions .suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item.selected {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
}

.search-suggestions .suggestion-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.search-suggestions .suggestion-icon i {
  color: white;
  font-size: 0.9rem;
}

.search-suggestions .suggestion-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-suggestions .suggestion-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions .suggestion-text mark {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #1e293b;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

.search-suggestions .suggestion-category {
  font-size: 0.8rem;
  color: #64748b;
}

.search-suggestions .suggestion-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.search-suggestions .suggestion-type.oferta {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.search-suggestions .suggestion-type.comercio {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4f46e5;
}

.search-suggestions .suggestion-type.categoria {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

/* Scrollbar sugerencias */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b6b 0%, #ff8e8e 100%);
  border-radius: 3px;
}

/* ===========================================
   GRID DE SELECTORES
   =========================================== */

.filters-grid-selects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.filters-grid-selects .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.filters-grid-selects .filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.filters-grid-selects .filter-group label i {
  color: #ff6b6b;
  font-size: 0.8rem;
}

.filters-grid-selects .filter-group select,
.filters-grid-selects .filter-group input {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Flecha personalizada para selects */
.filters-grid-selects .filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Focus sutil sin bordes rojos en selectores */
.filters-grid-selects .filter-group select:focus,
.filters-grid-selects .filter-group input:focus {
  border-color: #94a3b8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
  transform: translateY(-1px);
}

.filters-grid-selects .filter-group select:hover,
.filters-grid-selects .filter-group input:hover {
  border-color: #cbd5e1;
  background: #fefefe;
}

/* Input de precio */
.filters-grid-selects .filter-group input[type="number"] {
  -moz-appearance: textfield;
}

.filters-grid-selects .filter-group input[type="number"]::-webkit-outer-spin-button,
.filters-grid-selects .filter-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===========================================
   CHIPS DE FILTROS ACTIVOS
   =========================================== */

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 0;
  margin-top: 1.25rem;
  border-top: 2px dashed #f1f5f9;
}

.active-filters-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border: 1px solid #fecaca;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  transform: translateY(-1px);
}

.filter-chip button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: #ff6b6b;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.filter-chip button:hover {
  background: #ef4444;
  transform: scale(1.15);
}

.filter-chip button i {
  font-size: 0.6rem;
}

/* ===========================================
   RESULTADOS HEADER
   =========================================== */

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-size: 1.05rem;
  color: #4a5568;
  font-weight: 500;
}

.results-count strong {
  color: #ff6b6b;
  font-weight: 800;
}

.filter-indicator {
  color: #8b5cf6;
  font-weight: 600;
}

.loading-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border-radius: 50px;
  border: 1px solid #fecaca;
}

.loading-indicator i {
  color: #ff6b6b;
}

/* ===========================================
   BANNER FILTRO POR COMERCIO
   =========================================== */

.comercio-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: white;
  padding: 1.25rem 1.75rem;
  border-radius: 20px;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comercio-filter-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1rem;
  font-weight: 500;
}

.comercio-filter-info i {
  font-size: 1.4rem;
  opacity: 0.9;
}

.comercio-filter-info strong {
  font-weight: 800;
}

.btn-clear-comercio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-clear-comercio:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   GRID DE OFERTAS
   =========================================== */

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ===========================================
   TARJETA DE OFERTA
   =========================================== */

.offer-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  animation: fadeIn 0.5s ease;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge Premium */
.premium-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #2d3748;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  animation: premiumPulse 2s ease-in-out infinite;
}

@keyframes premiumPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Botón de Favorito */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.favorite-btn i {
  font-size: 1.1rem;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.favorite-btn:hover i {
  color: #ff6b6b;
}

.favorite-btn.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.favorite-btn.active i {
  color: white;
}

.favorite-btn.active:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e04848 100%);
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.25);
  }
}

/* Imagen de oferta */
.offer-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: white;
  position: relative;
}

/* Imagen con foto */
.offer-card .offer-image.offer-image-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.offer-card .offer-image.offer-image-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 107, 107, 0.08) 1px, transparent 0);
  background-size: 20px 20px;
  background-color: linear-gradient(135deg, #fef2f2 0%, #fdf4ff 50%, #f0f9ff 100%);
}

.offer-card .offer-image.offer-image-photo i {
  display: none;
}

/* Contenido de oferta */
.offer-content {
  padding: 1.8rem;
}

.offer-store {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.store-avatar {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
}

.store-name {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

/* Badges de tipo */
.offer-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.offer-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gratis {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-2x1,
.badge-3x2 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.badge-cupon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.badge-stock {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.badge-descuento {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.badge-otro {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
}

.offer-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
}

.offer-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.offer-description {
  color: #718096;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* Footer de oferta */
.offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid #f7fafc;
}

.offer-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 2rem;
  font-weight: 800;
  color: #ff6b6b;
}

.price-original {
  font-size: 0.9rem;
  color: #cbd5e0;
  text-decoration: line-through;
}

.price-free {
  color: #10b981 !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-free i {
  font-size: 0.9em;
}

.price-promo {
  color: #8b5cf6 !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Ofertas NxM con ahorro */
.price-nxm-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-nxm-info .price-original {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-nxm-info .price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.price-savings {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: #ecfdf5;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.25rem;
}

.price-savings i {
  font-size: 0.85rem;
}

/* Badge de descuento */
.offer-discount {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.offer-discount.offer-discount-gratis {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.offer-discount.offer-discount-gratis i {
  font-size: 0.85em;
}

/* Stock en card */
.offer-stock-info {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.stock-bar-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.stock-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #10b981 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.stock-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.stock-text i {
  color: #ef4444;
}

/* Validez de oferta */
.offer-validity {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 0.8rem;
}

.offer-validity.stock-validity {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

.offer-validity.stock-validity i {
  color: white;
}

/* ===========================================
   ESTADO VACÍO
   =========================================== */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 5rem;
  color: #cbd5e0;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.8rem;
}

.empty-state p {
  color: #718096;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

#noResultsState {
  grid-column: 1 / -1;
}

/* ===========================================
   PAGINACIÓN
   =========================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
  padding: 0.6rem 1rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.pagination-btn:hover,
.pagination-number:hover {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
  transform: translateY(-2px);
}

.pagination-number.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  border-color: #ff6b6b;
  cursor: default;
}

.pagination-number.active:hover {
  transform: none;
}

.pagination-ellipsis {
  padding: 0.5rem;
  color: #94a3b8;
}

/* ===========================================
   RESPONSIVE - Tablet (1024px)
   =========================================== */

@media (max-width: 1024px) {
  .filters-grid-selects {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .filters-header {
    padding: 1rem 1.5rem;
  }

  .filters-content.expanded {
    padding: 1.5rem;
  }
}

/* ===========================================
   RESPONSIVE - Mobile (768px)
   =========================================== */

@media (max-width: 768px) {
  .container {
    padding: 5rem 3% 2rem;
  }

  .page-header {
    padding: 4rem 3% 2rem;
    text-align: center;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .back-button {
    position: static;
    transform: none;
    margin: 0 auto 1.5rem;
    display: inline-flex;
  }

  .back-button:hover {
    transform: translateX(-5px);
  }

  .filters-section,
  .filters-section-dynamic {
    border-radius: 20px;
    margin-bottom: 1.5rem;
  }

  .filters-header {
    padding: 1rem 1.25rem;
    border-radius: 20px 20px 0 0;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .filters-section-dynamic:has(.filters-content:not(.expanded)) .filters-header {
    border-radius: 20px;
  }

  .filters-header h2 {
    font-size: 1rem;
  }

  .toggle-filters {
    gap: 0.75rem;
  }

  .clear-filters {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .toggle-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .filters-content.expanded {
    padding: 1.25rem;
  }

  .filters-search-row {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .filters-search-row .search-bar {
    padding: 0.875rem 1rem;
    border-radius: 14px;
  }

  .filters-search-row .search-bar input {
    font-size: 0.95rem;
  }

  .filters-grid-selects {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .filters-grid-selects .filter-group label {
    font-size: 0.7rem;
  }

  .filters-grid-selects .filter-group select,
  .filters-grid-selects .filter-group input {
    padding: 0.65rem 0.875rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .filters-grid-selects .filter-group select {
    padding-right: 2.25rem;
    background-size: 1rem;
  }

  .active-filters {
    padding-top: 1rem;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .filter-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-buttons .btn-outline {
    display: none;
  }

  .comercio-filter-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem 1.25rem;
    border-radius: 16px;
  }

  .comercio-filter-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-clear-comercio {
    width: 100%;
    justify-content: center;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .pagination-number {
    padding: 0.4rem 0.6rem;
    min-width: 35px;
    font-size: 0.9rem;
  }
}

/* ===========================================
   RESPONSIVE - Small Mobile (480px)
   =========================================== */

@media (max-width: 480px) {
  .filters-section,
  .filters-section-dynamic {
    border-radius: 16px;
  }

  .filters-header {
    border-radius: 16px 16px 0 0;
    padding: 0.875rem 1rem;
  }

  .filters-section-dynamic:has(.filters-content:not(.expanded)) .filters-header {
    border-radius: 16px;
  }

  .filters-header h2 {
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .filters-header h2 i {
    font-size: 0.9rem;
  }

  .clear-filters {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    gap: 0.3rem;
  }

  .toggle-arrow {
    width: 30px;
    height: 30px;
  }

  .filters-content.expanded {
    padding: 1rem;
  }

  .filters-search-row .search-bar {
    padding: 0.75rem 0.875rem;
    gap: 0.65rem;
    border-radius: 12px;
  }

  .filters-search-row .search-bar i.fa-search {
    font-size: 1rem;
  }

  .filters-search-row .search-bar input {
    font-size: 0.9rem;
  }

  .filters-search-row .search-clear {
    width: 24px;
    height: 24px;
  }

  .filters-grid-selects {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .filters-grid-selects .filter-group label {
    font-size: 0.65rem;
    gap: 0.35rem;
  }

  .filters-grid-selects .filter-group label i {
    font-size: 0.7rem;
  }

  .filters-grid-selects .filter-group select,
  .filters-grid-selects .filter-group input {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .active-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .filter-chips {
    width: 100%;
  }

  .filter-chip {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    justify-content: space-between;
  }

  .filters-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  /* Sugerencias en móvil */
  .filters-search-row .search-suggestions {
    border-radius: 12px;
    max-height: 280px;
  }

  .search-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .search-suggestions .suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .search-suggestions .suggestion-text {
    font-size: 0.9rem;
  }

  .search-suggestions .suggestion-category {
    font-size: 0.75rem;
  }

  .search-suggestions .suggestion-type {
    font-size: 0.6rem;
    padding: 0.3rem 0.5rem;
  }

  .comercio-filter-banner {
    padding: 0.875rem 1rem;
  }

  .comercio-filter-info {
    font-size: 0.9rem;
  }
}

/* ===========================================
   FOCUS STATES PARA ACCESIBILIDAD
   =========================================== */

.filters-header:focus-visible,
.clear-filters:focus-visible,
.toggle-arrow:focus-visible,
.filter-chip button:focus-visible,
.search-clear:focus-visible {
  outline: 3px solid rgba(100, 116, 139, 0.4);
  outline-offset: 2px;
}

.filters-grid-selects .filter-group select:focus-visible,
.filters-grid-selects .filter-group input:focus-visible,
.filters-search-row .search-bar input:focus-visible {
  outline: none;
}

/* ===========================================
   SORT OPTIONS (heredado)
   =========================================== */

.sort-options {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sort-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
  text-decoration: none;
}

.sort-btn:hover,
.sort-btn.active {
  border-color: #ff6b6b;
  background: #ff6b6b;
  color: white;
  transform: translateY(-2px);
}

/* ===========================================
   SUGERENCIAS ANIMACIÓN
   =========================================== */

.suggestion-item {
  animation: suggestionSlideIn 0.2s ease forwards;
  opacity: 0;
}

.suggestion-item:nth-child(1) {
  animation-delay: 0ms;
}
.suggestion-item:nth-child(2) {
  animation-delay: 30ms;
}
.suggestion-item:nth-child(3) {
  animation-delay: 60ms;
}
.suggestion-item:nth-child(4) {
  animation-delay: 90ms;
}
.suggestion-item:nth-child(5) {
  animation-delay: 120ms;
}
.suggestion-item:nth-child(6) {
  animation-delay: 150ms;
}
.suggestion-item:nth-child(7) {
  animation-delay: 180ms;
}
.suggestion-item:nth-child(8) {
  animation-delay: 210ms;
}

@keyframes suggestionSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================================================================
   FIX: Estilos para precios NxM y stock simplificado
   Añadir al final de catalogo_unified.css
   ============================================================================= */

/* Precios NxM - Formato de precio total */
.price-nxm-total {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.price-nxm-total .price-nxm-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.price-nxm-total .price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.price-nxm-total .price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* Stock simplificado - sin barra de progreso */
.offer-stock-info.offer-stock-simple {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.offer-stock-simple .stock-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #92400e;
}

.offer-stock-simple .stock-text i {
    color: #d97706;
}

/* Responsive ajustes para NxM */
@media (max-width: 480px) {
    .price-nxm-total .price-current {
        font-size: 1.1rem;
    }
    
    .price-nxm-total .price-nxm-label {
        font-size: 0.65rem;
    }
}

/* =============================================================================
   Store Avatar con imagen de logo
   ============================================================================= */

.store-avatar.store-avatar-img {
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.store-avatar.store-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Fallback si la imagen falla */
.store-avatar.store-avatar-img img[src=""],
.store-avatar.store-avatar-img img:not([src]) {
    display: none;
}

/* Hover sutil en el avatar con imagen */
.offer-card:hover .store-avatar.store-avatar-img {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

/* =============================================================================
   BOTÓN COMPARTIR OFERTA
   ============================================================================= */

.share-offer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.share-offer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.share-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.share-offer-btn:hover::before {
    left: 100%;
}

.share-offer-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.share-offer-btn.sharing {
    pointer-events: none;
    opacity: 0.8;
}

.share-offer-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.share-offer-btn:hover i {
    transform: scale(1.1);
}

/* =============================================================================
   MODAL DE COMPARTIR
   ============================================================================= */

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal-overlay.active .share-modal {
    transform: scale(1) translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 20px 20px 0 0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.share-modal-content {
    padding: 1.5rem;
    background-color: white;
}

.share-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f1f1f;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.share-modal-store {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-modal-store i {
    color: #ff6b6b;
}

/* Grid de opciones de compartir */
.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-option i {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.share-option span {
    font-size: 0.75rem;
    font-weight: 500;
}

.share-option:hover {
    transform: translateY(-3px);
}

.share-option:hover i {
    transform: scale(1.1);
}

.share-option:active {
    transform: translateY(-1px);
}

/* Colores específicos por plataforma */
.share-whatsapp {
    background: #e8f5e9;
    color: #25d366;
}
.share-whatsapp:hover {
    background: #c8e6c9;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-telegram {
    background: #e3f2fd;
    color: #0088cc;
}
.share-telegram:hover {
    background: #bbdefb;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.share-facebook {
    background: #e8eaf6;
    color: #1877f2;
}
.share-facebook:hover {
    background: #c5cae9;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-twitter {
    background: #e1f5fe;
    color: #1da1f2;
}
.share-twitter:hover {
    background: #b3e5fc;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-email {
    background: #fce4ec;
    color: #e91e63;
}
.share-email:hover {
    background: #f8bbd9;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.share-copy {
    background: #f3e5f5;
    color: #9c27b0;
}
.share-copy:hover {
    background: #e1bee7;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Container del enlace para copiar */
.share-link-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.share-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: rgb(100, 116, 139);
    outline: none;
    font-family: 'Inter', monospace;
    text-overflow: ellipsis;
}

.share-link-copy-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.share-link-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.share-link-copy-btn:active {
    transform: scale(0.98);
}

/* Body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* =============================================================================
   RESPONSIVE - COMPARTIR
   ============================================================================= */

@media (max-width: 480px) {
    .share-modal {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .share-modal-header {
        padding: 1rem 1.25rem;
        border-radius: 16px 16px 0 0;
    }
    
    .share-modal-content {
        padding: 1.25rem;
        background-color: white;
    }
    
    .share-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .share-option {
        padding: 0.75rem 0.25rem;
    }
    
    .share-option i {
        font-size: 1.25rem;
    }
    
    .share-option span {
        font-size: 0.7rem;
    }
    
    .share-offer-btn {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Hover states para touch devices */
@media (hover: none) {
    .share-offer-btn:hover {
        transform: none;
    }
    
    .share-offer-btn:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #e85d5d 0%, #e57d47 100%);
    }
    
    .share-option:hover {
        transform: none;
    }
    
    .share-option:active {
        transform: scale(0.95);
    }
}

/* Animación de shimmer en el botón */
@keyframes shareButtonShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.share-offer-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Dark mode support (si lo tienes implementado) */
@media (prefers-color-scheme: dark) {
    .share-modal {
        background: #1e293b;
    }
    
    .share-modal-header {
        border-bottom-color: #334155;
    }
    
    .share-modal-title {
        color: #1a1a1a;
    }
    
    .share-modal-store {
        color: #94a3b8;
    }
    
    .share-link-container {
        background: rgb(248, 250, 252);
        border-color: #d5d5d5;
    }
    
    .share-link-input {
        color: #4d4d4d;
    }
}

/* =============================================================================
   MODAL DE DETALLE DE OFERTA
   Componente reutilizable para mostrar detalle completo de ofertas
   ============================================================================= */

/* ===========================================
   OVERLAY Y CONTENEDOR PRINCIPAL
   =========================================== */

.offer-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-detail-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop: centrado */
@media (min-width: 769px) {
    .offer-detail-modal-overlay {
        align-items: center;
        padding: 2rem;
    }
}

.offer-detail-modal {
    background: #fff;
    width: 100%;
    max-width: 580px;
    max-height: 95vh;
    max-height: 95dvh; /* Dynamic viewport height para iOS */
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.3);
}

.offer-detail-modal-overlay.active .offer-detail-modal {
    transform: translateY(0);
}

/* Desktop: modal centrado con bordes redondeados completos */
@media (min-width: 769px) {
    .offer-detail-modal {
        border-radius: 24px;
        max-height: 90vh;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
        transform: scale(0.9) translateY(30px);
    }
    
    .offer-detail-modal-overlay.active .offer-detail-modal {
        transform: scale(1) translateY(0);
    }
}

/* ===========================================
   BOTÓN CERRAR
   =========================================== */

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

.modal-close-btn i {
    font-size: 1.1rem;
    color: #64748b;
    transition: color 0.2s;
}

.modal-close-btn:hover i {
    color: white;
}

/* ===========================================
   ESTADOS: LOADING, ERROR
   =========================================== */

.modal-loading,
.modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
}

.modal-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f1f5f9;
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: modalSpin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes modalSpin {
    to { transform: rotate(360deg); }
}

.modal-loading span {
    color: #64748b;
    font-weight: 500;
}

.modal-error i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.modal-error p {
    color: #64748b;
    margin-bottom: 1rem;
}

.btn-retry {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* ===========================================
   CONTENIDO DEL MODAL
   =========================================== */

.modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Scrollbar elegante */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f8fafc;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 3px;
}

/* ===========================================
   HEADER CON IMAGEN
   =========================================== */

.modal-header {
    position: relative;
    width: 100%;
}

.modal-image-container {
    position: relative;
    width: 100%;
    background: #f8fafc;
}

.modal-offer-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}

.modal-offer-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-offer-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Badge destacada en modal */
.modal-badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2d3748;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 5;
}

/* Badge de tipo en modal */
.modal-badge-type {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.modal-badge-type.badge-gratis {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.modal-badge-type.badge-2x1,
.modal-badge-type.badge-3x2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.modal-badge-type.badge-cupon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.modal-badge-type.badge-stock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.modal-badge-type.badge-descuento {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.modal-badge-type.badge-otro {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

/* Botón favorito en modal */
.modal-favorite-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 5;
}

.modal-favorite-btn i {
    font-size: 1.3rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.modal-favorite-btn:hover {
    transform: scale(1.1);
}

.modal-favorite-btn:hover i {
    color: #ff6b6b;
}

.modal-favorite-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.modal-favorite-btn.active i {
    color: white;
}

/* ===========================================
   CONTENIDO PRINCIPAL
   =========================================== */

.modal-main-content {
    padding: 1.5rem;
}

.modal-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.modal-category i {
    color: #ff6b6b;
}

.modal-views {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.modal-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

/* ===========================================
   PRECIOS EN MODAL
   =========================================== */

.modal-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-radius: 16px;
    border: 1px solid #fecaca;
}

.modal-pricing .price-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.modal-pricing .price-current {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b6b;
}

.modal-pricing .price-current.price-free {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-pricing .discount-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Precios NxM en modal */
.price-nxm-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.price-nxm-detail .price-nxm-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.price-nxm-detail .price-original {
    font-size: 0.95rem;
}

.price-nxm-detail .price-current {
    font-size: 1.75rem;
}

.price-nxm-detail .price-savings {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    background: #ecfdf5;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.25rem;
    width: fit-content;
}

/* ===========================================
   VALIDEZ Y STOCK
   =========================================== */

.modal-validity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: #f1f5f9;
    color: #64748b;
}

.modal-validity i {
    font-size: 1rem;
}

.modal-validity.urgente {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.modal-validity.pronto {
    background: #fef3c7;
    color: #d97706;
}

.modal-validity.vencida {
    background: #fee2e2;
    color: #dc2626;
}

.modal-validity.stock {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.modal-stock-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.modal-stock-info .stock-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.modal-stock-info .stock-bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #10b981 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.modal-stock-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #92400e;
}

/* ===========================================
   DESCRIPCIÓN
   =========================================== */

.modal-description {
    margin-bottom: 1.5rem;
}

.modal-description h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-description h4 i {
    color: #ff6b6b;
}

.modal-description p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

/* ===========================================
   SECCIÓN DEL COMERCIO
   =========================================== */

.modal-comercio-section {
    padding: 0 1.5rem 1.5rem;
}

.modal-comercio-section > h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-comercio-section > h4 i {
    color: #ff6b6b;
}

.comercio-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

/* Header del comercio */
.comercio-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.comercio-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comercio-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comercio-avatar-letter {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.comercio-name-info {
    flex: 1;
    min-width: 0;
}

.comercio-name-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.premium-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #d97706;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Stats del comercio */
.comercio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.comercio-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #64748b;
}

.comercio-stats span i {
    color: #ff6b6b;
}

.comercio-stats .delivery-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Info items */
.comercio-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comercio-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
}

.comercio-info-item i {
    color: #ff6b6b;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.comercio-info-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.comercio-info-item a:hover {
    text-decoration: underline;
}

/* Horarios */
.comercio-horarios {
    margin-bottom: 1rem;
}

.comercio-horarios h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comercio-horarios h5 i {
    color: #ff6b6b;
}

.horarios-grid {
    display: grid;
    gap: 0.35rem;
}

.horario-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: white;
}

.horario-row .dia {
    font-weight: 600;
    color: #1e293b;
    width: 40px;
}

.horario-row .horas {
    color: #64748b;
}

.horario-row.cerrado {
    opacity: 0.6;
}

.horario-row.cerrado .horas {
    color: #ef4444;
}

.comercio-horarios-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.comercio-horarios-simple i {
    color: #ff6b6b;
}

/* Redes sociales */
.comercio-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.red-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.red-social-btn i {
    font-size: 1.25rem;
    color: white;
}

.red-social-btn:hover {
    transform: translateY(-3px);
}

.red-social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.red-social-btn.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.red-social-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.red-social-btn.website {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.red-social-btn.tiktok {
    background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Métodos de pago */
.comercio-metodos-pago {
    margin-bottom: 1rem;
}

.comercio-metodos-pago h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comercio-metodos-pago h5 i {
    color: #ff6b6b;
}

.metodos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metodo-pago-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.metodo-pago-tag i {
    color: #10b981;
}

/* Descripción del comercio */
.comercio-descripcion {
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.comercio-descripcion p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===========================================
   OFERTAS RELACIONADAS
   =========================================== */

.modal-related-section {
    padding: 0 1.5rem 1.5rem;
}

.modal-related-section > h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-related-section > h4 i {
    color: #ff6b6b;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-card:active {
    transform: translateY(-1px);
}

.rel-image {
    width: 100%;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-color: #f8fafc;
}

.rel-image.rel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rel-image.rel-placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.rel-info {
    padding: 0.75rem;
}

.rel-store {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rel-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rel-price-old {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.rel-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff6b6b;
}

.rel-discount {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

/* ===========================================
   ACCIONES DEL MODAL
   =========================================== */

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, #f8fafc 100%);
    position: sticky;
    bottom: 0;
}

.modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-action-btn.share-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.modal-action-btn.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.modal-action-btn.comercio-btn {
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.modal-action-btn.comercio-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

/* ===========================================
   INDICADOR VISUAL EN CARDS
   Para que el usuario sepa que puede hacer click
   =========================================== */

.offer-card {
    position: relative;
}

/* Indicador "Ver más" en hover */
.offer-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 50%, #ff6b6b 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.offer-card:hover::after {
    opacity: 1;
    animation: shimmerBar 1.5s ease infinite;
}

@keyframes shimmerBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Cursor y feedback visual */
.offer-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Efecto de presión en móvil */
@media (hover: none) {
    .offer-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .offer-card::after {
        display: none;
    }
}

/* ===========================================
   RESPONSIVE MODAL
   =========================================== */

@media (max-width: 480px) {
    .offer-detail-modal {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-close-btn {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-main-content {
        padding: 1.25rem;
    }
    
    .modal-pricing {
        padding: 0.875rem;
    }
    
    .modal-pricing .price-current {
        font-size: 1.75rem;
    }
    
    .modal-comercio-section,
    .modal-related-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .comercio-card {
        padding: 1rem;
    }
    
    .comercio-avatar {
        width: 48px;
        height: 48px;
    }
    
    .comercio-name-info h5 {
        font-size: 1rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .rel-image {
        height: 75px;
    }
    
    .rel-info {
        padding: 0.6rem;
    }
    
    .rel-title {
        font-size: 0.8rem;
    }
    
    .modal-actions {
        padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
    }
    
    .modal-action-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* iOS safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .modal-actions {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* Landscape móvil */
@media (max-height: 500px) and (orientation: landscape) {
    .offer-detail-modal {
        max-height: 100vh;
        max-height: 100dvh;
    }
    
    .modal-offer-image {
        max-height: 180px;
    }
    
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Prevenir scroll del body cuando modal abierto */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix para iOS */
@supports (-webkit-touch-callout: none) {
    body.modal-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* Banner filtro solo destacadas */
.destacadas-filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.destacadas-filter-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400e;
    font-size: 0.95rem;
}

.destacadas-filter-info i {
    font-size: 1.25rem;
    color: #f59e0b;
}

.btn-clear-destacadas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #92400e;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-clear-destacadas:hover {
    background: #f59e0b;
    color: white;
}

/* ================================================================
   MODAL OFERTA - INDICADOR ABIERTO/CERRADO COMERCIO
   ================================================================ */

.comercio-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.comercio-status.open {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.comercio-status.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.comercio-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comercio-status.open .status-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: comercio-pulse 2s infinite;
}

.comercio-status.closed .status-dot {
    background: #ef4444;
}

@keyframes comercio-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

/* Responsive modal status */
@media (max-width: 480px) {
    .comercio-status {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .comercio-status .status-dot {
        width: 6px;
        height: 6px;
    }
}

/* ==================== BADGE REGISTRO EXPRESS ==================== */
.badge-express-verificacion {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-express-verificacion i {
    font-size: 0.6rem;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* En tarjeta de oferta */
.offer-card .badge-express-verificacion {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 5;
}

/* En modal de detalle */
.oferta-modal .badge-express-verificacion {
    margin-left: 0.5rem;
}