/* Estilo Geocities, circa 1997. Optimizado para Netscape Navigator 4.0 a 800x600. */

:root {
  --navy: #2a1a9e;
  --hot: #ff2a6d;
  --cyan: #00e5ff;
  --lime: #39ff14;
  --yellow: #ffee00;
  --paper: #fffbe0;
  --ink: #1a0040;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  background: var(--navy) url("/img/bg.svg");
  color: var(--ink);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  line-height: 1.5;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><text y='19' font-size='20'>⭐</text></svg>") 4 4, auto;
}

a { color: #0000ee; font-weight: bold; }
a:visited { color: #8b008b; }
a:hover { color: var(--hot); background: var(--yellow); }

.content {
  max-width: 46rem;
  margin: 1rem auto 2rem;
  padding: 0 .5rem;
}

/* ---------- marquee y parpadeo ---------- */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  color: var(--lime);
  border: 3px ridge var(--cyan);
  font-family: "Courier New", monospace;
  font-weight: bold;
  padding: .2rem 0;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.rainbow {
  display: block;
  height: 8px;
  margin: 1rem 0;
  border: 0;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 200% 100%;
  animation: slide 3s linear infinite;
}
@keyframes slide { to { background-position: 200% 0; } }

/* ---------- cabecera ---------- */

.hero {
  text-align: center;
  background: var(--paper);
  border: 6px ridge var(--hot);
  padding: .8rem 1rem 1.2rem;
  margin: 1rem 0;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.1;
  margin: .3rem 0;
  color: var(--hot);
  text-shadow: 3px 3px 0 var(--yellow), 5px 5px 0 var(--navy);
}
.spin-row { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.chupo-spin { width: 56px; height: 56px; animation: flip 2s linear infinite; }
@keyframes flip { to { transform: rotateY(360deg); } }

.lead { font-size: 1.1rem; margin: .5rem 0; }

.new {
  display: inline-block;
  background: red;
  color: var(--yellow);
  font-weight: bold;
  font-size: .8rem;
  padding: 0 .35rem;
  transform: rotate(-8deg);
  vertical-align: middle;
}

.construccion { display: block; margin: .5rem auto; max-width: 100%; height: auto; }

/* ---------- contador ---------- */

.counter { margin: .8rem 0 .2rem; font-size: .85rem; }
.counter__digits {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #555;
  border: 3px inset #aaa;
  vertical-align: middle;
}
.counter__digits span {
  display: inline-block;
  min-width: 1.1rem;
  background: #000;
  color: var(--lime);
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.15rem;
  text-align: center;
  line-height: 1.5;
}

/* ---------- secciones tipo "tabla" ---------- */

section, .portrait {
  background: var(--paper);
  border: 6px ridge var(--cyan);
  padding: .5rem 1.2rem 1.2rem;
  margin: 1.2rem 0;
}
section:nth-of-type(even) { border-color: var(--yellow); background: #e8fbff; }
section:nth-of-type(3n) { border-color: var(--hot); background: #ffe8f6; }

h2 {
  font-size: 1.6rem;
  margin: .6rem 0 .8rem;
  padding: .1rem .6rem;
  color: var(--yellow);
  background: var(--navy);
  border: 3px outset var(--hot);
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}
h3 { font-size: 1.1rem; margin: 0 0 .3rem; color: var(--navy); }

.portrait { padding: 1rem; text-align: center; border-style: groove; }
.portrait img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 8px outset #c0c0c0;
}
.portrait figcaption { margin-top: .6rem; font-size: .85rem; color: var(--navy); font-style: italic; }

ul.ok, ul.bad { padding-left: 1.2rem; }
ul.ok li { list-style: "✔ "; margin: .35rem 0; }
ul.bad li { list-style: "✘ "; margin: .35rem 0; color: #7a0019; }
ul.ok li::marker { color: green; }
ul.bad li::marker { color: red; }

strong { color: var(--hot); }

.cases { padding: 0; list-style: none; }
.cases li { background: #fff; border: 3px dashed var(--navy); padding: .6rem 1rem; margin: .9rem 0; }
.cases p { margin: .3rem 0 0; }
.level { display: block; margin-top: .4rem; font-weight: bold; color: red; }

.chupometro { background: #000; border: 4px ridge var(--lime); padding: 1rem; text-align: center; color: var(--lime); }
.meter { height: 1.8rem; background: #222; border: 3px inset #888; }
.meter__fill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--lime) 0 10px, #0a0 10px 14px); transition: width .25s steps(8); }
.meter__label { margin: .7rem 0; font-weight: bold; font-family: "Courier New", monospace; min-height: 1.5em; }

.btn {
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  background: #c0c0c0;
  color: #000;
  border: 4px outset #fff;
  padding: .3rem 1.6rem;
}
.btn:active { border-style: inset; }
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px dotted red; outline-offset: 2px; }

.chupometro.boom { animation: shake .4s linear 3; background: red; color: var(--yellow); }
.chupometro.boom .meter__label { font-size: 1.5rem; }
@keyframes shake {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-8px, 3px) rotate(-1deg); }
  50% { transform: translate(8px, -3px) rotate(1deg); }
  75% { transform: translate(-6px, 4px) rotate(-1deg); }
}

.videos { display: grid; gap: 1.2rem; margin-top: 1rem; }
.video { margin: 0; text-align: center; }
.video__thumb { display: block; position: relative; aspect-ratio: 4 / 3; background: #000; border: 6px outset #c0c0c0; overflow: hidden; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #fff; background: rgba(0, 0, 0, .3); }
.video__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: .3rem; }

details { background: #fff; border: 3px double var(--navy); margin: .6rem 0; padding: .2rem .9rem; }
summary { cursor: pointer; font-weight: bold; color: var(--navy); padding: .4rem 0; }
details p { margin: 0 0 .7rem; }

.wink { margin-top: 1.5rem; text-align: center; font-style: italic; font-size: 1.1rem; color: var(--hot); font-weight: bold; }

/* ---------- pie ---------- */

.footer { text-align: center; color: #fff; font-size: .85rem; text-shadow: 1px 1px 0 #000; }
.footer a { color: var(--yellow); }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .8rem 0; }
.badge {
  display: inline-block;
  width: 88px; height: 31px;
  line-height: 1.05;
  padding: 3px 2px;
  font: bold 10px/1.05 Arial, sans-serif;
  color: #fff;
  border: 2px outset #ddd;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}
.badge:nth-child(1) { background: linear-gradient(#1c6bd8, #0a2e75); }
.badge:nth-child(2) { background: linear-gradient(#e33, #700); }
.badge:nth-child(3) { background: linear-gradient(#2c2, #060); }
.badge:nth-child(4) { background: linear-gradient(#c3c, #404); }

@media (prefers-reduced-motion: reduce) {
  .marquee span { animation: none; padding-left: 0; display: block; white-space: normal; text-align: center; }
  .blink, .rainbow, .chupo-spin, .chupometro.boom { animation: none; }
  .meter__fill { transition: none; }
}
