/*
 * Formulario público — estilo Webpay
 */
.public-page { background: #f5f5f7; }

/* ── Header ── */
.public-header {
  height: 64px;
  padding: 0 max(5vw, 32px);
  display: flex;
  align-items: center;
  background: #fff;
  position: relative;
}
.public-header::before {
  content: ;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 15px;
  background: linear-gradient(90deg, #7a0f74 0% 70%, #f70076 70% 80%, #76106f 80% 100%);
}

.public-header .main-logo { height: 26px; width: auto; }

.public-page .wrap {
  width: min(820px, calc(100% - 32px));
  margin: 28px auto 0;
}

/* ── Shell ── */
.client-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

/* ── Columna izquierda ── */
.client-side {
  padding: 32px 36px;
  background: #fff;
  border-right: 1px solid #ebedf5;
  color: #1b284d;
  display: flex;
  flex-direction: column;
}
.client-side .muted-logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9fa8c0;
  margin-bottom: 10px;
}
.client-side .big-logo {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 800;
  color: #1b284d;
}
.client-side h2 {
  margin: 0 0 20px;
  font-size: 15px;
  color: #6b7592;
  font-weight: 500;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #f32cc8;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1b284d;
}
.feature-card .badge-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #7a0f74;
}
.feature-card small {
  display: block; margin-top: 3px;
  font-size: 12px; font-weight: 500; color: #9fa8c0;
}
.more-link {
  display: block; margin-top: auto; padding-top: 40px;
  color: #7a0f74; font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none;
}

/* ── Columna derecha ── */
.client-form-area {
  padding: 24px 32px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.client-form-area > * { width: 100%; }

.client-form-area h1 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: #7a0f74;
  text-align: center;
  letter-spacing: -.01em;
}

/* ── Tarjeta preview ── */
.client-number-reference {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 16px;
}
.client-card-preview {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dde1ee;
  box-shadow: 0 6px 24px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
  overflow: hidden;
}

/* Icono banco — centrado arriba */
.client-card-bank-icon {
  position: absolute;
  top: 18px;
  left: 14px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: .75;
}
.client-card-type {
  position: absolute;
  top: 20px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #a0a9c0;
  letter-spacing: .03em;
}

/* Número — centrado */
.client-card-number {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #c0c8dc;
  white-space: nowrap;
}
.client-card-number.has-value { color: #2d3a5a; }

/* Fecha — abajo izquierda */
.client-card-date {
  position: absolute;
  bottom: 18px; left: 18px;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; color: #c0c8dc;
}
.client-card-date.has-value { color: #2d3a5a; }

/* Icono tarjeta — abajo derecha */
.client-card-utility {
  position: absolute;
  bottom: 14px; right: 16px;
  width: 36px; height: auto;
}
.client-card-utility img {
  display: block; width: 100%; height: auto;
  object-fit: contain; opacity: .55;
}

/* ── Campos ── */
.client-form-area form { width: 100%; }

.client-form-area label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8a94b0;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Input con icono izquierdo */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .input-left-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  object-fit: contain; opacity: .45;
  pointer-events: none;
}
.input-icon-wrap input { padding-left: 42px !important; }

.client-form-area input {
  height: 42px;
  border: 1px solid #dde1ee;
  border-radius: 8px;
  background: #fff;
  color: #1b284d;
  font-size: 15px;
  font-weight: 500;
  padding: 0 14px;
  transition: border-color .15s;
}
.client-form-area input:focus {
  border-color: #c020b0;
  box-shadow: 0 0 0 3px rgba(194,32,176,.1);
  outline: none;
}
.client-form-area input::placeholder { color: #c8cedd; }

.client-form-area .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Botón: centrado, ancho parcial */
.client-form-area button {
  display: block;
  width: 90%;
  height: 44px;
  margin: 16px auto 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(100deg, #7c1177, #b0148a);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .15s;
}
.client-form-area button:hover { opacity: .9; }

/* ── Logos redes de pago ── */
.payment-networks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.payment-networks img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: .75;
  filter: grayscale(.2);
}

/* ── Pie ── */
.client-security {
  margin: 20px 0 0;
  color: #9fa8c0;
  font-size: 11px;
  text-align: center;
}
.client-security b { color: #0876ed; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .public-header { height: 54px; padding: 0 20px; }
  .public-header .main-logo { height: 26px; width: auto; }

.public-page .wrap { width: calc(100% - 24px); margin-top: 20px; }
  .client-shell { grid-template-columns: 1fr; }
  .client-side { padding: 32px 24px; border-right: none; border-bottom: 1px solid #ebedf5; }
  .client-form-area { padding: 32px 24px; }
  .client-form-area .form-row { grid-template-columns: 1fr; }
  .more-link { padding-top: 24px; }
}

.payment-networks img[alt='Webpay'] { height: 16px; }

/* ── Header gradient 3 colores (Webpay style) ── */
.public-header::before {
  background: linear-gradient(90deg, #7a0f74 0% 65%, #f70076 65% 78%, #00c8c8 78% 100%) !important;
}

/* ── Columna izquierda Webpay ── */
.paying-label {
  font-size: 12px; color: #9fa8c0; margin: 0 0 8px; font-weight: 500;
}
.merchant-logo {
  display: block; max-height: 40px; max-width: 140px;
  object-fit: contain; margin-bottom: 20px;
}
.amount-row {
  margin-bottom: 24px;
}
.amount-label {
  display: block; font-size: 12px; color: #9fa8c0; margin-bottom: 4px;
}
.amount-value {
  display: block; font-size: 28px; font-weight: 700; color: #1b284d; letter-spacing: -.02em;
}
.method-label {
  font-size: 13px; color: #6b7592; margin: 0 0 12px; font-weight: 500;
}
.feature-card.selected {
  background: #fff;
  box-shadow: 0 2px 10px rgba(243,44,200,.15);
}
