/**
 * Estilos Específicos de Páginas
 * TU MEJOR INVERSIÓN ERES TÚ
 * Home, Diagnóstico, Resultado, Catálogo y Ficha de Producto
 */

/* --------------------------------------------------------------------------
   HOME: HERO SECTION
--------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--gradient-hero);
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  margin-bottom: 2.25rem;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   HOME: "¿QUÉ QUIERES MEJORAR?"
--------------------------------------------------------------------------- */
.section-pad {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.section-title {
  margin-bottom: 0.75rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md), 0 0 16px rgba(212, 175, 55, 0.08);
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.4rem;
  border: 1px solid var(--gold-border);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   HOME: BLOQUE DIAGNÓSTICO
--------------------------------------------------------------------------- */
.diagnostic-banner-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.diagnostic-cta-card {
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.15) 0%, rgba(26, 30, 40, 0.95) 70%);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(2, 132, 199, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.diagnostic-cta-card h2 {
  margin-bottom: 1rem;
}

.diagnostic-cta-card p {
  max-width: 620px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   HOME: RUTA DE TRANSFORMACIÓN
--------------------------------------------------------------------------- */
.path-progression-track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .path-progression-track {
    flex-direction: row;
    align-items: stretch;
  }
}

.progression-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trading-note-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   HOME: INSTAGRAM
--------------------------------------------------------------------------- */
.instagram-section {
  text-align: center;
}

.instagram-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.instagram-handle {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   DIAGNÓSTICO: INTERFAZ INTERACTIVA
--------------------------------------------------------------------------- */
.diagnostic-page {
  padding: 2.5rem 0 5rem 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loading-screen {
  text-align: center;
  padding: 4rem 1.5rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   RESULTADOS: VISTA RECOMENDADA
--------------------------------------------------------------------------- */
.result-header {
  text-align: center;
  margin-bottom: 3rem;
}

.result-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-match-card {
  background: radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.1) 0%, var(--bg-card) 60%);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(212, 175, 55, 0.12);
  margin-bottom: 2.5rem;
}

.hero-match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .hero-match-grid {
    grid-template-columns: 360px 1fr;
    align-items: center;
  }
}

.match-image-wrap {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(11, 12, 16, 0.7) 100%), var(--bg-surface);
  padding: 1.25rem;
}

.match-image-wrap img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.match-reasons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem 0;
}

.match-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.match-reason-item::before {
  content: '✓';
  color: var(--gold-primary);
  font-weight: bold;
}

.secondary-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   CATÁLOGO DE PRODUCTOS
--------------------------------------------------------------------------- */
.catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-gold);
  color: #0b0c10;
  border-color: var(--gold-primary);
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   DETALLE DE PRODUCTO (/productos/[slug])
--------------------------------------------------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 860px) {
  .product-detail-layout {
    grid-template-columns: 460px 1fr;
    align-items: start;
  }
}

.product-detail-media {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.product-detail-img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.25rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(11, 12, 16, 0.7) 100%), var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 1.5rem;
}

.product-detail-img img {
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.benefits-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.benefits-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.benefits-checklist li::before {
  content: '✔';
  color: var(--gold-primary);
  font-weight: 800;
  flex-shrink: 0;
}
