/* ==========================================================================
   HÉCTOR CASTILLO - EXECUTIVE LINKS HUB (hectorcastillo.pro/links)
   DARK EXECUTIVE GLASSMORPHISM & BRAND SYSTEM (V1.0)
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Executive Dark Palette */
  --bg-main: #060B18;
  --bg-surface: #0B132B;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.88);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-card-hover: rgba(56, 189, 248, 0.4);

  /* Primary Brand Accents */
  --accent-blue: #2563EB;
  --accent-cyan: #38BDF8;
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  --accent-whatsapp: #25D366;

  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 40px -12px rgba(37, 99, 235, 0.25), 0 0 20px -2px rgba(56, 189, 248, 0.2);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 2.5rem 1rem 4rem;
}

/* Dynamic Ambient Glow Background */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #2563EB 0%, rgba(37, 99, 235, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #0284C7 0%, rgba(2, 132, 199, 0) 70%);
  bottom: 10%;
  left: 10%;
}

.glow-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #6366F1 0%, rgba(99, 102, 241, 0) 70%);
  top: 45%;
  right: 5%;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

/* Main Hub Container */
.hub-wrapper {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ==========================================================================
   EXECUTIVE HEADER SECTION
   ========================================================================== */
.profile-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Avatar with Executive Gradient Ring */
.avatar-container {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 1.25rem;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #38BDF8, #F59E0B);
  opacity: 0.9;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  animation: pulseRing 4s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #060B18;
  z-index: 1;
  display: block;
}

.verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: #2563EB;
  border: 2px solid #060B18;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.profile-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.profile-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

/* Top Quick Action Buttons (Barra de Contacto Rápido) */
.quick-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.quick-btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.35);
}

.quick-btn-whatsapp:hover {
  background: #25D366;
  color: #060B18;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.quick-btn-email {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
}

.quick-btn-email:hover {
  background: #38BDF8;
  color: #060B18;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.quick-btn-vcard {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

.quick-btn-vcard:hover {
  background: #F59E0B;
  color: #060B18;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.quick-btn-share {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.quick-btn-share:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================================
   CATEGORY & SECTION HEADERS
   ========================================================================== */
.section-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0 0.5rem;
  margin-top: 0.5rem;
}

.section-label svg {
  color: var(--accent-cyan);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
  margin-left: 0.5rem;
}

/* ==========================================================================
   INTERACTIVE LINK CARDS (THE CORE COMPONENT)
   ========================================================================== */
.link-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: var(--transition);
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-3px) scale(1.008);
  box-shadow: var(--shadow-hover);
}

.link-card:active {
  transform: translateY(-1px) scale(0.995);
}

/* Brand-Specific Left Accent Strip on Hover */
.card-greengeeks:hover::before { background: #22C55E; }
.card-google:hover::before { background: #4285F4; }
.card-opus:hover::before { background: #7000FF; }
.card-heygen:hover::before { background: #8B5CF6; }
.card-gamma:hover::before { background: #F43F5E; }
.card-analiza:hover::before { background: #38BDF8; }
.card-stripe:hover::before { background: #6366F1; }
.card-stable:hover::before { background: #0EA5E9; }
.card-whatsapp:hover::before { background: #25D366; }
.card-vcard:hover::before { background: #F59E0B; }

/* Brand Icon Wrapper */
.brand-icon-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.brand-icon-box svg,
.brand-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: var(--transition);
}

.link-card:hover .brand-icon-box {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Card Content Area */
.card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-top-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-offer {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-ai {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-usa {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action Arrow on Right */
.card-action {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.link-card:hover .card-action {
  color: #FFFFFF;
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateX(3px) scale(1.05);
}

/* Standout Featured WhatsApp Card */
.link-card-featured-wa {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.25);
}

.link-card-featured-wa:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(15, 23, 42, 0.95));
  border-color: #25D366;
  box-shadow: 0 15px 40px -10px rgba(37, 211, 102, 0.4);
}

.link-card-featured-wa .brand-icon-box {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDot 2s infinite;
  margin-right: 0.25rem;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.hub-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.footer-btn-home:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Toast Notification (Copy to clipboard) */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.3);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 480px) {
  body {
    padding: 1.75rem 0.75rem 3rem;
  }
  
  .avatar-container {
    width: 96px;
    height: 96px;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-title {
    font-size: 0.85rem;
  }
  
  .quick-bar {
    gap: 0.5rem;
  }
  
  .quick-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }
  
  .link-card {
    padding: 0.9rem 1rem;
    gap: 0.85rem;
  }
  
  .brand-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  
  .brand-icon-box svg,
  .brand-icon-box img {
    width: 26px;
    height: 26px;
  }
  
  .card-title {
    font-size: 0.98rem;
  }
  
  .card-desc {
    font-size: 0.8rem;
  }
  
  .card-action {
    width: 32px;
    height: 32px;
  }
}