/* =========================================================
   ORANGEVAPOR — DIAGNOSTICO / CALCULADORA
   ========================================================= */

body {
  margin: 0;
  background: #f5f2ec;
  color: #1b1b1b;
}

* {
  box-sizing: border-box;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* HEADER */

.site-header {
  width: min(1240px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #171717;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f45124;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.brand-name {
  font-size: 17px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  color: #55524d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: #f45124;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: #f45124;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border: 0;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

/* HERO */

.inner-hero {
  padding-top: 76px;
  padding-bottom: 54px;
  max-width: 1000px;
}

.breadcrumbs {
  margin-bottom: 28px;
  color: #817d75;
  font-size: 13px;
}

.breadcrumbs a {
  color: inherit;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #f45124;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.inner-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.99;
  letter-spacing: -2.8px;
}

.inner-hero > p {
  max-width: 870px;
  margin: 28px 0 0;
  color: #5e5b55;
  font-size: 18px;
  line-height: 1.65;
}

.hero-calculator-note {
  max-width: 820px;
  margin-top: 28px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 3px solid #f45124;
  background: rgba(244, 81, 36, 0.06);
  border-radius: 0 12px 12px 0;
  color: #5f5b55;
  font-size: 14px;
}

.hero-calculator-note strong {
  color: #1b1b1b;
}

/* CALCULADORA */

.calculator-wrap {
  padding-bottom: 90px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.calculator-form,
.calculator-results {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
}

.calculator-form {
  padding: clamp(26px, 4vw, 42px);
}

.calculator-form h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1px;
}

.calculator-form > p {
  margin: 12px 0 34px;
  max-width: 680px;
  color: #6b6761;
  line-height: 1.6;
}

.field-group {
  padding: 28px 0;
  border-top: 1px solid #e8e4dd;
}

.field-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.field-group > span {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #292825;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.input-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-grid label > span {
  color: #272624;
  font-size: 14px;
  font-weight: 750;
}

.input-grid input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d7d3cb;
  border-radius: 11px;
  background: #fbfaf7;
  color: #191919;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.input-grid input:focus {
  border-color: #f45124;
  box-shadow: 0 0 0 3px rgba(244, 81, 36, 0.1);
}

.input-grid small,
.field-help {
  color: #817d75;
  font-size: 11px;
  line-height: 1.45;
}

.field-help {
  display: block;
  margin-top: 14px;
}

/* OPCIONES */

.package-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.package-option {
  position: relative;
}

.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 18px 17px 50px;
  position: relative;
  border: 1px solid #ddd8cf;
  border-radius: 14px;
  background: #fbfaf7;
  cursor: pointer;
  transition: 0.18s ease;
}

.package-option label::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 1.5px solid #aaa59c;
  border-radius: 50%;
  background: #fff;
}

.package-option input:checked + label {
  border-color: #f45124;
  background: rgba(244, 81, 36, 0.055);
  box-shadow: 0 0 0 1px #f45124;
}

.package-option input:checked + label::before {
  border: 5px solid #f45124;
}

.package-option strong {
  font-size: 15px;
}

.package-option small {
  color: #6e6a64;
  line-height: 1.45;
}

/* RESULTADOS */

.calculator-results {
  position: sticky;
  top: 20px;
  padding: 30px;
  background: #191919;
  color: #fff;
}

.result-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(244, 81, 36, 0.16);
  color: #ffb39b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.route-hypothesis {
  padding: 26px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.route-hypothesis span,
.result-main span {
  display: block;
  margin-bottom: 7px;
  color: #aaa7a1;
  font-size: 12px;
}

.route-hypothesis strong {
  display: block;
  font-size: 22px;
}

.route-hypothesis small {
  display: block;
  margin-top: 7px;
  color: #a9a69f;
  line-height: 1.45;
}

