/* Gud Boi · Calculadora (wizard de 10 pasos y resumen) */

.calc-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--hueso); }

.calc-header {
  background: var(--bosque); display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; position: sticky; top: 0; z-index: 20;
}
.calc-logo img { width: 62px; height: auto; }
.calc-chip {
  color: var(--lima); border: 1.5px solid var(--lima); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-stretch: 85%;
}
.calc-progress { height: 5px; background: var(--linea); position: sticky; top: 64px; z-index: 19; }
.calc-progress i { display: block; height: 100%; width: 10%; background: var(--lima); box-shadow: inset 0 -2px 0 var(--bosque); transition: width .35s ease; }

.calc-main { flex: 1; display: flex; justify-content: center; padding: 48px 20px 120px; }
.calc-step { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.calc-count { font-size: 13px; font-weight: 700; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .1em; font-stretch: 80%; }
.calc-step h1 { font-size: clamp(21px, 3.6vw, 31px); }
.calc-step h1 em { font-style: normal; background: var(--lima); padding: .06em .18em; border-radius: 6px; display: inline-block; line-height: 1.25; margin-block: .3em .12em; }
.calc-hint { color: var(--bosque); font-size: 17px; font-weight: 600; margin-top: -6px; }
.calc-sub { font-weight: 800; font-size: 18px; margin-top: 10px; }

.calc-input {
  width: 100%; font: inherit; font-size: 17px; color: var(--bosque); background: #fff;
  border: 2px solid #C9D4CE; border-radius: 14px; padding: 14px 16px; transition: border-color .15s;
}
.calc-input:focus { outline: none; border-color: var(--bosque); box-shadow: 0 0 0 4px rgba(204, 245, 69, .55); }
.calc-input:disabled { background: var(--tinte); color: var(--tinta-2); }
.calc-num { width: 96px; text-align: center; }
.calc-area { min-height: 96px; resize: vertical; text-align: left; }
.calc-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }

