Diferencia entre revisiones de «MediaWiki:Common.css»

De Oroza RO Wiki
Ir a la navegación Ir a la búsqueda
Sin resumen de edición
Etiqueta: Reversión manual
Sin resumen de edición
Línea 1: Línea 1:
/* === Tipografía y fondo general === */
/* =========================================================
  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 {
body {
   background-color: #f2f2f2;
   background-color: #f2f2f2;
   font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
   font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
   color: #333;
   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%;
}
}


/* === Contenido principal === */
 
/* =========================================================
  2) CONTENIDO PRINCIPAL
  ---------------------------------------------------------
  Caja principal blanca donde se ve el contenido de la wiki
========================================================= */
#content {
#content {
   background-color: #fff;
   background-color: #fff;
Línea 12: Línea 39:
   margin: 20px auto;
   margin: 20px auto;
   border-radius: 12px;
   border-radius: 12px;
   box-shadow: 0 0 10px rgba(0,0,0,0.1);
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
   max-width: 1200px;
   max-width: 1200px;
  width: min(100%, 1200px);
  box-sizing: border-box;
}
}


/* === Título de página === */
 
/* =========================================================
  3) TITULO PRINCIPAL DE PAGINA
  ---------------------------------------------------------
  Controla el heading principal de MediaWiki
========================================================= */
.firstHeading {
.firstHeading {
   font-size: 2.2rem;
   font-size: 2.2rem;
Línea 22: Línea 56:
   color: #2b4a6d;
   color: #2b4a6d;
   margin-bottom: 20px;
   margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
}
}


/* === Tabla de contenido === */
 
/* =========================================================
  4) TABLA DE CONTENIDO
  ---------------------------------------------------------
  Caja del índice / TOC
========================================================= */
#toc {
#toc {
   background-color: #eef4ff;
   background-color: #eef4ff;
Línea 32: Línea 73:
}
}


/* === Enlaces === */
 
/* =========================================================
  5) ENLACES
  ---------------------------------------------------------
  Estilo general para links
========================================================= */
a {
a {
   color: #1e70bf;
   color: #1e70bf;
   text-decoration: none;
   text-decoration: none;
}
}
a:hover {
a:hover {
   text-decoration: underline;
   text-decoration: underline;
}
}


/* === Encabezados jerárquicos mejorados y sin subrayado === */
.mw-body a {
h1, h2, h3, h4, h5, h6 {
  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-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
   font-weight: 700;
   font-weight: 700;
Línea 48: Línea 110:
   color: #2b4a6d;
   color: #2b4a6d;
   margin-top: 40px;
   margin-top: 40px;
   margin-bottom: 30px; /* más espacio debajo */
   margin-bottom: 30px;
   line-height: 1.3;
   line-height: 1.3;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
   border-bottom: none; /* elimina subrayado si existiera */
   border-bottom: none;
   background: none !important; /* previene fondos heredados */
   background: none !important;
}
}


