/* Reseteo básico */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: "MS PGothic", "Hiragino Kaku Gothic Pro", Arial, sans-serif;
    background-color: #e6e6e6;
}

/* Contenedor principal amplio (1180px) */
.main-container {
    width: 1180px;
    max-width: 96vw;
    margin: 25px auto;
    background-color: #ffffff;
    border: 1px solid #555;
    font-size: 15px; /* Subido para mejor legibilidad */
    line-height: 1.7;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

/* CABECERA SUPERIOR */
.top-header {
    height: 26px;
    background-color: #fff;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #777;
    font-size: 13px;
}

/* BANNER DE LOGOS */
.logo-banner {
    height: 125px;
    border-bottom: 1px solid #777;
    display: flex;
}

.logo-left-box {
    width: 260px;
    height: 100%;
    border-right: 1px solid #777;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
}

.logo-left {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-right-box {
    flex-grow: 1;
    height: 100%;
    background-color: #99ccff;
    color: #fff;
    padding: 10px 15px;
    position: relative;
    overflow: hidden;
}

.logo-right {
    height: 90px;
    width: auto;
}

.shop-text {
    font-weight: bold;
    font-size: 13px;
    margin-top: 4px;
}

.shop-cart {
    position: absolute;
    right: 20px;
    bottom: 12px;
    height: 85px;
    width: auto;
}

/* BARRA GRIS MEDIA */
.mid-grey-bar {
    background-color: #8c8c8c;
    color: #fff;
    height: 26px;
    border-bottom: 1px solid #666;
    font-size: 13px;
}

.mid-bar-inner {
    padding: 2px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CUERPO PRINCIPAL */
.main-body {
    display: flex;
    min-height: 520px;
}

/* COLUMNA IZQUIERDA (NAVEGACIÓN) */
.nav-column {
    width: 260px;
    min-width: 260px;
    background-color: #bebebe;
    border-right: 1px solid #777;
    padding: 20px 15px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.nav-list img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    object-fit: contain;
}

.nav-list a {
    color: #000;
    text-decoration: underline;
    font-size: 15px;
    font-weight: bold;
}

.nav-list a:hover {
    color: #ff0000;
}

/* COLUMNA DERECHA (CONTENIDO) */
.content-column {
    flex-grow: 1;
    padding: 22px 28px;
    position: relative;
    background-color: #fff;
}

.content-column p {
    margin: 0 0 16px 0;
    color: #111;
    font-size: 15px;
}

.content-section-title {
    font-weight: bold;
    font-size: 17px;
    margin-top: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #777;
    padding-bottom: 4px;
}

.date {
    color: #777;
    font-weight: normal;
    font-size: 13px;
    margin-left: 10px;
}

.plant-character {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 130px;
    height: auto;
}

/* ENLACES EXTERNOS RETRO */
.retro-links-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 8px 10px;
    background-color: #f9f9f9;
    border: 1px dashed #aaa;
}

.retro-link-btn {
    display: inline-block;
    color: #0000ff;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
}

.retro-link-btn .bullet {
    color: #0000ff;
    font-family: monospace;
    font-weight: bold;
    text-decoration: none;
    margin-right: 3px;
}

.retro-link-btn:hover {
    color: #0000ff;
    background-color: #ffff00;
}

/* FORMULARIO DE SUSCRIPCIÓN */
.subscribe-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 12px;
}

.subscribe-form label {
    font-size: 13px;
}

.subscribe-form input {
    width: 260px;
    height: 26px;
    border: 1px solid #777;
    padding: 2px 6px;
    font-size: 13px;
}

.subscribe-form button {
    height: 26px;
    padding: 0 14px;
    border: 1px solid #666;
    background-color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
}

.subscribe-form button:active {
    background-color: #bbb;
}

/* PIE DE PÁGINA */
.footer-bar {
    clear: both;
    background-color: #8c8c8c;
    color: #fff;
    height: 42px;
    border-top: 1px solid #666;
}

.footer-inner {
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    font-size: 13px;
}

.footer-bar a {
    color: #fff;
    text-decoration: underline;
}

.footer-icons {
    display: flex;
    gap: 8px;
    margin-right: 200px;
}

.footer-icons img {
    width: 26px;
    height: 26px;
}

.footer-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: #fff;
    width: 190px;
    height: 90px;
    border: 1px solid #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -2px -2px 6px rgba(0,0,0,0.12);
}

