/* === CSS RESPONSIVO PARA PAGAR AHORA === */

/* Estilos base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: #4F5155;
  background-image: url('../img/fondo-smalls.png');
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

#container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.btn-regresar {
  background-image: url('../img/btnRegresar.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 64px;
  height: 64px;
  border: none;
  background-color: transparent;
  position: absolute;
  top: 25rem;
  right: 1rem;
}

.btn-regresar:hover {
  background-image: url('../img/btnRegresarOn.png');
  cursor: pointer;
}

#tabs ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0;
  list-style-type: none;
  margin: 0 0 1rem 0;
}

#tabs ul li {
  flex: 1 1 30%;
  height: 97px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: none;
  margin: 0.5rem;
  position: relative;
}

#liNombre {
  background-image: url('../img/busquedaNombre.png');
}

#liNombre.ui-state-active {
	background-color: transparent !important;
  background-image: url('../img/busquedaNombreOn.png') !important;
}

#liContrato {
  background-image: url('../img/busquedaContrato.png');
}

#liContrato.ui-state-active {
	background-color: transparent !important;
  background-image: url('../img/busquedaContratoOn.png') !important;
}

#liCotitular {
  background-image: url('../img/busquedaCotitular.png');
}

#liCotitular.ui-state-active {
	background-color: transparent !important;
  background-image: url('../img/busquedaCotitularOn.png') !important;
}

.tab-busqueda {
  display: block;
  width: 100%;
  height: 100%;
  color: transparent !important;
}

.tab-datos {
  margin-top: 2rem;
}

.txt-dato-busqueda {
  width: 100%;
  height: 60px;
  font-size: 1.5rem;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.btn-buscar {
  display: inline-block;
  background-image: url('../img/btnBuscar.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 81px;
  height: 78px;
  border: none;
  background-color: transparent;
  margin-left: 1rem;
}

.btn-buscar:hover {
  background-image: url('../img/btnBuscarOn.png');
  cursor: pointer;
}

/*#resultado {
  margin-top: 2rem;
  background-image: url('../img/resultado.png');
  background-repeat: no-repeat;
  background-size: cover;
  padding: 1rem;
  font-size: 1rem;
}*/

#resultado {
  background-color: white;
  border: 1px solid #cccccc;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
   /* Nuevas propiedades para altura */
    min-height: 50vh; /* al menos 60% del alto de la pantalla */
    max-height: 90vh; /* nunca más del 90% */
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
  #resultado {
    padding: 20px 15px;
    border-radius: 15px;
    margin-top: 20px;
  }
}

#footer {
  text-align: center;
  font-size: 1.25rem;
  margin: 2rem 0;
}

/* Botones de pago */
#btnTarjeta, #btnPayPal, #btnUSA {
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  max-width: 377px;
  height: 116px;
  border: none;
  background-color: transparent;
  margin: 1rem auto;
  display: block;
  cursor: pointer;
}

#btnTarjeta {
  background-image: url('../img/pagoTarjeta.png');
}
#btnTarjeta:hover {
  background-image: url('../img/pagoTarjetaOn.png');
}

#btnPayPal {
  background-image: url('../img/pagoPayPal.png');
}
#btnPayPal:hover {
  background-image: url('../img/pagoPayPalOn.png');
}

#btnPayPal.disabled, #btnPayPal.disabled:hover {
		background-image: url(../img/pagoPayPalOf.png);
		cursor: default;
	}

#btnUSA {
  background-image: url('../img/pagoUSA.png');
}
#btnUSA:hover {
  background-image: url('../img/pagoUSAOn.png');
}

#btnUSA.disabled, #btnUSA.disabled:hover {
		background-image: url(../img/pagoUSAOf.png);
		cursor: default;
	}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  #tabs ul {
    flex-direction: column;
  }

  #tabs ul li {
    flex: none;
    width: 100%;
  }

  .txt-dato-busqueda {
    height: 50px;
    font-size: 1.2rem;
  }

  .btn-buscar {
    margin-left: 0;
    margin-top: 1rem;
  }

  #footer {
    font-size: 1rem;
  }
}

.contenedor-busqueda {
  padding: 1rem;
}

.tabs-busqueda {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1 1 30%;
  text-align: center;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 1rem;
  font-weight: bold;
  color: #08425e;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.tab:hover {
  border-color: #08425e;
}