/* Tamaños progresivos de mayor a menor */
/* Tamaños progresivos de títulos */
h1 {
h1 {
   font-size: 2.8rem;
   font-size: 2.8rem;
}
}
h2 {
h2 {
   font-size: 2.5rem;
   font-size: 2.5rem;
}
}
h3 {
h3 {
   font-size: 2.3rem;
   font-size: 2.3rem;
}
}
h4 {
h4 {
   font-size: 1.6rem;
   font-size: 1.6rem;
}
}
h5 {
h5 {
   font-size: 1.3rem;
   font-size: 1.3rem;
}
}
h6 {
h6 {
   font-size: 1.1rem;
   font-size: 1.1rem;
Línea 77: Línea 144:




/* === Botones con íconos === */
/* =========================================================
  7) BOTONES CON ICONO
  ---------------------------------------------------------
  Útiles para enlaces visuales tipo botón
========================================================= */
.button-icon {
.button-icon {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
  justify-content: center;
   gap: 8px;
   gap: 8px;
   background: #2b4a6d;
   background: #2b4a6d;
Línea 89: Línea 161:
   font-weight: 600;
   font-weight: 600;
   transition: background 0.2s ease;
   transition: background 0.2s ease;
  box-sizing: border-box;
}
}
.button-icon:hover {
.button-icon:hover {
   background: #1e324f;
   background: #1e324f;
}
}
.button-icon::before {
.button-icon::before {
   content: '🔹';
   content: '🔹';
}
}


/* === Cajas informativas === */
 
/* =========================================================
  8) CAJAS INFORMATIVAS
  ---------------------------------------------------------
  Bloques para avisos, recomendaciones y alertas
========================================================= */
.box-info {
.box-info {
   background: #eef4ff;
   background: #eef4ff;
Línea 105: Línea 185:
   margin: 20px 0;
   margin: 20px 0;
}
}
.box-warning {
.box-warning {
   background: #fff4e5;
   background: #fff4e5;
Línea 112: Línea 193:
   margin: 20px 0;
   margin: 20px 0;
}
}
.box-tip {
.box-tip {
   background: #eaffea;
   background: #eaffea;
Línea 120: Línea 202:
}
}


/* === Listas === */
 
ul, ol {
/* =========================================================
  9) LISTAS
  ---------------------------------------------------------
  Espaciado para ul y ol
========================================================= */
ul,
ol {
   padding-left: 40px;
   padding-left: 40px;
   margin-bottom: 20px;
   margin-bottom: 20px;
}
}
.mw-body a {
  color: #1e70bf;
  font-weight: 500;
}


/* === Navbar horizontal === */
 
/* =========================================================
  10) NAVBAR HORIZONTAL
  ---------------------------------------------------------
  Menú superior personalizado
  Mejorado para que no se rompa tan fácil en pantallas chicas
========================================================= */
.oroza-navbar {
.oroza-navbar {
   background: #2b3e50;
   background: #2b3e50;
   padding: 15px 25px;
   padding: 15px 25px;
   display: flex;
   display: flex;
   gap: 30px;
  flex-wrap: wrap; /* Permite acomodar links si no caben */
   gap: 18px 30px;
   justify-content: center;
   justify-content: center;
   align-items: center;
   align-items: center;
Línea 145: Línea 236:
   max-width: 1200px;
   max-width: 1200px;
   position: relative;
   position: relative;
  box-sizing: border-box;
}
}


Línea 151: Línea 243:
   text-decoration: none;
   text-decoration: none;
   font-size: 16px;
   font-size: 16px;
  line-height: 1.2;
  white-space: nowrap; /* Evita que un link se parta en dos renglones */
}
}
.oroza-navbar a:hover {
.oroza-navbar a:hover {
   text-decoration: underline;
   text-decoration: underline;
Línea 157: Línea 252:
}
}


/* Logo en desktop: se mantiene posicionado a la izquierda */
.oroza-navbar-logo {
.oroza-navbar-logo {
   position: absolute;
   position: absolute;
Línea 170: Línea 266:
}
}


/* === Sidebar lateral personalizada === */
 
/* =========================================================
  11) SIDEBAR LATERAL
  ---------------------------------------------------------
  Menú lateral de navegación
========================================================= */
.oroza-sidebar {
.oroza-sidebar {
   background: #ffffff;
   background: #ffffff;
Línea 178: Línea 279:
   width: 240px;
   width: 240px;
   font-size: 14px;
   font-size: 14px;
   box-shadow: 0 0 8px rgba(0,0,0,0.05);
   box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
   margin-bottom: 20px;
   margin-bottom: 20px;
  box-sizing: border-box;
}
}


/* Menu title más grande y con más espaciado entre títulos */
/* Título de cada sección del menú lateral */
.oroza-sidebar .menu-title {
.oroza-sidebar .menu-title {
   font-weight: bold;
   font-weight: bold;
   color: #2b4a6d;
   color: #2b4a6d;
   font-size: 17px; /* Aumentado */
   font-size: 17px;
   margin: 20px 0 12px; /* Espacio arriba y abajo */
   margin: 20px 0 12px;
   border-left: 4px solid #ffb400;
   border-left: 4px solid #ffb400;
   padding-left: 10px;
   padding-left: 10px;
}
}


/* Lista de items */
/* Lista interna del sidebar */
.oroza-sidebar ul {
.oroza-sidebar ul {
   list-style: none;
   list-style: none;
Línea 211: Línea 313:
}
}


/* === Tablas personalizadas (oroza-table) === */
 
