/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

/* =========================
   CONTENEDORES
========================= */
.cont-Unifpse {
  padding: 0;
}

.pse-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 20px;
}

/* =========================
   HEADER
========================= */
.pse-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(to right, #184b7f, #8fa8c0);
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

.pse-logo {
  width: 55px;
  height: 55px;
}

.pse-header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.3rem;
}

/* =========================
   BANNER
========================= */
.banner {
  width: 100%;
  background: linear-gradient(90deg,
    #184475 0%, #3C618A 10%, #7690AD 28%, #A7B8CA 45%, #CDD6E1 62%,
    #E8ECF1 77%, #F9FAFB 90%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 25px;
  margin: 20px auto;
  text-align: center;
}

.banner img {
  height: 55px;
  margin-bottom: 10px;
}

.banner h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  color: #FCBA0C;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  margin: 0;
}

/* =========================
   TABS
========================= */
.pse-tabs {
  display: flex;
  flex-direction: column;
  background-color: #EBEBEC;
  border-radius: 10px;
  margin: 10px auto;
  padding: 3px;
  width: 100%;
}

.tab {
  background: #EBEBEC;
  border: none;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #989899;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0;
  width: 100%;
}

.tab.active {
  background: #fff;
  color: #6b6b6b;
}

.tab:hover {
  background: #fff;
}

/* =========================
   CONTENIDO
========================= */
.pse-content,
.pse-express-content {
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  margin: auto;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   FORMULARIOS
========================= */
.input-container {
  width: 100%;
  margin: 20px auto;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f1f1f1;
}

.input-group .icon {
  background: #f1f1f1;
  padding: 12px;
}

.input-group input,
.input-group select {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  background-color: #f9f9f9;
}

/* =========================
   BOTONES
========================= */
.btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.btn:hover {
  background: var(--primary-hover);
  color : #fff;
}

/* =========================
   TEXTO Y MENSAJES
========================= */
.pse-content-title {
  text-align: center;
  color: #6b6b6b;
  font-weight: bold;
  padding-bottom: 10px;
  margin-top: 30px;
}

.pse-content-text {
  text-align: center;
  color: #6b6b6b;
  line-height: 1.6;
  width: 100%;
  margin: auto;
  padding: 0 10px;
}

.message-box {
  margin-bottom: 1rem;
}

.message {
  color: #495057;
  line-height: 1.5;
  margin: 0;
}

/* =========================
   CHECKS
========================= */
.accept-terms {
  margin-top: 1rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.form-check-label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* =========================
   EXTRAS
========================= */
.mostrarOcultarPass {
  cursor: pointer;
  padding: 2px 10px;
  color: rgb(90, 90, 90);
  background-color: #f9f9f9;
}

.history-icon {
  font-size: 20px;
  color: #fff;
}

/* =========================
   TABLET ≥ 768px
========================= */
@media (min-width: 768px) {
  .tab{
    margin: 3px;
  }
  .pse-container {
    padding: 30px;
  }

  .pse-header {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .pse-header h1 {
    font-size: 1.6rem;
  }

  .banner {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .banner img {
    margin-bottom: 0;
    margin-right: 20px;
  }

  .pse-tabs {
    flex-direction: row;
  }

  .tab {
    width: 50%;
    font-size: 20px;
  }

  .input-container {
    max-width: 60%;
  }

  .pse-content-text {
    max-width: 70%;
  }
}

/* =========================
   DESKTOP ≥ 1200px
========================= */
@media (min-width: 1200px) {
  .pse-container {
    max-width: 900px;
    padding: 40px;
  }

  .input-container {
    max-width: 20%;
  }

  .pse-content-text {
    max-width: 60%;
  }
}


/* PSE CONVENIOS */

.titulo-convenio{
  font-size: 25px;
  color: #6b6b6b;
}

.subtitulo-convenio{
  font-size: 14px;
  color: #6b6b6b;
}

.label-form-convenio{
  color: #6b6b6b;
  text-transform: uppercase;
}

.input-form-convenio{
  border-radius: 8px;
  background-color: #f9f9f9 !important;
  color: #6b6b6b !important;
}

#btnCancelar{
  background-color: #DC3545;
}

.card-info-pago{
  border-radius: 10px;
  border-color: #0500CC
}

.label-info-pago{
  color: #1758D2;
  margin-bottom: 1px;
}

.p-info-pago{
  margin-bottom: 1px;
}

.icon-info-pago{
  font-size: 40px;
  color: #1758D2;
  text-align: end;
}

.card-info-pago label{
  text-transform: uppercase;
  margin-right: 10px;
}

.div-total-pagar {
  background-color: #DBDBDB;
  padding: 5px;
  border-radius: 5px;
}

.inicialPSE input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #6b6b6b;
}

.inicialPSE label{
  color: #6b6b6b;
  text-transform: uppercase;
}

/*MODAL HISTORIAL*/

/* ===========================
   MODAL HISTORIAL PSE
=========================== */

.modal-historial .modal-dialog {
  max-width: 900px;
  margin: 1rem auto;
}

.modal-historial .modal-content {
  border-radius: 12px;
}

.modal-historial h4{
  color : #6b6b6b;
}

/* ===========================
   MOBILE FIRST
=========================== */
@media (max-width: 768px) {

  /* Modal pantalla completa */
  .modal-historial .modal-dialog {
    max-width: 100%;
    height: 100%;
    margin: 0;
  }

  .modal-historial .modal-content {
    height: 100%;
    border-radius: 0;
  }

  .modal-historial .modal-body {
    overflow-y: auto;
  }

  /* Título */
  .modal-historial .modal-title {
    font-size: 16px;
    text-align: center;
  }

  /* Tabla en formato CARD */
  .tabla-historial thead {
    display: none;
  }

  .tabla-historial tbody tr {
    display: block;
    background: #f8f9fb;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }

  .tabla-historial tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
    font-size: 13px;
  }

  .tabla-historial tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b6b6b;
  }

  /* Footer botones */
  .modal-footer {
    justify-content: center;
  }

  .modal-footer .btn {
    width: 100%;
    font-size: 15px;
  }

  /* Paginación */
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Mostrar los tr como columnas */
    #tabla-productos tbody {
        display: block;
        width: 100%;
        overflow: hidden; /* Para evitar que el contenido se desborde horizontalmente */
    }

    /* Estilo para cada tr dentro del tbody */
    #tabla-productos tbody tr {
        display: flex;
        flex-direction: column; /* Asegura que cada tr se muestre verticalmente */
        width: 100%;
    }

  .tabla-productos-pse tbody {
        display: block;
        width: 100%;
        overflow: hidden; /* Para evitar que el contenido se desborde horizontalmente */
    }

    .tabla-productos-pse tbody tr {
        display: flex;
        flex-direction: column; /* Asegura que cada tr se muestre verticalmente */
        width: 100%;
    }

    .producto-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  }

  .producto-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
  }

  .producto-linea:last-child {
    border-bottom: none;
  }

  .producto-linea span {
    color: #6b6b6b;
    font-weight: 600;
    font-size: 13px;
  }

  .producto-linea strong {
    color: #333;
  }

  .producto-linea input[type="text"] {
    max-width: 140px;
  }

  .producto-linea input[type="checkbox"] {
    transform: scale(1.2);
  }
}

