/* ============================================================
   TAQUIBRADI.FUN  --  hoja de estilos principal
   Diseñada en Notepad.exe (mentira) -- Ultima act.: 2026
   NO TOCAR NADA DE AQUI SI NO SABES LO QUE HACES  :-)
   ============================================================ */

:root {
  /* --- paleta --- */
  --void:      #050014;
  --void-2:    #0d0030;
  --lima:      #00ff66;
  --magenta:   #ff00a8;
  --cian:      #00e5ff;
  --amarillo:  #ffe600;
  --tinta:     #10001f;
  /* el color de cada panel se decide con las clases .p-* de mas abajo */

  /* --- tipos --- */
  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --cuerpo:  "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive, sans-serif;
  --dato:    "Courier New", Courier, monospace;
}

/* fondo: nebulosa de colores + estrellas tileadas por encima */
html {
  background-color: #0a0024;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='12' cy='19' r='1.2'/%3E%3Ccircle cx='96' cy='8' r='.9'/%3E%3Ccircle cx='57' cy='46' r='1.6'/%3E%3Ccircle cx='128' cy='61' r='1'/%3E%3Ccircle cx='31' cy='88' r='1.2'/%3E%3Ccircle cx='110' cy='104' r='1.4'/%3E%3Ccircle cx='73' cy='124' r='.9'/%3E%3Ccircle cx='8' cy='133' r='1.1'/%3E%3C/g%3E%3Cg fill='%2300e5ff'%3E%3Ccircle cx='121' cy='33' r='1.4'/%3E%3Ccircle cx='44' cy='113' r='1.3'/%3E%3C/g%3E%3Cg fill='%23ff00a8'%3E%3Ccircle cx='84' cy='77' r='1.4'/%3E%3Ccircle cx='20' cy='57' r='1.2'/%3E%3C/g%3E%3Cg fill='%23ffe600'%3E%3Ccircle cx='66' cy='15' r='1.2'/%3E%3Ccircle cx='101' cy='68' r='1'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 8%,  rgba(255, 0, 168, .50), transparent 42%),
    radial-gradient(circle at 88% 16%, rgba(0, 229, 255, .42), transparent 42%),
    radial-gradient(circle at 50% 92%, rgba(123, 45, 255, .55), transparent 52%),
    radial-gradient(circle at 92% 72%, rgba(255, 138, 0, .32), transparent 40%),
    linear-gradient(180deg, #1b0045 0%, #06001a 55%, #1d0038 100%);
  background-attachment: scroll, fixed, fixed, fixed, fixed, fixed;
  background-size: 140px 140px, cover, cover, cover, cover, cover;
}

body {
  margin: 0;
  padding: 0 0 40px;
  font-family: var(--cuerpo);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M3 2 L3 21 L8 16 L11 24 L15 22 L12 15 L19 15 Z' fill='%23ffe600' stroke='%23050014' stroke-width='1.6'/%3E%3C/svg%3E") 3 2, auto;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: var(--magenta); background: var(--amarillo); }
a:focus-visible { outline: 3px solid var(--cian); outline-offset: 2px; }

/* ============================================================
   CABECERA
   ============================================================ */

.cinta {
  /* degradado solo con colores claros: el texto va en negro y tiene
     que seguir leyendose en cualquier punto del recorrido */
  background: linear-gradient(90deg,
    var(--amarillo), #ff8a00, var(--magenta), var(--cian), var(--lima), var(--amarillo));
  background-size: 300% 100%;
  animation: cintacolor 12s linear infinite;
  border-bottom: 4px solid #000;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--dato);
  font-weight: bold;
  font-size: 14px;
  padding: 6px 0;
}
@keyframes cintacolor { to { background-position: 300% 0; } }
.cinta span {
  display: inline-block;
  padding-left: 100%;
  animation: desfile 22s linear infinite;
}
@keyframes desfile { to { transform: translateX(-100%); } }

.cabecera {
  position: relative;
  text-align: center;
  padding: 26px 12px 24px;
  background:
    radial-gradient(ellipse at 20% 110%, rgba(255, 0, 168, .55), transparent 60%),
    radial-gradient(ellipse at 80% 110%, rgba(0, 229, 255, .45), transparent 60%),
    repeating-linear-gradient(90deg, #1d0048 0 2px, #0a0020 2px 4px);
  border-bottom: 0;
}
/* franja arcoiris al pie de la cabecera */
.cabecera::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg,
    #ff0000, #ff8a00, var(--amarillo), var(--lima),
    var(--cian), #3b00ff, var(--magenta));
}

.logo {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 9vw, 86px);
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: .95;
  background: linear-gradient(90deg,
    #ff0000, #ff8a00, var(--amarillo), var(--lima),
    var(--cian), #3b00ff, var(--magenta), #ff0000);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  filter: drop-shadow(4px 4px 0 #000);
  animation: arcoiris 7s linear infinite;
}
@keyframes arcoiris { to { background-position: 300% 0; } }

.eslogan {
  margin: 10px 0 0;
  font-family: var(--dato);
  font-size: 15px;
  color: var(--lima);
  text-shadow: 0 0 8px var(--lima);
}

.parpadea { animation: parpadeo 1.1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }

/* ============================================================
   REJILLA PRINCIPAL (la "tabla" de toda la vida)
   ============================================================ */

.lienzo {
  max-width: 1060px;
  margin: 18px auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .lienzo { grid-template-columns: minmax(0, 1fr); }
  .columna-dcha { order: 3; }
}

/* ---- panel reutilizable ----
   Cada panel se pinta con cuatro variables. Las variantes de color de
   abajo solo cambian esas variables, nunca las propiedades: asi no hay
   peleas de especificidad. */
.panel {
  --panel-bg: #e8fbff;
  --panel-borde: #00a0c6;
  --panel-tinta: #006e8a;
  --barra-de: #00a0c6;
  --barra-a: #003f52;

  background: var(--panel-bg);
  border: 4px solid var(--panel-borde);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .5), inset 0 0 0 2px #fff;
  padding: 10px;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* selector con hijo directo a proposito: tiene que ganar a
   ".columna-centro h2", que si no le impone Impact de 30px */
.panel > .panel-titulo {
  margin: -10px -10px 10px;
  padding: 5px 9px;
  background: linear-gradient(90deg, var(--barra-de), var(--barra-a));
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
  font-family: var(--dato);
  font-weight: bold;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ---- variantes de color de panel ---- */
.p-chicle  { --panel-bg:#fff0f8; --panel-borde:#ff00a8; --panel-tinta:#b1006f; --barra-de:#ff00a8; --barra-a:#6b0045; }
.p-lima    { --panel-bg:#f0ffe6; --panel-borde:#00b347; --panel-tinta:#00662a; --barra-de:#00b347; --barra-a:#00491d; }
.p-limon   { --panel-bg:#fffce0; --panel-borde:#e0a800; --panel-tinta:#8a5300; --barra-de:#e08a00; --barra-a:#7a3d00; }
.p-violeta { --panel-bg:#f4ecff; --panel-borde:#7b2dff; --panel-tinta:#5b00d6; --barra-de:#7b2dff; --barra-a:#2e0070; }
.p-naranja { --panel-bg:#fff2e3; --panel-borde:#ff6a00; --panel-tinta:#b53c00; --barra-de:#ff6a00; --barra-a:#7a2400; }
.panel-titulo::after {
  content: "_ □ X";
  letter-spacing: .14em;
  font-weight: normal;
  opacity: .85;
}

.columna-izda,
.columna-centro,
.columna-dcha { display: grid; gap: 14px; }

/* ============================================================
   NAVEGACION
   ============================================================ */

.menu { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 2px dotted var(--panel-borde); }
.menu li:last-child { border-bottom: 0; }
.menu a {
  display: block;
  padding: 6px 6px 6px 24px;
  font-weight: bold;
  text-decoration: none;
  color: var(--panel-tinta);
  position: relative;
}
.menu a::before {
  content: "🔥";
  position: absolute;
  left: 4px;
  animation: llama .55s steps(2) infinite;
}
.menu a:hover { background: var(--amarillo); color: var(--magenta); }
.menu a[aria-current="page"] { background: var(--panel-tinta); color: var(--amarillo); }
.menu a[aria-current="page"]::before { content: "👉"; }
@keyframes llama { 50% { transform: scale(1.3) rotate(-8deg); } }

/* ============================================================
   CONTENIDO
   ============================================================ */

.columna-centro h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--panel-tinta);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, .9);
  text-wrap: balance;
}
.columna-centro h3 {
  margin: 16px 0 6px;
  font-size: 17px;
  color: var(--panel-tinta);
}
.columna-centro p { margin: 0 0 10px; max-width: 62ch; }

.hr-chula {
  height: 10px;
  border: 0;
  margin: 14px 0;
  background: repeating-linear-gradient(90deg,
    var(--magenta) 0 10px, var(--amarillo) 10px 20px,
    var(--lima) 20px 30px, var(--cian) 30px 40px);
}

.destacado {
  background: var(--amarillo);
  border: 2px dashed #c00;
  padding: 8px 10px;
  font-weight: bold;
}

/* ============================================================
   MURO DE MEMES
   ============================================================ */

.muro {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.meme {
  border: 4px solid var(--panel-borde);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
  background: #000;
  padding: 4px;
}
.meme figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--fondo-meme, linear-gradient(140deg, #333, #111));
}
.meme .emoji { font-size: 62px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.6)); }
.meme figcaption {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 4px;
  font-family: var(--display);
  font-size: clamp(15px, 4.4vw, 21px);
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  -webkit-text-stroke: 1.6px #000;
  paint-order: stroke fill;
}
.meme .arriba { top: 4px; }
.meme .abajo  { bottom: 4px; }
.meme:hover { border-color: var(--amarillo); }
.meme:hover .emoji { animation: tiemblo .3s linear infinite; }
@keyframes tiemblo {
  25% { transform: rotate(6deg) scale(1.08); }
  75% { transform: rotate(-6deg) scale(1.08); }
}
.meme .voto {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-family: var(--dato);
  font-size: 12px;
}

/* ============================================================
   TOP 10 / LISTAS
   ============================================================ */

.ranking { margin: 0; padding-left: 26px; font-family: var(--dato); font-size: 13px; }
.ranking li { margin-bottom: 3px; }
.ranking b { color: var(--panel-tinta); }
.ranking li::marker { color: var(--magenta); font-weight: bold; }

.tabla-datos {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--dato);
  font-size: 13px;
}
.tabla-datos th,
.tabla-datos td {
  border: 1px solid var(--panel-borde);
  padding: 4px 6px;
  text-align: left;
}
.tabla-datos th { background: var(--panel-tinta); color: #fff; }
.tabla-datos td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tabla-datos tbody tr:nth-child(odd) { background: rgba(0, 0, 0, .06); }
.tabla-datos tbody th { background: var(--panel-bg); color: var(--tinta); }

/* barra de porcentaje de la encuesta */
.barra {
  display: block;
  height: 13px;
  background: repeating-linear-gradient(90deg, var(--lima) 0 4px, #00a844 4px 8px);
  border: 1px solid #004d1f;
  min-width: 2px;
}

/* ============================================================
   WIDGETS DE LA COLUMNA DERECHA
   ============================================================ */

.contador {
  background: #000;
  border: 2px inset #888;
  padding: 5px 4px;
  text-align: center;
  font-family: var(--dato);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  color: var(--lima);
  text-shadow: 0 0 6px var(--lima);
  font-variant-numeric: tabular-nums;
}
.pie-widget {
  display: block;
  margin-top: 4px;
  font-family: var(--dato);
  font-size: 11px;
  text-align: center;
}

.botones { display: grid; gap: 6px; justify-items: center; }
.boton-8831 {
  width: 88px;
  height: 31px;
  border: 1px solid #000;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--dato);
  font-size: 9px;
  font-weight: bold;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  background: linear-gradient(180deg, #555, #000);
}
.boton-8831:hover { filter: invert(1) hue-rotate(180deg); background: #000; }
.b-netscape { background: linear-gradient(180deg, #00e5ff, #000080); }
.b-css      { background: linear-gradient(180deg, var(--magenta), #4b0030); }
.b-1024     { background: linear-gradient(180deg, var(--amarillo), #7a5c00); color: #000; text-shadow: none; }
.b-midi     { background: linear-gradient(180deg, var(--lima), #004d1f); color: #000; text-shadow: none; }
.b-nominalia{ background: linear-gradient(180deg, #ff8a00, #6b2a00); }

.obras {
  text-align: center;
  font-family: var(--dato);
  font-size: 11px;
  font-weight: bold;
  background: repeating-linear-gradient(45deg,
    var(--amarillo) 0 10px, #111 10px 20px);
  color: #000;
  padding: 0;
}
.obras span {
  display: block;
  background: var(--amarillo);
  margin: 9px 5px;
  padding: 4px 2px;
  border: 1px solid #000;
}

/* ============================================================
   FORMULARIOS Y BOTONES (look Win98)
   ============================================================ */

.btn,
button,
input[type="submit"] {
  font-family: var(--dato);
  font-size: 13px;
  font-weight: bold;
  padding: 5px 12px;
  background: var(--panel-bg); /* reserva, por si color-mix() no existe */
  background: linear-gradient(180deg, #fff 0%, var(--panel-bg) 48%, color-mix(in srgb, var(--panel-borde) 30%, #fff) 100%);
  border: 3px solid var(--panel-borde);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  color: var(--panel-tinta);
  cursor: pointer;
}
.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--amarillo);
  color: var(--magenta);
  border-color: var(--magenta);
}
.btn:active,
button:active,
input[type="submit"]:active { box-shadow: none; transform: translate(2px, 2px); }
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid var(--magenta); outline-offset: 1px; }

input[type="text"],
textarea,
select {
  font-family: var(--dato);
  font-size: 13px;
  padding: 5px 6px;
  background: #fff;
  border: 3px solid var(--panel-borde);
  color: var(--tinta);
  width: 100%;
  box-sizing: border-box;
}
textarea { resize: vertical; min-height: 80px; }
input[type="radio"] { accent-color: var(--magenta); }

.campo { display: grid; gap: 3px; margin-bottom: 9px; }
.campo > span {
  font-family: var(--dato);
  font-size: 12px;
  font-weight: bold;
  color: var(--panel-tinta);
}
.fila-botones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ============================================================
   GENERADOR DE MEMES
   ============================================================ */

.taller {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 760px) { .taller { grid-template-columns: minmax(0, 1fr); } }

#lienzo-meme {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #000;
  border: 3px inset #888;
}

.fondos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; padding: 0; list-style: none; }
.fondos button {
  font-family: var(--cuerpo);
  font-size: 20px;
  padding: 3px 7px;
  line-height: 1;
}
.fondos button[aria-pressed="true"] { border-style: inset; background: var(--amarillo); }

.aviso-descarga {
  font-family: var(--dato);
  font-size: 12px;
  background: #000;
  color: var(--lima);
  padding: 5px 7px;
  margin: 9px 0 0;
  min-height: 1.4em;
}

/* ============================================================
   LIBRO DE VISITAS
   ============================================================ */

.firmas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.firma {
  background: #fff;
  border: 3px solid var(--panel-borde);
  border-left: 10px solid var(--magenta);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .25);
  padding: 8px 10px;
}
.firma:nth-child(3n+1) { border-left-color: var(--cian); }
.firma:nth-child(3n+2) { border-left-color: var(--lima); }
.firma-cab {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-family: var(--dato);
  font-size: 12px;
  border-bottom: 1px dotted #aaa;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.firma-cab b { font-size: 14px; color: var(--panel-tinta); }
.firma-cab time { color: #666; margin-left: auto; }
.firma p { margin: 0; overflow-wrap: break-word; }
.firma .humor { font-size: 19px; }

/* ============================================================
   WEBRING + PIE
   ============================================================ */

.webring {
  max-width: 1060px;
  margin: 18px auto 0;
  padding: 0 12px;
}
.anillo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-family: var(--dato);
  font-size: 13px;
  font-weight: bold;
}

.baile {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 30px;
  margin: 12px 0 0;
  line-height: 1;
}
.baile span { animation: brinco .6s ease-in-out infinite alternate; }
.baile span:nth-child(2n) { animation-delay: .15s; }
.baile span:nth-child(3n) { animation-delay: .3s; }
@keyframes brinco { to { transform: translateY(-12px) rotate(10deg); } }

.pie {
  max-width: 1060px;
  margin: 14px auto 0;
  padding: 12px;
  text-align: center;
  font-family: var(--dato);
  font-size: 12px;
  color: var(--cian);
}
.pie a { color: var(--amarillo); }
.pie a:hover { color: #000; }

/* ============================================================
   PURPURINA DEL RATON
   ============================================================ */

.chispa {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 13px;
  animation: cae .9s linear forwards;
}
@keyframes cae {
  to { transform: translateY(26px) rotate(160deg); opacity: 0; }
}

/* ============================================================
   ACCESIBILIDAD: si no quieren movimiento, se lo quitamos todo
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cinta span { padding-left: 0; }
  .parpadea { opacity: 1; }
}

.solo-lectores {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
