/**
 * Estilos exclusivos de /que-hacemos.html
 * Scoped bajo .page-qh — no afecta otras páginas.
 */

.page-qh .container {
  width: min(100% - 2rem, 1200px);
}

.page-qh .qh-main {
  overflow-x: hidden;
}

.qh-eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.qh-hero {
  padding: 4.5rem 0 4rem;
  background: var(--white);
  border-bottom: 1px solid rgba(15, 76, 129, 0.06);
}

.qh-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .qh-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.qh-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.qh-hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--secondary);
  max-width: 32rem;
}

.qh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.qh-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .qh-benefits {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qh-benefit {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.35;
}

.qh-benefit .qh-icon {
  color: var(--primary);
}

.qh-mockup-wrap {
  position: relative;
  padding: 0.5rem;
}

.qh-mockup {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .qh-mockup {
    grid-template-columns: 1fr min(38%, 160px);
    align-items: start;
  }
}

.qh-mockup-screen {
  background: var(--white);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(15, 76, 129, 0.1);
  overflow: hidden;
}

.qh-mockup-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.qh-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.15);
}

.qh-mockup-dot:first-child {
  background: #ef4444;
  opacity: 0.7;
}

.qh-mockup-dot:nth-child(2) {
  background: #f59e0b;
  opacity: 0.7;
}

.qh-mockup-dot:nth-child(3) {
  background: #22c55e;
  opacity: 0.7;
}

.qh-mockup-title {
  margin-left: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

.qh-mockup-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text);
}

.qh-mockup-search .qh-icon {
  flex-shrink: 0;
  color: var(--secondary);
}

.qh-mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}

.qh-mockup-table th {
  padding: 0.5rem 0.625rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(15, 76, 129, 0.04);
  border-top: 1px solid rgba(15, 76, 129, 0.06);
}

.qh-mockup-table td {
  padding: 0.5rem 0.625rem;
  border-top: 1px solid rgba(15, 76, 129, 0.06);
  color: var(--text);
  vertical-align: top;
}

.qh-mockup-table tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.8);
}

.qh-mockup-net {
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.qh-mockup-pdf {
  background: var(--white);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
  overflow: hidden;
  font-size: 0.6875rem;
}

.qh-mockup-pdf-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.625rem;
}

.qh-mockup-pdf-body {
  padding: 0.625rem;
  color: var(--secondary);
  line-height: 1.45;
}

.qh-mockup-pdf-page {
  margin-top: 0.5rem;
  padding: 0.375rem 0.5rem;
  background: var(--bg);
  border-radius: 4px;
  font-weight: 500;
  color: var(--primary);
}

.qh-problem {
  padding: 4rem 0;
  background: var(--bg);
}

.qh-problem h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.qh-problem-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .qh-problem-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
}

.qh-problem-text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--secondary);
}

.qh-pain-strip {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .qh-pain-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .qh-pain-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qh-pain-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

@media (min-width: 640px) {
  .qh-pain-item:nth-child(odd) {
    border-right: 1px solid rgba(15, 76, 129, 0.08);
  }

  .qh-pain-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (min-width: 960px) {
  .qh-pain-item {
    border-bottom: none;
    border-right: 1px solid rgba(15, 76, 129, 0.08);
    padding: 1.25rem 1.125rem;
  }

  .qh-pain-item:last-child {
    border-right: none;
  }
}

.qh-pain-item .qh-icon {
  color: var(--primary);
}

.qh-pain-item p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.qh-solution {
  padding: 4rem 0;
  background: var(--white);
}

.qh-solution .qh-eyebrow {
  margin-bottom: 2rem;
}

.qh-solution-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .qh-solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .qh-solution-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.qh-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: var(--radius);
  height: 100%;
}

.qh-feature-card .qh-icon {
  color: var(--primary);
}

.qh-feature-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-dark);
}

.qh-feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--secondary);
}

.qh-pilot {
  padding: 3.5rem 0 4rem;
  background: var(--bg);
}

.qh-pilot-box {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.75rem;
  background: rgba(15, 76, 129, 0.04);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .qh-pilot-box {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 2rem 2.25rem;
  }
}

.qh-pilot-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-dark);
}

.qh-pilot-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--secondary);
  max-width: 36rem;
}

.qh-pilot-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: min(100%, 240px);
}

.qh-pilot-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .qh-pilot-note {
    text-align: right;
  }
}

.qh-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.qh-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qh-feature-card .qh-icon,
.qh-pain-item .qh-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 479px) {
  .qh-hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.page-qh .site-footer {
  margin-top: 0;
}