.tab.activo {
  background: #08425e;
  color: white;
}

.form-busqueda {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.form-busqueda input {
  flex: 1 1 60%;
}

.form-busqueda .btn-buscar {
  flex: 0 0 64px;
  height: 64px;
  background-image: url('../img/btnBuscar.png');
  background-repeat: no-repeat;
  background-size: cover;
  border: none;
  background-color: transparent;
}

.form-busqueda .btn-buscar:hover {
  background-image: url('../img/btnBuscarOn.png');
  cursor: pointer;
}

.datos-cliente {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.datos-cliente .grupo {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.datos-linea {
  display: flex;
  flex-direction: column;
}

.datos-linea label {
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.datos-linea input {
  font-size: 16px;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#divTabla {
 height: auto;
  max-height: calc(100vh - 600px); /* Ajusta según el diseño */
  overflow-y: auto;
  overflow-x: auto;
  padding: 0;
  margin-bottom: 20px;
}

.tabla-scroll {
  min-width: 600px;
}

.tabla-facturas {
  width: 100%;
  border-collapse: collapse;
}

.tabla-facturas th,
.tabla-facturas td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.tabla-facturas tr:hover {
  background-color: #f0f0f0;
}

.tabla-facturas tr:hover.seleccionado{
	    background-color: #a2ded9;
	}

	.seleccionado{
	    background-color: #a2ded9;
	}


.tabla-facturas tr:hover.seleccionado-rojo{
	    background-color: #fdc0c0;
	}

.seleccionado-rojo{
	    background-color: #fdc0c0;
	}
	
.btn-pagar {
  position: sticky;
  bottom: 10px;
  z-index: 1000;
}

.btn-pagar {
  width: 100%;
  max-width: 100%;
  display: block;
  background-color: #08425e; /* azul oscuro */
  color: white;
  border: none;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.btn-pagar:hover {
  background-color: #0a5d85; /* azul más claro al pasar el mouse */
}
  #Mensaje{
      font-size: 26px;
      font-weight: bold;
      text-align: left;
      padding-bottom: 0px;
  }

  #msjError{
      color: #e13300;
      text-align: center;
  }

  .encabezado-principal {
  background: linear-gradient(to bottom, rgba(8,66,94,0.9), rgba(8,66,94,0.7)), url('../img/encabezado.png') no-repeat center top;
  background-size: cover;
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  min-height: 350px;
}

.titulo-encabezado {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
   margin-top: 12rem;
}

@media screen and (max-width: 768px) {
  .titulo-encabezado {
    font-size: 32px;
  }
  .encabezado-principal {
    padding: 40px 10px 30px;
  }
}

	#datosPagar{
		background-image: url(../img/btnPagarOf.png);
	    background-repeat: no-repeat;
	    width: 918px;
	    height: 102px;
	    border: none;
	    background-color: transparent;
	    color: #08425e;
	    font-size: 30px;
	    font-weight: bold;
	    padding: 40px;
	    text-align: center;
	}

	.btns-tipo-pago{
		margin: 50px;
	    display: flex;
	    justify-content: center;
	}

	.resultado-pago {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 40px 20px;
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

.resultado-pago h1, .resultado-pago h2 {
    color: #08425e;
    font-size: 28px;
    margin-bottom: 20px;
}

.resultado-pago p {
    font-size: 18px;
    margin-bottom: 15px;
}

.resultado-pago .btn-descargar {
    background-color: #08425e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.resultado-pago .btn-descargar:hover {
    background-color: #062f44;
}

/* Colores para diferentes estados */
.resultado-pago.aprobado h1 { color: #2e7d32; }
.resultado-pago.rechazado h1 { color: #c62828; }
.resultado-pago.error h2 { color: #e65100; }


.pago-exitoso {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.icono-check {
    font-size: 60px;
    color: #28a745; /* verde */
    margin-bottom: 15px;
}

.icono-check.error {
    color: #c0392b;
}

.pago-exitoso h2 {
    font-size: 24px;
    color: #08425e;
    margin-bottom: 10px;
}

.pago-exitoso p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.tabla-detalles {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 15px;
}

.tabla-detalles td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.boton-descarga {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #08425e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.boton-descarga:hover {
    background-color: #062f44;
}

.mensaje-final {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}