.calc-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.calc-opt {
  font: inherit; color: var(--bosque); background: #fff; border: 2px solid #C9D4CE; border-radius: 14px;
  padding: 13px 22px; cursor: pointer; display: grid; gap: 2px; justify-items: center; min-width: 120px;
  transition: border-color .15s, background .15s, transform .15s;
}
.calc-opt:hover { border-color: var(--bosque); transform: translateY(-1px); }
.calc-opt-t { font-weight: 800; font-size: 16px; }
.calc-opt small { font-size: 12.5px; color: var(--tinta-2); line-height: 1.3; }
.calc-opt[aria-checked="true"] { background: var(--bosque); border-color: var(--bosque); color: var(--lima); }
.calc-opt[aria-checked="true"] small { color: #CFE0D9; }
.calc-opts.three .calc-opt, .calc-opts.five .calc-opt { flex: 1 1 140px; }
.calc-opts.cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.calc-opts.cards .calc-opt { padding: 16px 10px; min-width: 0; align-content: start; }
.calc-opts.cards svg { width: 72px; height: 72px; margin-bottom: 6px; }

/* Opciones con ilustración (nivel de actividad) */
.calc-opts.photo { gap: 14px; }
.calc-opts.photo .calc-opt {
  position: relative; background: #fff; color: var(--bosque); border: 2px solid var(--linea); border-radius: 22px;
  padding: 14px 12px 18px; gap: 8px; box-shadow: 0 10px 24px -20px rgba(10, 54, 48, .5);
}
.calc-opts.photo .calc-opt img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin: 0; }
.calc-opts.photo .calc-opt-t {
  font-size: 20px; font-weight: 800; background: var(--tinte); border-radius: 999px; padding: 4px 26px; margin-top: 2px;
}
.calc-opts.photo .calc-opt small { font-size: 14px; color: var(--bosque); max-width: 24ch; }
.calc-opts.photo .calc-opt:hover { border-color: var(--bosque); }
.calc-opts.photo .calc-opt[aria-checked="true"] { background: #EEF8EE; border: 3px solid #0B6B45; color: var(--bosque); padding: 13px 11px 17px; }
.calc-opts.photo .calc-opt[aria-checked="true"] img { mix-blend-mode: multiply; }
.calc-opts.photo .calc-opt[aria-checked="true"] .calc-opt-t { background: #0B6B45; color: #fff; }
.calc-opts.photo .calc-opt[aria-checked="true"] small { color: var(--bosque); }
.calc-opts.photo .calc-opt[aria-checked="true"]::after {
  content: ""; position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  background: #0B6B45 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  border: 3px solid #fff;
}
.calc-step:has(.calc-opts.photo) { max-width: 820px; }

.calc-big { font-family: var(--f-acento); font-size: 34px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.calc-range { width: 100%; accent-color: var(--bosque); height: 28px; }
.calc-range-lbl { width: 100%; display: flex; justify-content: space-between; font-size: 13px; color: var(--tinta-2); margin-top: -10px; }

.calc-stage { min-height: 32px; font-size: 15px; }
.calc-stage b { background: var(--lima); border-radius: 999px; padding: 3px 12px; }
.calc-check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.calc-check input { width: 20px; height: 20px; accent-color: var(--bosque); }

.calc-extra { width: 100%; background: var(--tinte); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.calc-extra label { font-weight: 800; }
.calc-extra label span { font-weight: 500; color: var(--tinta-2); font-size: 14px; }
.calc-extra .calc-hint { margin: 0; font-size: 14px; }
.calc-note { font-size: 14px; background: var(--mantequilla); border-radius: 12px; padding: 10px 14px; text-align: left; }

.calc-fields { width: 100%; display: grid; gap: 14px; text-align: left; }
.calc-field { display: grid; gap: 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-2); font-stretch: 85%; }
.calc-field .calc-input { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 500; }
.calc-legal { font-size: 13px; color: var(--tinta-2); text-align: left; }
.calc-saved { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; background: var(--mantequilla); border-radius: 14px; padding: 8px 14px; font-size: 13px; }
.calc-saved span { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-stretch: 85%; }
.calc-saved b { background: #fff; border-radius: 999px; padding: 2px 10px; }

.calc-error { color: #B3261E; font-weight: 700; font-size: 14px; min-height: 20px; }

.calc-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--linea);
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
}
/* En el resumen la barra se oculta (hidden); sin esto, display:flex la dejaba visible */
.calc-footer[hidden] { display: none; }
.calc-footer .btn { min-width: 140px; }
.btn-back { background: transparent; color: var(--bosque); border: 2px solid var(--bosque); cursor: pointer; }
.btn-dark { cursor: pointer; }

/* Resumen */
.is-result .calc-main { padding-bottom: 64px; }
.calc-result { width: 100%; max-width: 960px; display: grid; gap: 18px; }
.res-hero {
  background: var(--bosque); color: var(--hueso); border-radius: 28px; padding: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.res-hero h1 { color: var(--lima); font-size: clamp(30px, 5.2vw, 54px); }
.res-hero img { width: 96px; flex: none; }
.res-eyebrow { color: var(--menta); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-stretch: 80%; }
.res-meta { color: #CFE0D9; margin: 10px 0 14px; }
.res-badge { display: inline-block; background: var(--lima); color: var(--bosque); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 14px; }

.res-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.res-kpis div { background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 18px; display: grid; gap: 2px; }
.res-kpis strong { font-family: var(--f-acento); font-weight: 400; font-size: 26px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.res-kpis div:first-child { background: var(--lima); border-color: var(--lima); }
.res-kpis span { font-size: 14px; color: var(--tinta-2); }
.res-kpis div:first-child span { color: var(--bosque); }

.res-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.res-box { background: #fff; border: 1px solid var(--linea); border-radius: 22px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.res-box h2 { font-size: 18px; }
.res-mix { list-style: none; margin: 0; padding: 0; display: grid; }
.res-mix li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.res-mix i { width: 16px; height: 16px; border-radius: 50%; }
.res-mix span { display: grid; }
.res-mix small { color: var(--tinta-2); font-size: 13px; }
.res-g { font-weight: 800; font-variant-numeric: tabular-nums; }
.res-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; flex-wrap: wrap; }
.res-total b { font-family: var(--f-acento); font-weight: 400; font-size: 20px; line-height: 1.5; }
.res-small { font-size: 13.5px; color: var(--tinta-2); }
.res-price { background: var(--tinte); border-color: transparent; }
.res-amount { font-family: var(--f-acento); font-size: 32px; line-height: 1.5; }
.res-amount-tbd { font-size: 24px; }
.res-price .btn { width: 100%; }
.res-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 700; }
.res-trust li::before { content: "✓ "; }
.res-tips p { max-width: 70ch; }
.res-warn { background: var(--durazno); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.res-multi { background: var(--mantequilla); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.res-disclaimer { text-align: center; font-size: 13px; color: var(--tinta-2); }
.res-detail { font-size: 13px; color: var(--tinta-2); text-align: center; }
.res-detail summary { cursor: pointer; font-weight: 700; }
.res-detail p { margin-top: 8px; }

@media (max-width: 760px) {
  .calc-main { padding-top: 32px; }
  .res-kpis { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .res-hero { padding: 24px; }
  .res-hero img { width: 64px; }
}
@media (max-width: 600px) {
  .calc-opts.photo { grid-template-columns: 1fr; gap: 12px; }
  .calc-opts.photo .calc-opt { grid-template-columns: 120px 1fr; grid-template-rows: auto auto; justify-items: start; align-items: center; text-align: left; column-gap: 14px; row-gap: 4px; padding: 10px 14px 10px 10px; }
  .calc-opts.photo .calc-opt[aria-checked="true"] { padding: 9px 13px 9px 9px; }
  .calc-opts.photo .calc-opt img { grid-row: 1 / 3; }
  .calc-opts.photo .calc-opt-t { font-size: 17px; padding: 2px 16px; align-self: end; }
  .calc-opts.photo .calc-opt small { align-self: start; max-width: none; }
  .calc-opts.photo .calc-opt[aria-checked="true"]::after { top: -10px; right: -8px; width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .calc-opts.cards { gap: 8px; }
  .calc-opts.cards svg { width: 54px; height: 54px; }
  .calc-opts.cards .calc-opt small { font-size: 11.5px; }
  .calc-opt { min-width: 0; flex: 1 1 120px; }
  .calc-footer .btn { min-width: 0; flex: 1; padding-inline: 12px; }
  .res-kpis strong { font-size: 21px; }
  .res-box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .calc-progress i, .calc-opt { transition: none; } }

/* Campo trampa contra bots: fuera de la vista de las personas */
.calc-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.calc-footer .btn:disabled { opacity: .6; cursor: wait; }
#res-subscribe:disabled { opacity: .6; cursor: wait; }

/* Resumen: precio por semana y por mes */
.res-dia { font-weight: 700; }
.res-opciones { display: grid; gap: 8px; }
.res-opciones div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; }
.res-opciones span { font-size: 14px; font-weight: 700; }
.res-opciones b { font-family: var(--f-acento); font-weight: 400; font-size: 22px; line-height: 1.5; white-space: nowrap; }
.res-opcion-mes { border: 2px solid var(--bosque); }

/* Paso 10: cuenta del cliente */
.calc-cuenta { font-size: 14px; color: var(--bosque); opacity: .85; margin-top: 14px; line-height: 1.5; }
.calc-cuenta a, .calc-link { color: var(--bosque); font-weight: 700; text-decoration: underline; }
.calc-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.calc-legal a { color: inherit; }
.calc-acepta { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--bosque); cursor: pointer; text-align: left; }
.calc-acepta input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--bosque); flex: none; cursor: pointer; }
.calc-acepta a { color: var(--bosque); font-weight: 700; }
.calc-acepta small { font-size: 12.5px; color: var(--tinta-2); }
.calc-acepta + .calc-acepta { margin-top: 10px; }
