/* ============================================================
   Cotizador Cajón de Cultivo — complemento de riegoman.css
   Usa los mismos tokens (--rm-*), Inter, botones píldora y
   bordes superiores de 3px del formato editorial.
   ============================================================ */

.cz-wrap{ max-width: 1200px; margin: 0 auto; padding: 60px 24px 90px; }
.cz-wrap .rm-section-intro{ margin-bottom: 36px; }

.cz-grid{ display: grid; gap: 36px; }
.cz-left{ display: grid; gap: 24px; min-width: 0; align-content: start; }
@media (min-width: 960px){
  .cz-grid{ grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .cz-left{ position: sticky; top: 96px; }
}

/* ---------- Escenario de capas ---------- */
.cz-stage{ position: relative; margin: 0; aspect-ratio: 4 / 3; max-width: 100%; background: var(--rm-gray-light); border-radius: 10px; overflow: hidden; }
.cz-stage figcaption{
  position: absolute; inset: 0 0 auto; z-index: 50; pointer-events: none;
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.cz-stage #count{ color: var(--rm-accent); }
.cz-layer{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cz-layer.in{ animation: cz-in .42s cubic-bezier(.2,.8,.3,1.15) both; }
@keyframes cz-in{ from{ opacity: 0; transform: translateY(-12px); } to{ opacity: 1; transform: none; } }

/* ---------- Resumen (bloque negro como el proceso) ---------- */
.cz-sum{ background: var(--rm-black); color: #fff; padding: 28px; border-radius: 10px; }
.cz-sum-head{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.cz-sum h3{ margin: 0; font-size: 19px; font-weight: 800; }
.cz-sum-head span{ font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #cfcfcf; }
.cz-lines{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.cz-lines li{ display: flex; justify-content: space-between; gap: 16px; }
.cz-lines li span:last-child{ font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cz-lines li.add{ color: #cfcfcf; }
.cz-lines li.add span:first-child::before{ content: "+ "; color: var(--rm-accent); font-weight: 800; }
.cz-total{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 3px solid #fff; }
.cz-total span{ font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #cfcfcf; }
.cz-total strong{ font-size: clamp(36px, 5vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cz-buy{ border: 0; cursor: pointer; font-family: var(--font); background: var(--rm-accent); color: #fff; width: 100%; text-align: center; margin-top: 20px; font-size: 17px; }
.cz-buy:hover{ background: #005a68; }
.cz-buy:disabled{ opacity: .6; cursor: wait; }
.cz-sum .cz-buy:hover{ background: #fff; color: var(--rm-black); }
.cz-sum-foot{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.cz-sum-foot a, .cz-sum-foot button{ color: #fff; background: none; border: 0; padding: 0 0 2px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.35); }
.cz-sum-foot a:hover, .cz-sum-foot button:hover{ border-color: var(--rm-accent); color: var(--rm-accent); }
.cz-note{ margin: 16px 0 0; font-size: 13px; color: #cfcfcf; line-height: 1.5; }

/* ---------- Complementos (filas con borde superior de 3px) ---------- */
.cz-opts{ display: grid; gap: 34px; min-width: 0; }
.cz-group h3{ margin: 0; padding-top: 16px; border-top: 3px solid var(--rm-black); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rm-accent); }
.cz-group h3 em{ font-style: normal; color: var(--rm-gray); font-weight: 600; letter-spacing: 0.05em; margin-left: 6px; }
.cz-opt{
  appearance: none; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #e5e5e5;
  cursor: pointer; color: inherit; font-family: var(--font);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 18px 8px; transition: background .15s ease;
}
.cz-opt:hover{ background: var(--rm-gray-light); }
.cz-box{ width: 24px; height: 24px; border: 2px solid var(--rm-black); border-radius: 50%; margin-top: 1px; position: relative; transition: background .15s, border-color .15s; }
.cz-txt strong{ display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.cz-txt small{ display: block; font-size: 14px; color: var(--rm-gray); margin-top: 4px; line-height: 1.45; }
.cz-price{ font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.cz-opt[aria-pressed="true"] .cz-box{ background: var(--rm-accent); border-color: var(--rm-accent); }
.cz-opt[aria-pressed="true"] .cz-box::after{ content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cz-opt[aria-pressed="true"] .cz-price{ color: var(--rm-accent); }
.cz-opt[aria-pressed="true"] .cz-txt strong{ color: var(--rm-accent); }
.cz-opt:focus-visible, .cz-buy:focus-visible{ outline: 3px solid var(--rm-accent); outline-offset: 2px; }

/* ---------- Barra fija en móvil ---------- */
.cz-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: var(--rm-black); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
}
.cz-bar small{ display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #cfcfcf; }
.cz-bar strong{ font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cz-bar .cz-buy{ width: auto; margin: 0; padding: 12px 22px; font-size: 15px; }
@media (max-width: 959px){
  .cz-page #rm-float-stack{ bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px){ .cz-bar{ display: none; } }

/* ---------- Checkout: formulario oscuro como el de contacto ---------- */
.cz-co{ display: grid; gap: 36px; }
@media (min-width: 960px){
  .cz-co{ grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .cz-co-side{ position: sticky; top: 96px; }
}
.cz-form{ background: var(--rm-black); color: #fff; padding: 36px 28px; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cz-form .full{ grid-column: 1 / -1; }
@media (max-width: 640px){ .cz-form{ grid-template-columns: 1fr; padding: 28px 20px; } }
.cz-field{ display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cz-field label{ font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #cfcfcf; }
.cz-field input, .cz-field select, .cz-field textarea{
  width: 100%; padding: 14px 16px; border: 2px solid #3a3a3a; border-radius: 8px;
  font-size: 15px; font-family: var(--font); background: #111; color: #fff;
}
.cz-field textarea{ min-height: 96px; resize: vertical; }
.cz-field input:focus, .cz-field select:focus, .cz-field textarea:focus{ outline: none; border-color: var(--rm-accent); }
.cz-field.bad input, .cz-field.bad select{ border-color: #ff8a8a; }
.cz-err{ color: #ff8a8a; font-size: 13px; font-weight: 700; }
.cz-check{ display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cfcfcf; }
.cz-check input{ width: 20px; height: 20px; accent-color: var(--rm-accent); margin-top: 1px; flex: none; }
.cz-alert{ grid-column: 1 / -1; background: #3a1414; border-left: 4px solid #ff8a8a; padding: 14px 16px; font-size: 14px; border-radius: 6px; }
.cz-back{ color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 2px; justify-self: start; }
.cz-back:hover{ color: var(--rm-accent); border-color: var(--rm-accent); }

.cz-co-side .rm-pricing-table{ min-width: 0; }
.cz-co-side .rm-pricing-table td:first-child{ color: var(--rm-black); }
.cz-co-side tfoot td{ padding: 18px 20px; font-size: 16px; font-weight: 900; border-top: 3px solid var(--rm-black); }
.cz-co-side tfoot td:last-child{ font-size: 26px; color: var(--rm-accent); white-space: nowrap; }
.cz-co-side .rm-pricing-table td:last-child{ white-space: nowrap; font-variant-numeric: tabular-nums; }
.cz-pay{ border: 0; cursor: pointer; font-family: var(--font); background: var(--rm-accent); color: #fff; width: 100%; padding: 20px 24px; border-radius: 10px; font-size: 22px; font-weight: 800; margin-top: 8px; }
.cz-pay:hover{ background: #005a68; }
.cz-pay:disabled{ opacity: .6; cursor: wait; }
.cz-secure{ font-size: 13px; color: var(--rm-gray); margin: 12px 0 0; }

/* ---------- Confirmación ---------- */
.cz-code{ display: inline-flex; flex-wrap: wrap; gap: 6px 18px; border-top: 3px solid var(--rm-black); padding-top: 14px; margin: 0 0 32px; }
.cz-code span{ font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rm-gray); width: 100%; }
.cz-code strong{ font-size: 28px; font-weight: 900; }
.cz-code strong + strong{ color: var(--rm-accent); }

.cz-preview{ background: #e3f1f3; border-left: 4px solid var(--rm-accent); padding: 12px 16px; font-size: 14px; border-radius: 6px; margin: 0; }

@media (prefers-reduced-motion: reduce){ .cz-layer.in{ animation: none; } .cz-opt, .cz-box{ transition: none; } }
