/* ================================================================
   STORE-DETAIL.CSS — TuEstilo
   Storefront Premium: Hero, Sheet, Categorías, Profesionales,
   Vista Detalle, Vista Profesionales, Perfil Profesional
   Extraído de modals-ui.css (Fase 2.5 — Refinamiento CSS)
   ================================================================ */

/* ===== CROPPER.JS OVERRIDES — Handles más grandes para móvil ===== */
.cropper-point {
  width: 9px !important;
  height: 9px !important;
  opacity: 1 !important;
  background-color: #3b82f6 !important;
  border-radius: 50% !important;
}

.cropper-point.point-nw { top: -5px !important; left: -5px !important; }
.cropper-point.point-ne { top: -5px !important; right: -5px !important; }
.cropper-point.point-sw { bottom: -5px !important; left: -5px !important; }
.cropper-point.point-se { bottom: -5px !important; right: -5px !important; }
.cropper-point.point-n { top: -5px !important; }
.cropper-point.point-s { bottom: -5px !important; }
.cropper-point.point-w { left: -5px !important; }
.cropper-point.point-e { right: -5px !important; }

.cropper-line {
  background-color: rgba(59, 130, 246, 0.6) !important;
}

.cropper-dashed {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.cropper-view-box {
  outline: 2px solid #3b82f6 !important;
  outline-color: rgba(59, 130, 246, 0.8) !important;
}

/* ==============================================================
   MODALS-UI.CSS — TuEstilo
   Todos los Modales, Bottom Sheets, Overlays de UI, Lightbox, Reviews, Onboarding
   Extraído de sidebar.css (Fase 2.5 — Refinamiento CSS)
   ============================================================== */

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-radius: var(--radius-2xs);
}

.sidebar-logout-btn:hover {
  color: var(--color-danger);
  background: var(--color-danger-bg-light);
}

/* ========== DETALLE DE TIENDA (Storefront Premium - Uber Eats / App Store) ========== */
.store-detail-hero-wrap {
  position: relative;
  padding-top: 0;
}

/* Botón Volver flotante (sticky): siempre visible en vista tienda */
.store-back-fab {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, background 0.2s;
}

.store-back-fab:hover {
  background: var(--color-surface-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.store-back-fab:active {
  transform: scale(0.98);
}

.store-back-fab-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  pointer-events: none;
}

.store-detail-hero {
  height: 360px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-primary-deeper);
}

.store-detail-hero-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  filter: blur(20px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.store-detail-hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
}

