body {
  font-family: arial;
  background-color: #111;
  color: white;
}
.estructura {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  margin: 0 auto;
  max-width: 1200px;
  gap: 0.5rem;
}
.lado-izquierdo {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  padding-top: 2em;
}
.contenido-central {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.cuerpo-central {
  flex: 1;
}
  .lado-derecho {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  padding-top: 2em;
}
.item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.subitem {
  flex: 1;
  margin: 0;
  padding: 0.5em;
  border: 2px solid yellow;
  margin-bottom: 0.25em;
  margin-top: 0.25em;
  min-height: 0;
}
table {
  text-align: center;
  border-spacing: 0.75em 1em;
  width: 100%;
}
td {
  padding: 0;
}
.mazo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.3em;
}
.carta {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border: 2px solid cyan;
  background-color: rgba(255, 255, 255, 0.05);
  transition: 0.25s;
}
.carta:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.15)
}
.superposicion-emergente {
  position: absolute;
  justify-content: center;
  display: flex;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;  
  transition: opacity 0.3s;
}
.fondo-cierre {
  position: fixed;
  background-color: rgba(0,0,0,0.8);
  width: 100%;
  height: 100%;
  inset: 0;
}
.ventana {
  position: absolute;
  display: flex;
  padding: 2em;
  width: 80%;
  background: #222;
  border: 2px solid cyan;
  transform: scale(0.6);
  transition: transform 0.3s;
}
.estructura-ventana {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-width: 0;
  gap: 0.5em;
}
.barra-izquierda {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 0;
}
.tabla-redes {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.bloque-red {
  margin: 0.1em;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  width: 100%;
}
.item-lateral {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  justify-content: center;
  align-items: center;
  border-right: 2px dashed white;
}
.item-superior {
  display: block;
  justify-content: center;
  align-items: center;
}
.item-inferior {
  display: block;
  justify-content: center;
  align-items: center;
}
.boton-redsocial {
  display: block;
  padding: 0;
  border: 2px solid red;
  background-color: rgba(255, 0, 0, 0.15);
  transition: 0.3s;
  text-decoration: inherit;
}
.boton-redsocial:hover {
  background-color: rgba(255, 0, 0, 0.5)
}
.barra-superior {
  display: grid;
  grid-template-rows: 1fr 4fr;
  min-height: 0;
  min-width: 0;
}
.barra-inferior {
  display: grid;
  grid-template-rows: 1fr 4fr;
  min-width: 0;
}
.puentes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.3em;
  height: 100%;
}
.tarjeta {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border: 2px solid cyan;
  background-color: rgba(255, 255, 255, 0.05);
  transition: 0.25s;
}
.tarjeta:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.15)
}
.cerrar {
  position: absolute;
  top: 1px;
  right: 4px;
  text-decoration: none;
  font-size: 1.5rem;
  color: white;
  z-index: 1;
}
.superposicion-emergente:target {
  opacity: 1;
  pointer-events: auto;
}
.superposicion-emergente:target .ventana {
  transform: scale(1);
}
p {
  margin: 0;
  padding: 0;
}
h1 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 4em;
  color: Green;
}
h2 {
  margin: 0;
  padding: 0;
  text-align: end;
  color: red;
}
h3 {
  margin-bottom: 0;
  font-family: georgia;
}
.ventana h4 {
  margin-bottom: 0.5em;
}
h5 {
  margin-top: 0;
  padding-top: 1em;
}
h6 {
  font-size: 1.25em;
  padding: 0.05em;
  margin: 0.25em;
}
ul {
  margin-left: 0.5em;
  padding-left: 1em;
}
li {
  padding-right: 4px;
}
.subitem img {
  margin: 0 auto;
  min-height: 4px;
  max-height: 15em;
  display: block;
  object-fit: contain;
}
.carta img {
  max-height: 100%;
  margin: 0;
  padding: 0;
}
.item-lateral img {
  margin: 0 auto;
  min-width: 0;
  max-width: 4.5em;
}
.tarjeta img {
  margin-top: 1em;
}
.transparentar {
  background-color: white;
}
img {
  max-width: 100%;
}
.tdlink {
  background-color: rgba(255, 255, 255, 0.3);
}
.lightgreen {
  color: lightgreen;
}
.cyan {
  color: cyan;
}
.gold {
  color: gold;
}
.red {
  color: red;
}
.pink {
  color: pink;
}
.tachado {
  text-decoration: line-through red 2px;
}