/* ══════════════════════════════════════════
   OUTLET DEL ELECTRO — styleform.css
   ══════════════════════════════════════════ */
:root {
  --primario: #002f49;
  --rojo: #c40000;
  --rojo-hover: #a50000;
  --gris-bg: #f2f3f5;
  --gris-borde: #e0e2e7;
  --texto: #1a1a2e;
  --texto-suave: #5a6272;
  --verde: #1a7f3c;
  --font: 'Barlow', Helvetica, sans-serif;
  --font-cond: 'Barlow Condensed', Helvetica, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gris-bg);
  color: var(--texto);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
}

/* ── BRAND ── */
.brand-outlet {
  color: var(--rojo);
  font-size: 28px;
}

.brand-del {
  font-size: 28px;
  opacity: .7;
  margin: 0 2px;
}

.brand-electro {
  color: var(--primario);
  font-size: 28px;
}

/* ── HEADER ── */
.form-header {
  background: #fff;
  border-bottom: 1px solid var(--gris-borde);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  font-size: 24px;
  text-decoration: none;
  line-height: 1;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--verde);
  background: #f0faf4;
  border: 1px solid #b6e8c9;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── STEPS BAR ── */
.steps-bar {
  background: #fff;
  border-bottom: 1px solid var(--gris-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}
.step-item.active { color: var(--primario); }
.step-item.done   { color: var(--verde); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gris-borde);
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-item.active .step-num { background: var(--rojo); color: #fff; }
.step-item.done   .step-num { background: var(--verde); color: #fff; }
.step-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--gris-borde);
  margin: 0 10px;
}

/* ── LAYOUT ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 36px auto 60px;
  padding: 0 24px;
  align-items: start;
}

/* ── INFO PANEL ── */
.info-panel {
  background: var(--primario);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: rgba(255,255,255,.85);
  position: sticky;
  top: 90px;
}
.info-logo {
  font-size: 26px;
  margin-bottom: 28px;
  line-height: 1;
}
.info-logo .brand-outlet,
.info-logo .brand-electro { color: #fff; }
.info-logo .brand-del { color: rgba(255,255,255,.55); }

.info-block {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.info-block:last-of-type { border-bottom: none; }
.info-icon-big { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.info-block strong { display: block; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.info-block p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.72); }

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}
.trust-row i { color: #4ade80; font-size: 14px; }

/* ── FORM PANEL ── */
.form-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gris-borde);
}

.form-step { display: flex; flex-direction: column; gap: 20px; }
.form-step.hidden { display: none; }

.step-title {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 800;
  color: var(--primario);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gris-bg);
  margin-bottom: 4px;
}
.step-title i { color: var(--rojo); font-size: 18px; }

/* ── FIELDS ── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
}
.req { color: var(--rojo); }

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-suave);
  font-size: 14px;
  pointer-events: none;
}
.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 38px !important;
}

input, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 400;
  color: var(--texto);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--primario);
  box-shadow: 0 0 0 3px rgba(0,47,73,.1);
}
input::placeholder { color: #b0b8c4; }
.select-wrap select { cursor: pointer; }

.field-error {
  font-size: 12px;
  color: var(--rojo);
  font-weight: 500;
  min-height: 16px;
}

/* ── BUTTONS ── */
.btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rojo);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
  margin-top: 6px;
}
.btn-next:hover { background: var(--rojo-hover, #a50000); transform: translateY(-1px); }

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--gris-borde);
  color: var(--texto-suave);
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-back:hover { border-color: var(--primario); color: var(--primario); }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  background: var(--primario);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: #004068; transform: translateY(-1px); }

/* ── TARJETA VISUAL ── */
.card-visual {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 85.6 / 54;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
  background: linear-gradient(135deg, #002f49 0%, #004f7c 55%, #006ba8 100%);
  margin: 0 auto 8px;
  user-select: none;
}
.card-visual::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.card-visual::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.card-content-overlay {
  position: absolute;
  inset: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-chip {
  height: 32px;
  width: auto;
  filter: brightness(1.2);
}
.card-brand-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  max-width: 80px;
  transition: opacity .2s;
}

.card-number-display {
  display: flex;
  gap: 14px;
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}
.card-number-display span {
  min-width: 4ch;
  transition: all .15s ease;
}

.card-holder-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-label-sm {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}
.card-holder-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── SECURITY NOTE ── */
.security-note {
  background: #f0faf4;
  border: 1px solid #b6e8c9;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}
.security-note > i { color: var(--verde); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.security-note strong { display: block; color: var(--verde); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.security-note ul { padding-left: 16px; color: var(--texto-suave); line-height: 1.8; }

/* ── CARD TYPE LABEL ── */
.card-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--verde);
  min-height: 18px;
}

/* ── PAYMENT LOGOS ── */
.payment-logos {
  display: flex;
  gap: 12px;
  align-items: center;
}
.payment-logos img {
  height: 26px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: .8;
}

/* ── SUCCESS ── */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 10px;
  gap: 16px;
}
.success-icon {
  font-size: 64px;
  color: var(--verde);
  animation: popIn .5s ease;
}
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.success-screen h2 {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 800;
  color: var(--primario);
}
.success-screen p {
  font-size: 15px;
  color: var(--texto-suave);
  max-width: 420px;
  line-height: 1.7;
}
.success-eta {
  background: #f0faf4;
  border: 1px solid #b6e8c9;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--verde);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; margin: 20px auto 40px; padding: 0 16px; }
  .info-panel { position: static; }
  .form-panel { padding: 24px 20px; }
  .steps-bar { gap: 0; padding: 12px 16px; }
  .step-item span { display: none; }
  .step-line { max-width: 40px; }
}

@media (max-width: 540px) {
  .form-header { padding: 0 16px; }
  .field-row { grid-template-columns: 1fr; }
  .card-number-display { gap: 8px; font-size: 16px; }
  .btn-row { flex-direction: column; }
  .btn-back { width: 100%; justify-content: center; }
}

/* ── ERROR STATE ── */
input.input-error,
select.input-error {
  border-color: var(--rojo) !important;
  box-shadow: 0 0 0 3px rgba(196, 0, 0, .1);
}