/* =========================================================
  12) TABLAS PERSONALIZADAS
  ---------------------------------------------------------
  Mejoradas para escritorio y con scroll horizontal en móvil
========================================================= */
.oroza-table {
.oroza-table {
   width: 100%;
   width: 100%;
Línea 222: Línea 329:
   overflow: hidden;
   overflow: hidden;
}
}
.oroza-table thead {
.oroza-table thead {
   background-color: #2b4a6d;
   background-color: #2b4a6d;
Línea 228: Línea 336:
   font-weight: bold;
   font-weight: bold;
}
}
.oroza-table th,
.oroza-table th,
.oroza-table td {
.oroza-table td {
Línea 233: Línea 342:
   border-bottom: 1px solid #eee;
   border-bottom: 1px solid #eee;
}
}
.oroza-table tbody tr:nth-child(even) {
.oroza-table tbody tr:nth-child(even) {
   background-color: #f9f9f9;
   background-color: #f9f9f9;
}
}
.oroza-table tbody tr:hover {
.oroza-table tbody tr:hover {
   background-color: #eef4ff;
   background-color: #eef4ff;
}
}
.oroza-table .highlight {
.oroza-table .highlight {
   color: #ffb400;
   color: #ffb400;
   font-weight: bold;
   font-weight: bold;
}
}
.oroza-table .center-icon {
.oroza-table .center-icon {
   text-align: center;
   text-align: center;
   font-size: 18px;
   font-size: 18px;
}
}
.oroza-table .zeny {
.oroza-table .zeny {
   color: #28a745;
   color: #28a745;
Línea 252: Línea 366:
}
}


/* === Responsive === */
/* 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
========================================================= */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
  /* Contenedor principal más compacto */
  #content {
    padding: 16px;
    margin: 10px;
    border-radius: 10px;
  }
  /* Si usas un wrapper flex para sidebar + contenido */
   .oroza-flex-wrapper {
   .oroza-flex-wrapper {
    display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 20px;
     gap: 16px;
   }
   }


   .oroza-flex-wrapper > div {
   .oroza-flex-wrapper > div {
     width: 100% !important;
     width: 100% !important;
    min-width: 0;
   }
   }


  /* Sidebar a ancho completo */
   .oroza-sidebar {
   .oroza-sidebar {
     width: 100% !important;
     width: 100% !important;
     margin-bottom: 20px;
    padding: 14px 16px;
     display: block !important;
     margin-bottom: 0;
  }
 
  .oroza-sidebar .menu-title {
     font-size: 15px;
    margin: 16px 0 10px;
  }
 
  .oroza-sidebar li {
    gap: 6px;
    font-size: 13px;
    line-height: 1.35;
   }
   }


  /* Navbar mejorada para celular:
    - NO la mandamos a columna
    - Mantenemos fila con wrap
    - Reducimos espacios para que no se haga enorme */
   .oroza-navbar {
   .oroza-navbar {
     flex-direction: column;
     flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
     align-items: center;
     align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
    margin: 12px 10px;
    border-radius: 10px;
  }
  /* El logo absoluto suele romper el centrado en móvil,
    por eso aquí lo volvemos parte normal del flujo */
  .oroza-navbar-logo {
    position: static;
    width: 100%;
    justify-content: center;
    margin-bottom: 6px;
  }
  .oroza-navbar-logo img {
    width: 58px;
   }
   }


   .oroza-navbar a {
   .oroza-navbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
  /* Títulos reducidos para no ocupar demasiado espacio */
  .firstHeading {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }
  h1 {
    font-size: 1.9rem;
    margin-top: 24px;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.6rem;
    margin-top: 22px;
    margin-bottom: 16px;
  }
  h3 {
    font-size: 1.35rem;
    margin-top: 20px;
    margin-bottom: 14px;
  }
  h4 {
    font-size: 1.15rem;
    margin-top: 18px;
    margin-bottom: 12px;
  }
  h5 {
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 10px;
  }
  h6 {
    font-size: 0.95rem;
    margin-top: 14px;
    margin-bottom: 10px;
  }
  /* Listas más compactas */
  ul,
  ol {
    padding-left: 22px;
    margin-bottom: 16px;
  }
  /* Cajas informativas más compactas */
  .box-info,
  .box-warning,
  .box-tip {
    padding: 12px;
    margin: 14px 0;
    border-radius: 8px;
  }
  /* Botón ocupa ancho completo si lo necesitas en móvil */
  .button-icon {
    width: 100%;
    padding: 10px 12px;
    text-align: center;
  }
  /* TABLAS:
    en móvil se vuelven bloque con scroll horizontal,
    así ya no rompen el ancho del sitio */
  .oroza-table,
  .oroza-table.auto-width {
     display: block;
     display: block;
     padding: 10px 0;
     width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
   }
   }


   .toggle-label {
   .oroza-table th,
     display: none !important;
  .oroza-table td {
    white-space: nowrap;
  }
 
  /* Imágenes grandes a ancho completo */
  img.round-fade {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    margin: 10px auto;
  }
 
  /* En touch, quitamos zoom exagerado */
  .zoom-img:hover,
  img.round-fade:hover {
     transform: none;
   }
   }
}
}


