/* ===== Betta Soluciones — Mi pedido (checkout) =====
   Reusa las variables y botones de styles-v2.css. */

/* Encabezado */
.pedido-head { position: relative; overflow: hidden; padding: 64px 0 28px; text-align: center; }
.pedido-head__glow { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(720px 380px at 50% -10%, rgba(255,106,0,.30), transparent 62%),
              linear-gradient(180deg, var(--bg), var(--bg-2)); }
.pedido-head .wrap { position: relative; z-index: 1; }
.pedido-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: .5px; margin: 10px auto 18px; max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.pedido-head h1 .hl { background: linear-gradient(96deg, var(--orange) 10%, var(--orange-soft) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255,106,0,.35)); }
.pedido-head__sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.pedido-head__sub strong { color: var(--text); }

/* Layout 2 columnas */
.pedido { padding-top: 8px; }
.pedido__grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
.pedido__main { display: flex; flex-direction: column; gap: 20px; }

/* Tarjetas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.card__lead { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* Calculadora por m³ */
.calc { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; }
.calc input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  padding: 12px 14px; font-size: 1rem; font-family: inherit; }
.calc input:focus { outline: none; border-color: var(--orange); }
.calc .btn { padding: 12px 22px; background: rgba(255,106,0,.12); border-color: var(--orange); color: var(--orange-soft); font-weight: 700; }
.calc .btn:hover { background: rgba(255,106,0,.22); color: var(--orange-soft); }
.calc__out { margin-top: 14px; }
.calc__hint { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.calc__hint strong { color: var(--text); }
.calc__hint.is-error { color: #ff8a8a; }
.calc__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__opt { background: rgba(255,106,0,.08); border: 1px solid rgba(255,106,0,.3); color: var(--text);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem; font-family: inherit;
  transition: background .2s, transform .2s; }
.calc__opt:hover { background: rgba(255,106,0,.18); transform: translateY(-1px); }
.calc__opt strong { color: var(--orange-soft); }

/* Producto en lista */
.prod { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line); }
.prod:first-of-type { border-top: 0; }
.prod img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.prod__info h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod__star { font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 600; color: var(--orange-soft);
  background: rgba(255,106,0,.12); border: 1px solid rgba(255,106,0,.3); padding: 2px 8px; border-radius: 999px; letter-spacing: .3px; }
.prod__info p { color: var(--muted); font-size: .88rem; margin: 2px 0 6px; }
.prod__price { font-weight: 700; font-size: 1.05rem; }
.prod__price em { color: var(--muted); font-style: normal; font-size: .8rem; font-weight: 500; }

/* Stepper de cantidad */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.qty button { width: 38px; height: 38px; border: 0; background: none; color: var(--text); font-size: 1.3rem; cursor: pointer; border-radius: 999px; transition: background .2s; }
.qty button:hover { background: rgba(255,106,0,.18); color: var(--orange-soft); }
.qty__input { width: 44px; text-align: center; border: 0; background: none; color: var(--text); font-size: 1.05rem; font-weight: 700; font-family: inherit; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

/* Formulario de datos */
.form__row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.form__row input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  padding: 12px 14px; font-size: 1rem; font-family: inherit; }
.form__row input:focus { outline: none; border-color: var(--orange); }
.form__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Resumen lateral (sticky) */
.pedido__side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.resumen__lines { list-style: none; margin: 6px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.resumen__lines li { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; }
.resumen__empty { color: var(--muted); font-size: .9rem; }
.resumen__totals { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.resumen__row { display: flex; justify-content: space-between; color: var(--muted); font-size: .95rem; }
.resumen__row strong { color: var(--text); }
.resumen__row--big { font-size: 1.15rem; margin-top: 4px; }
.resumen__row--big span, .resumen__row--big strong { color: var(--text); font-weight: 700; }

/* Caja de pago */
.paybox { margin-top: 18px; }
.paybox__opt { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.paybox__opt--alt { border-color: rgba(255,106,0,.3); }
.paybox__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; gap: 8px; }
.paybox__head strong { color: var(--orange-soft); font-size: 1.15rem; }
.paybox__off { font-style: normal; background: var(--orange); color: #fff; font-size: .72rem; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.paybox__hint { color: var(--muted); font-size: .82rem; margin: 6px 0 10px; }
.paybox__save { color: #6fd49a; font-size: .84rem; font-weight: 600; margin: 0 0 12px; }
.paybox__save strong { color: #8ce8b6; }
.paybox__or { text-align: center; position: relative; margin: 12px 0; }
.paybox__or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.paybox__or span { position: relative; background: var(--surface); padding: 0 12px; color: var(--muted); font-size: .85rem; }
.pay-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.pago-note { margin-top: 12px; font-size: .9rem; min-height: 1.2em; }
.pago-note.is-ok { color: #7ee0a8; }
.pago-note.is-error { color: #ff8a8a; }
.paycta-trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 16px 0 4px;
  padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.paycta-trust li { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .82rem; font-weight: 500; }
.paycta-trust svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange-soft); }

.resumen__safe { margin-top: 12px; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.side-help { display: block; text-align: center; color: var(--orange-soft); font-size: .9rem; font-weight: 600; padding: 6px; }
.side-help:hover { color: var(--orange); }

/* Modal transferencia */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px); padding: 20px; }
.modal.open { display: flex; }
.modal__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  max-width: 460px; width: 100%; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--text); }
.modal__box h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; }
.modal__lead { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.modal__lead strong { color: var(--orange-soft); }
.bankdata { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bankdata li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .95rem; }
.bankdata li > span { color: var(--muted); }
.bankdata li > div { display: flex; align-items: center; gap: 10px; text-align: right; }
.copy { background: rgba(255,106,0,.12); border: 1px solid rgba(255,106,0,.3); color: var(--orange-soft);
  font-size: .75rem; padding: 4px 10px; border-radius: 999px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.copy:hover { background: rgba(255,106,0,.22); }
.modal__aviso { display: none; color: #ffcf8a; font-size: .82rem; margin-bottom: 14px; }

/* Footer (reusa .foot de styles-v2; aseguramos grid si hace falta) */
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 24px; padding: 48px 0 28px; }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__logo { height: 44px; background: #fff; border-radius: 9px; padding: 4px 8px; }
.foot__copy { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: .85rem; }

/* WhatsApp flotante (reusa estilo del sitio si existe; fallback) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* Responsive */
@media (max-width: 920px) {
  .pedido__grid { grid-template-columns: 1fr; }
  .pedido__side { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .calc { grid-template-columns: 1fr 1fr; }
  .calc .btn { grid-column: 1 / -1; }
  .form__grid2 { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 64px 1fr; }
  .prod img { width: 64px; height: 64px; }
  .prod .qty { grid-column: 2 / 3; justify-self: start; }
  .foot__grid { grid-template-columns: 1fr; }
}

.pedido-trust { list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; margin:20px auto 0; max-width:760px; padding:0; }
.pedido-trust li { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.88rem; }
.pedido-trust svg { width:17px; height:17px; color:var(--orange-soft); flex:0 0 auto; }
.pedido-trust strong { color:var(--text); font-weight:600; }
.faq--checkout details { background:var(--bg-2); }
