Diferencia entre revisiones de «MediaWiki:Common.css»
Ir a la navegación
Ir a la búsqueda
Sin resumen de edición Etiqueta: Reversión manual |
Sin resumen de edición Etiqueta: Revertido |
||
| Línea 222: | Línea 222: | ||
10) NAVBAR HORIZONTAL | 10) NAVBAR HORIZONTAL | ||
--------------------------------------------------------- | --------------------------------------------------------- | ||
Desktop: | |||
- logo a la izquierda | |||
- links al centro | |||
- idiomas a la derecha | |||
Nota: | |||
- Esto usa .oroza-navbar-links para los enlaces | |||
- Esto usa .oroza-lang-switcher para ES / EN | |||
========================================================= */ | ========================================================= */ | ||
.oroza-navbar { | .oroza-navbar { | ||
background: #2b3e50; | background: linear-gradient(180deg, #35506f 0%, #2b3e50 100%); | ||
padding: | padding: 16px 24px; | ||
display: | display: grid; | ||
grid-template-columns: auto minmax(0, 1fr) auto; | |||
grid-template-areas: "brand menu lang"; | |||
align-items: center; | align-items: center; | ||
gap: 18px; | |||
font-weight: bold; | font-weight: bold; | ||
border-bottom: 3px solid #ffb400; | border-bottom: 3px solid #ffb400; | ||
border-radius: | border-radius: 22px; | ||
box-shadow: 0 | box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); | ||
margin: 20px auto; | margin: 20px auto; | ||
max-width: 1200px; | max-width: 1200px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.oroza-navbar a { | /* Logo / marca */ | ||
.oroza-navbar-logo { | |||
grid-area: brand; | |||
position: static; | |||
left: auto; | |||
display: flex; | |||
align-items: center; | |||
justify-content: flex-start; | |||
min-width: 0; | |||
} | |||
.oroza-navbar-logo img { | |||
width: 80px; | |||
height: auto; | |||
filter: drop-shadow(0 0 5px rgba(255,255,255,0.35)); | |||
} | |||
/* Grupo de links */ | |||
.oroza-navbar-links { | |||
grid-area: menu; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
flex-wrap: nowrap; | |||
gap: 24px; | |||
min-width: 0; | |||
} | |||
/* Links del menú */ | |||
.oroza-navbar-links a { | |||
color: white !important; | color: white !important; | ||
text-decoration: none; | text-decoration: none; | ||
font-size: 16px; | font-size: 16px; | ||
line-height: 1.2; | line-height: 1.2; | ||
white-space: nowrap; | white-space: nowrap; | ||
font-weight: 700; | |||
} | } | ||
.oroza-navbar a:hover { | .oroza-navbar-links a:hover { | ||
text-decoration: | text-decoration: none; | ||
color: #ffcc33 !important; | color: #ffcc33 !important; | ||
} | } | ||
/* | /* Selector de idioma */ | ||
.oroza- | .oroza-lang-switcher { | ||
grid-area: lang; | |||
display: inline-flex; | |||
display: flex; | align-items: center; | ||
justify-content: flex-end; | |||
gap: 10px; | |||
white-space: nowrap; | |||
} | |||
/* Botones ES / EN */ | |||
.oroza-lang-switcher a, | |||
#oroza-lang-es, | |||
#oroza-lang-en { | |||
min-width: 58px; | |||
height: 40px; | |||
padding: 0 14px; | |||
display: inline-flex; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | |||
border-radius: 999px; | |||
font-size: 14px; | |||
font-weight: 800; | |||
text-decoration: none !important; | |||
white-space: nowrap; | |||
box-sizing: border-box; | |||
} | } | ||
/* Estado base */ | |||
#oroza-lang-es, | |||
#oroza-lang-en { | |||
background: rgba(255, 255, 255, 0.08); | |||
color: #ffffff !important; | |||
border: 1px solid rgba(255, 255, 255, 0.12); | |||
} | |||
/* Hover */ | |||
#oroza-lang-es:hover, | |||
#oroza-lang-en:hover { | |||
background: rgba(255, 255, 255, 0.14); | |||
text-decoration: none !important; | |||
} | } | ||
/* Activo */ | |||
#oroza-lang-es.active, | |||
#oroza-lang-en.active { | |||
background: linear-gradient(180deg, #ffd94d 0%, #f4c81f 100%); | |||
color: #2b3e50 !important; | |||
border-color: rgba(255, 180, 0, 0.55); | |||
box-shadow: 0 4px 12px rgba(255, 180, 0, 0.22); | |||
} | |||
/* ========================================================= | /* ========================================================= | ||
| Línea 510: | Línea 582: | ||
} | } | ||
/* Navbar: | /* Navbar móvil real: | ||
en | fila 1 = logo + idiomas | ||
fila 2 = menú en una sola línea con scroll */ | |||
.oroza-navbar { | .oroza-navbar { | ||
display: | display: grid !important; | ||
grid-template-columns: minmax(0, 1fr) auto !important; | |||
grid-template-areas: | |||
"brand lang" | |||
"menu menu" !important; | |||
align-items: center !important; | align-items: center !important; | ||
gap: | gap: 12px 10px !important; | ||
padding: 12px | padding: 14px 12px !important; | ||
margin: 12px 10px !important; | margin: 12px 10px !important; | ||
border-radius: | border-radius: 16px !important; | ||
} | } | ||
.oroza-navbar-logo { | .oroza-navbar-logo { | ||
grid-area: brand !important; | |||
position: static !important; | position: static !important; | ||
left: auto !important; | left: auto !important; | ||
width: auto !important; | |||
margin: 0 !important; | |||
display: flex !important; | |||
align-items: center !important; | |||
justify-content: flex-start !important; | |||
min-width: 0 !important; | |||
} | |||
.oroza-navbar-logo img { | |||
width: 52px !important; | |||
max-width: 52px !important; | |||
height: auto !important; | |||
} | |||
.oroza-lang-switcher { | |||
grid-area: lang !important; | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
justify-content: flex-end !important; | |||
gap: 8px !important; | |||
margin: 0 !important; | |||
white-space: nowrap !important; | |||
} | |||
.oroza-lang-switcher a, | |||
#oroza-lang-es, | |||
#oroza-lang-en { | |||
min-width: 50px !important; | |||
height: 36px !important; | |||
padding: 0 10px !important; | |||
font-size: 12px !important; | |||
} | |||
.oroza-navbar-links { | |||
grid-area: menu !important; | |||
display: flex !important; | |||
flex-wrap: nowrap !important; | |||
align-items: center !important; | |||
justify-content: flex-start !important; | |||
gap: 16px !important; | |||
width: 100% !important; | width: 100% !important; | ||
min-width: 0 !important; | |||
overflow-x: auto !important; | |||
overflow-y: hidden !important; | |||
padding-bottom: 2px !important; | |||
-webkit-overflow-scrolling: touch !important; | |||
scrollbar-width: none !important; | |||
} | |||
.oroza-navbar-links::-webkit-scrollbar { | |||
display: none !important; | |||
} | } | ||
.oroza-navbar- | .oroza-navbar-links a { | ||
flex: 0 0 auto !important; | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
padding: 6px 0 !important; | |||
font-size: 13px !important; | |||
line-height: 1.2 !important; | |||
text-align: center !important; | |||
white-space: nowrap !important; | |||
} | } | ||
Revisión del 10:23 5 abr 2026
/* =========================================================
OROZA WIKI - ESTILOS GENERALES MEJORADOS
---------------------------------------------------------
Objetivo:
- Mantener tu estilo visual limpio y profesional
- Mejorar el comportamiento en celular
- Evitar que navbar, tablas e imágenes rompan el diseño
- Hacer el CSS más fácil de entender y mantener
========================================================= */
/* =========================================================
1) BASE GENERAL DEL SITIO
---------------------------------------------------------
Estilos globales del body, tipografía y color base
========================================================= */
body {
background-color: #f2f2f2;
font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
color: #333;
overflow-x: hidden; /* Evita scroll horizontal accidental */
}
/* Hace que imágenes y elementos no se salgan del ancho de pantalla */
html,
body {
max-width: 100%;
overflow-x: hidden;
}
img {
max-width: 100%;
height: auto;
}
/* =========================================================
2) CONTENIDO PRINCIPAL
---------------------------------------------------------
Caja principal blanca donde se ve el contenido de la wiki
========================================================= */
#content {
background-color: #fff;
padding: 30px;
margin: 20px auto;
border-radius: 12px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
max-width: 1200px;
}
/* =========================================================
3) TITULO PRINCIPAL DE PAGINA
---------------------------------------------------------
Controla el heading principal de MediaWiki
========================================================= */
.firstHeading {
font-size: 2.2rem;
font-weight: bold;
color: #2b4a6d;
margin-bottom: 20px;
line-height: 1.2;
text-align: center;
}
/* =========================================================
4) TABLA DE CONTENIDO
---------------------------------------------------------
Caja del índice / TOC
========================================================= */
#toc {
background-color: #eef4ff;
border: 1px solid #cddaf1;
padding: 10px;
border-radius: 8px;
}
/* =========================================================
5) ENLACES
---------------------------------------------------------
Estilo general para links
========================================================= */
a {
color: #1e70bf;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.mw-body a {
color: #1e70bf;
font-weight: 500;
}
/* =========================================================
6) ENCABEZADOS JERARQUICOS
---------------------------------------------------------
h1 a h6 centrados, elegantes y sin subrayado
========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
font-weight: 700;
text-align: center;
color: #2b4a6d;
margin-top: 40px;
margin-bottom: 30px;
line-height: 1.3;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
border-bottom: none;
background: none !important;
}
/* Tamaños progresivos de títulos */
h1 {
font-size: 2.8rem;
}
h2 {
font-size: 2.5rem;
}
h3 {
font-size: 2.3rem;
}
h4 {
font-size: 1.6rem;
}
h5 {
font-size: 1.3rem;
}
h6 {
font-size: 1.1rem;
color: #444;
}
/* =========================================================
7) BOTONES CON ICONO
---------------------------------------------------------
Útiles para enlaces visuales tipo botón
========================================================= */
.button-icon {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: #2b4a6d;
color: white;
padding: 8px 12px;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
transition: background 0.2s ease;
box-sizing: border-box;
}
.button-icon:hover {
background: #1e324f;
}
.button-icon::before {
content: '??';
}
/* =========================================================
8) CAJAS INFORMATIVAS
---------------------------------------------------------
Bloques para avisos, recomendaciones y alertas
========================================================= */
.box-info {
background: #eef4ff;
border-left: 5px solid #1e70bf;
padding: 15px;
border-radius: 8px;
margin: 20px 0;
}
.box-warning {
background: #fff4e5;
border-left: 5px solid #ffa500;
padding: 15px;
border-radius: 8px;
margin: 20px 0;
}
.box-tip {
background: #eaffea;
border-left: 5px solid #28a745;
padding: 15px;
border-radius: 8px;
margin: 20px 0;
}
/* =========================================================
9) LISTAS
---------------------------------------------------------
Espaciado para ul y ol
========================================================= */
ul,
ol {
padding-left: 40px;
margin-bottom: 20px;
}
/* =========================================================
10) NAVBAR HORIZONTAL
---------------------------------------------------------
Desktop:
- logo a la izquierda
- links al centro
- idiomas a la derecha
Nota:
- Esto usa .oroza-navbar-links para los enlaces
- Esto usa .oroza-lang-switcher para ES / EN
========================================================= */
.oroza-navbar {
background: linear-gradient(180deg, #35506f 0%, #2b3e50 100%);
padding: 16px 24px;
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-areas: "brand menu lang";
align-items: center;
gap: 18px;
font-weight: bold;
border-bottom: 3px solid #ffb400;
border-radius: 22px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
margin: 20px auto;
max-width: 1200px;
box-sizing: border-box;
}
/* Logo / marca */
.oroza-navbar-logo {
grid-area: brand;
position: static;
left: auto;
display: flex;
align-items: center;
justify-content: flex-start;
min-width: 0;
}
.oroza-navbar-logo img {
width: 80px;
height: auto;
filter: drop-shadow(0 0 5px rgba(255,255,255,0.35));
}
/* Grupo de links */
.oroza-navbar-links {
grid-area: menu;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
gap: 24px;
min-width: 0;
}
/* Links del menú */
.oroza-navbar-links a {
color: white !important;
text-decoration: none;
font-size: 16px;
line-height: 1.2;
white-space: nowrap;
font-weight: 700;
}
.oroza-navbar-links a:hover {
text-decoration: none;
color: #ffcc33 !important;
}
/* Selector de idioma */
.oroza-lang-switcher {
grid-area: lang;
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
white-space: nowrap;
}
/* Botones ES / EN */
.oroza-lang-switcher a,
#oroza-lang-es,
#oroza-lang-en {
min-width: 58px;
height: 40px;
padding: 0 14px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
font-size: 14px;
font-weight: 800;
text-decoration: none !important;
white-space: nowrap;
box-sizing: border-box;
}
/* Estado base */
#oroza-lang-es,
#oroza-lang-en {
background: rgba(255, 255, 255, 0.08);
color: #ffffff !important;
border: 1px solid rgba(255, 255, 255, 0.12);
}
/* Hover */
#oroza-lang-es:hover,
#oroza-lang-en:hover {
background: rgba(255, 255, 255, 0.14);
text-decoration: none !important;
}
/* Activo */
#oroza-lang-es.active,
#oroza-lang-en.active {
background: linear-gradient(180deg, #ffd94d 0%, #f4c81f 100%);
color: #2b3e50 !important;
border-color: rgba(255, 180, 0, 0.55);
box-shadow: 0 4px 12px rgba(255, 180, 0, 0.22);
}
/* =========================================================
11) SIDEBAR LATERAL
---------------------------------------------------------
Menú lateral de navegación
========================================================= */
.oroza-sidebar {
background: #ffffff;
border: 1px solid #ddd;
padding: 15px 20px;
border-radius: 10px;
width: 280px;
font-size: 14px;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
box-sizing: border-box;
}
/* Título de cada sección del menú lateral */
.oroza-sidebar .menu-title {
font-weight: bold;
color: #2b4a6d;
font-size: 17px;
margin: 20px 0 12px;
border-left: 4px solid #ffb400;
padding-left: 10px;
}
/* Lista interna del sidebar */
.oroza-sidebar ul {
list-style: none;
padding-left: 0;
margin: 0;
}
.oroza-sidebar li {
margin: 6px 0;
display: flex;
align-items: center;
gap: 8px;
}
.oroza-sidebar li::before {
display: inline-block;
margin-right: 3px;
}
/* =========================================================
12) TABLAS PERSONALIZADAS
---------------------------------------------------------
Mejoradas para escritorio y con scroll horizontal en móvil
========================================================= */
.oroza-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 14px;
background-color: #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
border-radius: 8px;
overflow: hidden;
}
.oroza-table thead {
background-color: #2b4a6d;
color: #fff;
text-align: left;
font-weight: bold;
}
.oroza-table th,
.oroza-table td {
padding: 12px 15px;
border-bottom: 1px solid #eee;
}
.oroza-table tbody tr:nth-child(even) {
background-color: #f9f9f9;
}
.oroza-table tbody tr:hover {
background-color: #eef4ff;
}
.oroza-table .highlight {
color: #ffb400;
font-weight: bold;
}
.oroza-table .center-icon {
text-align: center;
font-size: 18px;
}
.oroza-table .zeny {
color: #28a745;
font-weight: bold;
}
/* Variante opcional para tablas de ancho automático */
.oroza-table.auto-width {
width: auto !important;
max-width: 100%;
table-layout: auto !important;
margin: 20px auto;
display: table;
}
/* =========================================================
13) EFECTO ZOOM EN IMAGENES
---------------------------------------------------------
Útil para imágenes pequeñas o decorativas
========================================================= */
.zoom-img {
transition: transform 0.25s ease;
cursor: zoom-in;
}
.zoom-img:hover {
transform: scale(1.35);
z-index: 10;
}
/* =========================================================
14) IMAGENES REDONDEADAS CON EFECTO SUAVE
---------------------------------------------------------
Tus imágenes principales decorativas
========================================================= */
img {
max-width: 100%;
height: auto;
}
img.round-fade {
width: 55%;
border-radius: 20px;
margin: 10px auto;
display: block;
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, opacity 0.3s ease;
object-fit: cover;
opacity: 0.97;
}
img.round-fade:hover {
transform: scale(1.08);
opacity: 1;
}
/* =========================================================
15) OCULTAR ELEMENTOS ORIGINALES DE MEDIAWIKI
---------------------------------------------------------
Esto oculta partes viejas del layout por defecto
========================================================= */
#p-logo,
#footer,
#mw-panel {
display: none !important;
}
/* =========================================================
16) TOGGLE / MENU COLAPSABLE
---------------------------------------------------------
Si no lo usas, se deja oculto
========================================================= */
.toggle-checkbox {
display: none;
}
.toggle-label {
display: none !important;
}
/* =========================================================
17) TABLET Y MOVIL
---------------------------------------------------------
Aquí está la mejora más importante.
Ya no apilamos la navbar completa en columna.
En lugar de eso:
- reducimos tamaños
- hacemos wrap controlado
- ajustamos logo
- permitimos scroll en tablas
========================================================= */
/* =========================================================
RESPONSIVE CORREGIDO
---------------------------------------------------------
- No reduce el ancho en PC
- Corrige mejor el móvil
- Usa !important en lo necesario porque en wiki a veces
hay estilos inline que ganan prioridad visual
========================================================= */
@media screen and (max-width: 768px) {
/* Caja principal más compacta en móvil */
#content {
padding: 16px !important;
margin: 10px !important;
border-radius: 10px !important;
}
/* Si tu layout usa wrapper flex */
.oroza-flex-wrapper {
display: flex !important;
flex-direction: column !important;
gap: 16px !important;
}
.oroza-flex-wrapper > div {
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
}
/* Sidebar a ancho completo */
.oroza-sidebar {
width: 100% !important;
max-width: 100% !important;
margin-bottom: 16px !important;
display: block !important;
padding: 14px 16px !important;
box-sizing: border-box !important;
}
.oroza-sidebar .menu-title {
font-size: 15px !important;
margin: 16px 0 10px !important;
}
.oroza-sidebar li {
font-size: 13px !important;
line-height: 1.35 !important;
gap: 6px !important;
}
/* Navbar móvil real:
fila 1 = logo + idiomas
fila 2 = menú en una sola línea con scroll */
.oroza-navbar {
display: grid !important;
grid-template-columns: minmax(0, 1fr) auto !important;
grid-template-areas:
"brand lang"
"menu menu" !important;
align-items: center !important;
gap: 12px 10px !important;
padding: 14px 12px !important;
margin: 12px 10px !important;
border-radius: 16px !important;
}
.oroza-navbar-logo {
grid-area: brand !important;
position: static !important;
left: auto !important;
width: auto !important;
margin: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: flex-start !important;
min-width: 0 !important;
}
.oroza-navbar-logo img {
width: 52px !important;
max-width: 52px !important;
height: auto !important;
}
.oroza-lang-switcher {
grid-area: lang !important;
display: inline-flex !important;
align-items: center !important;
justify-content: flex-end !important;
gap: 8px !important;
margin: 0 !important;
white-space: nowrap !important;
}
.oroza-lang-switcher a,
#oroza-lang-es,
#oroza-lang-en {
min-width: 50px !important;
height: 36px !important;
padding: 0 10px !important;
font-size: 12px !important;
}
.oroza-navbar-links {
grid-area: menu !important;
display: flex !important;
flex-wrap: nowrap !important;
align-items: center !important;
justify-content: flex-start !important;
gap: 16px !important;
width: 100% !important;
min-width: 0 !important;
overflow-x: auto !important;
overflow-y: hidden !important;
padding-bottom: 2px !important;
-webkit-overflow-scrolling: touch !important;
scrollbar-width: none !important;
}
.oroza-navbar-links::-webkit-scrollbar {
display: none !important;
}
.oroza-navbar-links a {
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 6px 0 !important;
font-size: 13px !important;
line-height: 1.2 !important;
text-align: center !important;
white-space: nowrap !important;
}
.oroza-navbar a {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 6px 9px !important;
font-size: 13px !important;
line-height: 1.2 !important;
text-align: center !important;
white-space: nowrap !important;
}
/* Títulos más compactos en móvil */
.firstHeading {
font-size: 1.6rem !important;
line-height: 1.2 !important;
margin-bottom: 14px !important;
}
h1 {
font-size: 1.9rem !important;
margin-top: 24px !important;
margin-bottom: 18px !important;
}
h2 {
font-size: 1.6rem !important;
margin-top: 22px !important;
margin-bottom: 16px !important;
}
h3 {
font-size: 1.35rem !important;
margin-top: 20px !important;
margin-bottom: 14px !important;
}
h4 {
font-size: 1.15rem !important;
margin-top: 18px !important;
margin-bottom: 12px !important;
}
h5 {
font-size: 1rem !important;
margin-top: 16px !important;
margin-bottom: 10px !important;
}
h6 {
font-size: 0.95rem !important;
margin-top: 14px !important;
margin-bottom: 10px !important;
}
/* Listas más compactas */
ul,
ol {
padding-left: 22px !important;
margin-bottom: 16px !important;
}
/* Cajas informativas */
.box-info,
.box-warning,
.box-tip {
padding: 12px !important;
margin: 14px 0 !important;
border-radius: 8px !important;
}
/* Botones ocupan mejor el ancho disponible */
.button-icon {
width: 100% !important;
justify-content: center !important;
padding: 10px 12px !important;
box-sizing: border-box !important;
text-align: center !important;
}
/* Tablas con scroll horizontal */
.oroza-table,
.oroza-table.auto-width {
display: block !important;
width: 100% !important;
max-width: 100% !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important;
white-space: nowrap !important;
}
.oroza-table th,
.oroza-table td {
white-space: nowrap !important;
font-size: 13px !important;
padding: 10px 12px !important;
}
/* Imágenes más fluidas */
img.round-fade {
width: 100% !important;
max-width: 100% !important;
border-radius: 14px !important;
margin: 10px auto !important;
}
/* Hover desactivado en móvil */
.zoom-img:hover,
img.round-fade:hover {
transform: none !important;
opacity: 0.97 !important;
}
.toggle-label {
display: none !important;
}
}
/* =========================================================
MOVILES PEQUEÑOS
========================================================= */
@media screen and (max-width: 480px) {
#content {
padding: 12px !important;
margin: 8px !important;
border-radius: 8px !important;
}
.oroza-navbar {
gap: 6px 8px !important;
padding: 10px 8px !important;
}
.oroza-navbar a {
font-size: 12px !important;
padding: 6px 8px !important;
}
.oroza-navbar-logo img {
width: 48px !important;
max-width: 48px !important;
}
.firstHeading {
font-size: 1.4rem !important;
}
h1 {
font-size: 1.65rem !important;
}
h2 {
font-size: 1.4rem !important;
}
h3 {
font-size: 1.2rem !important;
}
.oroza-sidebar {
padding: 12px !important;
}
.oroza-sidebar li {
font-size: 12px !important;
}
}
/* =========================================================
19) AJUSTE PARA DISPOSITIVOS QUE SI SOPORTAN HOVER
---------------------------------------------------------
Solo deja zoom bonito en escritorio / mouse
========================================================= */
@media (hover: hover) {
.zoom-img:hover {
transform: scale(1.35);
z-index: 10;
}
img.round-fade:hover {
transform: scale(1.08);
opacity: 1;
}
}
/* =========================================================
20) AJUSTE PARA DISPOSITIVOS TOUCH
---------------------------------------------------------
Quita animaciones de hover agresivas en celular
========================================================= */
@media (hover: none) {
.zoom-img:hover,
img.round-fade:hover {
transform: none;
opacity: 0.97;
}
}
/* =========================================================
MENU LATERAL OROZA - VERSION MEJORADA
---------------------------------------------------------
Objetivo:
- Integrarse con el estilo general blanco + dorado
- Verse más premium y ordenado
- Mantener compatibilidad con tu HTML actual
- Funcionar bien en desktop y celular
- No modificar navbar ni contenido principal
========================================================= */
/* =========================================================
1) VARIABLES VISUALES DEL MENU
---------------------------------------------------------
Si luego quieres ajustar color, sombra o bordes,
aquí lo cambias todo más fácil.
========================================================= */
:root {
--oroza-side-bg: #ffffff;
--oroza-side-panel: #ffffff;
--oroza-side-item: #fbfcfe;
--oroza-side-item-hover: #f4f8fc;
--oroza-side-border: #e4ebf3;
--oroza-side-border-soft: #eef3f8;
--oroza-side-text: #243246;
--oroza-side-muted: #607086;
--oroza-side-gold: #dcae1d;
--oroza-side-gold-strong: #c79400;
--oroza-side-gold-soft: rgba(220, 174, 29, 0.12);
--oroza-side-shadow: 0 12px 30px rgba(22, 34, 52, 0.08);
--oroza-side-shadow-soft: 0 4px 14px rgba(22, 34, 52, 0.05);
--oroza-side-radius: 18px;
--oroza-side-radius-sm: 12px;
}
/* =========================================================
2) CONTENEDOR GENERAL DEL MENU
---------------------------------------------------------
Este envuelve el toggle y el panel lateral.
========================================================= */
.oroza-sidebar-toggle {
width: 100%;
color: var(--oroza-side-text);
font-family: "Segoe UI", Tahoma, Arial, sans-serif;
box-sizing: border-box;
}
/* =========================================================
3) CHECKBOX OCULTO PARA TOGGLE EN MOVIL
---------------------------------------------------------
Se usa solo para abrir/cerrar el menú en pantallas chicas.
========================================================= */
.toggle-checkbox {
display: none;
}
/* =========================================================
4) BOTON DE TOGGLE MOVIL
---------------------------------------------------------
En desktop permanece oculto.
En móvil aparece como botón para mostrar el menú.
========================================================= */
.toggle-label {
display: none;
width: 100%;
box-sizing: border-box;
padding: 13px 16px;
margin-bottom: 14px;
border: 1px solid var(--oroza-side-border);
border-radius: 14px;
background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
color: var(--oroza-side-text);
font-size: 14px;
font-weight: 800;
text-align: center;
letter-spacing: 0.2px;
cursor: pointer;
box-shadow: var(--oroza-side-shadow-soft);
transition:
background 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease;
}
.toggle-label:hover {
border-color: #d8e1ea;
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
box-shadow: 0 8px 20px rgba(22, 34, 52, 0.08);
}
/* =========================================================
5) PANEL PRINCIPAL DEL SIDEBAR
---------------------------------------------------------
Caja blanca premium del menú lateral.
========================================================= */
.oroza-sidebar {
background: var(--oroza-side-panel);
border: 1px solid var(--oroza-side-border);
border-radius: 22px;
padding: 16px;
box-shadow: var(--oroza-side-shadow);
box-sizing: border-box;
}
/* =========================================================
6) TITULOS DE CATEGORIA
---------------------------------------------------------
Bloques tipo sección para dividir el menú.
Estilo azul + dorado, combinado con la navbar.
========================================================= */
.oroza-sidebar .menu-title {
display: flex;
align-items: center;
gap: 10px;
margin: 18px 0 10px;
padding: 12px 14px;
background: linear-gradient(180deg, #35506f 0%, #2b3e50 100%);
border: 1px solid rgba(255, 180, 0, 0.35);
border-left: 5px solid #ffb400;
border-radius: 12px;
color: #ffffff;
font-size: 14px;
font-weight: 800;
line-height: 1.25;
letter-spacing: 0.2px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
box-shadow:
0 4px 12px rgba(0, 0, 0, 0.10),
inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.oroza-sidebar .menu-title:first-child {
margin-top: 0;
}
/* =========================================================
7) LISTAS BASE DEL MENU
---------------------------------------------------------
Elimina estilos de lista por defecto.
========================================================= */
.oroza-sidebar ul {
list-style: none;
margin: 0;
padding: 0;
}
.oroza-sidebar li {
margin: 0;
padding: 0;
}
.oroza-sidebar li + li {
margin-top: 6px;
}
/* =========================================================
8) ENLACES DEL MENU
---------------------------------------------------------
Cada opción se ve como tarjeta pequeña.
========================================================= */
.oroza-sidebar li a {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
min-height: 46px;
box-sizing: border-box;
padding: 10px 12px;
background: var(--oroza-side-item);
border: 1px solid var(--oroza-side-border-soft);
border-radius: var(--oroza-side-radius-sm);
color: var(--oroza-side-text) !important;
text-decoration: none !important;
font-size: 14px;
font-weight: 600;
line-height: 1.35;
box-shadow: var(--oroza-side-shadow-soft);
transition:
background 0.18s ease,
border-color 0.18s ease,
transform 0.18s ease,
box-shadow 0.18s ease,
color 0.18s ease;
}
/* Hover suave, elegante y compatible con tu look */
.oroza-sidebar li a:hover {
background: var(--oroza-side-item-hover);
border-color: #dce5ef;
color: #162234 !important;
text-decoration: none !important;
transform: translateX(3px);
box-shadow: 0 8px 18px rgba(22, 34, 52, 0.08);
}
/* Focus visible para accesibilidad */
.oroza-sidebar li a:focus {
outline: none;
border-color: rgba(220, 174, 29, 0.58);
box-shadow: 0 0 0 4px rgba(220, 174, 29, 0.12);
}
/* Estado activo opcional:
si algún día agregas class="active" al link actual */
.oroza-sidebar li a.active,
.oroza-sidebar li a.is-active {
background: linear-gradient(180deg, #fffaf1 0%, #fff4dd 100%);
border-color: rgba(220, 174, 29, 0.38);
color: #1a2738 !important;
box-shadow:
0 8px 18px rgba(22, 34, 52, 0.06),
inset 0 0 0 1px rgba(220, 174, 29, 0.08);
}
/* =========================================================
9) ICONO, TEXTO Y FLECHA
---------------------------------------------------------
Mejor control visual de cada parte del link.
========================================================= */
.menu-icon {
width: 22px;
min-width: 22px;
text-align: center;
font-size: 16px;
line-height: 1;
opacity: 0.96;
}
.menu-text {
flex: 1;
min-width: 0;
word-break: break-word;
}
.menu-arrow {
color: var(--oroza-side-gold-strong);
font-size: 14px;
font-weight: 900;
line-height: 1;
opacity: 0.92;
transition: transform 0.18s ease, opacity 0.18s ease;
}
.oroza-sidebar li a:hover .menu-arrow {
transform: translateX(2px);
opacity: 1;
}
/* =========================================================
10) AJUSTE DESKTOP
---------------------------------------------------------
Mantiene el menú con un ancho agradable y estable.
========================================================= */
@media screen and (min-width: 981px) {
.oroza-sidebar {
max-width: 330px;
}
}
/* =========================================================
11) TABLET / MOVIL
---------------------------------------------------------
Muestra botón toggle y colapsa el menú lateral.
========================================================= */
@media screen and (max-width: 980px) {
.toggle-label {
display: block;
}
.oroza-sidebar {
display: none;
padding: 14px;
border-radius: 18px;
}
.toggle-checkbox:checked + .toggle-label + .oroza-sidebar {
display: block;
}
.oroza-sidebar .menu-title {
font-size: 14px;
padding: 11px 12px;
}
.oroza-sidebar li a {
min-height: 44px;
font-size: 13.5px;
padding: 10px 11px;
}
.menu-icon {
width: 20px;
min-width: 20px;
font-size: 15px;
}
}
/* =========================================================
12) CELULAR PEQUEÑO
---------------------------------------------------------
Compacta un poco más sin perder legibilidad.
========================================================= */
@media screen and (max-width: 480px) {
.toggle-label {
padding: 12px 14px;
font-size: 13px;
border-radius: 12px;
}
.oroza-sidebar {
padding: 12px;
border-radius: 16px;
}
.oroza-sidebar .menu-title {
gap: 8px;
margin: 16px 0 9px;
padding: 10px 11px;
font-size: 13px;
}
.oroza-sidebar li + li {
margin-top: 5px;
}
.oroza-sidebar li a {
min-height: 42px;
padding: 9px 10px;
font-size: 13px;
gap: 9px;
}
.menu-icon {
width: 18px;
min-width: 18px;
font-size: 14px;
}
.menu-arrow {
font-size: 13px;
}
}
/* =========================================================
OCULTAR TITULO NATIVO Y PANEL SUPERIOR DE MEDIAWIKI
---------------------------------------------------------
- .mw-page-title-main: título nativo de la página
- .mw-head / #mw-head: panel superior nativo
========================================================= */
/* Oculta el título nativo */
.mw-page-title-main {
display: none !important;
}
/* Oculta el panel superior si viene como clase */
.mw-head {
display: none !important;
}
/* Oculta el panel superior si tu skin lo maneja como id */
#mw-head {
display: none !important;
}
/* Opcional: también quita la base/fondo superior del skin */
#mw-head-base {
display: none !important;
}