/* === Eliminar menú original de MediaWiki === */
#p-logo,
#footer,
#mw-panel {
  display: none !important;
}


/* === Quitar funcionalidad del menú colapsable móvil === */
/* =========================================================
.toggle-checkbox {
  18) CELULAR PEQUEÑO
   display: none;
  ---------------------------------------------------------
}
  Ajustes extra para pantallas muy reducidas
.toggle-label {
========================================================= */
   display: none !important;
@media screen and (max-width: 480px) {
}
  #content {
    padding: 12px;
    margin: 8px;
    border-radius: 8px;
  }
 
  .oroza-navbar {
    gap: 6px 8px;
    padding: 10px;
   }
 
  .oroza-navbar a {
    font-size: 12px;
    padding: 6px 8px;
  }
 
  .oroza-navbar-logo img {
    width: 50px;
  }
 
  .firstHeading {
    font-size: 1.4rem;
  }
 
  h1 {
    font-size: 1.65rem;
  }
 
  h2 {
    font-size: 1.4rem;
  }
 
  h3 {
    font-size: 1.2rem;
   }
 
  .oroza-sidebar {
    padding: 12px;
  }


  .oroza-sidebar li {
    font-size: 12px;
  }


.oroza-table.auto-width {
  .oroza-table th,
  width: auto !important;
  .oroza-table td {
  max-width: 100%;
    padding: 10px 12px;
  table-layout: auto !important;
    font-size: 13px;
  margin: 20px auto;
   }
   display: table;
}
}


  .zoom-img {
    transition: transform 0.25s ease;
    cursor: zoom-in;
  }


/* =========================================================
  19) AJUSTE PARA DISPOSITIVOS QUE SI SOPORTAN HOVER
  ---------------------------------------------------------
  Solo deja zoom bonito en escritorio / mouse
========================================================= */
@media (hover: hover) {
   .zoom-img:hover {
   .zoom-img:hover {
     transform: scale(2);
     transform: scale(1.35);
     z-index: 10;
     z-index: 10;
   }
   }


  img.round-fade:hover {
    transform: scale(1.08);
    opacity: 1;
  }
}




img.round-fade {
/* =========================================================
  width: 55%;
  20) AJUSTE PARA DISPOSITIVOS TOUCH
  border-radius: 20px;
  ---------------------------------------------------------
  margin: 10px auto;
  Quita animaciones de hover agresivas en celular
  display: block;
========================================================= */
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 0 0 15px rgba(0,0,0,0.08);
@media (hover: none) {
   transition: transform 0.3s ease;
   .zoom-img:hover,
  object-fit: cover;
   img.round-fade:hover {
   opacity: 0.97;
    transform: none;
}
    opacity: 0.97;
img.round-fade:hover {
  }
  transform: scale(1.3);
  opacity: 1;
}
}

Revisión del 09:34 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%;
}


/* =========================================================
   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;
  width: min(100%, 1200px);
  box-sizing: border-box;
}


/* =========================================================
   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
   ---------------------------------------------------------
   Menú superior personalizado
   Mejorado para que no se rompa tan fácil en pantallas chicas
========================================================= */
.oroza-navbar {
  background: #2b3e50;
  padding: 15px 25px;
  display: flex;
  flex-wrap: wrap; /* Permite acomodar links si no caben */
  gap: 18px 30px;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-bottom: 3px solid #ffb400;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  max-width: 1200px;
  position: relative;
  box-sizing: border-box;
}

