/* Pago con PayU (comprar/payu/index.php).
   La paleta (--aw-*, --navy, --gray-*), los botones (.btn--aw, .btn--line) y el header vienen de
   /pag-web/css/index/principal.css; aquí solo va lo propio de esta página, con prefijo "pg-". */

:root { --pg-error: #C62828; }

/* ===== Hero ===== */
.pg-hero { background: linear-gradient(160deg, var(--aw-pale) 0%, #fff 70%); text-align: center; padding: 56px 0 64px; }
.pg-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -.015em; color: var(--navy); margin-top: 18px; }
.pg-hero h1 em { font-style: normal; color: var(--aw-deep); }
.pg-hero p { max-width: 680px; margin: 16px auto 0; font-size: 18px; line-height: 1.55; }

/* ===== Sección del formulario ===== */
.pg-sec { background: var(--gray-50); padding: 56px 0 72px; }
/* Sin align-items: las columnas comparten el alto de la fila (lo marca el formulario) */
.pg-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; }
.pg-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; box-shadow: var(--sh-md); padding: 24px; }
.pg-form { padding: 32px; }
.pg-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); }

/* Indicador de pasos */
.pg-pasos { display: flex; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.pg-pasos li { flex: 1; }
.pg-paso { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; font: inherit; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md); transition: background .15s, border-color .15s; }
.pg-paso__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-200); color: var(--gray-700); font-weight: 700; font-size: 14px; transition: .15s; }
.pg-paso__t { font-weight: 600; font-size: 14px; color: var(--gray-700); }
.pg-paso[aria-current="step"] { background: #EEF7E8; border-color: var(--aw-btn); }
.pg-paso[aria-current="step"] .pg-paso__n { background: var(--aw-deep); color: #fff; }
.pg-paso[aria-current="step"] .pg-paso__t { color: var(--aw-deep); }
.pg-paso:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(26,99,15,.3); }

/* Campos */
.pg-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pg-form fieldset[hidden] { display: none; }
.pg-form legend { padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.pg-ayuda { font-size: 14px; margin-bottom: 24px; }
.pg-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg-campo--full { grid-column: 1 / -1; }
.pg-campo label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.pg-req { color: var(--pg-error); }
.pg-campo input, .pg-campo select { width: 100%; padding: 10px 16px; font: inherit; font-size: 16px; color: var(--navy); background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s; }
.pg-campo input::placeholder { color: var(--gray-500); }
.pg-campo input:focus, .pg-campo select:focus { outline: none; border-color: var(--aw-btn); box-shadow: 0 0 0 3px rgba(131,204,95,.3); }
.pg-campo [aria-invalid="true"] { border-color: var(--pg-error); }
.pg-nota { margin-top: 6px; font-size: 14px; }
.pg-error { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--pg-error); }

/* Botones del formulario */
.pg-acciones { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pg-acciones--fin { justify-content: flex-end; }
.pg-form .btn svg, .pg-modal .btn svg { width: 18px; height: 18px; flex: none; }
.btn { cursor: pointer; border: 0; }
.btn--line { border: 1.5px solid var(--aw-btn); }
.btn:disabled { opacity: .5; pointer-events: none; }

/* Panel lateral */
.pg-lateral { display: flex; flex-direction: column; gap: 16px; }
.pg-seguro { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.pg-seguro li { display: flex; gap: 12px; }
.pg-seguro p { font-size: 14px; line-height: 1.5; }
.pg-seguro strong { color: var(--navy); font-weight: 600; }
.pg-icono { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #EEF7E8; color: var(--aw-deep); }
.pg-icono svg { width: 20px; height: 20px; }
/* flex: 1 absorbe el alto sobrante; el contenido se centra para no acumularlo abajo */
.pg-ayuda-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pg-ayuda-card > p { margin-top: 8px; font-size: 14px; }
.pg-ayuda-card dl { display: flex; flex-direction: column; gap: 16px; margin: 16px 0 0; font-size: 14px; }
.pg-ayuda-card dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-700); }
.pg-ayuda-card dd { margin: 4px 0 0; }
.pg-ayuda-card a { font-weight: 600; color: var(--aw-deep); word-break: break-all; }
.pg-ayuda-card a:hover { text-decoration: underline; }

/* Aviso de póliza */
.pg-poliza { max-width: 672px; margin: 32px auto 0; padding: 32px; text-align: center; background: #EEF7E8; border: 1px solid var(--aw-pale); border-radius: 20px; }
.pg-poliza h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); }
.pg-poliza p { max-width: 448px; margin: 8px auto 20px; font-size: 14px; }
.pg-poliza .btn { font-size: 14px; padding: 10px 24px; }

/* ===== Modales ===== */
.pg-modal { width: 92%; max-width: 512px; max-height: 90dvh; margin: auto; padding: 0; overflow-y: auto; color: var(--gray-700);
  border: 1px solid var(--gray-200); border-radius: 20px; box-shadow: var(--sh-lg); }
.pg-modal--ancho { max-width: 672px; }
.pg-modal::backdrop { background: rgba(9,81,13,.45); }
.pg-modal__in { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.pg-modal h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.pg-modal p { font-size: 14px; line-height: 1.55; }
.pg-resumen { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; padding: 16px; font-size: 14px; background: #EEF7E8; border-radius: var(--r-md); }
.pg-resumen dt { font-weight: 600; color: var(--navy); }
.pg-resumen dd { margin: 0; text-align: right; }
.pg-resumen__valor { font-weight: 700; color: var(--aw-deep); }
.pg-modal__acciones { display: flex; justify-content: flex-end; gap: 12px; }
.pg-modal__acciones .btn { font-size: 14px; padding: 10px 24px; }
.pg-video { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--r-md); }
.pg-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .pg-grid { grid-template-columns: 1fr; }
  .pg-hero h1 { font-size: 36px; }
}
@media (max-width: 620px) {
  .pg-hero { padding: 40px 0 48px; }
  .pg-hero h1 { font-size: 30px; }
  .pg-hero p { font-size: 16px; }
  .pg-sec { padding: 40px 0 56px; }
  .pg-form, .pg-poliza, .pg-modal__in { padding: 24px; }
  .pg-campos { grid-template-columns: 1fr; }
  .pg-pasos { gap: 8px; }
  .pg-paso { flex-direction: column; text-align: center; gap: 6px; }
  .pg-acciones, .pg-modal__acciones { flex-direction: column-reverse; }
  .pg-acciones .btn, .pg-modal__acciones .btn { width: 100%; }
}
