/* Portal recaudo — layout tipo movistar.recaudo.epayco.co */
:root {
  --movistar-blue: #00a9e0;
  --movistar-blue-dark: #0193c9;
  --navy: #011e41;
  --text: #1a1a1a;
  --muted: #6c757d;
  --border-soft: #e2e8f0;
  --pill-bg: #eef2f6;
  --disabled: #c8c8c8;
  --orange-cta: #ff7a1a;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
}

/* ——— Header logo ——— */
.site-header {
  padding: 1.25rem 1rem 0.75rem;
  text-align: center;
  background: var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* ——— Split layout (50/50, ancho completo como referencia oficial) ——— */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 72px);
  margin: 0;
  align-items: stretch;
}

.panel-form {
  padding: 0.5rem 2rem 2.5rem;
  width: 100%;
  min-width: 0;
  background: var(--white);
}

/* Contenido del formulario centrado; la columna blanca sigue ocupando todo el ancho */
.form-stack {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Columna derecha: solo la imagen del arte (sin recorte tipo «zoom») */
.panel-promo {
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--movistar-blue);
  min-width: 0;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-promo-cover {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 72px);
  object-fit: contain;
  object-position: center center;
}

/* ——— Tabs operador ——— */
.tabs-wrap {
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 5px;
  display: flex;
  gap: 4px;
  margin-bottom: 1.75rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-pill {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  background: transparent;
  color: var(--movistar-blue);
}

.tab-pill.is-active {
  background: var(--movistar-blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 169, 224, 0.35);
}

.tab-pill:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ——— Título ——— */
.page-title {
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.page-title .thin-text {
  font-weight: 400;
}

.page-title strong {
  font-weight: 700;
}

/* ——— Móvil / Fija ——— */
.line-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-soft);
}

.line-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.line-toggle label {
  padding: 0.5rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  border: none;
  background: var(--white);
  color: var(--navy);
}

.line-toggle input:checked + label {
  background: var(--navy);
  color: var(--white);
}

.line-toggle label:last-of-type {
  border-left: 1px solid var(--border-soft);
}

/* ——— Campo pago automático ——— */
.field-rounded {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  background: #fafbfc;
}

.field-rounded .field-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.field-rounded input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
  color: var(--text);
}

.field-rounded input::placeholder {
  color: #94a3b8;
}

/* ——— Línea / teléfono subrayado ——— */
.field-underline-wrap {
  margin-bottom: 0.35rem;
}

.field-underline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0 0.5rem;
  border-bottom: 2px solid var(--navy);
}

.field-underline .field-icon {
  flex-shrink: 0;
  color: var(--navy);
  opacity: 0.85;
}

.field-underline input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
  padding: 0.25rem 0;
  min-width: 0;
}

.field-underline input::placeholder {
  color: #94a3b8;
}

.hint-muted {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 1.5rem;
  padding-left: 2rem;
}

/* ——— Botón principal ——— */
.btn-consult {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--disabled);
  cursor: not-allowed;
  margin-bottom: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-consult:not(:disabled) {
  background: var(--movistar-blue);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 169, 224, 0.35);
}

.btn-consult:not(:disabled):hover {
  background: var(--movistar-blue-dark);
}

.btn-consult:not(:disabled):active {
  transform: scale(0.99);
}

.link-help {
  display: block;
  text-align: center;
  color: var(--movistar-blue);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 2rem;
}

.link-help:hover {
  color: var(--navy);
}

/* ——— Footer ePayco ——— */
.form-footer-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.form-footer-secure .lock-ic {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.form-footer-secure strong {
  color: var(--text);
  font-weight: 700;
}

/* ——— Loader ——— */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
}

#loader.is-flex {
  display: flex;
}

/* ——— Responsive ——— */
@media (max-width: 991px) {
  .page-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .panel-promo {
    min-height: min(52vh, 480px);
    order: 2;
  }

  .panel-form {
    order: 1;
    padding: 0.5rem 1.25rem 2rem;
  }

  .panel-promo-cover {
    max-height: min(52vh, 480px);
  }

  .tabs-wrap {
    flex-wrap: wrap;
  }

  .tab-pill {
    font-size: 0.72rem;
    padding: 0.5rem 0.4rem;
  }
}
