@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   PERFIL DASHBOARD - ESTILO A: OSCURO PROFESIONAL
   Inspirado en Spotify / Netflix
   ======================================== */

:root {
  --verde: #1DB954;
  --verde-hover: #1ed760;
  --negro: #121212;
  --negro-card: #181818;
  --negro-hover: #282828;
  --gris: #b3b3b3;
  --gris-oscuro: #535353;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--negro);
  color: white;
  overflow-x: hidden;
}
/* ========================================
   SKELETON LOADER (shimmer wave)
   ======================================== */
#skeleton-loader { background: var(--negro); min-height: 100vh; }
#skeleton-loader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  position: absolute;
  width: 100%;
}

.sk-shimmer {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skShimmer 1.5s ease-in-out infinite;
}
@keyframes skShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sk-cover { width: 100%; height: 280px; }
.sk-body { padding: 0 20px; }
.sk-logo {
  width: 80px; height: 80px; border-radius: 50%;
  margin: -40px auto 0; position: relative;
  border: 4px solid var(--negro);
}
.sk-name { width: 55%; height: 20px; border-radius: 10px; margin: 16px auto 0; }
.sk-cat  { width: 35%; height: 14px; border-radius: 10px; margin: 10px auto 0; }
.sk-actions {
  display: flex; justify-content: center; gap: 14px;
  margin: 22px 0 20px; padding: 0 10px;
}
.sk-action { width: 60px; height: 60px; border-radius: 16px; }
.sk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 4px 24px;
}
.sk-card { height: 100px; border-radius: 14px; }

/* Cover con parallax — necesita will-change para performance */
.cover-photo {
  will-change: transform;
}

/* ========================================
   HEADER FLOTANTE
   ======================================== */
.header-floating {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s cubic-bezier(.4,0,.2,1),
              backdrop-filter 0.35s cubic-bezier(.4,0,.2,1),
              border-color 0.35s cubic-bezier(.4,0,.2,1);
}
.header-floating.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nowdii-home-link {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.nhl-text { color: #fff; }
.nhl-accent { color: #ffe600; }

.header-right { display: flex; gap: 8px; align-items: center; }

.btn-back,
.btn-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-back:hover,
.btn-share:hover {
  background: var(--negro-hover);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.header-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1),
              transform 0.35s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Llenar el espacio central disponible — la elipsis trunca si no cabe */
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 10px;
}
/* Pantallas muy chicas (iPhone SE, Android baratos) */
@media (max-width: 380px) {
  .header-title {
    font-size: 0.82rem;
    padding: 0 6px;
  }
}
.header-floating.scrolled .header-title {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

/* ========================================
   FOTO DE PORTADA
   ======================================== */
.cover-photo {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 0 rgba(200,200,200,0.12);
}

.cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
     to bottom,
  transparent 40%,
  rgba(18,18,18,0.7) 80%,
  rgba(18,18,18,0.9) 100%
  );
}

/* LOGO SOBRESALIENDO */
.profile-logo-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1.2rem;
  margin-top: -48px;
  position: relative;
  z-index: 2;
  margin-bottom: 0.75rem;
}

.status-badge-cover {
  display: none; /* movido a profile-badges-row */
}

.status-badge-cover.closed {
  background: rgba(136,136,136,0.1);
  border-color: rgba(136,136,136,0.2);
  color: #888;
}

.status-badge-cover .dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}

.status-badge-cover.open .dot {
  animation: statusPulse 1.5s infinite;
}

/* ========================================
   PERFIL HEADER - nuevo estilo flat
   ======================================== */
.profile-header {
  margin-bottom: 1rem;
  padding: 0 1.2rem;
}

.profile-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.15),
    0 8px 24px -8px rgba(0, 0, 0, 0.8);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1e1e1e;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-name-block {
  flex: 1;
  min-width: 0;
}

/* Nombre + palomita en la misma línea */
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: white;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón +Seguir en hero del perfil (Paso 7B.2). Reutiliza .of-follow-btn
   de oferta-page.css (ya cargada en profile.html). Sólo ajustamos la
   posición: pegado a la derecha, empuja al nombre para que haga ellipsis
   antes de tapar el botón. El nombre puede reducirse; el botón no. */