.oroza-navbar a {
  color: white !important;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap; /* Evita que un link se parta en dos renglones */
}

.oroza-navbar a:hover {
  text-decoration: underline;
  color: #ffcc33 !important;
}

/* Logo en desktop: se mantiene posicionado a la izquierda */
.oroza-navbar-logo {
  position: absolute;
  left: 25px;
  display: flex;
  align-items: center;
}

.oroza-navbar-logo img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 0 5px white);
}


/* =========================================================
   11) SIDEBAR LATERAL
   ---------------------------------------------------------
   Menú lateral de navegación
========================================================= */
.oroza-sidebar {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 10px;
  width: 240px;
  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
========================================================= */
@media screen and (max-width: 768px) {
  /* Contenedor principal más compacto */
  #content {
    padding: 16px;
    margin: 10px;
    border-radius: 10px;
  }

  /* Si usas un wrapper flex para sidebar + contenido */
  .oroza-flex-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .oroza-flex-wrapper > div {
    width: 100% !important;
    min-width: 0;
  }

  /* Sidebar a ancho completo */
  .oroza-sidebar {
    width: 100% !important;
    padding: 14px 16px;
    margin-bottom: 0;
  }

  .oroza-sidebar .menu-title {
    font-size: 15px;
    margin: 16px 0 10px;
  }

  .oroza-sidebar li {
    gap: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  /* Navbar mejorada para celular:
     - NO la mandamos a columna
     - Mantenemos fila con wrap
     - Reducimos espacios para que no se haga enorme */
  .oroza-navbar {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
    margin: 12px 10px;
    border-radius: 10px;
  }

  /* El logo absoluto suele romper el centrado en móvil,
     por eso aquí lo volvemos parte normal del flujo */
  .oroza-navbar-logo {
    position: static;
    width: 100%;
    justify-content: center;
    margin-bottom: 6px;
  }

  .oroza-navbar-logo img {
    width: 58px;
  }

  .oroza-navbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  /* Títulos reducidos para no ocupar demasiado espacio */
  .firstHeading {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 1.9rem;
    margin-top: 24px;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 1.6rem;
    margin-top: 22px;
    margin-bottom: 16px;
  }

  h3 {
    font-size: 1.35rem;
    margin-top: 20px;
    margin-bottom: 14px;
  }

  h4 {
    font-size: 1.15rem;
    margin-top: 18px;
    margin-bottom: 12px;
  }

  h5 {
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 10px;
  }

  h6 {
    font-size: 0.95rem;
    margin-top: 14px;
    margin-bottom: 10px;
  }

  /* Listas más compactas */
  ul,
  ol {
    padding-left: 22px;
    margin-bottom: 16px;
  }

  /* Cajas informativas más compactas */
  .box-info,
  .box-warning,
  .box-tip {
    padding: 12px;
    margin: 14px 0;
    border-radius: 8px;
  }

  /* Botón ocupa ancho completo si lo necesitas en móvil */
  .button-icon {
    width: 100%;
    padding: 10px 12px;
    text-align: center;
  }

  /* TABLAS:
     en móvil se vuelven bloque con scroll horizontal,
     así ya no rompen el ancho del sitio */
  .oroza-table,
  .oroza-table.auto-width {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .oroza-table th,
  .oroza-table td {
    white-space: nowrap;
  }

  /* Imágenes grandes a ancho completo */
  img.round-fade {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    margin: 10px auto;
  }

  /* En touch, quitamos zoom exagerado */
  .zoom-img:hover,
  img.round-fade:hover {
    transform: none;
  }
}


/* =========================================================
   18) CELULAR PEQUEÑO
   ---------------------------------------------------------
   Ajustes extra para pantallas muy reducidas
========================================================= */
@media screen and (max-width: 480px) {
  #content {
    padding: 12px;
    margin: 8px;
    border-radius: 8px;
  }

  .oroza-navbar {
    gap: 6px 8px;
    padding: 10px;
  }

  .oroza-navbar a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .oroza-navbar-logo img {
    width: 50px;
  }

  .firstHeading {
    font-size: 1.4rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .oroza-sidebar {
    padding: 12px;
  }

  .oroza-sidebar li {
    font-size: 12px;
  }

  .oroza-table th,
  .oroza-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}


/* =========================================================
   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;
  }
}