/* Bloque P1: hubs, calculadora dedicada y acciones de escenario. */

.hub-main {
  min-height: 100vh;
  background: #f6f3eb;
  color: #10202f;
  font-family: Arial, sans-serif;
}

.hub-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.hub-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: #51616e;
  font-size: 0.82rem;
}

.hub-breadcrumbs a {
  color: #334b5c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hub-hero h1 em {
  color: #9b6f1d;
  font-weight: 400;
}

.hub-hero > p {
  max-width: 760px;
  margin: 1.7rem 0 0;
  color: #435462;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hub-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.hub-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.hub-section-heading h2 {
  margin: 0.4rem 0 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.hub-section-heading p {
  margin: 0;
  color: #435462;
  line-height: 1.65;
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hub-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid rgba(16, 32, 47, 0.17);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.62);
}

.hub-card.primary {
  border-top: 5px solid #c69b45;
  background: #ffffff;
}

.hub-card .hub-kicker {
  color: #6a551f;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hub-card h2,
.hub-card h3 {
  margin: 0.85rem 0 0.65rem;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.hub-card p {
  margin: 0 0 1.4rem;
  color: #435462;
  line-height: 1.6;
}

.hub-card a,
.hub-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.72rem 1rem;
  border: 1px solid #10202f;
  border-radius: 0.25rem;
  background: #10202f;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.hub-card a:hover,
.hub-action:hover {
  background: #243b4d;
}

.guide-groups {
  display: grid;
  gap: 1.2rem;
}

.guide-group {
  padding: 1.6rem;
  border: 1px solid rgba(16, 32, 47, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

.guide-group h2 {
  margin: 0 0 1rem;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.guide-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.guide-link-list a {
  display: flex;
  min-height: 66px;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(16, 32, 47, 0.14);
  background: #ffffff;
  color: #10202f;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.guide-link-list a:hover {
  border-color: #c69b45;
  box-shadow: inset 4px 0 #c69b45;
}

.decision-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: steps;
}

.decision-step {
  padding: 1.5rem;
  border-top: 4px solid #c69b45;
  background: #ffffff;
  counter-increment: steps;
}

.decision-step::before {
  content: "0" counter(steps);
  color: #8d681d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.decision-step h2,
.decision-step h3 {
  margin: 0.8rem 0 0.6rem;
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.decision-step p {
  color: #435462;
  line-height: 1.55;
}

.decision-step a {
  color: #10202f;
  font-weight: 800;
  text-underline-offset: 4px;
}

.dedicated-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 1.2rem;
  align-items: start;
}

.dedicated-calculator-form,
.dedicated-calculator-results {
  padding: 1.7rem;
  border: 1px solid rgba(16, 32, 47, 0.16);
  background: #ffffff;
}

.dedicated-calculator-form h2,
.dedicated-calculator-results h2 {
  margin: 0 0 1.2rem;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.dedicated-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dedicated-field {
  display: grid;
  gap: 0.45rem;
  color: #334958;
  font-size: 0.86rem;
  font-weight: 700;
}

.dedicated-field span {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(16, 32, 47, 0.27);
  background: #ffffff;
}

.dedicated-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 0;
  background: transparent;
  color: #10202f;
  font-size: 1rem;
  font-weight: 700;
}

.dedicated-field b {
  padding: 0 0.8rem;
  color: #51616e;
  font-size: 0.82rem;
  white-space: nowrap;
}

.advanced-fields {
  margin-top: 1rem;
  border-top: 1px solid rgba(16, 32, 47, 0.14);
}

.advanced-fields summary {
  min-height: 48px;
  padding: 1rem 0;
  color: #10202f;
  font-weight: 800;
  cursor: pointer;
}

.dedicated-main-result {
  margin-bottom: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(16, 32, 47, 0.14);
}

.dedicated-main-result span {
  display: block;
  color: #435462;
  font-size: 0.86rem;
}

.dedicated-main-result strong {
  display: block;
  margin-top: 0.45rem;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
}

.dedicated-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dedicated-metric {
  padding: 0.85rem;
  background: #f6f3eb;
}

.dedicated-metric span,
.dedicated-metric strong {
  display: block;
}

.dedicated-metric span {
  min-height: 2.5em;
  color: #435462;
  font-size: 0.75rem;
  line-height: 1.3;
}

.dedicated-metric strong {
  margin-top: 0.35rem;
  color: #10202f;
  font-size: 1.05rem;
}

.dedicated-verdict {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 4px solid #c69b45;
  background: #fff8e8;
  color: #4f3b0f;
  line-height: 1.5;
}

.dedicated-verdict.good {
  border-color: #2f7956;
  background: #eef8f2;
  color: #17452f;
}

.dedicated-verdict.risk {
  border-color: #b3261e;
  background: #fff2f0;
  color: #6d1712;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.scenario-actions button,
.scenario-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid #10202f;
  border-radius: 0.25rem;
  background: transparent;
  color: #10202f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.scenario-actions button:hover,
.scenario-actions a:hover {
  background: #10202f;
  color: #ffffff;
}

.scenario-feedback {
  min-height: 1.4rem;
  margin: 0.65rem 0 0;
  color: #2d6048;
  font-size: 0.82rem;
  font-weight: 700;
}

.generic-scenario-tools {
  margin-top: 1rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(16, 32, 47, 0.12);
}

.not-found-recovery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(760px, 100%);
  margin: 2rem auto 0;
}

.not-found-recovery a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid rgba(16, 32, 47, 0.2);
  background: rgba(255, 255, 255, 0.62);
  color: #10202f;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 680px) {
  .not-found-recovery {
    grid-template-columns: 1fr;
  }
}

.next-step-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 32, 47, 0.17);
  background: #f6f3eb;
}

.next-step-card span,
.next-step-card strong {
  display: block;
}

.next-step-card span {
  color: #6a551f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.next-step-card strong {
  margin: 0.35rem 0 0.65rem;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.next-step-card a {
  color: #10202f;
  font-weight: 800;
  text-underline-offset: 4px;
}

.method-copy {
  max-width: 820px;
  color: #344a59;
  font-size: 1rem;
  line-height: 1.75;
}

.method-copy h2 {
  margin-top: 2.3rem;
  font-family: Georgia, serif;
  color: #10202f;
  font-size: 2rem;
}

.method-copy a {
  color: #10202f;
  font-weight: 700;
}

.source-box {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #c69b45;
  background: #fffaf0;
  color: #3f4f5b;
  line-height: 1.55;
}

.source-box strong {
  color: #10202f;
}

.comparison-lead {
  margin: 1rem 0;
  padding: 1.1rem;
  border: 1px solid rgba(16, 32, 47, 0.16);
  background: #f6f3eb;
}

.comparison-lead span,
.comparison-lead strong {
  display: block;
}

.comparison-lead span {
  color: #435462;
  font-size: 0.8rem;
}

.comparison-lead strong {
  margin-top: 0.35rem;
  font-family: Georgia, serif;
  font-size: 1.65rem;
}

.calculation-warning {
  margin-top: 1rem;
  color: #5d4b20;
  font-size: 0.82rem;
  line-height: 1.5;
}

.dedicated-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 0;
  background: #ffffff;
  color: #10202f;
  font-size: 1rem;
  font-weight: 700;
}

.hub-final-cta {
  padding: 4rem 2rem;
  background: #10202f;
  color: #ffffff;
  text-align: center;
}

.hub-final-cta h2 {
  max-width: 760px;
  margin: 0 auto 1.3rem;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.hub-final-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0.8rem 1.1rem;
  background: #f6f3eb;
  color: #10202f;
  font-weight: 800;
  text-decoration: none;
}

.full-calculator-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.75rem;
  color: #10202f;
  font-size: 0.83rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .hub-section-heading,
  .dedicated-calculator-layout {
    grid-template-columns: 1fr;
  }

  .decision-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hub-hero,
  .hub-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hub-card-grid,
  .guide-link-list,
  .dedicated-fields,
  .dedicated-metrics {
    grid-template-columns: 1fr;
  }

  .dedicated-calculator-form,
  .dedicated-calculator-results,
  .guide-group {
    padding: 1.1rem;
  }
}

@media print {
  .site-header,
  footer,
  .scenario-actions,
  .hub-final-cta,
  .skip-link,
  .mobile-menu-button {
    display: none !important;
  }

  .hub-main,
  .dedicated-calculator-form,
  .dedicated-calculator-results {
    background: #ffffff !important;
  }

  .dedicated-calculator-layout {
    grid-template-columns: 1fr 1fr;
  }
}