/* ===========================
   DESKTOP
=========================== */
@media (min-width: 769px) {

  .table-responsive-productos {
    overflow-x: auto;
  }

  .tabla-historial tbody tr {
    display: table-row;
  }

  .tabla-historial tbody td {
    display: table-cell;
  }

  #tabla-productos {
    font-size: 15px;
  }

  #tabla-productos tbody tr {
    display: table-row;
  }

  #tabla-productos tbody td {
    display: table-cell;
    border-bottom: 1px solid #eee;
  }

  .tabla-productos-pse tbody td::before {
    display: none;
  }

  .tabla-productos-pse {
    font-size: 15px;
  }

  .tabla-productos-pse tbody tr {
    display: table-row;
  }

  .tabla-productos-pse tbody td {
    display: table-cell;
    border-bottom: 1px solid #eee;
  }

  .tabla-productos-pse tbody td::before {
    display: none;
  }
}

.table-responsive-productos {
  width: 70%;
  overflow-x: auto;
  border-radius: 15px;
  background-color: #fff;
  margin: auto;
  padding: 5px;
  border-radius: 30px;
}


/* Tabla base */
#tabla-productos {
  width: 100%;
  border-collapse: collapse;
  background-color: #eff0f5;
  border-radius: 15px;
  text-align: center;
  font-size: 15px;
}

#tabla-productos {
  width: 100%;
  border-collapse: collapse;
}

#tabla-productos thead th {
  background-color: #e6e6e6;
  color: #6b6b6b;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

#tabla-productos tbody td {
  padding: 10px;
  color: #6b6b6b;
  vertical-align: middle;
}

.tabla-productos-pse {
  width: 100%;
  border-collapse: collapse;
  background-color: #eff0f5;
  border-radius: 15px;
  text-align: center;
  font-size: 15px;
}

.tabla-productos-pse {
  width: 100%;
  border-collapse: collapse;
}

.tabla-productos-pse thead th {
  background-color: #e6e6e6;
  color: #6b6b6b;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.tabla-productos-pse tbody td {
  padding: 10px;
  color: #6b6b6b;
  vertical-align: middle;
}

tbody th.txt-subtitulo {
    color: #6b6b6b;
    font-weight: 600;
    font-size: 13px;
  }

.txt-subtitulo{
	text-align:center;
	font-weight:bold;
	font-size: 15px;
	color: #6b6b6b !important;
}

.style-columna {
    padding: 5px 5px 5px 5px;
    text-align: center;
}

.columnaNumeroProducto {
  background-color: #eff0f5 !important;
  color: #0074E8 !important;
  font-weight: bold;
}

.columnaTipoProducto {
  background-color: #e4eaef !important;
}

.columnaCuota {
  background-color: #eff0f5 !important;
}

.valorPagar {
  background-color: #e4eaef !important;
}

.modal-footer{
  border: 0;
}

.btn-cancelarHistorial{
  color: #fff;
  border: none;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  background: linear-gradient(45deg, #FF1B15, #AA2F00);
}

.btn-cancelarHistorial:hover{
  background: linear-gradient(45deg, #AA2F00, #FF1B15);;
}

.pse-content-p{
  text-align: center;
  font-weight: 500;
  color: #6b6b6b;
}

.tituloProductosPse {
  text-align: center;
  font-size: 12px;
  margin: 10px 0;
  color: #6b6b6b !important;
  text-transform: uppercase;
}

.valorPagarInput {
    border-radius: 8px;
    background-color: #e6e6e6 !important;
    color: #6b6b6b !important;
}

.checkPagar{
  background-color: #eff0f5 !important;
}

.checkPagarPse{
  background-color: #eff0f5 !important;
}

.TotalPagar {
    font-weight: bold;
    font-size: 15px;
    color: #6b6b6b !important;
}