.footer-badge img {
    height: 58px;
    width: auto;
}

.badge-text {
    color: #000;
    font-size: 11px;
    margin-top: 2px;
}

.web-buttons-container a img {
    border: none;
    outline: none;
}

/* TEMA NOCTURNO RETRO (TEXTO BLANCO Y BARRA NEGRA) */
body.night-mode {
    background-color: #0d0d0d !important;
    color: #ffffff !important;
}

/* BARRA SUPERIOR TOTALMENTE NEGRA */
body.night-mode .top-header {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-bottom-color: #333333 !important;
}

body.night-mode .top-header span,
body.night-mode .top-url {
    color: #ffffff !important;
}

/* BARRA MEDIA GRIS Y FOOTER EN NEGRO */
body.night-mode .mid-grey-bar,
body.night-mode .footer-bar {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

body.night-mode .mid-bar-inner span,
body.night-mode .left-text,
body.night-mode .right-text {
    color: #ffffff !important;
}

/* CONTENEDORES PRINCIPALES */
body.night-mode .main-container,
body.night-mode .content-column {
    background-color: #141414 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* COLUMNA IZQUIERDA (NAVEGACIÓN) */
body.night-mode .nav-column {
    background-color: #1f1f1f !important;
    border-color: #333333 !important;
}

body.night-mode .nav-list a {
    color: #ffffff !important;
}

body.night-mode .nav-list a:hover {
    color: #ff66b2 !important;
    background-color: #2a2a2a !important;
}

/* TEXTOS, TÍTULOS Y PÁRRAFOS EN BLANCO */
body.night-mode .content-section-title {
    border-color: #333333 !important;
    color: #ffffff !important;
}

body.night-mode .content-section-title .entry-title-link {
    color: #66b3ff !important;
}

body.night-mode .content-section-title .entry-title-link:hover {
    color: #ff66b2 !important;
    background-color: #222222 !important;
}

body.night-mode p, 
body.night-mode span,
body.night-mode div,
body.night-mode .date {
    color: #ffffff !important;
}

/* BANNER DE LOGOS EN MODO OSCURO */
body.night-mode .logo-left-box {
    background-color: #0a0a0a !important;
    border-color: #333333 !important;
}

body.night-mode .logo-right-box {
    background-color: #001f3f !important;
    color: #ffffff !important;
}

/* BOTÓN DE CAMBIO DE TEMA */
.theme-toggle-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    font-family: inherit;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
}

.theme-toggle-btn:active {
    border-style: inset;
}

body.night-mode .theme-toggle-btn {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #555555 !important;
}
/* FORZAR FONDO NEGRO TOTAL EN PANTALLA COMPLETA */
html.night-mode,
body.night-mode {
    background-color: #000000 !important;
    background: #000000 !important;
    min-height: 100vh;
}
/* CAJA DE ENLACES EXTERNOS EN MODO NOCTURNO */
body.night-mode .retro-links-box {
    background-color: #1a1a1a !important;
    border-color: #444444 !important;
}

body.night-mode .retro-link-btn {
    color: #ffffff !important;
}

/* EL SYMBOLO [+] EN BLANCO PARA MODO NOCTURNO */
body.night-mode .retro-link-btn .bullet {
    color: #ffffff !important; 
}

body.night-mode .retro-link-btn:hover {
    color: #66b3ff !important;
    background-color: #222222 !important;
}