/* ====================================
   GRUPSHUB - PROPUESTA 2: MODERNA CON ACENTOS
   Diseño vibrante con gradientes y efectos
   VERSIÓN MEJORADA - MÁS CONTRASTE Y PROFUNDIDAD
   ==================================== */

:root {
  --gh-primary: #3B82F6;
  --gh-primary-hover: #2563EB;
  --gh-accent: #10B981;
  --gh-accent-2: #8B5CF6;
  --gh-radius: 1.25rem;
  --gh-text-primary: #0F172A;
  --gh-text-secondary: #64748B;
  --gh-text-tertiary: #94A3B8;
}

body {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}

/* ===== TARJETAS - MÁS CONTRASTE ===== */

.gh-card {
  background: #fff;
  border-radius: var(--gh-radius);
  padding: 1px;
  /* NUEVO: Borde sólido siempre visible */
  border: 1.5px solid rgba(226, 232, 240, 1);
  /* NUEVO: Sombra visible en estado normal */
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.gh-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--gh-radius);
  padding: 1px;
  background: linear-gradient(135deg, #3B82F6, #10B981);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gh-card:hover::before {
  opacity: 1;
}

.gh-card-inner {
  background: #fff;
  border-radius: calc(var(--gh-radius) - 1px);
  height: 100%;
}

.gh-card:hover {
  transform: translateY(-4px);
  /* MEJORADO: Sombra más pronunciada en hover */
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ===== BOTONES - MÁS PESO VISUAL ===== */

.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.gh-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gh-btn:hover::before {
  opacity: 1;
}

.gh-btn:active {
  transform: translateY(1px);
}

.gh-btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  /* MEJORADO: Sombra más visible */
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
}

.gh-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.55);
  transform: translateY(-2px);
}

.gh-btn-outline {
  /* MEJORADO: Borde más grueso */
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #3B82F6, #10B981) border-box;
  color: rgb(30 41 59);
  /* NUEVO: Sombra sutil */
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.gh-btn-outline:hover {
  background: linear-gradient(rgb(248 250 252), rgb(248 250 252)) padding-box,
              linear-gradient(135deg, #3B82F6, #10B981) border-box;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.gh-btn-ghost {
  background: transparent;
  color: rgb(51 65 85);
}

.gh-btn-ghost:hover {
  background: rgb(241 245 249);
}

/* ===== INPUTS - MÁS DEFINIDOS ===== */

.gh-input {
  width: 100%;
  /* MEJORADO: Borde más oscuro */
  border: 2px solid rgb(203 213 225);
  border-radius: 0.875rem;
  padding: 0.8rem 1.125rem;
  background: #fff;
  outline: none;
  transition: all 0.25s ease;
  font-size: 0.875rem;
  /* NUEVO: Sombra interna sutil */
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.gh-input:focus {
  border-color: var(--gh-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12),
              0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.gh-input::placeholder {
  color: var(--gh-text-tertiary);
}

/* ===== NAVEGACIÓN ===== */

.gh-nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgb(51 65 85);
  transition: all 0.2s ease;
}

.gh-nav-link:hover {
  background: rgb(241 245 249);
}

.gh-nav-link.is-active {
  background: rgb(15 23 42);
  color: #fff;
}

/* ===== CHIPS/TAGS - MÁS CONTRASTE ===== */

.gh-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  /* MEJORADO: Borde más oscuro */
  border: 1.5px solid rgb(203 213 225);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(51 65 85);
  transition: all 0.25s ease;
  cursor: pointer;
  /* NUEVO: Sombra sutil */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.gh-chip:hover {
  background: rgb(248 250 252);
  border-color: rgb(148 163 184);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.gh-chip.is-active {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* En chips activos, forzamos el contador (p.ej. "(3)") a verse blanco.
   En el dashboard el contador viene con clases tipo `text-slate-500` (gris) y se pierde sobre el fondo azul. */
.gh-dashboard .gh-chip.is-active span,
.gh-dashboard .gh-chip.is-active .text-slate-500 {
  color: #fff !important;
  opacity: 0.95;
}

/* ===== LOGO ===== */

.gh-logo {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gh-logo:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: scale(1.05);
}

.gh-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gh-logo:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
}

.gh-logo svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ===== FOOTER ===== */

.gh-footer-link {
  color: rgb(71 85 105);
  transition: all 0.15s ease;
}

.gh-footer-link:hover {
  text-decoration: underline;
}

/* ===== MODAL ===== */

.gh-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

.gh-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.gh-modal-panel {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
}

/* ===== UTILITIES ===== */

.hidden {
  display: none !important;
}

/* ===== COMPONENTES ESPECÍFICOS ===== */

/* Ícono de plataforma - MÁS DEFINIDO */
.gh-card .platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gh-primary);
  /* MEJORADO: Borde más visible */
  border: 1.5px solid rgb(191 219 254);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
  /* NUEVO: Sombra visible */
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.platform-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3B82F6, #10B981);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gh-card:hover .platform-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  border-color: rgb(147 197 253);
}

.gh-card:hover .platform-icon::after {
  opacity: 0.15;
}

/* Feature cards */
.feature-card {
  padding: 1.75rem;
  border-radius: var(--gh-radius);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Stats */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgb(100 116 139);
  font-weight: 600;
}

.stat-badge i {
  color: rgb(148 163 184);
}

.stat-badge strong {
  color: var(--gh-primary);
  font-weight: 700;
}

/* Divider */
.stat-divider {
  width: 1px;
  height: 14px;
  background: rgb(226 232 240);
}

/* Contenido de páginas estáticas con clase .prose */
.prose {
  color: #334155;
  line-height: 1.75;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #334155;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose ul li {
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #2563eb;
}

.prose strong,
.prose b {
  font-weight: 700;
  color: #1e293b;
}

.prose em,
.prose i {
  font-style: italic;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid #3b82f6;
  font-style: italic;
  color: #475569;
}

.prose code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875em;
  color: #dc2626;
}

.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.prose table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: collapse;
}