/* Tablet/escritorio bajo: portada centrada y contenida */
@media (min-width: 768px) {
  .store-detail-hero-wrap {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .store-detail-hero {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .store-detail-hero-img {
    object-fit: contain;
    object-position: center center;
  }
}

/* Solo escritorio (1024px+): portada tipo Facebook – ancho completo, altura mayor, sin deformar */
@media (min-width: 1024px) {
  .store-detail-hero-wrap {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .store-detail-hero {
    height: 380px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .store-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  /* Eliminar hueco gris entre header y portada: subir la foto para pegarla al header */
  #store-content:not(.hidden) .store-detail-hero-wrap {
    margin-top: -40px;
  }
}

.store-detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Sheet: contenedor blanco que sube sobre la foto con curva */
.store-detail-sheet {
  margin-top: 30px;
  position: relative;
  z-index: 10;
  background: var(--color-surface);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  padding-bottom: 0;
}

.store-detail-sheet-inner {
  padding: 0 1rem 0.5rem;
  padding-top: 0.25rem;
}

/* ===== MODERN STORE HEADER ===== */
.store-header-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.store-hdr-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

/* Avatar con ring gradiente */
.store-hdr-avatar-ring {
  padding: 3px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  margin-top: -0.25rem;
}

.store-hdr-avatar {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
}

.store-hdr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hdr-avatar span {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Nombre + admin buttons */
.store-hdr-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.store-hdr-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
  text-align: center;
}

.store-hdr-admin {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Badge */
.store-hdr-badge-wrap {
  display: flex;
  justify-content: center;
}

/* Address compacto */
.store-hdr-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 100%;
  min-width: 0;
}

.store-hdr-address-text {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

/* Stats pill */
.store-hdr-stats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  background: #f1f5f9;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.store-hdr-stat {
  white-space: nowrap;
}

.store-hdr-divider {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  flex-shrink: 0;
}

/* Keep old classes as backward compat */
.store-detail-title-row { display: flex; align-items: center; gap: 0.75rem; }
.store-detail-logo-wrap { flex-shrink: 0; }
.store-detail-logo { width: 64px; height: 64px; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-text-secondary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.store-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-detail-logo span { color: var(--color-surface); font-size: 1.25rem; font-weight: 700; }
.store-detail-name { font-size: 1.5rem; font-weight: 800; color: var(--color-text); margin: 0; line-height: 1.2; }
.store-detail-badge-wrap { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.store-detail-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: var(--radius-pill); }
.store-detail-badge.store-detail-badge--open { background: var(--color-success-bg-light); color: var(--color-success-dark); }
.store-detail-badge.store-detail-badge--closed { background: var(--color-danger-bg); color: var(--color-danger-dark); }

.store-detail-stats-sep {
  margin: 0 0.35rem;
  color: var(--color-text-placeholder);
}

/* Acciones: píldoras ligeras (fondo blanco/gris tenue, borde suave) */
.store-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  justify-content: center;
}

.store-detail-action-pill,
.store-detail-action-pill-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  min-width: 0;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.store-detail-action-pill:hover,
.store-detail-action-pill-wrap:hover,
.store-detail-action-pill-wrap button:hover {
  background: var(--color-border-light);
  border-color: var(--color-text-disabled);
}

.store-detail-action-pill-icon,
.store-detail-action-pill-wrap .store-detail-action-pill-icon {
  font-size: 1rem;
  line-height: 1;
}

.store-detail-action-pill-label,
.store-detail-action-pill-wrap .store-detail-action-pill-label {
  line-height: 1.2;
}


.store-detail-action-pill-wrap button {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
}

.store-detail-tabs-wrap {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.store-detail-tabs {
  display: flex;
  gap: 0;
}

.store-detail-tabs-scroll {
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: min-content;
}

.store-detail-tabs-scroll .store-detail-tab {
  flex-shrink: 0;
}

.store-detail-tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.store-detail-tab:hover {
  color: var(--color-text-secondary);
}

.store-detail-tab.store-detail-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Ocultar scrollbar manteniendo scroll (opcional, estético) */
.store-detail-tabs-wrap.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.store-detail-tabs-wrap.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.store-tab-panel {
  background: var(--color-surface);
  min-height: 200px;
}

.store-detail-desc {
  white-space: pre-wrap;
}

/* ===== MOBILE COMPACT: store detail header (solo <768px) ===== */
/* IMPORTANTE: debe ir DESPUÉS de todas las reglas base para ganar por cascada */
@media (max-width: 767px) {
  .store-detail-hero-wrap {
    margin-top: -40px;  /* eliminar hueco gris entre header y portada */
  }

  .store-detail-hero {
    height: 230px;  /* +15% de espacio vertical para la foto */
  }

  .store-detail-sheet {
    margin-top: -24px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .store-detail-sheet-inner {
    padding: 0 0.75rem 0.5rem;
    padding-top: 0.15rem;
  }

  .store-detail-logo {
    width: 52px;
    height: 52px;
  }

  .store-detail-name {
    font-size: 1.25rem;
  }

  .store-detail-badge-wrap {
    margin-top: 0.15rem;
  }

  .store-detail-badge-wrap:empty,
  .store-detail-badge-wrap--hidden {
    display: none;
  }

  .store-detail-address-row {
    margin-top: 0.25rem !important;
  }

  .store-detail-stats {
    margin-top: 0.2rem !important;
  }

  .store-detail-actions {
    padding: 0.4rem 0.75rem 0.5rem;
    gap: 0.5rem;
    justify-content: center;
  }

  .store-detail-action-pill,
  .store-detail-action-pill-wrap {
    flex: 1;
    min-width: 60px;
    max-width: 90px;
    padding: 0.4rem 0.3rem;
    font-size: 0.625rem;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .store-detail-action-pill-icon,
  .store-detail-action-pill-wrap .store-detail-action-pill-icon {
    font-size: 1rem;
  }

  .store-detail-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ── Ticket "Tu Próxima Cita" en vista tienda: mismo tamaño que en perfil ── */
#store-countdown-container {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.25rem;
}

#store-countdown-container .cita-carousel-slide {
  flex: 0 0 100%;
}

#store-countdown-container [class*="rounded-2xl"][class*="from-indigo"] {
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
}

#store-countdown-container .text-4xl {
  font-size: 1.75rem;
}

.store-detail-horario {
  padding: 0.75rem;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-xs);
}

/* Grid de tarjetas de categorías */
.store-categories-section {
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
}

.store-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.store-category-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.store-category-card:hover:not(.store-category-card--closed):not(.store-category-card--add) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary-pale);
}

