/* Configuración General y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background-color: #0d0d16;
    color: #e1e1e6;
    min-height: 100vh;
}

/* MENÚ LATERAL (SIDEBAR) */
.sidebar {
    width: 290px;
    background-color: #131321;
    border-right: 1px solid #22223b;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    padding: 25px 20px;
    z-index: 100;
}

.sidebar-header h2 {
    color: #00ffcc;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: #22223b;
    border-radius: 4px;
}

.nav-links .section-title {
    color: #636380;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin: 22px 0 6px 10px;
    letter-spacing: 1.2px;
}

.nav-links a {
    display: flex;
    align-items: center;
    color: #b3b3c6;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    margin-bottom: 2px;
}

.nav-links a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.nav-links a:hover {
    background-color: #1a1a2e;
    color: #00ffcc;
    padding-left: 18px;
}

.nav-links a.active {
    background: linear-gradient(90deg, #1e122b, #151529);
    border-left: 4px solid #ff007f;
    color: #ff007f;
    font-weight: 600;
    padding-left: 16px;
}

/* CONTADOR DE VISITAS */
.visitor-counter {
    background-color: #08080f;
    border: 1px solid #202036;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
}

.visitor-counter p {
    font-size: 0.8rem;
    color: #636380;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: bold;
}

.counter-render {
    display: inline-block;
    padding: 5px 12px;
    background-color: #131321;
    border-radius: 6px;
    border: 1px solid #ff007f;
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.15);
}

/* CONTENIDO PRINCIPAL */
.main-content {
    margin-left: 290px;
    padding: 50px;
    width: calc(100% - 290px);
    background: radial-gradient(circle at top right, #110b1e, #0d0d16 60%);
}

.wiki-section {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-banner {
    background: linear-gradient(135deg, #181326, #0f0f1b);
    border-left: 5px solid #ff007f;
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-banner h1 {
    color: #ffffff;
    font-size: 2.4rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.hero-banner p {
    color: #9e9eb8;
    font-size: 1.05rem;
}

h2 {
    color: #00ffcc;
    margin: 30px 0 15px 0;
    font-size: 1.7rem;
    font-weight: 700;
    border-bottom: 1px solid #1a1a2e;
    padding-bottom: 6px;
}

h3 {
    color: #ffffff;
    margin: 25px 0 12px 0;
    font-size: 1.25rem;
}

p, ul, ol {
    line-height: 1.8;
    color: #c4c4d4;
    margin-bottom: 18px;
    font-size: 1rem;
}

ul, ol {
    padding-left: 25px;
}

li {
    margin-bottom: 6px;
}

/* REFERENCIAS */
.reference-tag {
    color: #00ffcc;
    font-size: 0.8rem;
    vertical-align: super;
    cursor: help;
    margin-left: 2px;
    font-weight: bold;
}

.references-section {
    margin-top: 50px;
    padding-top: 15px;
    border-top: 1px dashed #22223b;
}

.references-section h3 {
    color: #636380;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ref-item {
    font-size: 0.9rem;
    color: #9393b0;
}

/* DISEÑO LAYOUT DE CONTENIDO + INFOBOX */
.content-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.body-text {
    flex-grow: 1;
}

.infobox {
    width: 320px;
    background-color: #131321;
    border: 1px solid #ff007f;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.infobox h3 {
    margin-top: 0;
    text-align: center;
    background-color: #1c1c30;
    padding: 10px;
    border-radius: 8px;
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
}

.infobox-img {
    font-size: 3.5rem;
    text-align: center;
    margin: 15px 0;
    background: #08080f;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #1c1c30;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 10px 4px;
    border-bottom: 1px solid #1c1c30;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: #8585a3;
    font-weight: 500;
}

.info-row span {
    color: #ffffff;
    text-align: right;
    padding-left: 10px;
}

/* TRADUCTOR DE GOOGLE OVERRIDES */
.translate-container {
    background-color: #08080f;
    border: 1px solid #202036;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.translate-container p {
    font-size: 0.75rem;
    color: #636380;
    margin-bottom: 6px;
    font-weight: bold;
    text-transform: uppercase;
}

.goog-te-gadget-simple {
    background-color: #131321 !important;
    border: 1px solid #00ffcc !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.1);
}

.goog-te-gadget-simple span {
    color: #e1e1e6 !important;
    font-size: 0.85rem !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
