/* home.css — estilos específicos de la homepage (front-page.php) */
/* Se carga SOLO en la página de inicio vía functions.php */

/* ── HERO ─────────────────────────────────────────────── */
.hp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(22,163,74,.15) 0%, transparent 60%);
}
.hp-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.hp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,.15);
  color: #4ade80;
  border: 1px solid rgba(22,163,74,.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hp-hero-h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hp-hero-h1 em {
  color: #16a34a;
  font-style: normal;
}
.hp-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hp-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}
.hp-btn-primary:hover { background: #15803d; text-decoration: none; color: #fff; }
.hp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.2);
  text-decoration: none;
  transition: background .2s;
}
.hp-btn-secondary:hover { background: rgba(255,255,255,.18); text-decoration: none; color: #fff; }
.hp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hp-stat { text-align: center; }
.hp-stat-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.hp-stat-lbl { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }

/* ── SECTIONS ─────────────────────────────────────────── */
.hp-section { padding: 52px 24px; }
.hp-section-alt { background: #f8fafc; }
.hp-section-inner { max-width: 1100px; margin: 0 auto; }
.hp-section-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.hp-section-sub {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 36px;
}

/* ── PICK CARDS ───────────────────────────────────────── */
.hp-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.hp-pick-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s;
}
.hp-pick-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.hp-pick-featured {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,.15);
}
.hp-pick-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hp-rank {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 6px;
}
.hp-rank-1 { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.hp-pick-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hp-badge-gold    { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.hp-badge-green   { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.hp-badge-blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hp-badge-orange  { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.hp-badge-purple  { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }

/* Product images in pick cards */
.hp-pick-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 10px;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.hp-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Score circle re-uses .score-circle from main.css */
.hp-pick-name {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.hp-pick-tech { font-size: 12px; color: #64748b; margin-top: 2px; }
.hp-pick-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.hp-pick-features li {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.hp-pick-features li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.hp-pick-price {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}
.hp-pick-price span { font-size: 13px; font-weight: 400; color: #64748b; }
.hp-cta-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.hp-cta-review:hover { background: #15803d; text-decoration: none; color: #fff; }
.hp-cta-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.hp-cta-alt:hover { border-color: #16a34a; color: #16a34a; text-decoration: none; }

/* ── CTA BANNER ───────────────────────────────────────── */
.hp-cta-banner {
  background: linear-gradient(135deg, #15803d, #16a34a);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hp-cta-banner-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.hp-cta-banner-text p { color: rgba(255,255,255,.85); font-size: 14px; }
.hp-cta-banner-btn {
  background: #fff;
  color: #15803d;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .2s;
}
.hp-cta-banner-btn:hover { background: #f0fdf4; text-decoration: none; color: #15803d; }

/* ── GUIDE CARDS ──────────────────────────────────────── */
.hp-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.hp-guide-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.hp-guide-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); text-decoration: none; }
.hp-guide-icon { font-size: 28px; }
.hp-guide-title { font-size: 16px; font-weight: 700; color: #1e293b; }
.hp-guide-desc { font-size: 13px; color: #64748b; line-height: 1.5; flex: 1; }
.hp-guide-link { font-size: 13px; font-weight: 700; color: #16a34a; margin-top: auto; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hp-hero { padding: 44px 16px 40px; }
  .hp-hero-sub { font-size: 15px; }
  .hp-hero-stats { gap: 20px; }
  .hp-stat-num { font-size: 24px; }
  .hp-section { padding: 36px 16px; }
  .hp-section-title { font-size: 22px; }
  .hp-picks-grid { grid-template-columns: 1fr; }
  .hp-cta-banner { padding: 24px 20px; flex-direction: column; }
  .hp-cta-banner-btn { width: 100%; text-align: center; }
  .hp-guides-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hp-hero { padding: 36px 14px 32px; }
  .hp-hero-h1 { font-size: 24px; }
  .hp-hero-ctas { flex-direction: column; align-items: stretch; }
  .hp-btn-primary, .hp-btn-secondary { justify-content: center; }
  .hp-guides-grid { grid-template-columns: 1fr; }
  .hp-section-title { font-size: 20px; }
}