.store-category-card--active {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.store-category-card--active:hover {
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.store-category-card--closed {
  opacity: 0.7;
  cursor: default;
}

.store-category-card-hero {
  height: 0;
  padding-bottom: 70%;
  background: var(--color-border-light);
  position: relative;
  flex-shrink: 0;
}

.store-category-card-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-category-card-body {
  flex: 0 0 auto;
  padding: 0.5rem 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  text-align: center;
}

.store-category-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.store-category-card--active .store-category-card-body {
  background: var(--color-primary);
}

.store-category-card--active .store-category-card-title {
  color: rgba(255, 255, 255, 0.95);
}

.store-category-card--add {
  border-style: dashed;
  border-color: var(--color-primary-pale);
  background: #f8fafc;
}

.store-category-card--add .store-category-card-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 70%;
  height: 0;
}

.store-category-card--add .store-category-card-hero::after {
  content: '+';
  position: absolute;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-primary-pale);
}

.store-category-card--add .store-category-card-body span {
  color: var(--color-primary);
}

.store-category-card--add:hover {
  background: var(--color-primary-bg-light);
  border-color: #60a5fa;
}

.store-category-card--manage {
  border-color: var(--color-border);
}

.store-category-card--manage .store-category-card-hero {
  background: var(--color-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-category-card--manage .store-category-card-hero::after {
  content: '⚙';
  position: absolute;
  font-size: 1.5rem;
}

.store-category-card--manage .store-category-card-body span {
  color: var(--color-text-light);
  font-weight: 600;
}

.store-category-card--manage:hover .store-category-card-body span {
  color: var(--color-text-secondary);
}

.store-categories-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  grid-column: 1 / -1;
}

/* VISTA_DETALLE: Header con botón Volver y título */
.store-vista-detalle-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  min-height: 52px;
}

.store-vista-detalle-back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.store-vista-detalle-back:hover {
  color: var(--color-primary-dark);
}

.store-vista-detalle-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.store-vista-detalle-spacer {
  width: 80px;
  flex-shrink: 0;
}

/* VISTA_PROFESIONALES: Elegir Profesional */
.store-vista-profesionales-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  min-height: 52px;
}

.store-vista-profesionales-title-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-vista-profesionales-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-2xs);
  object-fit: cover;
}

.store-vista-profesionales-cat-icon-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-2xs);
  background: var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.store-vista-profesionales-cat-icon.hidden {
  display: none;
}

.store-vista-profesionales-cat-icon:not(.hidden)~.store-vista-profesionales-cat-icon-placeholder {
  display: none;
}

.store-vista-profesionales-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.store-vista-profesionales-subtitle {
  margin: 0;
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  white-space: nowrap;
}

.store-vista-profesionales-subtitle::before,
.store-vista-profesionales-subtitle::after {
  content: '';
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-text-disabled) 20%, var(--color-text-placeholder) 50%, var(--color-text-disabled) 80%, transparent);
}

@media (max-width: 400px) {
  .store-vista-profesionales-subtitle {
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
  }
}

.store-profesionales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem 100px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .store-profesionales-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .store-profesionales-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Wrapper: card + botón Elegir debajo */
.store-profesional-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.store-profesional-card {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 2rem;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.store-profesional-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Fondo difuminado (misma imagen, blur pesado) */
.store-profesional-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(18px);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

/* Imagen principal: object-contain centrada */
.store-profesional-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  transition: transform 0.4s;
}

