@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --trafico: #dbaa34;
  --font-family: 'Roboto', sans-serif;
  --font-size: 14px;
  --line-height: 1.5;
  --border-radius: 4px;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --big-shadow: 0 12px 30px -9px #1a1e32, 0 0 0 1px #323848 inset;
  --magic-shadow: 0 20px 40px #131621, -1px 1px 0 #323848 inset, 1px -1px 0 #0e1017 inset;
  --ui_background-color: #282A36;
  --text-color: #ccc;
  --text-contrat: #48494b;
  --fondo_barras: #323848;
  --boton_universal: #ca9426;
  --texto-opaco: #5a637b;
  --texto-gris: #7d8499;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  color: var(--text-color);
}

html {
  width: 100%;
  height: 100%;
  background-color: var(--ui_background-color);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  background-color: var(--ui_background-color);
  /* user-select: none; */
}

header,
footer {
  width: 100%;
  height: 50px;
  background-color: var(--fondo_barras);
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  flex: 1;
  display: flex;
  background-color: var(--ui_background-color);
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding: 57px 0;
}

h1 {
  font-weight: 100;
  font-size: 1.7rem;
}

h2 {
  font-weight: 300;
  font-size: 1.2em;
  margin: 20px auto;
}

h2 b {
  font-weight: 500;
  color: var(--trafico);
}

hr {
  width: 100%;
  height: 1px;
  background-color: #353943;
  box-shadow: 0 1px 0 0 #1c1d21;
  border: none;
  margin: 32px 0;
}

.liga_simple {
  font-size: 1em;
  text-decoration: none;
  color: #625d4f;
}

.mega_font {
  font-size: 3em;
}

.texto_opaco {
  color: var(--texto-opaco);
  transition: all 0.3s ease;
  cursor: pointer;
}

.texto_opaco:hover {
  color: var(--texto-gris)
}


/* BO Login */

div#loginContainer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  margin: 4% auto;
  min-width: 320px;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #323848;
  box-shadow: -12px 40px 40px -10px #00000061;
  background-color: #2b2e3c;
}

div#loginContainer form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  gap: 20px;
}

div#loginContainer form :is(input[type="email"], input[type="password"]) {
  width: 100%;
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid var(--text-contrat);
  background-color: var(--fondo_barras);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

div#loginContainer form input[type="submit"],
.guardarFormulario {
  width: 100%;
  padding: 25px 10px;
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--boton_universal);
  font-size: var(--font-size);
  line-height: var(--line-height);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

/* EO Login form */
#main-content {
  display: flex;
  transition: margin-left 0.3s ease;
  flex: 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0px 20px;
  text-align: center;
}

#logo_home {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 96px;
  height: 30px;
  background-color: transparent;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

#log_out_btn img {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#logo_home:hover,
#log_out_btn img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#logo_home img {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.selector-group {
  position: relative;
  margin: 0 auto;
  min-width: 260px;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2px;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 4px;
  background-color: #1f202c;
  box-shadow: 0 20px 40px #131621, -1px 1px 0 #323848 inset, 1px -1px 0 #0e1017 inset;
}

.selector-group a {
  display: flex;
  text-decoration: none;
  color: #cecece;
  font-size: 14px;
  padding: 30px;
  border-radius: 5px;
  background-color: #292d39;
  transition: background-color 0.3s ease;
  border: 1px solid #292d3a;
  flex: 1;
  cursor: ponter;
  min-width: 200px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.selector-group a:hover {
  background-color: #323848;
}

.div_centrado_vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: none;
  max-width: 720px;
  width: 100%;
  height: 100%;
  flex: auto;
}

.panel_centrado {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 5vh;
  min-width: 300px;
  max-width: 840px;
  width: 100%;
  height: 100%;
  flex: auto;
}

