/* ==========================================================================
   A-PROBAR | Estilos de Inicio (Home)
   Archivo: css/home.css
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-crest {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating Tabletop Visual Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.table-board-mockup {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

.table-board-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #10B981, #EF4444, #3B82F6);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.mockup-meeples-row {
  display: flex;
  justify-content: space-around;
  margin: 1.8rem 0;
}

.meeple-card-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.meeple-card-mini:hover {
  transform: translateY(-5px);
}

.meeple-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.meeple-svg {
  width: 32px;
  height: 32px;
}

.meeple-fabian { color: var(--meeple-fabian); }
.meeple-damian { color: var(--meeple-damian); }
.meeple-pablo { color: var(--meeple-pablo); }
.meeple-fernando { color: var(--meeple-fernando); }

.meeple-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stress-meter-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.stress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.stress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.stress-progress {
  height: 100%;
  width: 88%;
  background: linear-gradient(90deg, #10B981, #F59E0B, #EF4444);
  border-radius: 4px;
}

.stress-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
}

/* Stats / Ticker Banner */
.stats-banner {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
  backdrop-filter: var(--glass-blur);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Teaser Grid (Overview of services on home) */
.home-teasers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home-teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.home-teaser-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.15);
}

.teaser-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.teaser-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.teaser-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* CTA Box */
.home-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 3.5rem;
  text-align: center;
  margin-top: 4rem;
}

.home-cta-box h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.home-cta-box p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .home-teasers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}
