/* ==========================================================================
   LicitaciónYa — Hero Section Component
   World-Class B2B Split Layout with Executive Radar Terminal
   ========================================================================== */

.hero-section {
  padding: 3.75rem 0 4rem;
  background: 
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  max-width: 1320px;
  padding: 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.25rem;
  align-items: center;
}

/* ==========================================================================
   Left Column: Value Proposition & Messaging
   ========================================================================== */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--brand-navy);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.live-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.pulse-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.badge-label {
  color: var(--brand-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-separator {
  color: #94a3b8;
}

.badge-detail {
  color: var(--brand-navy-light);
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #0f1f3d;
  margin-bottom: 1.25rem;
}

.hero-promise-text {
  color: #1d4ed8;
  display: inline-block;
  position: relative;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.85rem;
  max-width: 540px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  width: 100%;
}

.btn-hero-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.85rem;
  background: var(--brand-whatsapp);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
  transition: all var(--transition-fast);
}

.btn-hero-wa:hover {
  background: var(--brand-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
  color: #ffffff;
}

.wa-btn-icon {
  flex-shrink: 0;
}

.btn-hero-calc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: #ffffff;
  color: #0f1f3d;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.btn-hero-calc:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Trust Strip (Single Clean Row of 3 Pills) */
.hero-trust {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.15rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.77rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.trust-icon {
  color: #16a34a;
  flex-shrink: 0;
}

/* Direct Human Contact Line */
.hero-advisor-note {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.advisor-link {
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color var(--transition-fast);
}

.advisor-link:hover {
  color: #15803d;
  text-decoration: underline;
}

/* ==========================================================================
   Right Column: Executive Live Radar Terminal & Floating WhatsApp Alert
   ========================================================================== */

.hero-radar-wrapper {
  position: relative;
  width: 100%;
}

.hero-radar-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 
    0 20px 45px -10px rgba(15, 39, 68, 0.12),
    0 1px 3px rgba(15, 39, 68, 0.05);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-radar-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 24px 50px -10px rgba(15, 39, 68, 0.16),
    0 1px 3px rgba(15, 39, 68, 0.05);
}

/* Executive Header (No macOS dots) */
.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #0f1f3d 0%, #1e293b 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-header-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.radar-header-icon {
  color: #38bdf8;
  display: flex;
  align-items: center;
}

.radar-window-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.radar-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Radar Filter Tabs: Modern Segmented Control */
.radar-tabs-wrapper {
  padding: 0.75rem 1rem 0.45rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.radar-tabs {
  display: flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.radar-tab {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all var(--transition-fast);
}

.radar-tab:hover {
  color: #0f1f3d;
}

.radar-tab.active {
  background: #ffffff;
  color: #0f1f3d;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Radar Quick Search Bar */
.radar-search-wrapper {
  padding: 0.45rem 1rem 0.55rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.radar-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.radar-search-icon {
  position: absolute;
  left: 0.65rem;
  color: #94a3b8;
  pointer-events: none;
}

.radar-search-input {
  width: 100%;
  padding: 0.4rem 2rem 0.4rem 2rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--brand-navy);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.radar-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.radar-search-clear {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.1rem 0.3rem;
  line-height: 1;
}

.radar-search-clear:hover {
  color: var(--brand-navy);
}

/* Radar Item List with Smooth Scrolling */
.radar-list {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.radar-list::-webkit-scrollbar {
  width: 6px;
}

.radar-list::-webkit-scrollbar-track {
  background: #f8fafc;
}

.radar-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.radar-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Radar Item */
.radar-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.radar-item:last-child {
  border-bottom: none;
}

.radar-item:hover {
  background: #f8fafc;
  border-left-color: var(--brand-blue);
}

.radar-item.expanded {
  background: #f0f7ff;
  border-left-color: var(--brand-blue);
}

.radar-item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.15rem;
  width: 100%;
}

.radar-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 65%;
}

.radar-entity {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-meta {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-navy-light);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cpc-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}

.time-pill {
  font-size: 0.64rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.link-pliego {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: transform var(--transition-fast);
}

.link-pliego:hover {
  transform: translateX(2px);
  text-decoration: underline;
}

.expand-hint {
  font-size: 0.68rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-left: 0.25rem;
}

.radar-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.radar-amount {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chevron-icon {
  color: #94a3b8;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.radar-item.expanded .chevron-icon {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.badge-phase {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.badge-open {
  background: var(--brand-green-soft);
  color: var(--brand-green-text);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-recent {
  background: var(--bg-surface-alt);
  color: #64748b;
  border: 1px solid var(--border-subtle);
}

/* Floating WhatsApp Alert Card Overlay */
.wa-floating-notification {
  position: absolute;
  bottom: -24px;
  left: -20px;
  z-index: 25;
  width: 90%;
  max-width: 375px;
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #22c55e;
  box-shadow: 
    0 20px 40px -10px rgba(15, 39, 68, 0.22),
    0 4px 12px rgba(22, 163, 74, 0.15);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.wa-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-sender-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wa-sender-avatar {
  width: 24px;
  height: 24px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.wa-sender-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f1f3d;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.wa-verified-badge {
  color: #2563eb;
  flex-shrink: 0;
}

.wa-notif-timestamp {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.wa-notif-balloon {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.74rem;
  color: #1e293b;
  line-height: 1.45;
}

.wa-notif-lead {
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.25rem;
}

.wa-notif-contract {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #334155;
}

.wa-notif-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wa-notif-action-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.wa-notif-action-btn:hover {
  background: rgba(22, 163, 74, 0.2);
}

.wa-notif-status {
  font-size: 0.68rem;
  font-weight: 600;
  color: #059669;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-open {
  background: var(--brand-green);
}

.dot-recent {
  background: #94a3b8;
}

/* Radar Expandable Drawer */
.radar-item-drawer {
  display: none;
  padding: 0.75rem 1.15rem 0.9rem;
  background: #f8fafc;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.78rem;
  color: #334155;
  animation: fadeInDrawer 0.2s ease-out;
}

.radar-item.expanded .radar-item-drawer {
  display: block;
}

@keyframes fadeInDrawer {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-obj {
  margin-bottom: 0.55rem;
  line-height: 1.45;
  color: #1e293b;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  background: #ffffff;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.drawer-stat {
  display: flex;
  flex-direction: column;
}

.drawer-lbl {
  font-size: 0.64rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.drawer-val {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.drawer-val.text-alert {
  color: #d97706;
}

.drawer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-drawer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  background: var(--brand-whatsapp);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-drawer-wa:hover {
  background: var(--brand-whatsapp-hover);
  color: #ffffff;
}

.btn-drawer-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.65rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-drawer-copy:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Radar Footer */
.radar-footer {
  padding: 0.75rem 1.15rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #64748b;
}

.radar-footer strong {
  color: var(--brand-green-text);
  font-weight: 700;
}

/* ==========================================================================
   Social Proof Strip (Directly Below Metrics)
   ========================================================================== */

.social-proof-strip {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 2.25rem 0 2.5rem;
}

.social-proof-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.social-proof-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.proof-sectors-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.proof-sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.proof-sector-icon {
  color: #1d4ed8;
  flex-shrink: 0;
}

.testimonial-card-featured {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1d4ed8;
  border-radius: 12px;
  padding: 1.35rem 1.75rem;
  box-shadow: 0 4px 16px -2px rgba(15, 39, 68, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e293b;
  font-style: italic;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f1f3d;
}

.author-title {
  font-size: 0.76rem;
  color: #64748b;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #ecfdf5;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 992px) {
  .hero-section {
    padding: 2.5rem 0 2.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-radar-card {
    max-width: 100%;
  }

  .wa-floating-notification {
    position: static;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 100%;
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-wa,
  .btn-hero-calc {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .trust-pill {
    width: 100%;
  }

  .proof-sectors-row {
    flex-direction: column;
    align-items: stretch;
  }

  .proof-sector-badge {
    justify-content: center;
  }
}