.store-profesional-card:hover .store-profesional-card-img {
  transform: scale(1.05);
}

/* Nombre centrado arriba de la card (fuera) */
.store-profesional-card-name {
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botón "Elegir" — centrado debajo de la card */
.store-profesional-card-btn {
  padding: 0.55rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-surface);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
  text-align: center;
}

.store-profesional-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.store-profesional-card-btn:active {
  transform: translateY(0);
}

/* ===== SERVICE HERO CARDS (perfil profesional) ===== */
.svc-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.svc-hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  width: 100%;
}

.svc-hero-name {
  text-align: center;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.svc-hero-price {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 0.4rem;
  color: #1d4ed8;
  font-weight: 900;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.svc-hero-kebab {
  position: absolute;
  top: 0;
  right: 0;
}

/* Card limpia: solo imagen */
.svc-hero-card {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 2rem;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.svc-hero-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.svc-hero-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(18px);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

.svc-hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  transition: transform 0.4s;
  cursor: zoom-in;
}

.svc-hero-card:hover .svc-hero-card-img {
  transform: scale(1.05);
}

/* Footer con duración + botones */
.svc-hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.svc-hero-duration {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.svc-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.svc-hero-btn-secondary {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.svc-hero-btn-secondary:hover {
  background: #e2e8f0;
}

.svc-hero-btn-secondary:active {
  transform: scale(0.95);
}

.svc-hero-btn-primary {
  flex: 1;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 0.65rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-align: center;
}

.svc-hero-btn-primary:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.svc-hero-btn-primary:active {
  transform: scale(0.95);
}

.store-perfil-profesional-content {
  padding: 0 1rem 100px;
  background: var(--color-surface);
}

/* ===== MODERN PROFILE HEADER ===== */
.prof-header-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 1.5rem 1.5rem;
}

/* Avatar con ring gradiente */
.prof-header-avatar-ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.prof-header-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 3px solid #fff;
  display: block;
}

/* Nombre centrado */
.prof-header-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Stats row (3 columnas con dividers) */
.prof-header-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 0;
  margin: 0.15rem 0;
  background: #f1f5f9;
  border-radius: 0.85rem;
}

.prof-header-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.prof-header-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.prof-header-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prof-header-stat-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
  flex-shrink: 0;
}

/* Seguidores + Follow button */
.prof-header-follow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.prof-header-followers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.prof-header-followers-count {
  font-weight: 800;
  color: var(--color-text);
}

.prof-header-followers-label {
  font-weight: 500;
}

.prof-header-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Keep old classes as no-ops for backward compat */
.store-perfil-profesional-header { display: flex; flex-direction: column; }
.store-perfil-profesional-avatar-wrap { flex-shrink: 0; }
.store-perfil-profesional-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.store-perfil-profesional-info { flex: 1; min-width: 0; }
.store-perfil-profesional-nombre { font-size: 1.25rem; font-weight: 700; }
.store-perfil-profesional-stats { display: none; }
.store-perfil-stat { display: none; }
.store-perfil-stat-icon { display: none; }
.store-perfil-follow-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.store-perfil-profesional-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.store-perfil-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.store-perfil-tab:hover {
  color: var(--color-text-secondary);
}

.store-perfil-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.store-perfil-tab-panel {
  min-height: 120px;
}

.store-perfil-agregar-servicio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-bg-light);
  border: 1px dashed var(--color-primary-pale);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.store-perfil-agregar-servicio:hover {
  background: var(--color-primary-bg);
}

.store-perfil-establecimientos-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-perfil-establecimiento-item {
  padding: 0.75rem 1rem;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-2xs);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Lista de servicios (pestaña Servicios) - Grid 2 columnas */
.store-services-section {
  padding: 0 1rem;
  padding-bottom: 100px;
  background: var(--color-surface);
}

.store-services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.store-services-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-placeholder);
  font-size: 0.875rem;
  padding: 2rem 0;
  margin: 0;
}

/* Tarjeta de servicio (mini, vertical para grid) */
.store-service-card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.store-service-card-hero {
  position: relative;
  width: 100%;
  height: 120px;
  flex-shrink: 0;
  background: var(--color-border-light);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.store-service-card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-service-card-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-border-light) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
