.pagina-upm{
  min-height:100vh;
  background:
    linear-gradient(rgba(8,8,8,.88), rgba(8,8,8,.94)),
    url("../imagenes/fondo-mineria-subterranea.png");
  background-size:cover;
  background-position:center;
  font-family:Arial, Helvetica, sans-serif;
  color:white;
}

.upm-contenedor{
  width:96%;
  max-width:1550px;
  margin:0 auto;
  padding:22px 0 26px;
}

.upm-header{
  min-height:150px;
  border:1px solid rgba(201,154,46,.75);
  border-radius:18px;
  background:rgba(15,15,15,.88);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:22px 34px;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
}

.upm-header-cecod,
.upm-header-empresa{
  display:flex;
  align-items:center;
  gap:18px;
}

.upm-header-cecod img{
  width:82px;
}

.upm-header-cecod h1{
  margin:0;
  font-size:42px;
  letter-spacing:5px;
}

.upm-header-cecod p{
  margin:4px 0 0;
  color:#e0b85c;
  text-transform:uppercase;
  font-size:14px;
  font-weight:bold;
}

.upm-header-empresa img{
  width:82px;
}

.upm-header-empresa h2{
  margin:0;
  text-transform:uppercase;
  font-size:18px;
}

.upm-header-empresa h3{
  margin:2px 0;
  color:#c99a2e;
  text-transform:uppercase;
  font-size:28px;
}

.upm-header-empresa p{
  margin:0;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.6px;
}

.barra-navegacion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:18px 0;
}

.boton-volver{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border:1px solid rgba(201,154,46,.75);
  border-radius:10px;
  color:#e0b85c;
  text-decoration:none;
  font-weight:bold;
  background:rgba(15,15,15,.80);
}

.ruta-contexto{
  color:#e0b85c;
  text-transform:uppercase;
  font-weight:bold;
  letter-spacing:.7px;
}

.area-consulta{
  display:grid;
  grid-template-columns:34% 66%;
  gap:18px;
  min-height:68vh;
}

.panel-info{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.ficha-documento,
.lista-documentos,
.panel-visor{
  border:1px solid rgba(201,154,46,.75);
  border-radius:18px;
  background:rgba(15,15,15,.88);
  box-shadow:0 15px 35px rgba(0,0,0,.45);
}

.ficha-documento{
  padding:22px;
}

.ficha-documento h2,
.lista-documentos h2{
  margin:0 0 18px;
  color:white;
  text-transform:uppercase;
  font-size:22px;
}

.ficha-documento h2::after,
.lista-documentos h2::after{
  content:"";
  display:block;
  width:180px;
  height:2px;
  background:#c99a2e;
  margin-top:12px;
}

.ficha-documento table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:20px;
}

.ficha-documento td{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
  vertical-align:top;
  font-size:14px;
}

.ficha-documento td:first-child{
  color:#e0b85c;
  width:42%;
  text-transform:uppercase;
  font-weight:bold;
}

.boton-consultar{
  width:100%;
  border:none;
  border-radius:12px;
  padding:16px 18px;
  background:linear-gradient(180deg,#e6bd61,#bd850b);
  color:#111;
  text-transform:uppercase;
  font-size:17px;
  font-weight:bold;
  cursor:pointer;
}

.boton-consultar:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.lista-documentos{
  padding:22px;
  flex:1;
}

.documento-item{
  border:1px solid rgba(201,154,46,.45);
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
  background:rgba(255,255,255,.035);
  cursor:pointer;
  transition:.2s ease;
}

.documento-item:hover,
.documento-item.activo{
  background:rgba(201,154,46,.15);
  transform:translateY(-2px);
}

.documento-item strong{
  display:block;
  color:white;
  font-size:15px;
  margin-bottom:6px;
}

.documento-item span{
  display:block;
  color:#e0b85c;
  font-size:13px;
  text-transform:uppercase;
}

.panel-visor{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.visor-topbar{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 22px;
  border-bottom:1px solid rgba(201,154,46,.45);
  background:rgba(0,0,0,.45);
}

.visor-topbar span:first-child{
  font-size:19px;
  font-weight:bold;
}

.etiqueta-protegido{
  border:1px solid rgba(201,154,46,.75);
  color:#e0b85c;
  border-radius:999px;
  padding:8px 14px;
  text-transform:uppercase;
  font-size:12px;
  font-weight:bold;
}

.visor-pdf{
  flex:1;
  min-height:640px;
  background:#2b2b2b;
  overflow:auto;
  text-align:center;
  padding:22px;
  user-select:none;
}

.visor-vacio{
  height:100%;
  min-height:560px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#ddd;
}

.visor-vacio img{
  width:120px;
  margin-bottom:18px;
}

.visor-vacio h2{
  color:#e0b85c;
  text-transform:uppercase;
  margin-bottom:8px;
}

.pagina-pdf{
  display:block;
  max-width:100%;
  margin:0 auto 18px;
  background:white;
  border-radius:8px;
  box-shadow:0 8px 22px rgba(0,0,0,.55);
}

.valores-upm{
  margin-top:18px;
  border:1px solid rgba(201,154,46,.75);
  border-radius:18px;
  background:rgba(15,15,15,.88);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  overflow:hidden;
}

.valores-upm div{
  text-align:center;
  padding:22px 18px;
  border-right:1px solid rgba(201,154,46,.55);
}

.valores-upm div:last-child{
  border-right:none;
}

.valores-upm strong{
  display:block;
  text-transform:uppercase;
  color:white;
  font-size:16px;
}

.valores-upm span{
  display:block;
  color:#e6e6e6;
  font-size:14px;
  margin-top:4px;
}

@media(max-width:1100px){
  .upm-header{
    flex-direction:column;
    text-align:center;
  }

  .upm-header-cecod,
  .upm-header-empresa{
    justify-content:center;
  }

  .area-consulta{
    grid-template-columns:1fr;
  }

  .valores-upm{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){
  .upm-contenedor{
    width:100%;
    padding:0;
  }

  .upm-header{
    border-radius:0;
    border-left:none;
    border-right:none;
  }

  .upm-header-cecod,
  .upm-header-empresa{
    flex-direction:column;
  }

  .barra-navegacion{
    padding:0 14px;
    flex-direction:column;
    gap:12px;
  }

  .area-consulta{
    padding:0 14px;
  }

  .visor-pdf{
    min-height:85vh;
  }

  .valores-upm{
    grid-template-columns:1fr;
    border-radius:0;
  }

  .valores-upm div{
    border-right:none;
    border-bottom:1px solid rgba(201,154,46,.40);
  }
}
.valores-upm div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:22px 16px;
}
.valores-upm img{
  width:64px;
  height:64px;
  object-fit:contain;
  margin-bottom:14px;
}
.valores-upm strong{
  display:block;
  margin-bottom:6px;
  text-transform:uppercase;
  color:#ffffff;
  font-size:16px;
  font-weight:700;
  line-height:1.2;
}
.valores-upm span{
  display:block;
  color:#e6e6e6;
  font-size:13px;
  line-height:1.35;
}