/* Tienda y página del pedido */
.shop { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 40px; }
.shop-title h1 { font-size: clamp(40px, 6.4vw, 80px); max-width: 10em; }
.shop-title .lede { margin-top: 16px; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 44px); margin-top: clamp(30px, 4vw, 50px); align-items: start; }
@media (max-width: 960px) { .shop-grid { grid-template-columns: 1fr; } }

.hint { color: var(--mute); font-size: 15px; margin-top: 6px; }
.tiny { color: var(--dim); font-size: 13.5px; margin-top: 12px; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--rack-hi); background: var(--console); margin-top: 18px; }
.notice.bad { border-color: #7a2c2f; background: #2a1c1e; color: #ffc9cb; }
.notice.ok { border-color: #2f6a33; background: #1b2a1d; color: #cdeccf; }

.pane { padding: 26px 0; border-top: 1px solid var(--rack); }
.pane:first-child { border-top: 0; padding-top: 0; }
.pane h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; }

/* duración: segmentos con el precio mensual de la base */
.durations { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.dur { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 15px; border-radius: 12px; border: 1px solid var(--rack-hi); background: var(--console); cursor: pointer; text-align: left; color: var(--paper); font: inherit; }
.dur:hover { border-color: #64707b; }
.dur[aria-checked="true"] { border-color: var(--amber); background: #2d2618; box-shadow: inset 0 0 0 1px var(--amber); }
.dur b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.dur span { color: #c5ccd2; font-size: 14.5px; }
.dur .off { position: absolute; top: -9px; right: 10px; background: var(--amber); color: #241700; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

.base-pane { }
.base-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.base-price { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 34px; white-space: nowrap; color: var(--amber); }
.base-price small { font-size: 15px; color: var(--mute); font-weight: 600; margin-left: 3px; }
.included { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.included li { position: relative; padding-left: 22px; color: #c9d0d5; font-size: 15.5px; }
.included li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--pgm); }
@media (max-width: 640px) { .included { grid-template-columns: 1fr; } }

/* complementos */
.items { margin-top: 10px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid #2a3238; }
.item:last-child { border-bottom: 0; }
.item .t b { display: block; font-weight: 600; font-size: 16.5px; }
.item .t small { display: block; color: var(--mute); font-size: 14.5px; margin-top: 2px; }
.item .pr { font-variant-numeric: tabular-nums; color: #c5ccd2; font-size: 15px; white-space: nowrap; text-align: right; min-width: 92px; }
.item.on .pr { color: var(--paper); font-weight: 600; }
@media (max-width: 560px) { .item { grid-template-columns: 1fr auto; } .item .pr { grid-column: 1; grid-row: 2; text-align: left; } .item .ctl { grid-row: 1 / span 2; grid-column: 2; } }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rack-hi); border-radius: 10px; overflow: hidden; background: #14181b; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--paper); font-size: 20px; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--rack); }
.stepper button:disabled { color: var(--dim); cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.item.on .stepper { border-color: var(--amber); }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; vertical-align: middle; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: #14181b; border: 1px solid var(--rack-hi); transition: background 0.15s, border-color 0.15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mute); transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: #3d2f12; border-color: var(--amber); }
.switch input:checked + span::after { transform: translateX(22px); background: var(--amber); }
.switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }

/* resumen */
.summary { position: sticky; top: 84px; }
.sum-card { border-radius: 16px; background: var(--console); border: 1px solid var(--rack); padding: 24px; }
.sum-card h2 { font-size: 24px; margin-bottom: 14px; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 14px; font-size: 15px; max-height: 300px; overflow: auto; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: #c9d0d5; }
.sum-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #2c353c; font-size: 15.5px; color: #c5ccd2; }
.sum-row b { font-variant-numeric: tabular-nums; color: var(--paper); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 4px; border-top: 1px solid var(--rack-hi); margin-top: 4px; }
.sum-total span { font-weight: 600; }
.sum-total b { font-family: var(--display); font-size: 32px; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.saving { color: var(--pgm); font-size: 15px; margin: 4px 0 2px; font-weight: 600; }
.btn.wide { width: 100%; margin-top: 16px; }

/* pago */
.checkout { margin-top: clamp(36px, 5vw, 60px); max-width: 860px; }
.checkout h2 { font-size: clamp(28px, 3.4vw, 42px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 24px; }
.fields .span2 { grid-column: span 2; }
.field em { font-style: normal; color: var(--dim); margin-left: 6px; }
.field input:invalid.touched, .field input.bad { border-color: var(--tally); }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .fields .span2 { grid-column: auto; } }
.methods { border: 0; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.methods legend { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.method { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--rack-hi); background: var(--console); cursor: pointer; }
.method input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--amber); flex: none; }
.method b { display: block; font-size: 17px; }
.method small { display: block; color: var(--mute); font-size: 14.5px; margin-top: 2px; }
.method:has(input:checked) { border-color: var(--amber); background: #2d2618; }
.method.disabled { opacity: 0.5; cursor: not-allowed; }
.accept { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; color: #c9d0d5; font-size: 15.5px; }
.accept input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.terms { margin-top: 12px; padding: 16px; border-radius: 10px; background: #14181b; border: 1px solid var(--rack); color: #c3cad0; font-size: 14.5px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.co-actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 26px; }

/* página del pedido */
.order { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 40px; max-width: 900px; }
.order h1 { font-size: clamp(38px, 6vw, 72px); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: 30px; background: var(--console); border: 1px solid var(--rack-hi); font-weight: 600; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #f0a63026; }
.status.paid i, .status.done i { background: var(--pgm); box-shadow: 0 0 0 4px #5dbb6326; }
.status.cancel i { background: var(--tally); box-shadow: 0 0 0 4px #e5484d26; }
.status.wait i { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .status.wait i { animation: none; } }
.pay { margin-top: 30px; border-radius: 18px; padding: clamp(22px, 3vw, 34px); background: linear-gradient(120deg, #2b2416 0%, #262b2f 70%); border: 1px solid #4d3d1c; }
.pay h2 { font-size: clamp(24px, 3vw, 34px); }
.pay dl { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin: 22px 0 0; }
.pay dt { color: #d8c49a; font-size: 14.5px; }
.pay dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(22px, 2.5vw, 30px); display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; font-variant-numeric: tabular-nums; }
.copy { font: 600 13px/1 var(--body); padding: 7px 10px; border-radius: 7px; border: 1px solid #6b5527; background: transparent; color: #f3d9a2; cursor: pointer; }
.copy:hover { background: #3a2f17; }
.pay p { color: #d6cfc0; margin-top: 18px; }
@media (max-width: 640px) { .pay dl { grid-template-columns: 1fr; } }
.lic { margin-top: 30px; }
.lic h2 { font-size: clamp(24px, 3vw, 34px); }
.keys { list-style: none; padding: 0; margin: 18px 0 0; }
.keys li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rack); flex-wrap: wrap; }
.keys li span { color: #c9d0d5; }
.keys code { font: 700 17px/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.04em; color: var(--paper); }
.keys .k { display: flex; align-items: center; gap: 10px; }
.keys .copy { border-color: var(--rack-hi); color: #c5ccd2; }
.keys .copy:hover { background: var(--rack); }
.dl { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.recap { margin-top: 34px; }
.recap h2 { font-size: 22px; }
.recap table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15.5px; }
.recap td { padding: 9px 0; border-bottom: 1px solid #2a3238; color: #c9d0d5; }
.recap td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--paper); }
.recap tr.total td { font-weight: 700; font-size: 18px; border-bottom: 0; padding-top: 14px; }

/* Tienda en dos fases: productos principales y, después, duración y complementos */
.item[hidden], .pane[hidden], .main-card[hidden], .phase-go[hidden] { display: none; }
.step-n { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: 0.45em; border-radius: 50%; background: var(--amber); color: #241700; font-size: 0.62em; font-weight: 800; vertical-align: 0.18em; }
.mains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .mains { grid-template-columns: 1fr; } }
.main-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border: 1px solid var(--rack-hi); border-radius: 14px; background: var(--console); transition: border-color 0.15s, box-shadow 0.15s; }
.main-card.on { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.main-card h3 { font-family: var(--display); font-size: 24px; font-weight: 750; margin: 0; }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mc-price { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--amber); white-space: nowrap; }
.mc-price small { font-size: 13.5px; color: var(--mute); font-weight: 600; margin-left: 3px; }
.mc-desc { color: #c9d0d5; font-size: 15.5px; margin: 0; }
.main-card .included { grid-template-columns: 1fr; margin-top: 4px; }
.main-card .included li { font-size: 14.5px; }
.mc-ctl { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 12px; }
.mc-ctl .btn { width: 100%; justify-content: center; }
.mc-qty-l { color: var(--mute); font-size: 15px; }
.main-card.on .stepper { border-color: var(--amber); }
.phase-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.phase-go .hint { margin: 0; }
.step3-head { padding-bottom: 0; }
.sum-empty { color: var(--mute); }

.pay .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