.result-main {
  padding: 27px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.result-main strong {
  display: block;
  color: #fff;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -2px;
}

.result-main small {
  display: block;
  margin-top: 9px;
  color: #aaa7a1;
}

.result-row {
  padding: 15px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.result-row span {
  color: #aaa7a1;
  font-size: 12px;
}

.result-row strong {
  font-size: 15px;
  text-align: right;
}

.result-interpretation {
  margin: 24px 0 0;
  padding: 17px 18px;
  border-radius: 12px;
  background: rgba(244, 81, 36, 0.12);
  color: #f4f1eb;
  font-size: 13px;
  line-height: 1.55;
}

.result-disclaimer {
  margin: 18px 0 22px;
  color: #8f8c86;
  font-size: 10px;
  line-height: 1.5;
}

.button-full {
  width: 100%;
}

/* SECCIONES GENERALES */

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-heading > p,
.split-heading > p {
  color: #737069;
  line-height: 1.65;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 60px;
  align-items: end;
}

/* FISIOFIX */

.section-dark {
  background: #191919;
  color: #fff;
}

.light-heading p {
  color: #aaa7a1;
}

.eyebrow-light {
  color: #ff9d7c;
}

.fisiofix-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fisiofix-stats article {
  min-height: 175px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.fisiofix-stats strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
}

.fisiofix-stats span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.fisiofix-stats small {
  display: block;
  margin-top: 8px;
  color: #97948d;
  font-size: 11px;
  line-height: 1.4;
}

.case-comparison-card {
  margin-top: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  border: 1px solid rgba(244, 81, 36, 0.42);
  border-radius: 18px;
  background: rgba(244, 81, 36, 0.08);
}

.case-comparison-card div span {
  display: block;
  margin-bottom: 6px;
  color: #aaa7a1;
  font-size: 11px;
}

.case-comparison-card div strong {
  font-size: 20px;
}

.case-comparison-card p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #d4d1ca;
  line-height: 1.6;
}

.source-note {
  margin-top: 20px;
  padding: 17px 18px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.55;
}

.source-note-dark {
  background: rgba(255, 255, 255, 0.05);
  color: #98958f;
}

.fisiofix-reference .button {
  margin-top: 26px;
}

.button-light {
  background: #fff;
  color: #191919 !important;
}

/* METODO */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.method-grid article {
  padding: 26px;
  border: 1px solid #dedad2;
  border-radius: 17px;
  background: #fff;
}

.method-grid article > span {
  color: #f45124;
  font-size: 11px;
  font-weight: 900;
}

.method-grid h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.method-grid p {
  margin: 0;
  color: #706c65;
  font-size: 13px;
  line-height: 1.6;
}

/* FOOTER */

.site-footer {
  padding-top: 40px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.9fr;
  gap: 36px;
  border-top: 1px solid #ddd9d1;
}

.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #191919;
  text-decoration: none;
  font-weight: 800;
}

.footer-brand p {
  max-width: 350px;
  color: #77736c;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.footer-links a {
  color: #696660;
  text-decoration: none;
  font-size: 12px;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd9d1;
  color: #8a867f;
  font-size: 10px;
}

/* TABLET */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .site-header .button {
    margin-left: auto;
  }

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

  .calculator-results {
    position: static;
  }

  .fisiofix-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px 12px;
  }

  .brand-name {
    display: none;
  }

  .site-header .button {
    font-size: 11px;
    min-height: 38px;
    padding-inline: 12px;
  }

  .inner-hero {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .inner-hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
  }

  .inner-hero > p {
    font-size: 16px;
  }

  .calculator-form,
  .calculator-results {
    border-radius: 17px;
  }

  .calculator-form {
    padding: 22px 18px;
  }

  .calculator-results {
    padding: 23px 19px;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .fisiofix-stats,
  .method-grid,
  .case-comparison-card {
    grid-template-columns: 1fr;
  }

  .case-comparison-card p {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-column: auto;
    flex-direction: column;
    gap: 7px;
  }
}