.back_btn {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  opacity: .6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back_btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Panel de configuración */

.config-panel {
  min-width: 320px;
  max-width: 960px;
  width: 100%;
  margin: 0px auto;
  padding: 2rem;
  color: #fff;
}

.direccion-group {
  margin: 0rem 0;
}

.alta-row {
  display: flex;
  gap: 1px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.mayusculas {
  text-transform: uppercase;
}

input {
  width: 100%;
  background: #1e1e2f;
  border: 1px solid #3d3d50;
  border-radius: 6px;
  padding: 20px 10px;
  color: #fff;
  font-size: 1rem;
  flex: 1;
  width: 320px;
  text-align: center;
}

select {
  width: 100%;
  background: #1e1e2f;
  border: 1px solid #3d3d50;
  border-radius: 6px;
  padding: 20px 10px;
  color: #fff;
  font-size: 1rem;
  flex: 1;
  width: 320px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.doble-ancho {
  flex: 2;
}

#breadcrumbs {
  text-align: center;
  font-size: .8rem;
  color: #7a7b88;
  padding: 10px 20px;
  background-color: #242631;
  border-radius: 8px;
  box-shadow: 0 12px 30px -9px #1a1e32, 0 0 0 1px #323848 inset;
  user-select: none;
}

/* BO listado de 2 columnas basado en UL-LI-SPAN-SPAN */

.list_c2a {
  display: flex;
  flex-flow: column;
  min-width: 300px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 32px 52px -16px #191b2785;
  font-size: .9em;
}

.header_line,
.footer_line {
  background-color: #21232e;
  color: #fff;
  padding: 20px !important;
}

.header_line {
  border-top: 1px solid #303238 !important;
}

.footer_line {
  display: flex !important;
  border-bottom: 1px solid #171a24 !important;
  text-align: center;
  flex-direction: column;
  align-items: center;
}


.list_c2a li {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.list_c2a li span {
  flex: 1;
  text-align: left;
  font-weight: 600;
  ;
}

.list_c2a li.header_line {
  font-weight: bold;
}

.list_c2a_group {
  background-color: #313441;
}

.list_c2a_group li:nth-child(odd) {
  background-color: #393d4dff;
}

.list_c2a_group li span {
  padding: 10px;
  font-size: 1em;
  color: #fff;
  font-weight: 300;
}

.list_c2a_group li span:nth-child(1) {
  border-right: 1px solid #3d4050ff;
}

.list_c2a_group li {
  border-bottom: 1px solid #3d4050ff;
}

/* EO Listado de dos columnas */


.liga_btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  align-items: center;
  padding: 10px 40px;
  text-decoration: none;
  border-radius: 6px;
  background-color: var(--boton_universal);
  color: #000000;
  flex: 0 auto;
  width: fit-content;
  font-size: 1.3em;
  cursor: pointer;
}


.cfd_btn {
  background-color: #b9d85e;
  color: #000000;
  text-decoration: none;
  padding: 20px 80px;
  border-radius: 6px;
  font-size: 1.2em;
  border: 1px solid #415013;
  box-shadow: var(--big-shadow);
  text-shadow: 0 2px 1px #e8ffa6;
  transition: all 400ms ease;
}

.cfd_btn:hover {
  background-color: #e3ee47;
}


/* Sección de upload de imagenes.  */
#previewContainer {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px 20px 30px;
  border-radius: 12px;
  background-color: #1f202c;
  border: 1px solid #44465a;
  box-shadow: var(--big-shadow);
}

#previewContainer img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #3d3d50;
}

.fotos_data_grp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin-top: 20px;
  gap: 2px;
}

.fotos_data_grp p {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.fotos_data_grp p span:nth-child(1) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 78px;
  text-align: left;
  color: #7798ef;
  background-color: #323848;
  padding: 7px;
  min-height: 35px;
  max-height: 35px;
  height: 35px;
}

.fotos_data_grp p span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  font-weight: 300;
  padding: 7px;
  background-color: #3a4255;
  flex: 1;
  overflow: hidden;
  min-height: 35px;
  max-height: 35px;
  height: 35px;
}

.foto_data {
  display: inline-block;
  font-size: .9em;
  color: #fff;
  font-weight: 300;
  padding-top: 10px;
}