.prose th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  color: #0f172a;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.75rem 0;
}

.prose > p:first-child {
  font-size: 1.125rem;
  color: #475569;
}

/* ===== TÍTULO CON GRADIENTE ===== */

.gh-title-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #10B981 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* ===== BANDERAS EN SELECTOR DE IDIOMA ===== */

.gh-flag-btn {
  padding: 0.5rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gh-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.gh-flag-btn:hover .gh-flag {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== NOMBRES DE PLATAFORMA EN NEGRITA ===== */

.platform-name {
  font-weight: 700 !important;
  color: rgb(51, 65, 85) !important;
  font-size: 0.8125rem !important;
}

/* ===== CHIPS DE BANDERAS (PAÍS/MUNDO) ===== */

.gh-flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 20px;
  line-height: 1;

  /* Fuentes especiales para emojis */
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif !important;
  font-variant-ligatures: normal !important;
  font-feature-settings: 'liga' 1, 'clig' 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;

  /* Sin chip/fondo: banderas limpias */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.gh-emoji {
  line-height: 1;
  font-family: inherit !important;
  display: inline-block;
}

/* Responsive: En móvil hacer los chips más pequeños */
@media (max-width: 640px) {
  .gh-flag-chip {
    font-size: 16px;
    gap: 4px;
  }
}

/* ===== COLORES DE PLATAFORMAS - CHIPS ===== */

/* Telegram */
.gh-chip.telegram,
.platform-icon.telegram {
  background: linear-gradient(135deg, #229ED9 0%, #1E88C5 100%) !important;
  border-color: #1E88C5 !important;
  color: white !important;
}

/* WhatsApp */
.gh-chip.whatsapp,
.platform-icon.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1EBD59 100%) !important;
  border-color: #1EBD59 !important;
  color: white !important;
}

/* Discord */
.gh-chip.discord,
.platform-icon.discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
  border-color: #4752C4 !important;
  color: white !important;
}

