:root {
  --fondo-principal: #E0ECF8;
  --fondo-tarjeta: rgba(255, 255, 255, 0.55);
  --fondo-tarjeta-hover: rgba(255, 255, 255, 0.72);
  --borde-principal: rgba(255, 255, 255, 0.75);
  --borde-vidrio: rgba(120, 170, 220, 0.45);
  --texto-principal: #1A1A2E;
  --texto-secundario: #3D4F6A;
  --texto-tenue: #6B7D99;
  --acento-azul: #1565C0;
  --acento-turquesa: #0277BD;
  --acento-verde: #2E7D32;
  --acento-ambar: #E65100;
  --acento-purpura: #6A1B9A;
  --degradado-acento: linear-gradient(180deg, #4A9AEA, #1A5DB5);
  --degradado-vidrio: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(210,232,255,0.42) 100%);
  --degradado-barra: linear-gradient(180deg, #C2DCF5 0%, #7EB3E0 3%, #4A9AEA 10%, #2A7BCE 50%, #3D8EDB 90%, #78B4E8 97%, #A8D0F3 100%);
  --sombra-tarjeta: 0px 1px 4px rgba(0, 40, 100, 0.18), inset 0px 1px 0px rgba(255, 255, 255, 0.6);
  --sombra-ventana: 0px 4px 20px rgba(0, 40, 100, 0.22), 0px 1px 6px rgba(0, 0, 0, 0.10);
  --radio: 6px;
  --radio-sm: 4px;
  --fuente-mono: "Consolas", "Courier New", Courier, monospace;
  --fuente-sans: "Segoe UI", "Calibri", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --reflejo-superior: inset 0px 1px 0px rgba(255, 255, 255, 0.85);
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--fondo-principal);
  background-image:
    linear-gradient(180deg, #DCE8F5 0%, #B6D4F0 35%, #A0C8EA 65%, #CFE0F2 100%);
  background-attachment: fixed;
  color: var(--texto-principal);
  font-size: 16px;
  font-family: var(--fuente-sans);
  line-height: 1.6;
  overflow-x: hidden;
  zoom: 0.88;
}

body.traduciendo {
  opacity: 0;
}

body.traducido {
  opacity: 1;
  transition: opacity 0.08s ease-in;
}

body::before {
  width: 100%;
  height: 100%;
  background: none;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  content: "";
  pointer-events: none;
  z-index: 0;
}

.repo-contenedor {
  max-width: 1100px;
  margin: 0px auto;
  padding: 0px 24px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.pancarta {
  padding: 40px 0px 26px;
  position: relative;
  overflow: hidden;
}

.pancarta::after {
  content: none;
}

.pancarta-insignia {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  padding: 6px 16px;
  color: var(--acento-azul);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--borde-vidrio);
  border-radius: 100px;
  letter-spacing: 0.05em;
  box-shadow: var(--reflejo-superior), 0px 1px 3px rgba(0, 40, 100, 0.12);
}

.pancarta-insignia::before {
  width: 7px;
  height: 7px;
  background: var(--acento-verde);
  border-radius: 50%;
  content: "";
  box-shadow: 0px 0px 8px var(--acento-verde);
  animation: pulso-punto 2s infinite;
}

@keyframes pulso-punto {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.pancarta-titulo {
  background: none;
  margin-bottom: 8px;
  color: var(--texto-principal);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  letter-spacing: -0.03em;
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.7);
}

.pancarta-descripcion {
  max-width: 600px;
  color: var(--texto-secundario);
  font-size: 0.95rem;
  font-weight: 400;
}

.tarjeta-instalacion {
  background: var(--degradado-vidrio);
  margin-bottom: 22px;
  padding: 38px 22px 22px 22px;
  position: relative;
  border: 1px solid var(--borde-principal);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-ventana);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tarjeta-instalacion::before {
  height: 30px;
  background: var(--degradado-barra);
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  content: "";
  border-bottom: 1px solid rgba(0, 60, 130, 0.25);
  border-radius: var(--radio) var(--radio) 0px 0px;
}

.tarjeta-instalacion::after {
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  content: "";
  border-radius: var(--radio) var(--radio) 0px 0px;
  pointer-events: none;
}

.tarjeta-encabezado {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 12px;
}

.tarjeta-icono {
  display: flex;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde-vidrio);
  box-shadow: var(--reflejo-superior);
}

.tarjeta-icono img {
  width: 18px;
  height: 18px;
}

.tarjeta-titulo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--texto-principal);
}

.pasos-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paso-elemento {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.paso-numero {
  display: flex;
  min-width: 24px;
  height: 24px;
  margin-top: 2px;
  background: var(--degradado-barra);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--fuente-mono);
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(0, 60, 130, 0.3);
  box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.35), 0px 1px 2px rgba(0, 40, 100, 0.18);
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
}

.paso-contenido {
  flex: 1;
}

.paso-etiqueta {
  margin-bottom: 6px;
  color: var(--texto-secundario);
  font-size: 0.85rem;
}

.bloque-codigo {
  padding: 45px 14px 10px;
  background: #FFFFFF;
  position: relative;
  color: var(--acento-turquesa);
  font-size: 13px;
  font-family: var(--fuente-mono);
  line-height: 1.7;
  border: 1px solid var(--borde-vidrio);
  border-radius: var(--radio-sm);
  overflow-x: auto;
  word-break: break-all;
  white-space: pre-wrap;
  box-shadow: inset 0px 1px 3px rgba(0, 40, 100, 0.10);
}

