/* ========================================================
   BolsaContratos.es — Diseño Futurista & Ultra-Rápido
   Inspirado en Motionsite.ai, Mobbin y GSAP
   ======================================================== */

:root {
  --bg-deep: #070B12;
  --bg-surface: #0E1626;
  --bg-card: rgba(18, 28, 48, 0.65);
  --bg-card-hover: rgba(28, 42, 68, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.35);
  
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.3);
  --primary-subtle: rgba(16, 185, 129, 0.12);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Luces de ambiente (Ambient Glow) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0) 70%);
}
.glow-2 {
  top: 900px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 18, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.brand-text strong {
  color: var(--primary);
}
.brand-tld {
  color: var(--text-dim);
  font-size: 15px;
}
.logo-radar-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-subtle);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulseBeacon 1.8s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: #FFFFFF;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 10px 20px;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 20px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 16px;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}
.btn-hero-sas {
  padding: 26px 52px;
  font-size: 26px;
  font-weight: 800;
  border-radius: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.55), 0 14px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hero-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.btn-hero-sas:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 75px rgba(16, 185, 129, 0.75), 0 18px 42px rgba(0, 0, 0, 0.6);
}
@media (max-width: 640px) {
  .btn-hero-sas {
    width: 100%;
    padding: 18px 20px;
    font-size: 20px;
    gap: 12px;
    justify-content: center;
  }
  .btn-hero-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
}
.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge-wrapper {
  display: inline-block;
  margin-bottom: 24px;
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.02em;
}
.pulse-beacon, .pulse-beacon-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseBeacon 1.5s infinite;
}
.pulse-beacon-sm {
  width: 6px;
  height: 6px;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #34D399 40%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Stats Row */
.hero-stats-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 36px;
  backdrop-filter: blur(12px);
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-separator {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Mockup Container (Mobbin / Motionsite style) */
.hero-mockup-container {
  max-width: 900px;
  margin: 0 auto;
}
.mockup-link-card {
  display: block;
  text-align: left;
}
.mockup-frame {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(16, 185, 129, 0.12);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.mockup-frame:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(16, 185, 129, 0.25);
}
.mockup-topbar {
  background: rgba(7, 11, 18, 0.85);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }

.mockup-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.mockup-live-tag {
  font-size: 11px;
  font-weight: 800;
  color: #10B981;
}

.mockup-body {
  padding: 30px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%), #0A0F1D;
}
.demo-contract-card {
  background: #0F172A;
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.demo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.demo-hospital-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.demo-hosp-name {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}
.demo-category-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}
.demo-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.demo-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.demo-nota-box {
  background: #1E293B;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  text-align: right;
  flex-shrink: 0;
}
.demo-nota-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.demo-nota-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #10B981;
}

.demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-vacante {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.tag-turno, .tag-jornada {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.demo-score-match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10B981;
  color: #10B981;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}

.mockup-action-overlay {
  margin-top: 24px;
  text-align: center;
}
.mockup-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* Bento Grid */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.bento-span-2 {
  grid-column: span 2;
}
.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bento-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Comunidades Grid */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.comm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}
.comm-active {
  border: 2px solid var(--primary);
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%), var(--bg-card);
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.15);
}
.comm-active:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.25);
}
.comm-disabled {
  opacity: 0.85;
}
.comm-disabled:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.comm-status-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.active-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.waiting-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.comm-flag {
  font-size: 32px;
  margin-bottom: 16px;
}
.comm-title {
  font-size: 24px;
  margin-bottom: 4px;
}
.comm-service {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.comm-disabled .comm-service {
  color: var(--text-dim);
}
.comm-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Tabla Comparativa */
.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-table th {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}
.col-traditional {
  color: var(--text-dim);
}
.col-brand {
  background: rgba(16, 185, 129, 0.06);
  color: #FFFFFF;
}

/* FAQ */
.faq-container {
  max-width: 800px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color var(--transition-fast);
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-chevron::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition-fast);
}
.faq-item[open] .faq-chevron::after {
  content: '−';
}
.faq-answer {
  padding-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Final CTA */
.final-cta-section {
  padding: 40px 0 100px;
}
.final-cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.05) 100%), var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
}
.final-cta-box h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}
.final-cta-box p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 17px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
  background: rgba(7, 11, 18, 0.95);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-desc {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 380px;
  margin-top: 8px;
}
.footer-right {
  text-align: right;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-nav a:hover {
  color: var(--primary);
}
.copyright {
  font-size: 12px;
  color: var(--text-dim);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}
.modal-icon {
  font-size: 38px;
  margin-bottom: 12px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.form-group {
  text-align: left;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary);
}
.modal-success {
  margin-top: 16px;
  padding: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

/* Responsividad */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .nav-links {
    display: none;
  }
  .footer-right {
    text-align: left;
  }
  .footer-nav {
    justify-content: flex-start;
  }
}