/* Signal */
.gh-chip.signal,
.platform-icon.signal {
  background: linear-gradient(135deg, #3A76F0 0%, #2D5FC2 100%) !important;
  border-color: #2D5FC2 !important;
  color: white !important;
}

/* Viber */
.gh-chip.viber,
.platform-icon.viber {
  background: linear-gradient(135deg, #665CAC 0%, #544A8F 100%) !important;
  border-color: #544A8F !important;
  color: white !important;
}

/* LINE */
.gh-chip.line,
.platform-icon.line {
  background: linear-gradient(135deg, #00B900 0%, #009900 100%) !important;
  border-color: #009900 !important;
  color: white !important;
}

/* WeChat */
.gh-chip.wechat,
.platform-icon.wechat {
  background: linear-gradient(135deg, #09B83E 0%, #078C31 100%) !important;
  border-color: #078C31 !important;
  color: white !important;
}

/* OnlyFans */
.gh-chip.onlyfans,
.platform-icon.onlyfans {
  background: linear-gradient(135deg, #00A0DF 0%, #0085BB 100%) !important;
  border-color: #0085BB !important;
  color: white !important;
}

/* Fansly */
.gh-chip.fansly,
.platform-icon.fansly {
  background: linear-gradient(135deg, #00AEFF 0%, #0091D9 100!) !important;
  border-color: #0091D9 !important;
  color: white !important;
}

/* Twitter / X */
.gh-chip.twitter,
.gh-chip.x,
.platform-icon.twitter,
.platform-icon.x {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
  border-color: #1a1a1a !important;
  color: white !important;
}

/* ===== COLORES DE PLATAFORMAS - ICONOS ===== */

/* Ajustar el fondo de los iconos de plataforma para que usen el color de marca */
.platform-icon {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: var(--gh-primary);
  border: 1.5px solid rgb(191 219 254);
}

/* Telegram icon */
.platform-icon i.fa-telegram {
  color: #229ED9;
}

/* WhatsApp icon */
.platform-icon i.fa-whatsapp {
  color: #25D366;
}

/* Discord icon */
.platform-icon i.fa-discord {
  color: #5865F2;
}

/* Signal icon */
.platform-icon i.fa-signal,
.platform-icon i.fa-signal-messenger {
  color: #3A76F0;
}

/* Viber icon */
.platform-icon i.fa-viber {
  color: #665CAC;
}

/* LINE icon */
.platform-icon i.fa-line {
  color: #00B900;
}

/* WeChat icon */
.platform-icon i.fa-weixin,
.platform-icon i.fa-wechat {
  color: #09B83E;
}

/* Generic icons */
.platform-icon i.fa-link,
.platform-icon i.fa-globe {
  color: var(--gh-primary);
}

/* ===== COLORES DE PLATAFORMAS - ICONOS EN META (SINGLE) =====
   En single, el icono no está dentro de .platform-icon (caja cuadrada),
   por eso le aplicamos colores por slug de la plataforma.
*/
.gh-platform-meta-icon.gh-platform-telegram { color: #229ED9; }
.gh-platform-meta-icon.gh-platform-whatsapp { color: #25D366; }
.gh-platform-meta-icon.gh-platform-discord { color: #5865F2; }
.gh-platform-meta-icon.gh-platform-signal { color: #3A76F0; }
.gh-platform-meta-icon.gh-platform-viber { color: #665CAC; }
.gh-platform-meta-icon.gh-platform-line { color: #00B900; }
.gh-platform-meta-icon.gh-platform-wechat { color: #09B83E; }

.gh-platform-meta-icon.gh-platform-facebook { color: #1877F2; }
.gh-platform-meta-icon.gh-platform-instagram { color: #E4405F; }
.gh-platform-meta-icon.gh-platform-tiktok { color: #000000; }
.gh-platform-meta-icon.gh-platform-x-twitter { color: #000000; }
.gh-platform-meta-icon.gh-platform-threads { color: #000000; }
.gh-platform-meta-icon.gh-platform-linkedin { color: #0A66C2; }
.gh-platform-meta-icon.gh-platform-snapchat { color: #FFFC00; }
.gh-platform-meta-icon.gh-platform-reddit { color: #FF4500; }
.gh-platform-meta-icon.gh-platform-pinterest { color: #E60023; }
.gh-platform-meta-icon.gh-platform-youtube { color: #FF0000; }
.gh-platform-meta-icon.gh-platform-twitch { color: #9146FF; }
.gh-platform-meta-icon.gh-platform-quora { color: #B92B27; }

/* Variante compacta para mostrar banderas junto a la plataforma (cards + meta en single) */
.gh-flag-chip--meta{
  font-size: 16px;
  gap: 4px;
}



/* ===== +18 CTA Banner ===== */
.gh-cta18{
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.06);
  padding: 12px 14px;
}
.gh-cta18__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gh-cta18__title{
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}
.gh-cta18__desc{
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
}
.gh-cta18__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.92);
  color: #fff;
  font-weight: 800;
  text-decoration:none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.22);
}
.gh-cta18__btn:hover{
  filter: brightness(0.95);
  text-decoration:none;
}
