html, body {
  margin: 0;
  padding: 0;
  background: #B9C9CD url("/fondo.png");
  background-size: cover;
  color: #000;
  font-family: "Comic Sans MS", Tahoma, "Arial", sans-serif;
  font-size: 14px;
}

.header {
  background: linear-gradient(90deg,
    #ff0000, #ffffff, #ff0000, #ff5555, #ffffff, #ff0000);
  background-size: 400% 100%;
  animation: peruScroll 9s linear infinite;
  color: #ffff00; 
  padding: 8px 0;
  border-top: 4px ridge gold;
  border-bottom: 4px ridge gold;
  box-shadow:
    0 0 10px rgba(255,255,0,0.5),
    inset 0 0 25px rgba(0,0,0,0.4);
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  text-shadow:
    2px 2px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    3px 3px 5px #ff0000; 
  letter-spacing: 3px;
}

@keyframes peruScroll {
  0%   { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}

@keyframes textBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.85; }
}

.wrapper {
  display: flex;
  max-width: 980px;
  margin: 20px auto;
  border: 8px ridge #8b4513;
  background: #deb887;
  box-shadow:
    0 0 0 2px #000,
    inset 0 0 30px rgba(139,69,19,0.2);
  position: relative;
}

.wrapper::before {
  top: -5px;
  left: -5px;
}

.wrapper::after {
  bottom: -5px;
  right: -5px;
}

.sidebar {
  width: 240px;
  padding: 15px;
  background: 
    repeating-linear-gradient(
      45deg,
      #4a5d23,
      #4a5d23 10px,
      #5c6e2f 10px,
      #5c6e2f 20px,
      #3d4a1c 20px,
      #3d4a1c 30px
    );
  border-right: 5px groove #8b4513;
  box-sizing: border-box;
  position: relative;
  box-shadow: inset -3px 0 10px rgba(0,0,0,0.5);
}

.logo {
  text-align: center;
  margin-bottom: 15px;
  animation: logoWiggle 3s infinite;
}

@keyframes logoWiggle {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.logo img {
  width: 180px;
  height: auto;
  border: 5px solid #000;
  display: block;
  margin: 0 auto 10px;
  background: #fff;
  box-shadow: 
    0 0 10px rgba(255,215,0,0.8),
    inset 0 0 20px rgba(0,0,0,0.1);
  filter: contrast(1.1) saturate(1.3);
}

.dogtags {
  font-size: 11px;
  padding: 8px;
  border: 3px double #000;
  background: #AEAEAE;
  font-family: Tahoma, monospace;
  box-shadow: 2px 2px 0 #000;
  text-align: center;
  font-weight: bold;
  color: #FFFFFF;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.nav li {
  margin: 8px 0;
  background:
    repeating-linear-gradient(
      0deg,
      #8b4513 0%,
      #a0522d 10%,
      #8b4513 20%,
      #cd853f 30%,
      #8b4513 40%
    ); 
  border: 3px outset #8b4513; 
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
  position: relative;
  transition: all 0.1s;
}

.nav li:hover {
  border-style: inset;
  box-shadow: inset 2px 2px 3px rgba(0,0,0,0.5);
  transform: translate(2px, 2px);
}

.nav li::before {
  content: "▶";
  position: absolute;
  left: 8px;
  color: #ffd700;
  animation: arrowBlink 1s infinite;
}

@keyframes arrowBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.nav a {
  display: block;
  padding: 10px 10px 10px 30px;
  text-decoration: none;
  color: #f5f5f5;
  font-weight: bold;
  text-align: left;
  font-family: "Impact", "Arial Black", sans-serif;
  text-shadow: 2px 2px 0 #000;
  font-size: 16px;
  letter-spacing: 1px;
}

.nav a:hover {
  color: #ffd700;
  text-shadow:
    2px 2px 0 #000,
    0 0 10px #ffd700;
}

.content {
  flex: 1;
  padding: 20px;
  background: 
    linear-gradient(rgba(255,250,205,0.95), rgba(255,250,205,0.95)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139,115,85,0.05) 2px,
      rgba(139,115,85,0.05) 4px
    );
}

.content h1 {
  color: #8b0000;
  font-size: 32px;
  margin-top: 0;
  border-bottom: 5px double #000;
  padding-bottom: 10px;
  text-shadow: 3px 3px 0 rgba(255,215,0,0.5);
  font-family: "Impact", sans-serif;
  letter-spacing: 2px;
}

@keyframes titleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

.content h2 {
  color: #006400;
  font-family: "Impact", sans-serif;
  border-left: 8px solid #ff0;
  padding-left: 12px;
  background: rgba(255,255,0,0.1);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.content p, .content li {
  line-height: 1.8;
  text-align: justify;
}

a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px dotted #ffd700; 
  transition: all 0.3s ease-in-out;
  position: relative;
  display: inline-block;
}

.nav a {
  color: #ffffff;
  border-bottom: 2px dotted #ffd700;
}

a:visited {
  color: #ffffff;
  border-bottom: 2px dotted #ffd700;
}

aa:hover {
  color: #000000;              
  background: #ffffff;          
  border-bottom: 2px solid #ffd700;
  padding: 2px 6px;
  letter-spacing: 2px;          
  text-shadow: none;            
  transform: scale(1.1) rotate(1deg);
  box-shadow: 0 0 10px rgba(250,5,144,0.7);
  animation: hoverPulse 0.5s infinite alternate;
}

@keyframes hoverPulse {
  0% { transform: scale(1.1) rotate(1deg); }
  100% { transform: scale(1.15) rotate(-1deg); }
}

.site-footer {
  margin-top: 20px;
  padding: 15px;
  font-size: 12px;
  background: linear-gradient(90deg, #003399, #3366cc, #003399);
  color: #fff;
  text-align: center;
  font-family: "Courier New", monospace;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.site-footer::before {
  content: "👁️ Visitante número: " attr(data-visits) " 👁️";
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #0fff03;
  font-size: 17px;
  animation: textBlink 1s infinite;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.site-footer::after {
  content: "🔥 MEJOR EN INTERNET EXPLORER 8 🔥";
  display: block;
  margin-top: 8px;
  color: #0fff03;
  font-weight: bold;
  font-size: 17px;
  animation: textBlink 1s infinite;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}