/* ---------- PANEL DE SECCIÓN ---------- */
#section-panel {
  position: fixed; inset: 0; z-index: 10;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem; padding: clamp(16px,4vw,60px);
  background: #7fff00;
  opacity: 0; transition: opacity 0.25s ease;
}
#section-panel.visible { opacity: 1; }

#panel-bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(8px,2vw,14px);
  height: clamp(36px,5vh,44px);
  background: rgba(0,0,0,0.15);
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(10px,1.2vw,13px); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #ff0000; text-shadow: 0 0 4px rgba(255,255,255,0.7);
  gap: 8px; z-index: 1;
}
#panel-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#panel-close {
  cursor: pointer; font-size: clamp(16px,2.5vw,22px); line-height: 1;
  padding: 2px 6px; color: #ff0000; background: none; border: none;
  font-weight: 900; flex-shrink: 0;
}
#panel-close:hover, #panel-close:focus-visible { text-shadow: 0 0 8px #fff; outline: none; }

#panel-body {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: clamp(0.6rem,2vh,1.4rem);
  width: 100%; max-width: 900px;
  height: 100%;
  padding-top: clamp(36px,5vh,44px);
  text-align: center;
}

/* Títulos del panel */
.panel-title-rubik, .panel-title-trirong, .panel-title-arial,
.panel-title-audiowide, .panel-title-sofia, .panel-title-anton {
  font-weight: 900;
  font-size: clamp(1.4rem,5vw,3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ff0000;
  text-shadow: 0 0 6px rgba(255,255,255,0.5);
  line-height: 1.1;
  text-decoration: none;
  display: inline-block;
  transition: text-shadow 0.2s;
}
.panel-title-rubik { font-family: "Rubik Glitch", system-ui; }
.panel-title-trirong { font-family: "Trirong", serif; }
.panel-title-arial { font-family: Arial Black, Arial, sans-serif; }
.panel-title-audiowide { font-family: "Audiowide", sans-serif; }
.panel-title-sofia { font-family: "Sofia", cursive; }
.panel-title-anton { font-family: "Anton", sans-serif; }

.panel-title-rubik:hover, .panel-title-trirong:hover, .panel-title-arial:hover,
.panel-title-audiowide:hover, .panel-title-sofia:hover, .panel-title-anton:hover,
.panel-title-rubik:focus-visible, .panel-title-trirong:focus-visible, .panel-title-arial:focus-visible,
.panel-title-audiowide:focus-visible, .panel-title-sofia:focus-visible, .panel-title-anton:focus-visible {
  text-shadow: 0 0 18px rgba(255,255,255,0.9); outline: none;
}

.panel-subtitle {
  color: #ff0000; font-weight: 600; font-size: clamp(0.8rem,2vw,1.2rem);
  text-shadow: 0 0 8px rgba(255,255,255,0.56), 0 1px 3px rgba(255,255,255,0.35);
  text-align: center;
}
.panel-subtitle a { color: #ff0000; text-decoration: underline dotted; text-underline-offset: 3px; }

/* ---------- PANEL CONTACTO (TERMINAL) ---------- */
#contacto-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - clamp(36px,5vh,44px));
  display: flex; align-items: center; justify-content: center;
}
#ascii-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#ascii-bg pre {
  position: absolute;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', 'Symbola', 'DejaVu Sans', sans-serif;
  font-size: clamp(4px, 0.85vw, 2px);
  line-height: 1.18;
  color: rgba(0,200,0,0.88);
  white-space: pre;
  user-select: none;
  letter-spacing: 0.02em;
  margin: 0; padding: 0;
}
#contacto-terminal {
  position: relative; z-index: 1;
  width: min(560px, 90vw);
  height: min(340px, 55vh);
  background: rgba(0,0,0,0.82);
  border: 1px solid #1a5a1a;
  border-radius: 6px;
  display: flex; flex-direction: column;
  padding: 10px 14px 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px; color: #33ff33;
  box-shadow: 0 0 32px rgba(0,180,0,0.18);
}
#contacto-terminal::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none; z-index: 10; border-radius: 6px;
}
#ct-header {
  border-bottom: 1px solid #1a5a1a;
  padding-bottom: 5px; margin-bottom: 7px;
  display: flex; justify-content: space-between;
  font-size: 10px; color: #1aaa1a; flex-shrink: 0;
}
#ct-header .ct-title { color: #55ff55; letter-spacing: 0.07em; }
#ct-output {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  line-height: 1.55; scrollbar-width: thin;
  scrollbar-color: #1a5a1a #000;
}
#ct-output::-webkit-scrollbar { width: 3px; }
#ct-output::-webkit-scrollbar-track { background: #000; }
#ct-output::-webkit-scrollbar-thumb { background: #1a5a1a; }
.ct-ln { display: block; white-space: pre-wrap; word-break: break-all; }
.ct-dim    { color: #0d6b0d; }
.ct-muted  { color: #1a8a1a; }
.ct-bright { color: #88ff88; }
.ct-info   { color: #00ccff; }
.ct-warn   { color: #ffcc00; }
.ct-err    { color: #ff5555; }
.ct-echo   { color: #22cc22; }
#ct-input-area {
  display: flex; align-items: center;
  margin-top: 5px; border-top: 1px solid #1a5a1a;
  padding-top: 5px; gap: 4px; flex-shrink: 0;
}
#ct-prompt { color: #33ff33; white-space: nowrap; flex-shrink: 0; }
#ct-cmd {
  background: transparent; border: none; outline: none;
  color: #33ff33; font-family: 'Courier New', Courier, monospace;
  font-size: 12px; flex: 1; caret-color: transparent; min-width: 0;
}
#ct-cursor {
  display: inline-block; width: 6px; height: 12px;
  background: #33ff33; animation: ctblink 1s step-end infinite; flex-shrink: 0;
}
@keyframes ctblink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---------- POPUP NOTICIAS ---------- */
#noticias-popup {
  position: fixed; z-index: 100; display: none;
  border: 2px solid #ff0000; box-shadow: 0 0 20px rgba(255,0,80,0.7);
  border-radius: 4px; overflow: hidden;
  max-width: 320px; max-height: 320px; cursor: pointer;
}
#noticias-popup img { display: block; width: 100%; height: auto; }