/**
 * Inicio — estilos específicos (prefijo .page-home / .home-*)
 * Componentes base en pages.css (.nv-hero, .nv-step, .nv-card…)
 */

.page-home .home-hero {
  padding-top: 4.5rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

@media (min-width: 960px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem 3rem;
    align-items: center;
  }
}

.home-hero-copy {
  max-width: 34rem;
}

.nv-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
}

.nv-badge--soft {
  background: rgba(10, 31, 68, 0.05);
  border-color: rgba(10, 31, 68, 0.1);
  color: var(--primary-dark);
}

/* ---- Hero: composición producto (Buscar materiales) ---- */
.home-hero-product {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 960px) {
  .home-hero-product {
    max-width: none;
    margin-inline: 0;
  }
}

.home-hero-product::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 6%;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 16px;
  z-index: 0;
}

.home-app-screen {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10, 31, 68, 0.1);
  overflow: hidden;
}

.home-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
  font-size: 0.75rem;
}

.home-app-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.home-app-page {
  font-weight: 600;
  color: var(--secondary);
}

.home-app-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.875rem 1rem 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #fff;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10, 31, 68, 0.04);
}

.home-app-search-icon {
  display: flex;
  width: 18px;
  height: 18px;
  color: var(--secondary);
}

.home-app-search-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.home-app-search-q {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.home-app-result {
  margin: 0 1rem 1rem;
  padding: 0.875rem;
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(10, 31, 68, 0.06);
}

.home-app-result-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.625rem;
  align-items: start;
  margin-bottom: 0.875rem;
}

.home-app-ref {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #004080;
  background: #eff6ff;
  border-radius: 6px;
}

.home-app-product-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

.home-app-provider {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--secondary);
}

.home-app-badge-ok {
  padding: 0.2rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  white-space: nowrap;
}

.home-app-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 0.875rem;
}

.home-app-prices div {
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
}

.home-app-prices dt {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
}

.home-app-prices dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.home-app-price-net {
  color: #004080 !important;
}

.home-app-price-pvp {
  color: #059669 !important;
  font-size: 0.875rem !important;
}

.home-app-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.home-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
}

.home-app-btn--ghost {
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(10, 31, 68, 0.15);
}

.home-app-btn--add {
  color: #fff;
  background: #e56122;
}

.home-app-float {
  position: absolute;
  right: -0.5rem;
  bottom: -0.75rem;
  z-index: 2;
  min-width: 9.5rem;
  padding: 0.75rem 0.875rem;
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.12);
}

@media (min-width: 960px) {
  .home-app-float {
    right: -1.25rem;
    bottom: 1.5rem;
  }
}

.home-app-float-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

.home-app-float-lines {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text);
}

.home-app-float-total {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--secondary);
}

.home-app-float-total strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.0625rem;
  color: var(--primary-dark);
}

.nv-section-head--center {
  text-align: center;
  margin-inline: auto;
}

.nv-step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.page-home .nv-step {
  flex-direction: row;
  box-shadow: var(--shadow);
}

.home-product-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .home-product-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.home-product-lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--secondary);
}

.home-benefit-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.875rem;
}

.home-benefit-list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--secondary);
}

.home-benefit-list .nv-icon {
  color: var(--success);
  margin-top: 0.1rem;
}

.home-benefit-list strong {
  color: var(--text);
}

.home-link-more {
  font-weight: 600;
  color: var(--primary);
}

.nv-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: var(--radius);
}

.nv-card--lift {
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nv-card--lift h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.nv-card--lift p {
  margin: 0;
  flex: 1;
  color: var(--secondary);
  line-height: 1.55;
}

.home-audience-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-tag-list li {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.07);
  border-radius: 999px;
}

.home-pricing-teaser {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(255, 122, 0, 0.04) 100%);
}

@media (min-width: 768px) {
  .home-pricing-teaser {
    grid-template-columns: 1fr auto;
    padding: 2rem 2.25rem;
  }
}

.home-pricing-teaser h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--primary-dark);
}

.home-pricing-teaser p {
  margin: 0;
  color: var(--secondary);
}

.home-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-cta-final {
  padding: 0 0 4rem;
}

.home-cta-final-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 1.75rem;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
}

@media (min-width: 768px) {
  .home-cta-final-inner {
    grid-template-columns: 1fr auto;
    padding: 2.5rem 2.5rem;
  }
}

.home-cta-final-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

.home-cta-final-inner p {
  margin: 0;
  opacity: 0.88;
  max-width: 32rem;
}

.home-cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.home-cta-final .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.home-cta-final .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