/* BO Estilo del buscador */

.vin-search-container {
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 280px;
  max-width: 473px;
  width: 100%;
}


#vin_input,
.camposVIN_Year {
  width: 100%;
  padding: 20px 0;
  border: 1px solid #303243;
  border-radius: 4px;
  background-color: #1d212d;
  color: #fff;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 21px 30px -4px #00000033;
}

.h150 {
  width: 150px !important;
}

ul.vin-autocomplete-list {
  list-style: none;
  padding: 0;
  margin: 27px 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  width: 100%;
  overflow-y: auto;
}

.vin-autocomplete-list li {
  padding: 20px 10px;
  margin-bottom: 2px;
  cursor: pointer;
  color: #fff;
  background-color: #41495d;
  border-radius: 4px;
  box-shadow: 0 5px 10px -2px #00000033;
}

.dialogo_instrucciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 140px auto 0 auto;
  min-width: 320px;
  max-width: 600px;
  text-align: justify;
  background-color: #23262e;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #3a3f4e;
}

.dialogo_instrucciones p {
  color: #bcbcbc;
  font-weight: 300;
}

.disabled_input {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  pointer-events: none;
}

/* Contenedor de */

#contenedor_upload_pdf {
  position: relative;
  margin: 0 auto;
  min-width: 300px;
  max-width: 640px;
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

#contenedor_upload_pdf li {
  position: relative;
  flex: 1 auto;
  width: 290px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

#contenedor_upload_pdf li label {
  position: relative;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #42495c inset;
  background-color: #232530;
  align-items: center;
  justify-content: center;
  transition: all 256ms ease;
  cursor: pointer;
  height: 100px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

#contenedor_upload_pdf li label:hover {

  background-color: #292c3dff;

}

#contenedor_upload_pdf li label small {
  font-size: 60%;
  color: gray;
}

#contenedor_upload_pdf li input[type="file"] {
  display: none;
  width: 100%;
  height: 100%;
}

.contenedor_upload_pdf {

  /* Esta clase es solo de referencia de la alta de documentos de importación */

}

#modal_preview_uploader {
  position: absolute;
  top: 50px;
  left: 1%;
  right: 1%;
  width: 90%;
  height: 94%;
  margin: 0 auto;
  padding: 1em;
  background: #1c1f2bf7;
  border-radius: 6px;
  color: white;
  text-align: left;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: flex;
  visibility: hidden;
  z-index: 10000000;
}

.contenedor_documentos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
}

#lista_documentos {
  position: relative;
  margin: 90px auto 20px auto;
  min-width: 200px;
}

#lista_documentos h3 {
  margin: 0 0 0.5em 0;
  font-size: 1em;
  color: #f0f0f0;
}

#lista_documentos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#lista_documentos li {
  margin-bottom: 0.5em;
}

.estado {
  position: absolute;
  top: 65px;
  font-size: 24px;
  width: 100%;
  text-align: center;
  color: #b9d85e;
}

#btn_expedir_cfd {
  position: relative;
  margin: 0 auto;
  max-width: 600px;
}

.text_ok {
  color: #b3e353;
}

.text_error {
  color: #e37153;
}

.bloque_centrado {
  text-align: center;
  width: 100%;
}

.factura_data,
.descripcion_data {
  position: relative;
  display: flex;
  margin: 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  min-width: 301px;
  max-width: 875px;
  width: 100%;
}

.factura_data :is(#rfc, #nombre, #regimen, #uso_cfdi) {
  width: 293px;
  flex: 1 0 auto;
}

.factura_data legend,
.descripcion_data legend {
  font-size: 1.15rem;
  font-weight: 300;
  padding: 18px 0;
}

.rf-autofill-icon,
.rf-toolbar-icon {
  display: none !important;
}

.desc_preview {
  position: relative;
  margin: 0px auto 40px auto;
  max-width: 720px;
  padding: 14px;
  border: 1px dashed #282a36;
  background-color: #ccc;
  color: #333541;
  border-radius: 4px;
}