.profile-name-row .of-follow-btn.profile-hero-follow {
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Sistema verificación 3 niveles ── */
@keyframes shimmer-perfil {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.verified-check {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Azul */
.verified-badge-azul {
  background: rgba(29,155,240,0.12);
  border: 1px solid rgba(29,155,240,0.4);
  color: #1d9bf0;
}
.verified-badge-azul .verified-check {
  background: #1d9bf0;
  color: #fff;
}

/* Dorado */
.verified-badge-dorado {
  background: rgba(197,160,50,0.12);
  border: 1px solid rgba(197,160,50,0.45);
  color: #c5a032;
}
.verified-badge-dorado .verified-check {
  background: linear-gradient(135deg, #c5a032, #e8c547);
  color: #fff;
}

/* Top — metálico */
.verified-badge-top {
  background: linear-gradient(135deg, #555, #ccc, #444, #bbb, #666);
  background-size: 200% auto;
  animation: shimmer-perfil 3s linear infinite;
  border-radius: 20px;
  padding: 1.5px;
}
.verified-top-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #000;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}
.verified-check-top {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #333;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.verified-check-top::after {
  content: "✓";
  position: absolute;
  font-size: 8px;
  font-weight: 900;
  background: linear-gradient(90deg, #888, #fff, #aaa, #fff, #777);
  background-size: 200% auto;
  animation: shimmer-perfil 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.verified-metal-txt {
  background: linear-gradient(90deg, #777, #ccc, #fff, #ccc, #777);
  background-size: 200% auto;
  animation: shimmer-perfil 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-category {
  font-size: 13px;
  color: #aaa;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-category .cat-sep {
  color: #aaa;
}

/* Enlace SEO a landing de categoría — sutil, solo subraya en hover */
.profile-category .profile-cat-link {
  color: #aaa;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 230, 0, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.profile-category .profile-cat-link:hover {
  color: #FFE600;
  border-bottom-color: #FFE600;
}

/* Divider */
.profile-divider {
  border: none;
  border-top: 1px solid #222;
  margin: 0 0 14px;
}

/* Fila de estado */
.profile-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.status-indicator.open {
  color: #22c55e;
}

.status-indicator.closed {
  color: #888;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-indicator.open .status-dot {
  animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Badges — fila minimal debajo del nombre */
.profile-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #ffe600;
}
.badge-premium i { font-size: 9px; }

.badge-sep {
  color: rgba(255,255,255,0.07);
  font-size: 14px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
}
.badge-status.open { color: #22c55e; }
.badge-status.closed { color: #555; }
.badge-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-status.open .dot {
  animation: statusPulse 1.5s infinite;
}

/* Actividad online - fila inferior */
.profile-activity {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1e1e1e;
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: statusPulse 2s infinite;
}

/* ========================================
   BOTONES DE ACCIÓN
   ======================================== */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

/* Redes sociales — Grid tipo iOS Share Sheet */
.sheet-title {
  font-size: 0.88rem;
  color: #ddd;
  font-weight: 700;
  text-align: center;
  padding: 18px 0 4px;
}

.sheet-sub {
  text-align: center;
  font-size: 0.68rem;
  color: #555;
  padding-bottom: 16px;
}

.sheet-redes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px 4px;
  padding: 0 16px 20px;
  justify-items: center;
}

.sheet-red {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, opacity 0.15s;
  border-radius: 14px;
  width: 100%;
}

.sheet-red:active {
  opacity: 0.7;
  transform: scale(0.93);
}

.sheet-red-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

.sheet-red:active .sheet-red-icon {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.sheet-red-nombre {
  font-size: 0.7rem;
  font-weight: 600;
  color: #ccc;
  text-align: center;
  line-height: 1.2;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
  background: #1a1a1a;
  border: 1px solid #242424;
  transition: transform 0.12s cubic-bezier(.4,0,.2,1),
              background 0.12s cubic-bezier(.4,0,.2,1),
              border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
/* Feedback táctil iOS: scale + fondo que aclara */
.action-btn:active {
  transform: scale(0.96);
  background: #262626;
}

.action-btn i {
  font-size: 1.4rem;
}

/* Solo el ícono lleva el color */
.btn-whatsapp i { color: #25D366; }
.btn-call i     { color: #0088cc; }
.btn-map i      { color: #e74c3c; }

/* Hover sutil */
.btn-whatsapp:hover,
.btn-call:hover,
.btn-map:hover {
  background: #222;
  border-color: #333;
  color: white;
  transform: none;
  box-shadow: none;
}
/* ========================================
   GALERÍA MASONRY - DISEÑO NEUTRAL PROFESIONAL
   Colores: Blancos, grises, dorado sutil
   ======================================== */

#hero-photo {
  margin-bottom: 0;
}

.gallery-container-masonry {
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #242424;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 0;
}

/* Header */
.gallery-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #242424;
}

.gallery-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-title i {
  color: #555;
  font-size: 0.78rem;
}

.gallery-count {
  font-size: 0.72rem;
  color: #444;
}

/* Grid 3 columnas compacto */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

/* Cada foto */
.grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #0a0a0a;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.grid-item:active img {
  transform: scale(0.97);
}

/* Overlay "+X más" */
.grid-item-more img {
  filter: brightness(0.35);
}

.grid-item-more .grid-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  gap: 2px;
}

.grid-item-more .grid-item-overlay small {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   LIGHTBOX - DISEÑO NEUTRAL PREMIUM
   ======================================== */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(10px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-lightbox.active {
  display: flex;
}

/* Imagen del lightbox con sombra blanca */
.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Botón cerrar - NEUTRAL */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Botones de navegación - NEUTROS */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Contador - DISEÑO NEUTRAL */
.lightbox-counter {
   position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 20px;
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 600px) {
  .gallery-container-masonry {
    padding: 0;
    border-radius: 16px;
  }

  .gallery-title {
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .masonry-grid {
    columns: 2;
    column-gap: 10px;
  }

  .masonry-item {
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .masonry-item:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .btn-ver-mas-fotos {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  /* Lightbox en móvil */
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }

  .lightbox-counter {
    top: 10px;
    left: 10px;
    font-size: 1rem;
    padding: 8px 16px;
  }

  .masonry-overlay span {
    font-size: 1rem;
  }

  .masonry-overlay::before {
    font-size: 2rem;
  }
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */

/* Animación de entrada para items */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.grid-item {
  animation: slideUp 0.4s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation-delay: 0.1s; }
.grid-item:nth-child(3) { animation-delay: 0.15s; }
.grid-item:nth-child(4) { animation-delay: 0.2s; }
.grid-item:nth-child(5) { animation-delay: 0.25s; }
.grid-item:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   GRID DE CARDS 2x2
   ======================================== */
   .grid-cards-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: white;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-cards-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #242424;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.grid-card {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s cubic-bezier(.4,0,.2,1),
              background 0.12s cubic-bezier(.4,0,.2,1);
}

/* Feedback táctil iOS */
.grid-card:active {
  transform: scale(0.96);
  background: #262626;
}

/* ── Ícono en caja de color ── */
.grid-card-icon-circle {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

/* ── Línea de color inferior (accent bar) ── */
.grid-card-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* ── Contenido inferior ── */
.grid-card-content {
  display: flex;
  flex-direction: column;
}

.grid-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  color: white;
  line-height: 1.25;
}

.grid-card-desc {
  font-size: 0.65rem;
  color: #777;
  margin-top: 2px;
}

.grid-card-badge-promo {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ========================================
   BANNER DE OFERTAS ACTIVAS (perfil)
   Se renderiza arriba de "Explora" (entre
   historias y grid-cards). Fondo con el color
   del tipo de oferta (combo/relampago/cupon/
   estandar) — consistente con el Billboard.
   Si hay 2+ ofertas, rota automáticamente.
   ======================================== */
.perfil-oferta-banner {
  margin: 20px 14px 16px;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
  min-height: 52px;
  /* Default (estandar) → se sobreescribe por clase de tipo */
  background: linear-gradient(145deg, #2a8f3f 0%, #1a6629 100%);
  box-shadow: 0 2px 14px rgba(139, 209, 124, 0.18);
}
.perfil-oferta-banner.pob-combo {
  background: linear-gradient(145deg, #b366ff 0%, #7a1fe8 100%);
  box-shadow: 0 2px 14px rgba(179, 102, 255, 0.28);
}
.perfil-oferta-banner.pob-relampago {
  background: linear-gradient(145deg, #ff4d4d 0%, #c11c1c 100%);
  box-shadow: 0 2px 14px rgba(255, 77, 77, 0.28);
}
.perfil-oferta-banner.pob-cupon {
  background: linear-gradient(145deg, #4dd3ff 0%, #1a8dbf 100%);
  box-shadow: 0 2px 14px rgba(77, 211, 255, 0.28);
  color: #ffffff;
}
.perfil-oferta-banner.pob-estandar {
  background: linear-gradient(145deg, #2a8f3f 0%, #1a6629 100%);
  box-shadow: 0 2px 14px rgba(139, 209, 124, 0.22);
}
.perfil-oferta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0,0,0,0.25) 0%, transparent 45%);
}
.perfil-oferta-banner:active { transform: scale(0.985); }

/* Contenido — va dentro de un slot para poder animar el fade */
.perfil-oferta-banner .pob-slot {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  position: relative;
  z-index: 2;
  transition: opacity 220ms ease, transform 220ms ease;
}
.perfil-oferta-banner .pob-slot.pob-fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.perfil-oferta-banner .pob-big {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.perfil-oferta-banner .pob-big .pob-price-old {
  font-size: 11px;
  font-weight: 700;
  text-decoration: line-through;
  opacity: 0.7;
  letter-spacing: 0;
}
.perfil-oferta-banner .pob-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.perfil-oferta-banner .pob-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.perfil-oferta-banner .pob-kicker-row {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.88;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.perfil-oferta-banner .pob-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.perfil-oferta-banner .pob-arrow {
  font-size: 16px;
  color: #fff;
  opacity: 0.7;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  line-height: 1;
}

/* Dots — solo se ven cuando hay 2+ ofertas */
.perfil-oferta-banner .pob-dots {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}
.perfil-oferta-banner .pob-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.22s ease, width 0.22s ease, border-radius 0.22s ease;
}
.perfil-oferta-banner .pob-dots span.active {
  background: #fff;
  width: 12px;
  border-radius: 2px;
}

.grid-card-badge {
  display: inline-block;
  background: #333;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ── Colores por tipo de card (ícono + accent bar) ── */
/* Menú — naranja cálido */
.grid-card[data-type="menu"] .grid-card-icon-circle          { background: linear-gradient(135deg, #ea580c, #fb923c); }
.grid-card[data-type="menu"] .grid-card-accent-bar           { background: linear-gradient(90deg, #ea580c, #fb923c); }
/* Especialidades — ámbar claro */
.grid-card[data-type="especialidades"] .grid-card-icon-circle { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.grid-card[data-type="especialidades"] .grid-card-accent-bar  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
/* Catálogo — indigo */
.grid-card[data-type="catalogo"] .grid-card-icon-circle       { background: linear-gradient(135deg, #6366f1, #818cf8); }
.grid-card[data-type="catalogo"] .grid-card-accent-bar        { background: linear-gradient(90deg, #6366f1, #818cf8); }
/* Portafolio — slate/azul acero */
.grid-card[data-type="portafolio"] .grid-card-icon-circle     { background: linear-gradient(135deg, #475569, #64748b); }
.grid-card[data-type="portafolio"] .grid-card-accent-bar      { background: linear-gradient(90deg, #475569, #64748b); }
/* Destacados — amarillo NOWDII */
.grid-card[data-type="destacados"] .grid-card-icon-circle     { background: linear-gradient(135deg, #eab308, #ffe600); }
.grid-card[data-type="destacados"] .grid-card-accent-bar      { background: linear-gradient(90deg, #eab308, #ffe600); }
/* Servicios — azul */
.grid-card[data-type="servicios"] .grid-card-icon-circle      { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.grid-card[data-type="servicios"] .grid-card-accent-bar       { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
/* Promociones — rojo */
.grid-card[data-type="promociones"] .grid-card-icon-circle    { background: linear-gradient(135deg, #ef4444, #f87171); }
.grid-card[data-type="promociones"] .grid-card-accent-bar     { background: linear-gradient(90deg, #ef4444, #f87171); }
/* Domicilio — esmeralda */
.grid-card[data-type="domicilio"] .grid-card-icon-circle      { background: linear-gradient(135deg, #10b981, #34d399); }
.grid-card[data-type="domicilio"] .grid-card-accent-bar       { background: linear-gradient(90deg, #10b981, #34d399); }
/* Envíos — verde azulado */
.grid-card[data-type="envios"] .grid-card-icon-circle         { background: linear-gradient(135deg, #047857, #34d399); }
.grid-card[data-type="envios"] .grid-card-accent-bar          { background: linear-gradient(90deg, #047857, #34d399); }
/* Cobertura — esmeralda oscuro */
.grid-card[data-type="cobertura"] .grid-card-icon-circle      { background: linear-gradient(135deg, #059669, #10b981); }
.grid-card[data-type="cobertura"] .grid-card-accent-bar       { background: linear-gradient(90deg, #059669, #10b981); }
/* Precios — dorado/ámbar oscuro */
.grid-card[data-type="precios"] .grid-card-icon-circle        { background: linear-gradient(135deg, #d97706, #f59e0b); }
.grid-card[data-type="precios"] .grid-card-accent-bar         { background: linear-gradient(90deg, #d97706, #f59e0b); }
/* Pedidos — amarillo */
.grid-card[data-type="pedidos"] .grid-card-icon-circle        { background: linear-gradient(135deg, #ca8a04, #eab308); }
.grid-card[data-type="pedidos"] .grid-card-accent-bar         { background: linear-gradient(90deg, #ca8a04, #eab308); }
/* Agendar — cyan */
.grid-card[data-type="agendar"] .grid-card-icon-circle        { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.grid-card[data-type="agendar"] .grid-card-accent-bar         { background: linear-gradient(90deg, #0891b2, #22d3ee); }
/* Especialidad médica — violeta */
.grid-card[data-type="especialidad"] .grid-card-icon-circle   { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.grid-card[data-type="especialidad"] .grid-card-accent-bar    { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
/* Trayectoria — teal */
.grid-card[data-type="trayectoria"] .grid-card-icon-circle    { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.grid-card[data-type="trayectoria"] .grid-card-accent-bar     { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
/* Reglamento — gris */
.grid-card[data-type="reglamento"] .grid-card-icon-circle     { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.grid-card[data-type="reglamento"] .grid-card-accent-bar      { background: linear-gradient(90deg, #6b7280, #9ca3af); }

/* ========================================
   LO QUE NECESITAS SABER - ESTILO CHAT
   ======================================== */
.info-section {
  margin-bottom: 2rem;
  background: var(--negro-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #242424;
}

/* Header estilo B - avatar + nombre + estado */
.info-section-header {
  background: #1a1a1a;
  padding: 12px 16px;
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-section-header::before {
  display: none;
}

.bot-avatar {
  width: 36px;
  height: 36px;
  background: #1DB954;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.bot-info { flex: 1; }

.bot-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.bot-status {
  font-size: 0.72rem;
  color: #1DB954;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.bot-dot {
  width: 5px;
  height: 5px;
  background: #1DB954;
  border-radius: 50%;
  animation: statusPulse 1.5s infinite;
}

.info-section-icon {
  font-size: 1.4rem;
  margin-bottom: 0;
  filter: none;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.info-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  text-shadow: none;
  position: relative;
  z-index: 2;
}

.info-section-subtitle {
  display: none;
}

/* Contenido del chat */
.chat-content {
  background: var(--negro-card);
  padding: 1.5rem;
  border-radius: 0;
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.question-bubble {
  align-self: flex-end;
  background: var(--verde);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 18px 18px 4px 18px;
  max-width: 80%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
  position: relative;
  z-index: 2;
}

.question-bubble:hover {
  background: var(--verde-hover);
  transform: scale(1.02);
}

.typing-indicator {
  align-self: flex-start;
  background: var(--negro-card);
  padding: 1rem 1.5rem;
  border-radius: 18px;
  display: none;
  border: 1px solid var(--gris-oscuro);
}

.typing-indicator.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.typing-dots {
  display: flex;
  gap: 0.3rem;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--gris-oscuro);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { 
    transform: translateY(0); 
    opacity: 0.5; 
  }
  30% { 
    transform: translateY(-8px); 
    opacity: 1; 
  }
}

.answer-bubble {
  align-self: flex-start;
  background: var(--negro-card);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 18px 18px 18px 4px;
  max-width: 85%;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gris-oscuro);
  line-height: 1.6;
}

.answer-bubble.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.contact-button i.fab {
  color: #25D366;
  font-size: 1.1rem;
}

.contact-button span {
  flex: 1;
}

.contact-arrow {
  color: #333;
  font-size: 0.75rem;
  margin-left: auto;
}

.contact-button:hover {
  background: #222;
  border-color: #333;
  transform: none;
  box-shadow: none;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.modal.active {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
  z-index: 0;
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--negro-card);
  border: 1px solid var(--gris-oscuro);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalSlideUp 0.45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-handle {
  width: 40px; height: 4px;
  background: #333; border-radius: 2px;
  margin: 12px auto 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e1e1e;
  border: 1px solid #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 30;
  color: white;
  font-size: 13px;
}

.modal-close:hover {
  background: var(--negro-hover);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-body {
  padding: 0 0 20px;
}

/* ── MODAL COMPARTIR ── */
.share-modal-wrap {
  padding: 8px 0 20px;
}

.share-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  /* padding-right grande para no chocar con el X */
  padding: 14px 60px 16px 20px;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}

.share-option:active { transform: scale(0.93); }

.share-option-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.share-option-label {
  font-size: 11px;
  color: var(--gris);
  text-align: center;
  font-weight: 500;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 11px 14px;
  margin: 0 20px;
}

.share-link-icon {
  color: var(--gris-oscuro);
  font-size: 13px;
  flex-shrink: 0;
}

.share-link-text {
  flex: 1;
  font-size: 12px;
  color: var(--gris-oscuro);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-copy-btn {
  border: none;
  background: #ffe600;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.share-copy-btn:active { background: #ffd000; transform: scale(0.97); }

.modal-body h2 {
  color: white;
  margin-bottom: 1rem;
}

.modal-body p {
  color: var(--gris);
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 769px) {
  .profile-container {
    padding: 100px 2rem 3rem;
  }
  
  .profile-header {
    padding: 24px 24px 20px;
  }
  
  .profile-logo {
    width: 100px;
    height: 100px;
  }
  
  .profile-name {
    font-size: 1.4rem;
  }
  
  .action-buttons {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 600px;
  }
  
  .hero-photo {
    height: auto;
  }
  
  .grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
  }

  .grid-card {
    height: 150px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  .profile-container {
    padding: 0 1rem 2rem;
  }
  
  .profile-logo {
    width: 120px;
    height: 120px;
  }
  
  .profile-name {
    font-size: 1.1rem;
  }
  
  .action-buttons {
    gap: 0.8rem;
  }
  
  .action-btn {
    padding: 0.9rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .action-btn i {
    font-size: 1.3rem;
  }
  
  .hero-photo {
    height: auto;
  }
  
  .grid-cards {
    gap: 0.8rem;
  }
  
  .grid-card {
    height: 130px;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    height: auto;
  }
  
  .grid-card {
    height: 150px;
  }
  
  .extra-card {
    padding: 1rem 1.2rem;
    gap: 1rem;
  }
  
  .extra-card-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ========================================
   IMÁGENES DE FONDO PARA GRID CARDS
   ======================================== */

/* (colores de cards ahora via .grid-card-icon-circle arriba) */
/* ========================================
   SECCIÓN PRÓXIMAMENTE
   ======================================== */
.proximamente-section {
  margin-bottom: 1.5rem;
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #242424;
  overflow: hidden;
}

.proximamente-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #242424;
}

.proximamente-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #242424;
}

.proximamente-header i { color: #aaa; font-size: 0.9rem; }
.proximamente-header span { font-size: 0.95rem; font-weight: 700; color: white; }

.proximamente-list {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 12px;
  gap: 6px;
}

.proximamente-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #222;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

.proximamente-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #444;
  flex-shrink: 0;
}

.proximamente-text { flex: 1; }

.proximamente-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
}

.proximamente-sub {
  font-size: 0.72rem;
  color: #3a3a3a;
  margin-top: 2px;
}

.proximamente-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #444;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
/* ========================================
   DESCRIPCIÓN DEL NEGOCIO
   ======================================== */
/* Divider antes de descripcion */
.profile-divider-desc {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 10px 0 0;
}

/* Descripcion inline dentro del perfil */
.perfil-desc-texto {
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.65;
  margin: 10px 0 0;
  font-style: normal;
}

.perfil-desc-texto.truncada {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.perfil-desc-ver-mas {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

/* ========================================
   BOTÓN EDITAR MI NEGOCIO (propietario)
   ======================================== */
.btn-editar-mi-negocio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #bbb;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-editar-mi-negocio:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-editar-mi-negocio i {
  font-size: 0.7rem;
}

/* ========================================
   MODAL CÓMO LLEGAR
   ======================================== */
.como-llegar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 20px 14px;
  border-bottom: 1px solid #242424;
}

.como-llegar-header i { color: #e74c3c; font-size: 1.1rem; }
.como-llegar-header h2 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0; }

.como-llegar-pasos { display: flex; flex-direction: column; gap: 14px; padding: 0 20px; }

.como-llegar-paso { display: flex; align-items: flex-start; gap: 12px; }

.como-llegar-paso-num {
  width: 28px; height: 28px;
  background: #e74c3c;
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  flex-shrink: 0;
}

.como-llegar-paso.sin-video .como-llegar-paso-num { background: #242424; color: #666; }

.como-llegar-paso-titulo { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.como-llegar-paso-desc { font-size: 0.78rem; color: #666; line-height: 1.4; }

.como-llegar-btn-maps {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  margin-left: 40px;
  position: relative;
  z-index: 5;
}

.como-llegar-btn-maps:hover { background: #222; border-color: rgba(255,211,0,0.3); }
.como-llegar-btn-maps i:first-child { color: #fff; font-size: 1rem; }
.como-llegar-ext { margin-left: auto; font-size: 0.7rem; color: #444; }

.como-llegar-divider { height: 1px; background: #1a1a1a; margin: 4px 0; }

.como-llegar-video {
  margin-left: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.como-llegar-video iframe {
  width: 100%;
  height: 400px;
  display: block;
}

.como-llegar-tiktok {
  margin-left: 40px;
  display: flex; align-items: center; gap: 10px;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff; text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
}

.como-llegar-tiktok i:first-child { font-size: 1rem; }
.como-llegar-tiktok i:last-child { margin-left: auto; font-size: 0.7rem; color: #444; }
/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 1024px) {

  /* Contenedor centrado con ancho de "columna móvil" */
  .profile-container {
    max-width: 680px;
    padding: 0 0 3rem;
  }

  /* Portada centrada y limitada igual que el contenido */
  .cover-photo {
    max-width: 680px;
    margin: 52px auto 0;
    height: 260px;
    border-radius: 16px;
  }

  /* Logo sobresaliendo sobre la portada */
  .profile-logo-wrap {
    margin-top: -56px;
  }

  .profile-logo {
    width: 110px;
    height: 110px;
  }

  /* Header flotante centrado */
  .header-floating {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
  }

  /* Botones de acción en fila de 3 */
  .action-buttons {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  /* Info section más compacta */
  .info-section {
    border-radius: 16px;
  }

  /* Galería 3 columnas */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ========================================
   MODAL — ESTRUCTURA INTERNA
   ======================================== */

.modal-section-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #242424;
}
.modal-section-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #222; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gris); flex-shrink: 0;
}
.modal-section-info h3 { font-size: 15px; font-weight: 800; }
.modal-section-info p  { font-size: 12px; color: var(--gris); margin-top: 1px; }

/* ── MENÚ ── */
.menu-link-row {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 20px; padding: 14px 16px;
  background: #1e1e1e; border: 1px solid #2a2a2a;
  border-radius: 14px; cursor: pointer;
  transition: border-color .2s; text-decoration: none; color: inherit;
}
.menu-link-row:hover { border-color: #444; }
.menu-link-icon { width: 40px; height: 40px; border-radius: 10px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.menu-link-text h4 { font-size: 14px; font-weight: 700; }
.menu-link-text p  { font-size: 11px; color: var(--gris); margin-top: 2px; }
.menu-link-arrow { margin-left: auto; color: var(--gris-oscuro); }
.menu-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 20px 14px;
  font-size: 11px; color: var(--gris-oscuro);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.menu-divider::before, .menu-divider::after { content: ''; flex: 1; height: 1px; background: #242424; }

/* ── ESPECIALIDADES COMPACTO ── */
.espec-compact {
  display: flex;
  gap: 12px;
  margin: 0 16px 8px;
  padding: 12px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.espec-compact:active { background: #252525; }
.espec-compact-img {
  width: 70px;
  min-height: 70px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: #222;
}
.espec-compact-icon {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #1a1a2e;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.espec-compact-info { flex: 1; min-width: 0; }
.espec-compact-name { font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
.espec-compact-desc { font-size: 0.65rem; color: #ccc; margin-top: 2px; line-height: 1.4; }
.espec-compact-precio { font-size: 0.75rem; font-weight: 800; margin-top: 4px; }
.espec-compact-tag { display: inline-block; margin-top: 4px; background: #2a2a2a; color: var(--gris); font-size: 0.55rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.espec-compact-tag.popular { background: rgba(255,255,255,0.08); color: #ddd; }
.espec-compact-arrow { font-size: 0.55rem; color: #444; flex-shrink: 0; }

/* ── MENÚ IMAGEN ── */
.menu-img-wrapper { padding: 12px 16px; }
.menu-img { width: 100%; border-radius: 12px; display: block; cursor: zoom-in; }
.menu-img-hint { font-size: 10px; color: #444; text-align: center; margin-top: 6px; }

/* ── PROMOCIONES COMPACTAS ── */
.promo-compact {
  display: flex;
  gap: 12px;
  margin: 0 16px 8px;
  padding: 12px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  align-items: flex-start;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.promo-compact:active { background: #252525; }

.promo-compact-img {
  width: 90px;
  min-height: 90px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: #222;
  cursor: pointer;
}
.promo-compact-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a2a2a, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.promo-compact-info { flex: 1; min-width: 0; }
.promo-compact-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.promo-compact-title { font-size: 0.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 2px; }
.promo-compact-desc {
  font-size: 0.7rem;
  color: #ccc;
  line-height: 1.5;
  margin-top: 4px;
}
.promo-compact-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.promo-compact-precios { display: flex; align-items: center; gap: 6px; }
.promo-compact-old { text-decoration: line-through; color: #666; font-size: 0.6rem; }
.promo-compact-new { color: #fff; font-weight: 800; font-size: 0.8rem; }
.promo-compact-vigencia { font-size: 0.55rem; color: var(--gris-oscuro); margin-top: 4px; }

/* ── DOMICILIO / ZONA ── */
.zona-stats-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 14px 16px; }
.zona-stat { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; padding: 14px 10px; text-align: center; }
.zona-stat-val   { font-size: 15px; font-weight: 900; color: white; }
.zona-stat-val.zona-stat-precio { color: #ffe600; }
.zona-stat-label { font-size: 10px; color: var(--gris); margin-top: 2px; }
.domicilio-condiciones { margin: 0 16px 16px; background: #1a1a1a; border-radius: 12px; padding: 14px; }
.domicilio-condiciones-label { font-size: 10px; color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.domicilio-condiciones-text { font-size: 13px; line-height: 1.6; margin: 0; }
.zona-list { padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.zona-row { display: flex; align-items: center; gap: 12px; background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 14px; }
.zona-row.inactiva { opacity: 0.45; }
.zona-row-icon { width: 34px; height: 34px; border-radius: 8px; background: #2a2a2a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--gris); }
.zona-row.activa .zona-row-icon { color: white; }
.zona-row-info { flex: 1; }
.zona-row-info h4 { font-size: 13px; font-weight: 700; }
.zona-row-info p  { font-size: 11px; color: var(--gris); margin-top: 1px; }
.zona-tiempo { font-size: 11px; font-weight: 700; background: #2a2a2a; color: var(--gris); padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.zona-row.activa .zona-tiempo { color: white; background: #333; }
.zona-cta { margin: 4px 20px 8px; display: flex; align-items: center; gap: 12px; background: #1a1a1a; border: 1px solid #242424; border-radius: 12px; padding: 13px 14px; cursor: pointer; text-decoration: none; color: inherit; }
.zona-cta-icon { width: 34px; height: 34px; border-radius: 8px; background: #1e2e1e; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #25D366; flex-shrink: 0; }
.zona-cta h4 { font-size: 13px; font-weight: 700; }
.zona-cta p  { font-size: 11px; color: var(--gris); margin-top: 1px; }
.zona-cta .arr { margin-left: auto; color: var(--gris-oscuro); font-size: 13px; }

/* ── TRAYECTORIA ── */
.tray-perfil { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #242424; }
.tray-foto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #2a2a2a; flex-shrink: 0; }
.tray-foto-placeholder { width: 64px; height: 64px; border-radius: 50%; background: #2a2a2a; border: 2px solid #333; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.tray-nombre { font-size: 16px; font-weight: 800; }
.tray-titulo { font-size: 12px; color: var(--gris); margin-top: 2px; }
.tray-cedula { display: flex; align-items: center; gap: 10px; margin: 12px 20px; background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 14px; }
.tray-cedula i { color: #ffe600; font-size: 18px; flex-shrink: 0; }
.tray-cedula-label { font-size: 11px; color: var(--gris-oscuro); text-transform: uppercase; letter-spacing: 1px; }
.tray-cedula-num   { font-size: 14px; font-weight: 800; margin-top: 2px; }
.tray-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 20px 14px; }
.tray-stat { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 10px; padding: 10px 8px; text-align: center; }
.tray-stat-val   { font-size: 14px; font-weight: 900; }
.tray-stat-label { font-size: 10px; color: var(--gris); margin-top: 2px; line-height: 1.3; }
.tray-bio { font-size: 13px; color: var(--gris); line-height: 1.7; padding: 0 20px 14px; }

/* ── PEDIDOS ── */
.pedido-paso { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #1e1e1e; }
.pedido-paso-num { width: 28px; height: 28px; border-radius: 50%; background: #1e1e1e; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.pedido-paso h4 { font-size: 13px; font-weight: 700; }
.pedido-paso p  { font-size: 12px; color: var(--gris); margin-top: 2px; line-height: 1.5; }
.pedido-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 14px 20px; }
.pedido-stat { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 10px; padding: 10px 8px; text-align: center; }
.pedido-stat-val   { font-size: 14px; font-weight: 900; }
.pedido-stat-label { font-size: 10px; color: var(--gris); margin-top: 2px; }

/* ── REGLAMENTO ── */
.regla-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 20px; border-bottom: 1px solid #1e1e1e; }
.regla-row i    { margin-top: 2px; flex-shrink: 0; }
.regla-row span { font-size: 13px; color: var(--gris); line-height: 1.5; }
.regla-section-title { font-size: 11px; font-weight: 800; color: var(--gris-oscuro); text-transform: uppercase; letter-spacing: 1px; padding: 12px 20px 6px; }
.regla-requisitos { margin: 8px 20px 4px; background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 14px; }
.regla-requisitos-label { font-size: 11px; color: var(--gris-oscuro); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.regla-requisitos p { font-size: 13px; color: var(--gris); line-height: 1.6; }

/* ── PRECIOS ── */
.precio-row   { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #1e1e1e; }
.precio-label { font-size: 13px; color: var(--gris); }
.precio-val   { font-size: 14px; font-weight: 800; }
.precio-nota  { font-size: 11px; color: var(--gris-oscuro); text-align: center; padding: 10px 20px 4px; }

/* ── AGENDAR / PASOS ── */
.paso-row { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #1e1e1e; }
.paso-num { width: 28px; height: 28px; border-radius: 50%; background: #1e1e1e; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.paso-row h4 { font-size: 13px; font-weight: 700; }
.paso-row p  { font-size: 12px; color: var(--gris); margin-top: 2px; line-height: 1.5; }

/* ── SERVICIOS COMPACTO ── */
.serv-compact {
  display: flex;
  gap: 12px;
  margin: 0 16px 8px;
  padding: 12px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.serv-compact:active { background: #252525; }
.serv-compact-img {
  width: 70px;
  min-height: 70px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: #222;
}
.serv-compact-icon {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #1a1a2e;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #3b82f6;
  flex-shrink: 0;
}
.serv-compact-info { flex: 1; min-width: 0; }
.serv-compact-name { font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
.serv-compact-desc { font-size: 0.6rem; color: #888; margin-top: 2px; line-height: 1.4; }
.serv-compact-precio { font-size: 0.75rem; font-weight: 800; margin-top: 4px; }
.serv-compact-arrow { font-size: 0.55rem; color: #444; flex-shrink: 0; }

/* ── PORTAFOLIO TABS ── */
.port-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 20px 10px; border-bottom: 1px solid #242424; }
.port-tabs::-webkit-scrollbar { display: none; }
.port-tab { flex-shrink: 0; padding: 6px 14px; border-radius: 20px; border: 1px solid #2a2a2a; background: #1e1e1e; color: var(--gris); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .2s; }
.port-tab.active { background: white; color: black; border-color: white; font-weight: 700; }
.port-body { padding: 14px 20px; }
.port-desc { font-size: 13px; color: var(--gris); line-height: 1.65; background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.port-fotos-grid { display: grid; gap: 3px; }
.port-fotos-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.port-fotos-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.port-foto-item { overflow: hidden; border-radius: 6px; cursor: zoom-in; }
.port-foto-item.full { grid-column: 1/-1; aspect-ratio: 16/9; }
.port-foto-item:not(.full) { aspect-ratio: 1; }
.port-foto-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── BOTÓN WHATSAPP MODAL ── */
.modal-wa-btn { display: flex; align-items: center; gap: 10px; background: #1e2e1e; border: 1px solid rgba(37,211,102,0.2); border-radius: 12px; padding: 13px 16px; margin: 14px 20px 4px; text-decoration: none; color: white; transition: border-color .2s; }
.modal-wa-btn:hover { border-color: rgba(37,211,102,0.5); }
.modal-wa-btn i.wa-icon { font-size: 20px; color: #25D366; }
.modal-wa-btn span { font-size: 14px; font-weight: 700; }
.modal-wa-btn i.arr { margin-left: auto; color: #25D366; font-size: 13px; }

/* ── VACÍO ── */
.modal-empty { text-align: center; padding: 30px 20px; font-size: 13px; color: var(--gris-oscuro); }

/* (colores de cards nuevas ya definidos arriba via .grid-card-icon-circle) */
/* ========================================
   MODAL COMPARTIR — bottom sheet
   ======================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 201;
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
}
.modal-sheet.active { transform: translateY(0); }
.modal-handle { width: 36px; height: 4px; border-radius: 2px; background: #555; margin: 0 auto 16px; }

.share-options { display: flex; justify-content: center; gap: 20px; }
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  color: #a0a0a0; font-family: inherit; font-size: 11px;
  transition: color 0.2s;
}
.share-option:hover { color: #f5f5f5; }
.share-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.share-icon.whatsapp { background: #25d366; }
.share-icon.facebook { background: #1877f2; }
.share-icon.telegram { background: #0088cc; }
.share-icon.copiar { background: #1e1e1e; color: #f5f5f5; border: 1px solid rgba(255,255,255,0.06); }

/* ========================================
   SECCIÓN APORTACIONES — LA COMUNIDAD OPINA
   ======================================== */
.comunidad-section {
  background: #121212;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
}
.comunidad-header {
  padding: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comunidad-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comunidad-titulo i { color: #FFE600; font-size: 14px; }
.comunidad-titulo span { font-size: 15px; font-weight: 800; letter-spacing: -0.005em; }
.comunidad-badge {
  font-size: 10px;
  color: #888;
  background: #1a1a1a;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   BARRA DE DISTRIBUCIÓN — Fase 1 (ver NOWDII-REPUTACION.md)
   Se retira en Fase 3 cuando aterriza el sello + bola.
   ──────────────────────────────────────────────────────── */
.comunidad-distrib {
  padding: 14px 16px 4px;
}
.distrib-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1a1a1a;
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
}
.distrib-seg {
  height: 100%;
  transition: width 0.4s ease;
}
.distrib-seg.distrib-s5 { background: #36d1c4; }
.distrib-seg.distrib-s4 { background: #ffd23d; }
.distrib-seg.distrib-s3 { background: #888;    }
.distrib-seg.distrib-s2 { background: #c77853; }

.distrib-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.distrib-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #bbb;
  padding: 3px 8px 3px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1;
  transition: opacity 0.2s ease;
}
.distrib-chip img.twemoji-sentiment {
  width: 14px;
  height: 14px;
  display: block;
}
.distrib-chip-pct { letter-spacing: -0.01em; }
.distrib-chip.muted { opacity: 0.35; }

/* Colorear el % del chip según su sentimiento (sutil, solo con color de texto) */
.distrib-chip.distrib-s5 .distrib-chip-pct { color: #36d1c4; }
.distrib-chip.distrib-s4 .distrib-chip-pct { color: #ffd23d; }
.distrib-chip.distrib-s3 .distrib-chip-pct { color: #aaa; }
.distrib-chip.distrib-s2 .distrib-chip-pct { color: #c77853; }

/* ── Bloque de tags ── */
.bloque-tags { padding: 16px; }
.bloque-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.bloque-label i { font-size: 12px; }
.bloque-reconoce .bloque-label { color: #FFE600; }
.bloque-sugiere .bloque-label { color: #60a5fa; }

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.comunidad-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 24px;
  background: #181818;
  border: 1px solid #252525;
}
.comunidad-tag .emoji { font-size: 15px; }
.comunidad-tag .name {
  font-size: 12px;
  font-weight: 600;
  color: #e0e0e0;
}
.comunidad-tag .num {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}
.bloque-reconoce .comunidad-tag.top {
  border-color: rgba(255,230,0,0.25);
  background: rgba(255,230,0,0.04);
}
.bloque-reconoce .num {
  color: #FFE600;
  background: rgba(255,230,0,0.1);
}
.bloque-sugiere .comunidad-tag.top {
  border-color: rgba(96,165,250,0.25);
  background: rgba(96,165,250,0.04);
}
.bloque-sugiere .num {
  color: #60a5fa;
  background: rgba(96,165,250,0.1);
}

/* ── Separador ── */
.comunidad-sep {
  height: 1px;
  background: #1e1e1e;
  margin: 0 16px;
}

/* ── Experiencias individuales (Opción A — editorial sobrio) ── */
.experiencias { padding: 12px 16px 0; }
.experiencias-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.opina-list { padding: 4px 0 0; }
.opina-card {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #1a1a1a;
}
.opina-card:last-child { border-bottom: none; }

.opina-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.opina-avatar-link { text-decoration: none; flex-shrink: 0; }
.opina-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.opina-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opina-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 1px;
}
.opina-nombre {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
}
.opina-nombre:active { color: #FFE600; }
.opina-tiempo {
  font-size: 10.5px;
  color: #777;
}

.opina-util {
  background: none;
  border: none;
  color: #888;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  align-self: flex-start;
}
.opina-util i { font-size: 11px; }
.opina-util.active { color: #FFE600; }
.opina-util:active { transform: scale(0.95); }

.opina-body {
  padding-left: 49px;
  margin-top: 5px;
}
.opina-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.opina-tag {
  padding: 2px 8px 2px 6px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.opina-tag.sug {
  background: rgba(255, 255, 255, 0.03);
  color: #b8b8b8;
  border-color: rgba(255, 255, 255, 0.06);
  font-style: italic;
}
.opina-texto {
  font-size: 12.5px;
  color: #ddd;
  line-height: 1.5;
}

/* ── Estado vacío A.1 ── */
.opina-empty {
  margin: 6px 14px 0;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  text-align: center;
}
.opina-empty-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}
.opina-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.opina-empty-sub {
  font-size: 11.5px;
  color: #888;
  line-height: 1.45;
}

/* ── CTAs (A.1 primaria, A.2/A.3 ghost) ── */
.opina-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 14px 14px 14px;
  padding: 13px 18px;
  background: #FFE600;
  color: #000;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.opina-cta:active { transform: scale(0.98); }
.opina-cta i { font-size: 12px; }

.opina-cta-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 12px 14px 4px;
  padding: 11px 18px;
  background: transparent;
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.opina-cta-ghost:active {
  transform: scale(0.98);
  border-color: rgba(255,255,255,0.2);
}
.opina-cta-ghost i { font-size: 11px; color: #FFE600; }

.opina-cta-hint {
  text-align: center;
  font-size: 10.5px;
  color: #666;
  margin: 6px 14px 14px;
  line-height: 1.4;
}

/* --- Menú 3 puntos en perfil del negocio --- */
.exp-menu-wrap { position: relative; margin-left: auto; align-self: flex-start; }
.exp-menu-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent; color: #555;
  font-size: 14px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.exp-menu-btn:active { background: rgba(255,255,255,0.06); }
.exp-menu-dropdown {
  display: none; position: absolute; right: 0; top: 32px;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; overflow: hidden; z-index: 50;
  min-width: 140px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.exp-menu-dropdown.active { display: block; }
.exp-menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 14px; border: none;
  background: none; color: #f0f0f0; font-size: 12px;
  font-family: 'Montserrat', sans-serif; cursor: pointer;
  transition: background 0.15s;
}
.exp-menu-item:active { background: rgba(255,255,255,0.06); }
.exp-menu-item.eliminar { color: #f87171; }
.exp-menu-item i { width: 14px; text-align: center; font-size: 11px; }

.exp-btn-editar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,230,0,0.2);
  border-radius: 14px;
  padding: 4px 10px;
  color: #FFE600;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.exp-btn-editar:active { transform: scale(0.95); }
.exp-btn-editar i { font-size: 10px; }

.exp-card-mia {
  border-left: 2px solid rgba(255,230,0,0.2);
  padding-left: 12px;
}

.exp-badge-tu {
  font-size: 9px;
  background: rgba(255,230,0,0.12);
  color: #FFE600;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.exp-btn-eliminar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,100,100,0.2);
  border-radius: 14px;
  padding: 4px 10px;
  color: rgba(255,100,100,0.6);
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.exp-btn-eliminar:active { transform: scale(0.95); color: #ff6464; }
.exp-btn-eliminar i { font-size: 10px; }

/* --- Aviso aportación devuelta --- */
.aviso-devuelta {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aviso-devuelta-icon {
  color: #fbbf24;
  font-size: 18px;
}
.aviso-devuelta-texto strong {
  font-size: 13px;
  color: #fbbf24;
  display: block;
  margin-bottom: 4px;
}
.aviso-devuelta-texto p {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.5;
}
.aviso-devuelta-btn {
  align-self: flex-start;
  padding: 8px 16px;
  background: #fbbf24;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: transform 0.15s;
}
.aviso-devuelta-btn:active { transform: scale(0.95); }

/* --- Aviso aportación pendiente de revisión --- */
.aviso-pendiente {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.aviso-pendiente-icon {
  color: #FFE600;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.aviso-pendiente-texto strong {
  font-size: 12.5px;
  color: #fff;
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
}
.aviso-pendiente-texto p {
  font-size: 11px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}
.aviso-pendiente-nota {
  font-size: 10px !important;
  color: #666 !important;
}
.aviso-pendiente-link {
  color: #999;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aviso-pendiente-link:hover { color: #ddd; }

.comunidad-ver-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  font-size: 12px;
  color: #FFE600;
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid #1e1e1e;
  text-decoration: none;
}

/* ── Bottom sheet formulario aportación ── */
.aportacion-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.aportacion-sheet-overlay.active { opacity: 1; pointer-events: all; }

.aportacion-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  background: #121212;
  border-radius: 20px 20px 0 0;
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.aportacion-sheet.active { transform: translateY(0); }
.aportacion-sheet .sheet-handle {
  width: 36px; height: 4px;
  background: #444; border-radius: 2px;
  margin: 10px auto 0;
}
.aportacion-sheet .sheet-header { padding: 16px 52px 8px 16px; position: relative; }
.aportacion-sheet .sheet-close-btn {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.aportacion-sheet .sheet-close-btn:hover,
.aportacion-sheet .sheet-close-btn:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.aportacion-sheet .sheet-handle { cursor: grab; touch-action: none; }
.aportacion-sheet .sheet-handle:active { cursor: grabbing; }
.aportacion-sheet .sheet-header h3 { font-size: 16px; font-weight: 700; }
.aportacion-sheet .sheet-header p { font-size: 12px; color: #888; margin-top: 4px; }
.aportacion-sheet .sheet-body { padding: 0 16px 32px; }

.form-label-ap {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.form-sublabel-ap {
  font-size: 11px;
  color: #666;
  margin-top: -4px;
  margin-bottom: 10px;
}
.form-sentiment {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.sentiment-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #181818;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.sentiment-option .sent-emoji { font-size: 24px; display: inline-flex; align-items: center; justify-content: center; height: 28px; }
.sentiment-option .sent-emoji img.twemoji-sentiment { width: 28px; height: 28px; display: block; }
.sentiment-option .sent-label { font-size: 10px; color: #888; font-weight: 500; }

/* Emoji de sentimiento en cada aportación (profile.html) */
.opina-sentimiento {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  margin-right: 2px;
}
.opina-sentimiento img.twemoji-sentiment {
  width: 24px;
  height: 24px;
  display: block;
}
.sentiment-option.selected {
  border-color: #FFE600;
  background: rgba(255,230,0,0.06);
}
.sentiment-option.selected .sent-label { color: #FFE600; }

.form-required { color: #FFE600; font-size: 11px; }

.form-hint-required {
  font-size: 11px;
  color: #FFE600;
  text-align: center;
  padding: 6px 0;
  margin-top: -12px;
  margin-bottom: 8px;
  animation: hintPulse 0.4s ease;
}
.form-hint-required i { margin-right: 4px; font-size: 10px; }

@keyframes hintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes shakeSentiment {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.form-sentiment.shake {
  animation: shakeSentiment 0.4s ease;
}

.form-tags-ap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.form-tag-ap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #2a2a2a;
  background: #181818;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.form-tag-ap.selected {
  border-color: #FFE600;
  background: rgba(255,230,0,0.06);
  color: #FFE600;
}
.form-tag-ap.constructivo.selected {
  border-color: #c77853;
  background: rgba(199,120,83,0.08);
  color: #c77853;
}

/* ============================================================
   BANNER V2 — franja amarilla maciza arriba del modal
   ============================================================ */
.aportacion-banner {
  background: linear-gradient(135deg, #FFE600 0%, #c4b000 100%);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 38px 0 14px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 24px -10px rgba(255,230,0,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.12);
}
.aportacion-banner::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}
.banner-icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.banner-icon-box i { font-size: 22px; color: #000; }
.banner-text { position: relative; z-index: 1; min-width: 0; }
.banner-title {
  font-size: 16px; font-weight: 800;
  color: #000; margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.banner-sub {
  font-size: 11.5px;
  color: rgba(0,0,0,0.72);
  margin: 2px 0 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   PROGRESS BAR — 1-2-3-4
   ============================================================ */
.aportacion-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 2px 16px;
}
.aportacion-progress .progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.aportacion-progress .progress-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #1a1a1a;
  border: 1.5px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #666;
  transition: all 0.3s;
}
.aportacion-progress .progress-step.done .progress-dot {
  background: #FFE600;
  border-color: #FFE600;
  color: #000;
}
.aportacion-progress .progress-step.active .progress-dot {
  border-color: #FFE600;
  color: #FFE600;
  box-shadow: 0 0 0 3px rgba(255,230,0,0.14);
}
.aportacion-progress .progress-step[data-step="4"].done .progress-dot {
  background: #c77853;
  border-color: #c77853;
}
.aportacion-progress .progress-step[data-step="4"].active .progress-dot {
  border-color: #c77853;
  color: #c77853;
  box-shadow: 0 0 0 3px rgba(199,120,83,0.15);
}
.aportacion-progress .progress-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.aportacion-progress .progress-step.done .progress-label,
.aportacion-progress .progress-step.active .progress-label {
  color: #e5e5e5;
}
.aportacion-progress .progress-line {
  flex: 0 0 auto;
  width: 14px; height: 1.5px;
  background: rgba(255,255,255,0.08);
  margin-top: -16px;
  align-self: center;
  transition: background 0.3s;
}
.aportacion-progress .progress-step.done + .progress-line {
  background: #FFE600;
}
.aportacion-progress .progress-step[data-step="3"].done + .progress-line {
  background: linear-gradient(90deg, #FFE600, #c77853);
}

/* ============================================================
   PASO CARDS — tarjetas numeradas 1-4
   ============================================================ */
.paso-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.paso-card.done {
  background: rgba(255,230,0,0.035);
  border-color: rgba(255,230,0,0.22);
}
.paso-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.paso-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #222;
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}
.paso-card.done .paso-badge {
  background: #FFE600;
  color: #000;
}
.paso-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e5e5e5;
}
.paso-title .paso-req { color: #FFE600; font-size: 10px; margin-left: 4px; }
.paso-title .paso-opt {
  color: #666;
  font-size: 9.5px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* Paso 4 - constructivo (coral) */
.paso-card-mejorar {
  background: rgba(199,120,83,0.05);
  border-color: rgba(199,120,83,0.18);
}
.paso-card-mejorar.done {
  background: rgba(199,120,83,0.08);
  border-color: rgba(199,120,83,0.35);
}
.paso-badge-mejorar {
  background: rgba(199,120,83,0.2);
  color: #c77853;
}
.paso-card-mejorar.done .paso-badge-mejorar {
  background: #c77853;
  color: #000;
}
.paso-title-mejorar { color: #c77853; }

/* Textarea focus amarillo */
.paso-card .form-textarea-ap:focus {
  border-color: #FFE600;
  box-shadow: 0 0 0 3px rgba(255,230,0,0.12);
  outline: none;
}

/* Aviso constructivo (coral) */
.constructiva-aviso {
  display: none;
  font-size: 11px;
  color: #c77853;
  background: rgba(199,120,83,0.1);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.constructiva-aviso.visible { display: block; }
.constructiva-aviso i { margin-right: 4px; }

.form-divider-ap {
  height: 1px;
  background: #1e1e1e;
  margin: 4px 0 16px;
}

.form-textarea-ap {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #181818;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 16px;
}
.form-textarea-ap::placeholder { color: #444; }
.form-textarea-ap:focus { outline: none; border-color: #FFE600; }

.form-submit-ap {
  width: 100%;
  padding: 14px;
  background: #FFE600;
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}
.form-submit-ap:active { transform: scale(0.98); }
.form-submit-ap:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Custom tag input --- */
.custom-tag-wrap {
  width: 100%;
  margin-top: 6px;
}
.custom-tag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.custom-tag-toggle:hover {
  border-color: #FFE600;
  color: #FFE600;
}
.custom-tag-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.custom-tag-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.custom-tag-input:focus {
  border-color: #FFE600;
}
.custom-tag-input::placeholder {
  color: rgba(255,255,255,0.25);
}
.custom-tag-add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #FFE600;
  color: #000;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.custom-tag-add:active {
  transform: scale(0.9);
}
.custom-tag-hint {
  font-size: 11px;
  color: #FFE600;
  margin-top: 4px;
  padding-left: 4px;
}
.custom-tag-hint.hint-error {
  color: #ff6b6b;
}
.form-tag-ap.custom {
  border-style: dashed;
}

.form-note-ap {
  font-size: 10px;
  color: #555;
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
}
.form-note-ap .normas-link {
  color: #FFE600;
  text-decoration: none;
}
.form-note-ap .normas-link:active {
  text-decoration: underline;
}

/* --- Mensaje directo al negocio --- */
.msg-directo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.msg-directo-toggle:active { color: #FFE600; }
.msg-directo-wrap {
  margin-top: 8px;
}
.msg-directo-textarea {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.msg-directo-textarea:focus { border-color: rgba(255,255,255,0.25); }
.msg-directo-textarea::placeholder { color: rgba(255,255,255,0.2); }
.msg-directo-nota {
  font-size: 10px;
  color: #555;
  margin-top: 6px;
  line-height: 1.5;
}
.msg-directo-nota i { margin-right: 3px; }
.msg-directo-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.msg-directo-btn:active {
  border-color: #FFE600;
  color: #FFE600;
}

/* ══════════════════════════════════════════
   GALERÍA DE FOTOS — COMUNIDAD (7B)
   ══════════════════════════════════════════ */

/* ── Sección galería en perfil negocio ── */
.galeria-comunidad {
  background: #121212;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 16px;
}
.galeria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.galeria-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.galeria-titulo i {
  color: #FFE600;
  font-size: 14px;
}
.galeria-titulo span {
  font-size: 14px;
  font-weight: 700;
}
.galeria-badge {
  font-size: 11px;
  color: #888;
  background: #181818;
  padding: 2px 8px;
  border-radius: 10px;
}
.galeria-btn-subir {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #FFE600;
  color: #FFE600;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}
.galeria-btn-subir:active {
  background: rgba(255, 230, 0, 0.1);
  transform: scale(0.97);
}
.galeria-btn-subir i { font-size: 12px; }

/* ── Grid de fotos comunidad ── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 2px 2px;
}
.galeria-foto {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #181818;
}
.galeria-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.galeria-foto:active img { transform: scale(1.05); }
.galeria-foto-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 6px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.galeria-foto-info .mini-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.galeria-foto-info .mini-initial {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFE600;
  color: #000;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.galeria-foto-info span {
  font-size: 10px;
  color: #eee;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.galeria-foto.mas { position: relative; }
.galeria-mas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* ── Estado vacío galería ── */
.galeria-empty {
  padding: 30px 20px;
  text-align: center;
}
.galeria-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.galeria-empty-icon i {
  font-size: 20px;
  color: #FFE600;
  opacity: 0.5;
}
.galeria-empty-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.galeria-empty-sub {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

/* ── Celda "+" dentro del grid (Opción A sobria) ── */
.galeria-add-cell {
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1.5px dashed rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #aaa;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
  font-family: inherit;
}
.galeria-add-cell:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.galeria-add-cell:active { transform: scale(0.97); }
.galeria-add-cell i { font-size: 22px; }
.galeria-add-cell span {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── CTA sobrio de estado vacío (Opción C sobria) ── */
.galeria-cta-vacio {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
.galeria-cta-vacio:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.galeria-cta-vacio:active { transform: scale(0.99); }
.galeria-cta-vacio .cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.galeria-cta-vacio .cta-text { flex: 1; min-width: 0; }
.galeria-cta-vacio .cta-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.galeria-cta-vacio .cta-sub {
  font-size: 10.5px;
  color: #aaa;
  font-weight: 500;
  line-height: 1.4;
}
.galeria-cta-vacio .cta-arrow {
  color: #666;
  font-size: 11px;
  flex-shrink: 0;
}

/* ── Bottom sheet subir foto ── */
.foto-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.foto-sheet-overlay.active { opacity: 1; pointer-events: all; }
.foto-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #121212;
  border-radius: 20px 20px 0 0;
  z-index: 201;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.foto-sheet.active { transform: translateY(0); }
.foto-sheet .sheet-handle {
  width: 36px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin: 10px auto 6px;
}
.foto-sheet-header {
  padding: 8px 20px 16px;
  border-bottom: 1px solid #2a2a2a;
}
.foto-sheet-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.foto-sheet-header p {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.foto-sheet-body {
  padding: 20px;
}

/* ── Upload area ── */
.upload-area {
  border: 2px dashed #2a2a2a;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.upload-area:active {
  border-color: #FFE600;
  background: rgba(255, 230, 0, 0.03);
}
.upload-area-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.upload-area-icon i {
  font-size: 20px;
  color: #FFE600;
}
.upload-area-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.upload-area-sub {
  font-size: 11px;
  color: #888;
}
.upload-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.upload-opt-btn {
  background: #181818;
  border: 1px solid #2a2a2a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.upload-opt-btn i {
  color: #FFE600;
  font-size: 14px;
}
.upload-opt-btn:active {
  background: #222;
  border-color: #FFE600;
}

/* ── Upload preview ── */
.upload-preview {
  display: none;
  margin-top: 16px;
}
.upload-preview.active { display: block; }
.upload-preview-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  background: #181818;
}
.upload-preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.upload-preview-cambiar {
  flex: 1;
  padding: 10px;
  border: 1px solid #2a2a2a;
  background: none;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

/* ── Upload caption ── */
.upload-caption {
  margin-top: 16px;
}
.upload-caption label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.upload-caption label span { color: #888; font-weight: 400; }
.upload-caption input {
  width: 100%;
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
}
.upload-caption input:focus { border-color: #FFE600; }
.upload-caption input::placeholder { color: #444; }

/* ── Upload submit ── */
.upload-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #FFE600;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}
.upload-submit:active { transform: scale(0.98); }
.upload-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.upload-note {
  text-align: center;
  font-size: 10px;
  color: #888;
  margin-top: 10px;
}

/* ── Upload success ── */
.upload-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
}
.upload-success.active { display: block; }
.upload-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 230, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.upload-success-icon i {
  font-size: 24px;
  color: #FFE600;
}
.upload-success h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.upload-success p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* ── Selector negocio (subida desde perfil usuario) ── */
.upload-negocio-select {
  margin-bottom: 16px;
}
.upload-negocio-select label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.upload-negocio-select label .req { color: #FFE600; }
.upload-negocio-select select {
  width: 100%;
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.upload-negocio-select select:focus { border-color: #FFE600; }

/* ── Lightbox fotos ── */
.foto-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.foto-lightbox-overlay.active { display: flex; }
.foto-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 3001;
}
.foto-lightbox-img {
  max-width: 92vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}
.foto-lightbox-info {
  margin-top: 12px;
  text-align: center;
}
.foto-lightbox-caption {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 4px;
}
.foto-lightbox-meta {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.foto-lightbox-meta img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.foto-lightbox-meta .mini-initial {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFE600;
  color: #000;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.foto-lightbox-meta a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
/* ── Menú 3 puntos en lightbox ── */
.foto-lb-menu-wrap {
  position: absolute; top: 16px; left: 16px; z-index: 3001;
}
.foto-lb-menu-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.1); color: #fff;
  font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s; -webkit-tap-highlight-color: transparent;
}
.foto-lb-menu-btn:active { background: rgba(255,255,255,0.2); }
.foto-lb-menu-dropdown {
  display: none; position: absolute; left: 0; top: 40px;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; overflow: hidden; z-index: 50;
  min-width: 150px; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.foto-lb-menu-dropdown.active { display: block; }
.foto-lb-menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 11px 16px; border: none;
  background: none; color: #f0f0f0; font-size: 13px;
  font-family: 'Montserrat', sans-serif; cursor: pointer;
  transition: background 0.15s;
}
.foto-lb-menu-item:active { background: rgba(255,255,255,0.06); }
.foto-lb-menu-item.eliminar { color: #f87171; }
.foto-lb-menu-item i { width: 14px; text-align: center; font-size: 12px; }

/* ========================
   STORY VIEWER (fullscreen)
======================== */
.story-viewer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.story-viewer-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(0.3); transform: scale(1.2);
}
.story-viewer-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}
.story-viewer-user { display: flex; align-items: center; gap: 10px; }
.story-viewer-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255,255,255,0.3);
}
.story-viewer-name { font-size: 0.88rem; font-weight: 700; color: white; }
.story-viewer-time { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.story-viewer-negocio-tag { font-size: 0.68rem; color: #FFE600; font-weight: 600; margin-top: 1px; }
.story-viewer-negocio-tag i { font-size: 0.6rem; margin-right: 3px; }
.story-viewer-header-actions { display: flex; align-items: center; gap: 8px; }
.story-menu-wrap { position: relative; }
.story-menu-btn {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%; font-size: 0.9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.story-menu-dropdown {
  display: none; position: absolute; top: 42px; right: 0;
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px;
  min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); z-index: 10; overflow: hidden;
}
.story-menu-dropdown.active { display: block; }
.story-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; background: none; border: none; color: white;
  font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.story-menu-item:hover { background: #222; }
.story-menu-item.danger { color: #ff4444; }
.story-menu-item.danger:hover { background: rgba(255,60,60,0.1); }
.story-viewer-close {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.story-viewer-progress {
  position: absolute; top: 4px; left: 8px; right: 8px; z-index: 4;
  display: flex; gap: 4px;
}
.story-progress-bar {
  flex: 1; height: 3px; background: rgba(255,255,255,0.25);
  border-radius: 2px; overflow: hidden;
}
.story-progress-bar .fill {
  height: 100%; background: white; border-radius: 2px;
  width: 0%; transition: width 0.1s linear;
}
.story-progress-bar.done .fill { width: 100%; }
.story-progress-bar.active .fill { width: 0%; }
.story-viewer-img {
  position: relative; z-index: 2;
  max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain;
}
.story-viewer-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 40px 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-size: 0.9rem; color: white; text-align: center; line-height: 1.5;
}
.story-viewer-caption:empty { display: none; }
.story-viewer-nav { position: absolute; inset: 0; z-index: 5; display: flex; }
.story-nav-left, .story-nav-right { flex: 1; cursor: pointer; }

/* ── Historia sheet Instagram-style ── */
.historia-sheet-ig {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2001;
  background: #121212; border-radius: 20px 20px 0 0;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.historia-sheet-ig.active { transform: translateY(0); }
.hig-foto-area {
  position: relative; width: 100%; aspect-ratio: 9/12;
  background: #0a0a0a; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hig-foto-area img { width: 100%; height: 100%; object-fit: cover; display: none; }
.hig-foto-area.has-photo img { display: block; }
.hig-foto-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: #444;
}
.hig-foto-placeholder i { font-size: 3rem; color: #333; }
.hig-foto-placeholder span { font-size: 0.78rem; color: #555; }
.hig-foto-actions {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 10px;
}
.hig-foto-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  color: white; padding: 10px 16px; border-radius: 50px;
  font-family: 'Montserrat', sans-serif; font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.hig-foto-btn:active { transform: scale(0.96); }
.hig-foto-btn.primary {
  background: rgba(255,230,0,0.15);
  border-color: rgba(255,230,0,0.3); color: #FFE600;
}
.hig-cambiar-btn {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: white; padding: 7px 14px; border-radius: 50px;
  font-family: 'Montserrat', sans-serif; font-size: 0.7rem;
  font-weight: 600; cursor: pointer;
}
.hig-bottom { padding: 16px 18px 22px; }
.hig-caption-input {
  width: 100%; background: none; border: none;
  border-bottom: 1px solid #2a2a2a; color: white;
  font-family: 'Montserrat', sans-serif; font-size: 0.82rem;
  padding: 10px 0; outline: none; margin-bottom: 14px;
}
.hig-caption-input::placeholder { color: #444; }
.hig-caption-input:focus { border-color: #FFE600; }
.hig-publish {
  width: 100%; background: #FFE600; color: #0a0a0a; border: none;
  border-radius: 14px; padding: 14px;
  font-family: 'Montserrat', sans-serif; font-size: 0.88rem;
  font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s;
}
.hig-publish:hover { opacity: 0.9; }
.hig-publish:disabled { opacity: 0.3; cursor: not-allowed; }
.hig-note { text-align: center; font-size: 0.65rem; color: #555; margin-top: 10px; }

/* ============================================
   UBICACIÓN — mini-mapa de Nowdii / sin local
   ============================================ */
.ubicacion-section { padding: 0 16px; margin: 18px 0 8px; }

.ubic-card {
  background: linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
  border: 1px solid #262626;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.ubic-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.ubic-card-header .ubic-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.ubic-card-header .ubic-title i { color: #FFE600; font-size: 0.85rem; }
.ubic-badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,230,0,0.12);
  border: 1px solid rgba(255,230,0,0.35);
  color: #FFE600;
  padding: 4px 9px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.ubic-badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #FFE600; box-shadow: 0 0 0 0 rgba(255,230,0,0.7);
  animation: ubicLivePulse 1.8s ease-out infinite;
}
@keyframes ubicLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,230,0,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,230,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,230,0,0); }
}

.ubic-mini-map {
  position: relative;
  height: 150px;
  margin: 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
}
.ubic-mini-map .leaflet-container { background: #0a0a0a; }
.ubic-mini-map::after {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}
.ubic-mini-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 500; pointer-events: none;
}
.ubic-mini-pin-inner {
  width: 28px; height: 28px;
  background: #FFE600;
  border: 3px solid #0a0a0a;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  position: relative;
}
.ubic-mini-pin-inner::before {
  content: ''; position: absolute;
  inset: -8px;
  border-radius: 50% 50% 50% 0;
  border: 2px solid rgba(255,230,0,0.5);
  animation: ubicMiniPulse 2s ease-out infinite;
}
@keyframes ubicMiniPulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ubic-direccion {
  padding: 12px 16px 4px;
  font-size: 0.75rem; color: #999;
  display: flex; align-items: flex-start; gap: 8px;
}
.ubic-direccion i { color: #FFE600; margin-top: 2px; }

.ubic-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 28px);
  margin: 12px 14px 6px;
  background: #FFE600; color: #0a0a0a;
  border: none; border-radius: 14px;
  padding: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.ubic-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,230,0,0.25); }
.ubic-hint {
  text-align: center; font-size: 0.65rem; color: #555;
  padding: 0 16px 14px;
}

/* Variante "sin local físico" */
.nolocal-card {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  border: 1px solid #262626;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.nolocal-hero {
  position: relative;
  padding: 22px 16px 18px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,230,0,0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37,211,102,0.08), transparent 50%);
  text-align: center;
}
.nolocal-icons {
  display: flex; justify-content: center; gap: 18px;
  font-size: 1.8rem; margin-bottom: 10px;
}
.nolocal-badge-float {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ddd;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nolocal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem; font-weight: 700; color: #fff;
  margin: 12px 0 4px;
}
.nolocal-sub {
  font-size: 0.72rem; color: #888; padding: 0 16px;
}
.nolocal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 28px);
  margin: 14px 14px;
  background: #25D366; color: #fff;
  border: none; border-radius: 14px;
  padding: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.nolocal-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,211,102,0.3); }

/* ============================================
   MODAL DE UBICACIÓN (reemplaza "Cómo llegar")
   Se renderiza dentro de #modal-info-body
   ============================================ */
.ubic-modal-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e1e1e;
}
.ubic-modal-header i {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #141414;
  border: 1px solid #262626;
  color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.ubic-modal-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem; font-weight: 800; color: #fff;
  margin: 0;
}

/* Mapa hero dentro del modal */
.ubic-hero-map {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
  margin-bottom: 14px;
}
.ubic-hero-map .leaflet-container { background: #0a0a0a; }
.ubic-hero-map::after {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}
.ubic-hero-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 500; pointer-events: none;
}
.ubic-hero-pin-inner {
  width: 38px; height: 38px;
  background: #141414;
  border: 3px solid #0a0a0a;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.ubic-hero-pin-inner i {
  color: #ef4444; font-size: 15px;
  transform: rotate(45deg);
}
.ubic-hero-pin-inner::before {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50% 50% 50% 0;
  border: 2px solid rgba(239,68,68,0.5);
  animation: ubicHeroPulse 2s ease-out infinite;
}
@keyframes ubicHeroPulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.ubic-hero-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,230,0,0.35);
  color: #FFE600;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  z-index: 600;
}
.ubic-hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #FFE600;
  animation: ubicModalLivePulse 1.8s ease-out infinite;
}
@keyframes ubicModalLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,230,0,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,230,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,230,0,0); }
}

/* Botón primario "Ver en el mapa de Nowdii" → amarillo */
.ubic-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: #FFE600; color: #0a0a0a;
  border: none; border-radius: 14px;
  padding: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  margin-bottom: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.ubic-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,230,0,0.3);
}
.ubic-btn-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.68rem; color: #666;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 8px;
}
.ubic-btn-hint i { color: #FFE600; font-size: 0.72rem; }

/* Info cards stack */
.ubic-info-stack { margin-bottom: 6px; }
.ubic-info-card {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 9px;
  display: flex; align-items: flex-start; gap: 12px;
}
.ubic-info-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: #0f0f0f;
  border: 1px solid #242424;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 0.88rem;
}
/* Variantes de color — solo el ícono se tiñe, fondo queda neutro */
.ubic-info-icon--red    { color: #ef4444; }
.ubic-info-icon--blue   { color: #3b82f6; }
.ubic-info-icon--purple { color: #a855f7; }
.ubic-info-icon--green  { color: #22c55e; }
.ubic-info-text { flex: 1; min-width: 0; }
.ubic-info-label {
  font-size: 0.62rem; font-weight: 700;
  color: #666; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.ubic-info-value {
  font-size: 0.8rem; color: #fff; line-height: 1.45;
  word-break: break-word;
}

/* Section title dentro del modal */
.ubic-section-title {
  font-size: 0.74rem; font-weight: 800;
  color: #fff;
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 22px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.ubic-section-title i { color: #888; font-size: 0.82rem; }

/* Override del video legacy cuando se usa dentro del modal nuevo */
#modal-info-body .como-llegar-video {
  margin: 4px 0 0;
  border-radius: 14px;
  border: 1px solid #1f1f1f;
}
#modal-info-body .como-llegar-video iframe {
  width: 100%;
  height: 240px;
  display: block;
}
/* Variante vertical (YouTube Shorts / 9:16) */
#modal-info-body .como-llegar-video--vertical {
  max-width: 260px;
  margin: 4px auto 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
#modal-info-body .como-llegar-video--vertical iframe {
  width: 100%;
  height: 100%;
}
#modal-info-body .como-llegar-tiktok {
  margin-left: 0;
}

/* Ajustes a .nolocal-card cuando vive dentro del modal */
.ubic-modal-header + .nolocal-card { margin-bottom: 14px; }
.nolocal-sub-hero {
  font-size: 0.72rem; color: #888;
  margin-top: 6px;
}

/* ========================================
   CERCA DE AQUÍ — carrusel horizontal
   ======================================== */
#cerca-de-aqui-section {
  margin: 32px 0 32px;
  padding: 26px 16px 0;
  position: relative;
  border-top: none;
}
/* Divisor sutil estilo iOS: línea que se desvanece a los lados,
   sin color amarillo para no saturar */
#cerca-de-aqui-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.09) 50%,
    transparent 100%);
}
.cerca-header {
  margin-bottom: 12px;
}
.cerca-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.005em;
}
.cerca-title i {
  color: #FFE600;
  font-size: 0.9rem;
}
.cerca-sub {
  font-size: 0.72rem;
  color: #888;
  margin-top: 2px;
  margin-left: 22px;
}
.cerca-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.cerca-scroll::-webkit-scrollbar { display: none; }

.cerca-card {
  flex: 0 0 128px;
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 14px 10px 12px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.cerca-card:hover,
.cerca-card:active {
  transform: translateY(-2px);
  border-color: #FFE600;
  background: #181818;
}
.cerca-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #0f0f0f;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFE600;
  font-size: 1.3rem;
}
.cerca-card-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #0f0f0f;
  border: 1px solid #222;
}
.cerca-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.9em;
}
.cerca-card-cat {
  font-size: 0.65rem;
  color: #888;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botón "Ver todos en el mapa" debajo del carrusel */
.cerca-ver-mapa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 16px;
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.cerca-ver-mapa i:first-child { color: #FFE600; font-size: 0.95rem; }
.cerca-ver-mapa i:last-child  { color: #888;    font-size: 0.75rem; }
.cerca-ver-mapa:hover,
.cerca-ver-mapa:active {
  border-color: #FFE600;
  background: #181818;
  transform: translateY(-1px);
}

/* ========================================
   HISTORIAS DEL NEGOCIO — Cards con preview
   ======================================== */
.historias-perfil-section {
  padding: 0 16px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.historias-perfil-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.historias-perfil-titulo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.3px;
}
.historias-perfil-titulo i {
  color: #aaa;
  font-size: 13px;
}
.historias-perfil-btn-crear {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.12);
  color: #bbb;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.historias-perfil-btn-crear:active {
  background: rgba(255,255,255,0.05);
  transform: scale(0.96);
}
.historias-perfil-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.historias-perfil-scroll::-webkit-scrollbar { display: none; }

/* Card individual */
.historia-card {
  flex-shrink: 0;
  width: 105px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #1a1a1a;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
}
.historia-card:active { transform: scale(0.96); }
.historia-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.historia-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.historia-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  object-fit: cover;
}
.historia-card-avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 10px;
  font-weight: 700;
}
.historia-card-name {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.historia-card-time {
  font-size: 8px;
  color: rgba(255,255,255,0.5);
}

/* Card de crear */
.historia-card-crear {
  flex-shrink: 0;
  width: 105px;
  height: 148px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.historia-card-crear:active {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: scale(0.96);
}
.historia-card-crear-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 16px;
}
.historia-card-crear-label {
  font-size: 10px;
  color: #666;
  font-weight: 600;
}

/* Estado vacío */
.historias-perfil-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 16px;
}
.historias-perfil-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  flex-shrink: 0;
}
.historias-perfil-empty-text {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}
.historias-perfil-empty-text strong {
  color: #999;
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}