.bloque-codigo::after {
  display: block;
  height: 36px;
  background: linear-gradient(180deg, #F0F6FC 0%, #E4EEF8 100%);
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  content: "";
  border-bottom: 1px solid var(--borde-vidrio);
  border-radius: var(--radio-sm) var(--radio-sm) 0px 0px;
  pointer-events: none;
}

.bloque-codigo .cmd-prefijo {
  color: var(--acento-verde);
  user-select: none;
}

.bloque-codigo .cmd-url {
  color: var(--acento-ambar);
}

.bloque-codigo .cmd-bandera {
  color: var(--acento-purpura);
}

.boton-copiar {
  min-width: 50px;
  height: 25px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #F8FBFF 0%, #E0ECF5 100%);
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  color: var(--texto-tenue);
  font-size: 11px;
  font-family: var(--fuente-mono);
  text-align: center;
  border: 1px solid var(--borde-vidrio);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--reflejo-superior), 0px 1px 2px rgba(0, 40, 100, 0.10);
}

.boton-copiar:hover {
  background: linear-gradient(180deg, #E6F0FB 0%, #C8DDF2 100%);
  color: var(--acento-azul);
  border-color: rgba(21, 101, 192, 0.4);
}

.boton-copiar:active {
  background: linear-gradient(180deg, #C8DDF2 0%, #E6F0FB 100%);
  box-shadow: inset 0px 1px 2px rgba(0, 40, 100, 0.15);
}

.informacion-cuadricula {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.informacion-ficha {
  background: var(--degradado-vidrio);
  padding: 12px;
  border: 1px solid var(--borde-principal);
  border-radius: var(--radio);
  transition: border-color 0.2s, background 0.2s;
  box-shadow: var(--sombra-tarjeta);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.informacion-ficha:hover {
  background: var(--fondo-tarjeta-hover);
  border-color: var(--borde-vidrio);
}

.informacion-ficha-etiqueta {
  margin-bottom: 6px;
  color: var(--texto-tenue);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.informacion-ficha-valor {
  min-width: 0px;
  color: var(--texto-principal);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--fuente-mono);
  word-break: break-all;
  overflow-wrap: break-word;
}

.listado-encabezado {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--borde-vidrio);
}

.listado-encabezado-icono {
  font-size: 18px;
}

.listado-encabezado-icono img {
  width: 18px;
  height: 18px;
}

.listado-encabezado h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--texto-principal);
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.6);
}

table {
  width: 100%;
  max-width: 100%;
  background: var(--degradado-vidrio);
  margin-bottom: 24px;
  border: 1px solid var(--borde-principal);
  border-radius: var(--radio);
  border-collapse: separate;
  border-spacing: 0px;
  overflow: hidden;
  box-shadow: var(--sombra-ventana);
  table-layout: fixed;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

th {
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(210,230,255,0.35) 100%);
  padding: 10px 18px;
  color: var(--texto-tenue);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--borde-vidrio);
  letter-spacing: 0.08em;
}

th a,
th a:visited {
  color: var(--texto-tenue);
  text-decoration: none;
}

th a:hover {
  color: var(--acento-azul);
}

td {
  padding: 9px 18px;
  vertical-align: middle;
  font-size: 14px;
  border-bottom: 1px solid rgba(180, 210, 240, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(200, 225, 255, 0.35);
}

td a,
td a:visited {
  display: block;
  color: var(--acento-azul);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--fuente-mono);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

td a:hover {
  color: #0D47A1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

td:last-child {
  color: var(--texto-tenue);
  font-size: 12px;
  font-family: var(--fuente-mono);
}

td:nth-child(2) {
  color: var(--texto-secundario);
  font-size: 12px;
  font-family: var(--fuente-mono);
}

td:first-child,
table tr:first-child th:nth-child(1) {
  width: 38px;
  min-width: 38px;
  padding-right: 0px;
  padding-left: 12px;
  text-align: center;
  overflow: visible;
}

table tr:first-child th:nth-child(2) {
  width: auto;
}

table tr:first-child th:nth-child(3) {
  width: 200px;
}

table tr:first-child th:nth-child(4) {
  width: 80px;
}

td img,
th img {
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

td a[href="../"] {
  color: var(--texto-tenue);
}

footer {
  display: flex;
  margin-top: 32px;
  padding: 18px 0px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--borde-principal);
}

.pie-copyright {
  color: var(--texto-tenue);
  font-size: 12px;
  font-family: var(--fuente-mono);
}

.pie-estado {
  display: flex;
  color: var(--texto-tenue);
  font-size: 11px;
  font-family: var(--fuente-mono);
  align-items: center;
  gap: 6px;
}

.pie-estado-punto {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--acento-verde);
  border-radius: 50%;
  box-shadow: 0px 0px 6px var(--acento-verde);
}

@media (max-width: 768px) {
  .repo-contenedor {
    padding: 0px 16px;
  }

  .pancarta {
    padding: 26px 0px 18px;
  }

  .tarjeta-instalacion {
    padding: 38px 18px 18px 18px;
  }

  .informacion-cuadricula {
    grid-template-columns: 1fr 1fr;
  }

  td,
  th {
    padding: 8px 12px;
  }

  td:first-child,
  table tr:first-child th:nth-child(1) {
    width: 36px;
    min-width: 36px;
    padding-right: 0px;
    padding-left: 10px;
  }
}

@media (max-width: 480px) {
  .informacion-cuadricula {
    grid-template-columns: 1fr;
  }

  .bloque-codigo {
    padding: 45px 10px 10px;
    font-size: 11px;
  }

  td,
  th {
    padding: 6px 8px;
  }

  td:first-child,
  table tr:first-child th:nth-child(1) {
    width: 32px;
    min-width: 32px;
    padding-right: 0px;
    padding-left: 8px;
  }

  td a,
  td a:visited {
    font-size: 11px;
  }

  td:nth-child(2) {
    font-size: 11px;
  }

  td:last-child {
    font-size: 11px;
  }
}
