/**
 * ═══════════════════════════════════════════════════════════════
 * PHYSICAL STORES - Sección de Tiendas Físicas
 * ═══════════════════════════════════════════════════════════════
 *
 * Grid de tarjetas con información de tiendas físicas:
 * - Dirección completa
 * - Horarios de atención
 * - Características (parking, wifi, etc.)
 * - Link a Google Maps con coordenadas
 *
 * Diseño moderno e-commerce, responsive y dark mode
 */

/* ═══════════════════════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════════ */

.physical-stores-container {
  width: 100%;
  max-width: var(--container-normal);
  margin: 0 auto;
  padding: 0 2rem;
}

.physical-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   TARJETA DE TIENDA - DISEÑO MODERNO
   ═══════════════════════════════════════════════════════════════ */

.store-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

/* Gradiente sutil de fondo */
.store-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
  opacity: 0.03;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
}

.store-card:hover::after {
  opacity: 0.05;
}

/* Contenido encima del gradiente */
.store-card > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER DE TIENDA
   ═══════════════════════════════════════════════════════════════ */

.store-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.store-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -4px rgba(17, 87, 238, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover .store-icon {
  transform: scale(1.08) rotate(-3deg);
}

.store-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  fill: none;
}

.store-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
}

.store-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.dark_mode .store-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

/* ═══════════════════════════════════════════════════════════════
   INFORMACIÓN DE TIENDA
   ═══════════════════════════════════════════════════════════════ */

.store-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.store-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.store-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.store-info-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary-color);
  fill: none;
}

.store-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.store-info-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-info-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CARACTERÍSTICAS DE TIENDA
   ═══════════════════════════════════════════════════════════════ */

.store-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.store-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.store-feature svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-color);
  fill: none;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÓN VER EN MAPA
   ═══════════════════════════════════════════════════════════════ */

.store-map-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px -2px rgba(17, 87, 238, 0.4);
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

/* Efecto de brillo */
.store-map-button::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;
}

.store-map-button:hover::before {
  left: 100%;
}

.store-map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(17, 87, 238, 0.5);
  filter: brightness(1.1);
}

.store-map-button:active {
  transform: translateY(0);
}

.store-map-button svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════ */

.dark_mode .store-card {
  background: var(--bg-secondary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
              0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.dark_mode .store-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
              0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.dark_mode .store-card::after {
  opacity: 0.05;
}

.dark_mode .store-card:hover::after {
  opacity: 0.08;
}

.dark_mode .store-icon {
  box-shadow: 0 8px 16px -4px rgba(17, 87, 238, 0.4);
}

.dark_mode .store-features {
  background: var(--bg-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .physical-stores-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .store-card {
    padding: 2rem;
  }

  .store-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .store-icon svg {
    width: 28px;
    height: 28px;
  }

  .store-name {
    font-size: 1.375rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .physical-stores-container {
    padding: 0 1rem;
  }

  .physical-stores-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .store-card {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
  }

  .store-card:hover {
    transform: translateY(-3px);
  }

  .store-header {
    gap: 1rem;
  }

  .store-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .store-icon svg {
    width: 26px;
    height: 26px;
  }

  .store-name {
    font-size: 1.25rem;
  }

  .store-info {
    gap: 1rem;
  }

  .store-info-value {
    font-size: 0.875rem;
  }

  .store-features {
    padding: 1rem;
    gap: 0.625rem;
  }

  .store-feature {
    font-size: 0.75rem;
  }

  .store-feature svg {
    width: 14px;
    height: 14px;
  }

  .store-map-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  .store-map-button svg {
    width: 18px;
    height: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .store-card,
  .store-icon,
  .store-map-button {
    transition: none;
    animation: none;
  }

  .store-card:hover {
    transform: none;
  }

  .store-card:hover .store-icon {
    transform: none;
  }

  .store-map-button:hover {
    transform: none;
  }
}
