body {
    background-image: url('../img/01.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}

.logoSanatFijo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.titulo {
    margin: 30px;
    color: rgba(66,201,3);
    text-align: center;
}

p {
    margin: 10px;
    color: rgba(66,201,32);
    text-align: center;
    font-size: 30px;
}

.resultados {
    text-align: center;
}

.imagenResul {
    text-align: center;
    gap: 20px;
    margin: 50px;
}

hr {
    background-color: rgba(66,201,32);
    text-align: center;
    width: 700px;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0px auto;
    max-width: 810px;

    border: 0px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);

    overflow-x: auto;
    white-space: nowrap;
}

.menu a {
    padding: 12px 12px;

    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;

    font-size: 12px;
    color: white;

    border-right: 1px solid rgba(255, 255, 255, 0.4);

    transition: background 0.3s ease, color 0.3s ease;
}

.menu a:last-child {
    border-right: none;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Enhanced code block styling for better readability */

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #cdd6f4;
  tab-size: 4;
  -moz-tab-size: 4;
}

/* Scrollbar styling for code blocks */
pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-track {
  background: var(--surface2);
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Syntax highlighting improvements */
.kw { 
  color: #cba6f7; 
  font-weight: 500;
}

.ty { 
  color: #89b4fa; 
}

.fn { 
  color: #89dceb; 
}

.cm { 
  color: #585b70; 
  font-style: italic; 
}

.nm { 
  color: #fab387; 
}

.st { 
  color: #a6e3a1; 
}

.op { 
  color: #94e2d5; 
}

/* Line numbers (optional - add data-line-numbers attribute to pre) */
pre[data-line-numbers] {
  counter-reset: line;
}

pre[data-line-numbers] code {
  counter-increment: line;
}

pre[data-line-numbers] code::before {
  content: counter(line);
  display: inline-block;
  width: 2em;
  margin-right: 1.5em;
  text-align: right;
  color: var(--muted);
  font-size: 0.85em;
}

/* Code header improvements */
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 16px;
}

.code-dots { 
  display: flex; 
  gap: 6px; 
}

.code-dots span {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  transition: all 0.2s ease;
}

.code-dots span:hover {
  transform: scale(1.1);
}

.dot1 { background: #ff5f57; }
.dot2 { background: #febc2e; }
.dot3 { background: #28c840; }

.code-lang {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.06em;
  background: rgba(79, 195, 247, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.copy-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.05em;
}

.copy-btn:hover { 
  color: var(--accent); 
  border-color: var(--accent); 
  background: rgba(127, 255, 106, 0.05);
}

.copy-btn.copied { 
  color: var(--accent); 
  border-color: var(--accent); 
  background: rgba(127, 255, 106, 0.1);
}

/* Code block focus/hover effects */
pre:hover {
  border-color: rgba(127, 255, 106, 0.3);
}

.code-header:has(+ pre:hover) {
  border-color: rgba(127, 255, 106, 0.3);
}

/* Inline code styling */
:not(pre) > code {
  background: var(--surface2);
  color: var(--accent2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  border: 1px solid var(--border);
}

/* Responsive adjustments for code blocks */
@media (max-width: 768px) {
  pre {
    font-size: 11px;
    padding: 1rem;
    line-height: 1.6;
  }
  
  .code-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .code-lang {
    font-size: 9px;
  }
  
  .copy-btn {
    padding: 3px 8px;
    font-size: 9px;
  }
}

/* Print styles for code */
@media print {
  pre {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  .kw { color: #6a0dad; }
  .ty { color: #0066cc; }
  .fn { color: #008080; }
  .cm { color: #808080; }
  .st { color: #008000; }
  
  .copy-btn {
    display: none;
  }
}

.backCode {
    background-color: rgba(22, 4, 48, .95);
    border-radius: 15px;
    border: 2px solid rgba(66,201,32);
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 700px;
    height: auto;
}
