Diferencia entre revisiones de «MediaWiki:Common.css»

De DerechoPedia
Ir a la navegaciónIr a la búsqueda
Sin resumen de edición
Etiqueta: Revertido
(Globo del chat a la izquierda de los botones)
 
(No se muestran 20 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
/* --- DISEÑO PROFESIONAL ADAPTATIVO (ESCRITORIO VS CELULAR) --- */
/* === DERECHOPEDIA REDESIGN 2025 === */


/* ==================================================================
:root {
   1. REGLAS GENERALES (APLICAN SIEMPRE)
  --dp-navy:  #1c2e4a;
  ================================================================== */
  --dp-navy2:  #243d5f;
/* Ocultar textos técnicos que a veces aparecen por error (como "Page Actions") */
  --dp-link:  #1a56a0;
#p-cactions h5,
  --dp-text:  #1a1a1a;
#p-personal h5,
  --dp-sub:   #5a6474;
#p-logo h5,
  --dp-light:  #f4f5f7;
.pBody h5 {
  --dp-border: #d6d9de;
    display: none !important;
  --dp-white:  #ffffff;
  --dp-amber:  #c17f24;
  --dp-amber2: #a56c1a;
  --dp-amber-light: #fdf3e3;
  --dp-sw: 220px;
  --dp-nh: 58px;
}
 
body {
  background: #f0f2f5 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  padding-top: var(--dp-nh) !important;
  margin: 0 !important;
}
 
#p-logo, #column-one CENTER,
#sidebar-toggle, #p-personal-toggle, #globalWrapper-toggle,
#p-personal, #p-cactions-mobile { display: none !important; }
.emptyPortlet { display: none !important; }
#globalWrapper { margin: 0 !important; padding: 0 !important; }
 
#column-one {
  position: fixed !important;
  float: none !important;
  top: var(--dp-nh) !important;
  left: 0 !important;
  width: var(--dp-sw) !important;
  height: calc(100vh - var(--dp-nh)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: var(--dp-white) !important;
  border-right: 1px solid var(--dp-border) !important;
  z-index: 50 !important;
}
#column-content {
  float: none !important;
  margin-left: var(--dp-sw) !important;
  width: auto !important;
  background: var(--dp-white);
  min-height: calc(100vh - var(--dp-nh));
}
#content {
  background: var(--dp-white) !important;
  border: none !important;
  padding: 20px 28px 48px !important;
  margin: 0 !important;
}
#content h1.firstHeading {
  font-family: Georgia, serif !important;
  font-size: 20px !important;
  font-weight: normal !important;
  color: var(--dp-navy) !important;
  border-bottom: 1px solid var(--dp-border) !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}
#footer {
  margin-left: var(--dp-sw) !important;
  float: none !important;
  border-top: 1px solid var(--dp-border) !important;
  padding: 12px 24px !important;
  background: var(--dp-white) !important;
  font-size: 11.5px !important;
  color: var(--dp-sub) !important;
}
#footer a { color: var(--dp-sub) !important; }
#footer a:hover { color: var(--dp-navy) !important; text-decoration: none !important; }
#footer ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 14px; flex-wrap: wrap; }
#footer li { margin: 0; }
 
/* Tabs */
#p-cactions { background: var(--dp-white) !important; border-bottom: 1px solid var(--dp-border) !important; padding: 0 10px !important; margin: 0 !important; overflow: hidden !important; }
#p-cactions h3 { display: none !important; }
#p-cactions .pBody { padding: 0 !important; border: none !important; background: none !important; }
#p-cactions ul { display: flex !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
#p-cactions li { margin: 0 !important; }
#p-cactions li a { display: block !important; padding: 6px 10px !important; font-size: 11px !important; color: var(--dp-sub) !important; border-bottom: 2px solid transparent !important; white-space: nowrap !important; text-decoration: none !important; }
#p-cactions li a:hover { color: var(--dp-navy) !important; border-bottom-color: var(--dp-border) !important; }
#ca-nstab-main a { color: var(--dp-navy) !important; font-weight: 600 !important; }
#ca-nstab-main.selected a { border-bottom-color: var(--dp-navy) !important; }
#ca-edit a { color: var(--dp-navy) !important; font-weight: 600 !important; }
#ca-edit a::before { content: "✏️ "; font-size: 10px; }
#ca-edit.selected a { border-bottom-color: var(--dp-amber) !important; background: var(--dp-amber-light) !important; border-radius: 4px 4px 0 0 !important; }
#ca-delete a, #ca-protect a, #ca-move a { color: #ccd0d8 !important; font-size: 10px !important; }
 
/* Portlets */
.portlet { margin: 0 !important; border: none !important; padding: 0 !important; background: none !important; }
.portlet h3 { font-size: 9.5px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important; color: #a0aab6 !important; padding: 12px 14px 5px !important; border: none !important; background: none !important; margin: 0 !important; }
.portlet .pBody { padding: 0 !important; border: none !important; background: none !important; }
.portlet ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.portlet ul li { margin: 0 !important; }
.portlet ul li a { display: block !important; padding: 7px 14px 7px 22px !important; font-size: 13px !important; color: #2d3a4d !important; border-left: 2px solid transparent !important; line-height: 1.4 !important; text-decoration: none !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.portlet ul li a:hover { background: var(--dp-light) !important; color: var(--dp-navy) !important; border-left-color: var(--dp-navy) !important; text-decoration: none !important; }
 
/* Search */
#p-search { padding: 8px 10px !important; }
#p-search h3 { display: none !important; }
#p-search #searchInput { width: 100% !important; padding: 6px 10px !important; border: 1px solid var(--dp-border) !important; border-radius: 5px !important; font-size: 12.5px !important; font-family: inherit !important; background: var(--dp-light) !important; color: var(--dp-text) !important; outline: none !important; box-sizing: border-box !important; }
#p-search #searchInput:focus { border-color: var(--dp-link) !important; background: #fff !important; }
#searchButton, #mw-searchButton { display: none !important; }
 
/* Sitenotice */
#siteNotice, #localNotice { text-align: center; padding: 8px 0 0 !important; }
#siteNotice img, #localNotice img { max-width: 300px !important; height: auto !important; }
 
/* ── Elementos inyectados ── */
#dp-topnav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 200 !important; background: var(--dp-navy); box-shadow: 0 2px 10px rgba(0,0,0,.22); height: var(--dp-nh); }
.dp-mainbar { height: 100%; display: flex; align-items: center; }
.dp-logo-block { width: var(--dp-sw); padding: 0 16px; display: flex; align-items: center; gap: 9px; flex-shrink: 0; height: 100%; border-right: 1px solid rgba(255,255,255,.08); text-decoration: none !important; }
.dp-logo-img { width: 30px; height: 30px; object-fit: contain; background: rgba(255,255,255,.1); border-radius: 4px; padding: 3px; flex-shrink: 0; }
.dp-logo-sitename { font-family: Georgia, serif; font-size: 14.5px; color: #fff !important; font-weight: normal; display: block; line-height: 1.1; }
.dp-logo-sub { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; display: block; }
.dp-nav-zone { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: 100%; }
.dp-nav-links { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.dp-nav-links li { height: 100%; display: flex; align-items: center; }
.dp-nav-links a { color: rgba(255,255,255,.62) !important; font-size: 12.5px; padding: 0 10px; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap; }
.dp-nav-links a:hover { color: #fff !important; border-bottom-color: rgba(255,255,255,.3); }
.dp-nav-links li.dp-active a { color: #fff !important; border-bottom-color: var(--dp-amber); font-weight: 500; }
.dp-cta-btn { background: var(--dp-amber) !important; color: #fff !important; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 5px; display: flex; align-items: center; gap: 6px; text-decoration: none !important; white-space: nowrap; flex-shrink: 0; }
.dp-cta-btn:hover { background: var(--dp-amber2) !important; }
.dp-cta-dot { width: 6px; height: 6px; background: rgba(255,255,255,.8); border-radius: 50%; animation: dp-pulse 2s infinite; flex-shrink: 0; }
@keyframes dp-pulse { 0%,100%{opacity:.75;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
 
#dp-firma { background: var(--dp-navy); padding: 14px 14px 12px; }
.dp-firma-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dp-firma-logo { width: 32px; height: 32px; object-fit: contain; background: rgba(255,255,255,.12); border-radius: 4px; padding: 3px; flex-shrink: 0; }
.dp-firma-name { font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.25; }
.dp-firma-name small { display: block; font-weight: normal; font-size: 9.5px; color: rgba(255,255,255,.45); margin-top: 1px; }
.dp-firma-lawyers { display: flex; gap: 6px; margin-bottom: 10px; }
.dp-sb-lawyer { display: flex; align-items: center; gap: 6px; flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 6px 7px; text-decoration: none !important; }
.dp-sb-lawyer:hover { background: rgba(255,255,255,.15); }
.dp-sb-lawyer img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,.2); flex-shrink: 0; }
.dp-sb-lawyer-name { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.88); display: block; line-height: 1.2; }
.dp-sb-lawyer-role { font-size: 8.5px; color: rgba(255,255,255,.45); display: block; }
.dp-firma-wa { display: flex; align-items: center; justify-content: center; gap: 6px; background: #22c55e; color: #fff !important; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 4px; text-decoration: none !important; width: 100%; box-sizing: border-box; }
.dp-firma-wa:hover { background: #16a34a; }
 
#dp-urgente { margin: 10px 10px 2px; background: var(--dp-amber-light); border: 1px solid #deb96a; border-left: 3px solid var(--dp-amber); border-radius: 5px; padding: 10px 12px; display: block; text-decoration: none !important; }
#dp-urgente:hover { background: #f5e8c4; }
.dp-urg-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--dp-amber2); display: block; margin-bottom: 3px; }
.dp-urg-title { font-size: 12px; font-weight: 600; color: var(--dp-navy); line-height: 1.35; display: block; margin-bottom: 3px; }
.dp-urg-desc { font-size: 10.5px; color: var(--dp-sub); display: block; line-height: 1.4; margin-bottom: 6px; }
.dp-urg-link { font-size: 10.5px; font-weight: 600; color: var(--dp-amber2); display: block; }
 
.dp-sb-hr { border: none !important; border-top: 1px solid var(--dp-border) !important; margin: 8px 0 !important; }
.dp-sb-tool { margin: 2px 10px 6px; background: #eef2fa; border: 1px solid #c2d0e8; border-radius: 5px; padding: 9px 12px; display: block; text-decoration: none !important; }
.dp-sb-tool:hover { background: #dde8f5; }
.dp-sb-tool-icon { font-size: 15px; display: block; margin-bottom: 4px; }
.dp-sb-tool-name { font-size: 11.5px; font-weight: 600; color: var(--dp-navy); display: block; margin-bottom: 2px; line-height: 1.3; }
.dp-sb-tool-desc { font-size: 10px; color: var(--dp-sub); display: block; line-height: 1.3; }
 
/* ═══ MOBILE ═══ */
@media (max-width: 960px) {
  :root { --dp-sw: 0px; --dp-nh: 54px; }
  #column-one { display: none !important; }
  #column-content { margin-left: 0 !important; }
  #footer { margin-left: 0 !important; padding: 12px 16px !important; }
  #content { padding: 14px 16px 40px !important; }
  .dp-logo-block { width: auto !important; border-right: none !important; flex: 1; }
  .dp-logo-sub { display: none !important; }
  .dp-nav-links { display: none !important; }
  .dp-nav-zone { padding: 0 12px !important; }
  .dp-cta-btn { font-size: 11px !important; padding: 6px 11px !important; }
  .dp-cta-dot { display: none !important; }
}
}


/* ==================================================================
  2. DISEÑO PARA COMPUTADOR (PANTALLAS GRANDES)
  Solo se activa si la pantalla es mayor a 800px
  ================================================================== */
@media only screen and (min-width: 801px) {


    /* --- LIMPIEZA BARRA LATERAL --- */
/* ═══ HAMBURGUESA Y MENÚ MOBILE ═══ */
    .portlet:not(#p-cactions):not(#p-personal) {
.dp-hamburger {
        background: transparent !important;
  display: none;
        border: none !important;
  background: none;
        box-shadow: none !important;
  border: none;
        padding-top: 0 !important;
  color: rgba(255,255,255,.85);
    }
  font-size: 22px;
   
  cursor: pointer;
    .portlet:not(#p-cactions):not(#p-personal) .pBody {
  padding: 0 10px;
        background: transparent !important;
  line-height: 1;
        border: none !important;
  flex-shrink: 0;
        padding: 0 !important;
  transition: color .15s;
    }
}
.dp-hamburger:hover { color: #fff; }


    /* --- TÍTULOS (AZUL MARCA #263355) --- */
.dp-mobile-menu {
    .portlet:not(#p-cactions):not(#p-personal) h3 {
  display: none;
        font-family: 'Segoe UI', Roboto, sans-serif !important;
  background: #192840;
        font-size: 13px !important;
  border-top: 1px solid rgba(255,255,255,.1);
        font-weight: 800 !important;
}
        color: #263355 !important;
.dp-mobile-menu.dp-menu-open { display: block; }
        text-transform: uppercase;
        border: none !important;
        margin-bottom: 8px !important;
        display: block !important;
    }


    /* --- ESTILO DE BOTONES (HOVER Y CAJAS) --- */
.dp-mobile-nav { list-style: none; margin: 0; padding: 0; }
    .portlet:not(#p-cactions):not(#p-personal) ul {
.dp-mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
        list-style: none !important;
.dp-mobile-nav li a {
        padding: 0 !important;
  display: block;
        margin: 0 !important;
  padding: 13px 18px;
    }
  color: rgba(255,255,255,.82) !important;
   
  font-size: 15px;
    .portlet:not(#p-cactions):not(#p-personal) li {
  text-decoration: none !important;
        margin: 0 !important;
}
        padding: 0 !important;
.dp-mobile-nav li a:hover { background: rgba(255,255,255,.05); color: #fff !important; }
        border: none !important;
    }


    .portlet:not(#p-cactions):not(#p-personal) li a {
.dp-mobile-search-wrap {
        display: block !important;
  padding: 12px 16px;
        background-color: #f8f9fa !important;
  display: flex;
        border: 1px solid #e0e0e0 !important;
  gap: 8px;
        color: #444 !important;
  border-top: 1px solid rgba(255,255,255,.07);
        padding: 7px 10px !important;
}
        margin-bottom: 4px !important;
.dp-mobile-search-input {
        border-radius: 4px !important;
  flex: 1;
        text-decoration: none !important;
  padding: 10px 13px;
        font-family: 'Segoe UI', sans-serif !important;
  border: 1px solid rgba(255,255,255,.15);
        font-size: 13px !important;
  border-radius: 7px;
        transition: all 0.2s ease-in-out;
  background: rgba(255,255,255,.09);
    }
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.dp-mobile-search-input::placeholder { color: rgba(255,255,255,.38); }
.dp-mobile-search-input:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.13); }
.dp-mobile-search-btn {
  padding: 9px 15px;
  background: var(--dp-amber);
  border: none;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}
.dp-mobile-search-btn:hover { background: var(--dp-amber2); }


    /* Flecha decorativa escritorio */
.dp-mobile-cta-wrap { padding: 4px 16px 16px; }
    .portlet:not(#p-cactions):not(#p-personal) li a::before {
.dp-mobile-cta {
        content: "›" !important;
  display: flex;
        margin-right: 8px !important;
  align-items: center;
        color: #999 !important;
  justify-content: center;
        font-weight: bold !important;
  gap: 8px;
    }
  background: #22c55e;
  color: #fff !important;
  padding: 12px;
  border-radius: 7px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14.5px;
}
.dp-mobile-cta:hover { background: #16a34a; }


    /* Efecto Hover Escritorio */
@media (max-width: 960px) {
    .portlet:not(#p-cactions):not(#p-personal) li a:hover {
  .dp-hamburger { display: flex !important; align-items: center; }
        background-color: #fff !important;
  .dp-cta-btn { display: none !important; }
        border-color: #263355 !important;
  #dp-topnav { height: auto !important; min-height: var(--dp-nh); }
        color: #263355 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
        padding-left: 15px !important;
    }
   
    .portlet:not(#p-cactions):not(#p-personal) li a:hover::before {
        color: #263355 !important;
    }
   
    /* Caja de búsqueda Escritorio */
    #searchInput {
        width: 90% !important;
        padding: 6px !important;
        border: 1px solid #ccc !important;
        border-radius: 4px !important;
    }
   
    #searchGoButton, #mw-searchButton {
        background-color: #263355 !important;
        color: white !important;
        border: none !important;
        padding: 6px 15px !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        margin-top: 5px !important;
    }
}
}


/* ==================================================================
  3. DISEÑO PARA CELULAR (SOLUCIÓN A TUS FOTOS)
  Se activa solo en pantallas pequeñas (menores a 800px)
  ================================================================== */
@media only screen and (max-width: 800px) {


    /* 1. ARREGLAR ESTRUCTURA GENERAL */
/* === PORTADA GUÍAS LABORALES === */
    #globalWrapper, #content, #column-content {
.dp-capture-grid {
        width: 100% !important;
  display: grid;
        margin: 0 !important;
  grid-template-columns: 1fr 1fr;
        padding: 0 !important;
  gap: 0;
    }
  border: 1px solid #eaecf0;
   
  border-radius: 6px;
    #content {
  overflow: hidden;
        padding: 10px !important; /* Espacio para leer cómodo */
  margin-bottom: 20px;
    }
}
.dp-capture-item {
  padding: 12px 14px;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  text-decoration: none;
  display: block;
  background: #fff;
  transition: background .12s;
}
.dp-capture-item:nth-child(even) { border-right: none; }
.dp-capture-item:nth-last-child(-n+2) { border-bottom: none; }
.dp-capture-item:hover { background: #f0f4fa !important; }
.dp-cap-ico { font-size: 18px; display: block; margin-bottom: 5px; }
.dp-cap-name { font-size: 13px; font-weight: 600; color: #1c2e4a; display: block; margin-bottom: 3px; line-height: 1.3; }
.dp-cap-desc { font-size: 11.5px; color: #54595d; line-height: 1.4; display: block; }
.dp-cap-arrow { font-size: 11px; color: #1a56a0; margin-top: 4px; display: block; }


    /* 2. MOVER BARRA LATERAL AL FINAL Y LIMPIARLA */
.dp-sit-grid {
    #column-one {
  display: grid;
        position: static !important;
  grid-template-columns: 1fr 1fr;
        width: 100% !important;
  gap: 0;
        padding: 20px 0 !important;
  border: 1px solid #eaecf0;
        background-color: #f4f4f4 !important; /* Fondo gris para diferenciar zona de links */
  border-radius: 6px;
        clear: both !important;
  overflow: hidden;
    }
  margin-bottom: 20px;
}
.dp-sit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  text-decoration: none;
  background: #fff;
  transition: background .1s;
}
.dp-sit-item:nth-child(even) { border-right: none; }
.dp-sit-item:nth-last-child(-n+2) { border-bottom: none; }
.dp-sit-item:hover { background: #f0f4fa !important; }
.dp-sit-ico { font-size: 15px; flex-shrink: 0; }
.dp-sit-txt { font-size: 12.5px; color: #1c2e4a; font-weight: 500; line-height: 1.3; flex: 1; }
.dp-sit-arr { font-size: 11px; color: #54595d; flex-shrink: 0; }


    .portlet {
@media (max-width: 700px) {
        width: 95% !important;
  .dp-capture-grid, .dp-sit-grid { grid-template-columns: 1fr !important; }
        margin: 0 auto 20px auto !important; /* Centrar bloques */
  .dp-capture-item, .dp-sit-item { border-right: none !important; }
        background: transparent !important;
}
        border: none !important;
        box-shadow: none !important;
    }
   
    .pBody {
        background: transparent !important;
        border: none !important;
    }


    /* 3. TÍTULOS EN MÓVIL (Más grandes y oscuros) */
    .portlet h3 {
        font-family: 'Segoe UI', Roboto, sans-serif !important;
        font-size: 16px !important; /* Más grande para leer en móvil */
        font-weight: 800 !important;
        color: #263355 !important;
        text-transform: uppercase;
        border-bottom: 2px solid #ccc !important; /* Línea separadora simple */
        margin-bottom: 10px !important;
        padding-bottom: 5px !important;
        display: block !important;
    }


    /* 4. ENLACES ESTILO "LISTA MÓVIL" (No botones flotantes) */
/* === EDIT TAB + SITENOTICE FIXES === */
    .portlet ul {
#p-cactions { position: relative !important; z-index: 10 !important; }
        list-style: none !important;
#siteNotice, #localNotice { position: relative !important; z-index: 1 !important; }
        padding: 0 !important;
#ca-edit a { color: #1c2e4a !important; font-weight: 700 !important; }
        margin: 0 !important;
#ca-edit.selected a { border-bottom: 2px solid #c17f24 !important; }
    }
   
    .portlet li {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }


    .portlet li a {
        display: block !important;
        padding: 12px 10px !important; /* Botón alto para dedo */
        background-color: #fff !important; /* Fondo BLANCO puro */
        border-bottom: 1px solid #ddd !important; /* Línea gris entre opciones */
        color: #333 !important; /* TEXTO NEGRO OSCURO (Soluciona texto invisible) */
        font-size: 14px !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }
   
    /* Icono simple al final */
    .portlet li a::after {
        content: "›" !important;
        float: right !important;
        color: #999 !important;
        font-weight: bold !important;
        font-size: 18px !important;
    }


    /* 5. ARREGLAR CAJA DE BÚSQUEDA MÓVIL */
/* === QUITAR ESPACIO EN BLANCO ARRIBA DE LA BARRA LATERAL === */
    #p-search .pBody {
#column-one { padding-top: 0 !important; }
        text-align: center !important;
 
    }
 
   
/* === QUITAR SUPERPOSICION DE PESTAÑAS SOBRE EL TITULO === */
    #searchInput {
#firstHeading { margin-top: 44px !important; clear: both !important; position: relative !important; }
        width: 95% !important;
.mw-indicators { clear: both !important; }
        padding: 10px !important; /* Grande para escribir fácil */
 
        border: 1px solid #999 !important;
/* === BOTÓN FLOTANTE DE WHATSAPP (todas las páginas) === */
        font-size: 16px !important; /* Evita zoom automático en iPhone */
.dp-wa-flotante {
    }
  position: fixed; right: 20px; bottom: 20px; z-index: 9990;
   
  width: 60px; height: 60px; border-radius: 50%;
    #searchGoButton, #mw-searchButton {
  background: #25D366; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
        width: 95% !important;
  display: flex; align-items: center; justify-content: center;
        padding: 10px !important;
  transition: transform .15s ease, box-shadow .15s ease;
        background-color: #263355 !important;
        color: white !important;
        margin-top: 10px !important;
        font-size: 14px !important;
    }
}
}
.dp-wa-flotante:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.dp-wa-flotante img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
@media (max-width: 768px) { .dp-wa-flotante { right: 16px; bottom: 16px; width: 56px; height: 56px; } }
@media print { .dp-wa-flotante { display: none; } }
/* === BARRA LATERAL SIMPLIFICADA PARA VISITANTES ===
  Quien inicia sesión ve la barra completa (ver MediaWiki:Group-user.css). */
[id="p-Kopaitic_&_Asociados"], #p-Principales, #p-Secciones, #p-Normas, #p-navigation, #p-tb, .dp-solo-usuarios { display: none; }
.dp-sb-tools-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-sub); margin: 10px 12px 6px; }
/* === FORMULARIO DE CONTACTO (integrado en «Asesoría legal» o suelto al final) === */
.dp-asesoria.dp-con-form .dp-form-titulo, .dp-asesoria.dp-con-form .dp-form-sep { display: block !important; }
.dp-asesoria.dp-con-form .dp-asesoria-botones { display: none; }
#mw-data-after-content .contact-wrap { display: block; padding: 0; margin: 10px 0 20px; }
#mw-data-after-content .contact-card.dp-form-suelto { max-width: none; border: 1px solid #c8ccd1; border-top: 4px solid #2e3563; background: #f8f9fa; border-radius: 8px; padding: 16px 20px; box-shadow: none; }
.dp-form-suelto .contact-header { display: block; margin-bottom: 10px; }
.dp-form-suelto h2 { font-size: 16px; font-weight: 700; color: #2e3563; border: none; margin: 0; padding: 0; font-family: inherit; }
.dp-form-suelto .sub { font-size: 13px; color: #54595d; margin: 3px 0 0; }
.dp-form-suelto .cta-whatsapp, .dp-form-suelto .alt-text { display: none; }
#contacto .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#contacto .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#contacto .field.full { grid-column: 1 / -1; }
#contacto .field label { font-size: 12px; font-weight: 600; color: #54595d; }
#contacto .field input, #contacto .field textarea { width: 100%; box-sizing: border-box; border: 1px solid #d5d8e0; border-radius: 6px; background: #fff; padding: 8px 10px; font-size: 14px; font-family: inherit; color: #202122; }
#contacto .field input:focus, #contacto .field textarea:focus { border-color: #2e3563; box-shadow: 0 0 0 3px rgba(46,53,99,.15); outline: none; }
#contacto .field textarea { min-height: 60px; height: 64px; }
#contacto .actions { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#contacto .btn-submit { width: auto; background: #2e3563; color: #fff; border: none; border-radius: 20px; padding: 9px 20px; font-weight: 700; font-size: 13px; cursor: pointer; }
#contacto .dp-alt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#contacto .dp-o { font-size: 12px; color: #72777d; }
#contacto .dp-wa-pill { background: #25D366; color: #fff !important; font-weight: 700; padding: 8px 16px; border-radius: 20px; font-size: 13px; text-decoration: none !important; }
#contacto .dp-mail { font-size: 13px; }
#contacto .privacy { flex-basis: 100%; text-align: left; margin: 2px 0 0; font-size: 12px; color: #72777d; }
.dp-form-error { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #fdf2f1; border: 1px solid #f0c9c4; color: #8a1f11; font-size: 13px; }
#dp-form-slot .thanks, .dp-form-suelto .thanks { font-size: 13px; border-radius: 6px; background: #fff; }
@media (max-width: 680px) {
  #contacto .grid { grid-template-columns: 1fr; }
  #contacto .field input, #contacto .field textarea { font-size: 16px; }
}
/* === Chat IA: sube el botón de WhatsApp para que no choque con la burbuja del chat === */
html.dp-con-chat .dp-wa-flotante { bottom: 92px !important; }
@media (max-width: 760px) { html.dp-con-chat .dp-wa-flotante { bottom: 84px !important; } }
/* Globo de bienvenida del chat: a la izquierda de los botones, sin tapar WhatsApp */
html.dp-con-chat #chatbase-message-bubbles { right: 92px !important; bottom: 24px !important; max-width: 300px !important; }
@media (max-width: 760px) { html.dp-con-chat #chatbase-message-bubbles { right: 84px !important; bottom: 20px !important; max-width: 62vw !important; } }

Revisión actual - 03:29 24 sep 2026

/* === DERECHOPEDIA REDESIGN 2025 === */

:root {
  --dp-navy:   #1c2e4a;
  --dp-navy2:  #243d5f;
  --dp-link:   #1a56a0;
  --dp-text:   #1a1a1a;
  --dp-sub:    #5a6474;
  --dp-light:  #f4f5f7;
  --dp-border: #d6d9de;
  --dp-white:  #ffffff;
  --dp-amber:  #c17f24;
  --dp-amber2: #a56c1a;
  --dp-amber-light: #fdf3e3;
  --dp-sw: 220px;
  --dp-nh: 58px;
}

body {
  background: #f0f2f5 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  padding-top: var(--dp-nh) !important;
  margin: 0 !important;
}

#p-logo, #column-one CENTER,
#sidebar-toggle, #p-personal-toggle, #globalWrapper-toggle,
#p-personal, #p-cactions-mobile { display: none !important; }
.emptyPortlet { display: none !important; }
#globalWrapper { margin: 0 !important; padding: 0 !important; }

#column-one {
  position: fixed !important;
  float: none !important;
  top: var(--dp-nh) !important;
  left: 0 !important;
  width: var(--dp-sw) !important;
  height: calc(100vh - var(--dp-nh)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: var(--dp-white) !important;
  border-right: 1px solid var(--dp-border) !important;
  z-index: 50 !important;
}
#column-content {
  float: none !important;
  margin-left: var(--dp-sw) !important;
  width: auto !important;
  background: var(--dp-white);
  min-height: calc(100vh - var(--dp-nh));
}
#content {
  background: var(--dp-white) !important;
  border: none !important;
  padding: 20px 28px 48px !important;
  margin: 0 !important;
}
#content h1.firstHeading {
  font-family: Georgia, serif !important;
  font-size: 20px !important;
  font-weight: normal !important;
  color: var(--dp-navy) !important;
  border-bottom: 1px solid var(--dp-border) !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}
#footer {
  margin-left: var(--dp-sw) !important;
  float: none !important;
  border-top: 1px solid var(--dp-border) !important;
  padding: 12px 24px !important;
  background: var(--dp-white) !important;
  font-size: 11.5px !important;
  color: var(--dp-sub) !important;
}
#footer a { color: var(--dp-sub) !important; }
#footer a:hover { color: var(--dp-navy) !important; text-decoration: none !important; }
#footer ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 14px; flex-wrap: wrap; }
#footer li { margin: 0; }

/* Tabs */
#p-cactions { background: var(--dp-white) !important; border-bottom: 1px solid var(--dp-border) !important; padding: 0 10px !important; margin: 0 !important; overflow: hidden !important; }
#p-cactions h3 { display: none !important; }
#p-cactions .pBody { padding: 0 !important; border: none !important; background: none !important; }
#p-cactions ul { display: flex !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
#p-cactions li { margin: 0 !important; }
#p-cactions li a { display: block !important; padding: 6px 10px !important; font-size: 11px !important; color: var(--dp-sub) !important; border-bottom: 2px solid transparent !important; white-space: nowrap !important; text-decoration: none !important; }
#p-cactions li a:hover { color: var(--dp-navy) !important; border-bottom-color: var(--dp-border) !important; }
#ca-nstab-main a { color: var(--dp-navy) !important; font-weight: 600 !important; }
#ca-nstab-main.selected a { border-bottom-color: var(--dp-navy) !important; }
#ca-edit a { color: var(--dp-navy) !important; font-weight: 600 !important; }
#ca-edit a::before { content: "✏️ "; font-size: 10px; }
#ca-edit.selected a { border-bottom-color: var(--dp-amber) !important; background: var(--dp-amber-light) !important; border-radius: 4px 4px 0 0 !important; }
#ca-delete a, #ca-protect a, #ca-move a { color: #ccd0d8 !important; font-size: 10px !important; }

/* Portlets */
.portlet { margin: 0 !important; border: none !important; padding: 0 !important; background: none !important; }
.portlet h3 { font-size: 9.5px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important; color: #a0aab6 !important; padding: 12px 14px 5px !important; border: none !important; background: none !important; margin: 0 !important; }
.portlet .pBody { padding: 0 !important; border: none !important; background: none !important; }
.portlet ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.portlet ul li { margin: 0 !important; }
.portlet ul li a { display: block !important; padding: 7px 14px 7px 22px !important; font-size: 13px !important; color: #2d3a4d !important; border-left: 2px solid transparent !important; line-height: 1.4 !important; text-decoration: none !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.portlet ul li a:hover { background: var(--dp-light) !important; color: var(--dp-navy) !important; border-left-color: var(--dp-navy) !important; text-decoration: none !important; }

/* Search */
#p-search { padding: 8px 10px !important; }
#p-search h3 { display: none !important; }
#p-search #searchInput { width: 100% !important; padding: 6px 10px !important; border: 1px solid var(--dp-border) !important; border-radius: 5px !important; font-size: 12.5px !important; font-family: inherit !important; background: var(--dp-light) !important; color: var(--dp-text) !important; outline: none !important; box-sizing: border-box !important; }
#p-search #searchInput:focus { border-color: var(--dp-link) !important; background: #fff !important; }
#searchButton, #mw-searchButton { display: none !important; }

/* Sitenotice */
#siteNotice, #localNotice { text-align: center; padding: 8px 0 0 !important; }
#siteNotice img, #localNotice img { max-width: 300px !important; height: auto !important; }

/* ── Elementos inyectados ── */
#dp-topnav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 200 !important; background: var(--dp-navy); box-shadow: 0 2px 10px rgba(0,0,0,.22); height: var(--dp-nh); }
.dp-mainbar { height: 100%; display: flex; align-items: center; }
.dp-logo-block { width: var(--dp-sw); padding: 0 16px; display: flex; align-items: center; gap: 9px; flex-shrink: 0; height: 100%; border-right: 1px solid rgba(255,255,255,.08); text-decoration: none !important; }
.dp-logo-img { width: 30px; height: 30px; object-fit: contain; background: rgba(255,255,255,.1); border-radius: 4px; padding: 3px; flex-shrink: 0; }
.dp-logo-sitename { font-family: Georgia, serif; font-size: 14.5px; color: #fff !important; font-weight: normal; display: block; line-height: 1.1; }
.dp-logo-sub { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; display: block; }
.dp-nav-zone { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: 100%; }
.dp-nav-links { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.dp-nav-links li { height: 100%; display: flex; align-items: center; }
.dp-nav-links a { color: rgba(255,255,255,.62) !important; font-size: 12.5px; padding: 0 10px; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap; }
.dp-nav-links a:hover { color: #fff !important; border-bottom-color: rgba(255,255,255,.3); }
.dp-nav-links li.dp-active a { color: #fff !important; border-bottom-color: var(--dp-amber); font-weight: 500; }
.dp-cta-btn { background: var(--dp-amber) !important; color: #fff !important; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 5px; display: flex; align-items: center; gap: 6px; text-decoration: none !important; white-space: nowrap; flex-shrink: 0; }
.dp-cta-btn:hover { background: var(--dp-amber2) !important; }
.dp-cta-dot { width: 6px; height: 6px; background: rgba(255,255,255,.8); border-radius: 50%; animation: dp-pulse 2s infinite; flex-shrink: 0; }
@keyframes dp-pulse { 0%,100%{opacity:.75;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }

#dp-firma { background: var(--dp-navy); padding: 14px 14px 12px; }
.dp-firma-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dp-firma-logo { width: 32px; height: 32px; object-fit: contain; background: rgba(255,255,255,.12); border-radius: 4px; padding: 3px; flex-shrink: 0; }
.dp-firma-name { font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.25; }
.dp-firma-name small { display: block; font-weight: normal; font-size: 9.5px; color: rgba(255,255,255,.45); margin-top: 1px; }
.dp-firma-lawyers { display: flex; gap: 6px; margin-bottom: 10px; }
.dp-sb-lawyer { display: flex; align-items: center; gap: 6px; flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 6px 7px; text-decoration: none !important; }
.dp-sb-lawyer:hover { background: rgba(255,255,255,.15); }
.dp-sb-lawyer img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,.2); flex-shrink: 0; }
.dp-sb-lawyer-name { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.88); display: block; line-height: 1.2; }
.dp-sb-lawyer-role { font-size: 8.5px; color: rgba(255,255,255,.45); display: block; }
.dp-firma-wa { display: flex; align-items: center; justify-content: center; gap: 6px; background: #22c55e; color: #fff !important; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 4px; text-decoration: none !important; width: 100%; box-sizing: border-box; }
.dp-firma-wa:hover { background: #16a34a; }

#dp-urgente { margin: 10px 10px 2px; background: var(--dp-amber-light); border: 1px solid #deb96a; border-left: 3px solid var(--dp-amber); border-radius: 5px; padding: 10px 12px; display: block; text-decoration: none !important; }
#dp-urgente:hover { background: #f5e8c4; }
.dp-urg-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--dp-amber2); display: block; margin-bottom: 3px; }
.dp-urg-title { font-size: 12px; font-weight: 600; color: var(--dp-navy); line-height: 1.35; display: block; margin-bottom: 3px; }
.dp-urg-desc { font-size: 10.5px; color: var(--dp-sub); display: block; line-height: 1.4; margin-bottom: 6px; }
.dp-urg-link { font-size: 10.5px; font-weight: 600; color: var(--dp-amber2); display: block; }

.dp-sb-hr { border: none !important; border-top: 1px solid var(--dp-border) !important; margin: 8px 0 !important; }
.dp-sb-tool { margin: 2px 10px 6px; background: #eef2fa; border: 1px solid #c2d0e8; border-radius: 5px; padding: 9px 12px; display: block; text-decoration: none !important; }
.dp-sb-tool:hover { background: #dde8f5; }
.dp-sb-tool-icon { font-size: 15px; display: block; margin-bottom: 4px; }
.dp-sb-tool-name { font-size: 11.5px; font-weight: 600; color: var(--dp-navy); display: block; margin-bottom: 2px; line-height: 1.3; }
.dp-sb-tool-desc { font-size: 10px; color: var(--dp-sub); display: block; line-height: 1.3; }

/* ═══ MOBILE ═══ */
@media (max-width: 960px) {
  :root { --dp-sw: 0px; --dp-nh: 54px; }
  #column-one { display: none !important; }
  #column-content { margin-left: 0 !important; }
  #footer { margin-left: 0 !important; padding: 12px 16px !important; }
  #content { padding: 14px 16px 40px !important; }
  .dp-logo-block { width: auto !important; border-right: none !important; flex: 1; }
  .dp-logo-sub { display: none !important; }
  .dp-nav-links { display: none !important; }
  .dp-nav-zone { padding: 0 12px !important; }
  .dp-cta-btn { font-size: 11px !important; padding: 6px 11px !important; }
  .dp-cta-dot { display: none !important; }
}


/* ═══ HAMBURGUESA Y MENÚ MOBILE ═══ */
.dp-hamburger {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 22px;
  cursor: pointer;
  padding: 0 10px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.dp-hamburger:hover { color: #fff; }

.dp-mobile-menu {
  display: none;
  background: #192840;
  border-top: 1px solid rgba(255,255,255,.1);
}
.dp-mobile-menu.dp-menu-open { display: block; }

.dp-mobile-nav { list-style: none; margin: 0; padding: 0; }
.dp-mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
.dp-mobile-nav li a {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,.82) !important;
  font-size: 15px;
  text-decoration: none !important;
}
.dp-mobile-nav li a:hover { background: rgba(255,255,255,.05); color: #fff !important; }

.dp-mobile-search-wrap {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.dp-mobile-search-input {
  flex: 1;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.dp-mobile-search-input::placeholder { color: rgba(255,255,255,.38); }
.dp-mobile-search-input:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.13); }
.dp-mobile-search-btn {
  padding: 9px 15px;
  background: var(--dp-amber);
  border: none;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}
.dp-mobile-search-btn:hover { background: var(--dp-amber2); }

.dp-mobile-cta-wrap { padding: 4px 16px 16px; }
.dp-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22c55e;
  color: #fff !important;
  padding: 12px;
  border-radius: 7px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14.5px;
}
.dp-mobile-cta:hover { background: #16a34a; }

@media (max-width: 960px) {
  .dp-hamburger { display: flex !important; align-items: center; }
  .dp-cta-btn { display: none !important; }
  #dp-topnav { height: auto !important; min-height: var(--dp-nh); }
}


/* === PORTADA GUÍAS LABORALES === */
.dp-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.dp-capture-item {
  padding: 12px 14px;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  text-decoration: none;
  display: block;
  background: #fff;
  transition: background .12s;
}
.dp-capture-item:nth-child(even) { border-right: none; }
.dp-capture-item:nth-last-child(-n+2) { border-bottom: none; }
.dp-capture-item:hover { background: #f0f4fa !important; }
.dp-cap-ico { font-size: 18px; display: block; margin-bottom: 5px; }
.dp-cap-name { font-size: 13px; font-weight: 600; color: #1c2e4a; display: block; margin-bottom: 3px; line-height: 1.3; }
.dp-cap-desc { font-size: 11.5px; color: #54595d; line-height: 1.4; display: block; }
.dp-cap-arrow { font-size: 11px; color: #1a56a0; margin-top: 4px; display: block; }

.dp-sit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.dp-sit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  text-decoration: none;
  background: #fff;
  transition: background .1s;
}
.dp-sit-item:nth-child(even) { border-right: none; }
.dp-sit-item:nth-last-child(-n+2) { border-bottom: none; }
.dp-sit-item:hover { background: #f0f4fa !important; }
.dp-sit-ico { font-size: 15px; flex-shrink: 0; }
.dp-sit-txt { font-size: 12.5px; color: #1c2e4a; font-weight: 500; line-height: 1.3; flex: 1; }
.dp-sit-arr { font-size: 11px; color: #54595d; flex-shrink: 0; }

@media (max-width: 700px) {
  .dp-capture-grid, .dp-sit-grid { grid-template-columns: 1fr !important; }
  .dp-capture-item, .dp-sit-item { border-right: none !important; }
}


/* === EDIT TAB + SITENOTICE FIXES === */
#p-cactions { position: relative !important; z-index: 10 !important; }
#siteNotice, #localNotice { position: relative !important; z-index: 1 !important; }
#ca-edit a { color: #1c2e4a !important; font-weight: 700 !important; }
#ca-edit.selected a { border-bottom: 2px solid #c17f24 !important; }


/* === QUITAR ESPACIO EN BLANCO ARRIBA DE LA BARRA LATERAL === */
#column-one { padding-top: 0 !important; }


/* === QUITAR SUPERPOSICION DE PESTAÑAS SOBRE EL TITULO === */
#firstHeading { margin-top: 44px !important; clear: both !important; position: relative !important; }
.mw-indicators { clear: both !important; }

/* === BOTÓN FLOTANTE DE WHATSAPP (todas las páginas) === */
.dp-wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 9990;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dp-wa-flotante:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.dp-wa-flotante img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
@media (max-width: 768px) { .dp-wa-flotante { right: 16px; bottom: 16px; width: 56px; height: 56px; } }
@media print { .dp-wa-flotante { display: none; } }

/* === BARRA LATERAL SIMPLIFICADA PARA VISITANTES ===
   Quien inicia sesión ve la barra completa (ver MediaWiki:Group-user.css). */
[id="p-Kopaitic_&_Asociados"], #p-Principales, #p-Secciones, #p-Normas, #p-navigation, #p-tb, .dp-solo-usuarios { display: none; }
.dp-sb-tools-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-sub); margin: 10px 12px 6px; }

/* === FORMULARIO DE CONTACTO (integrado en «Asesoría legal» o suelto al final) === */
.dp-asesoria.dp-con-form .dp-form-titulo, .dp-asesoria.dp-con-form .dp-form-sep { display: block !important; }
.dp-asesoria.dp-con-form .dp-asesoria-botones { display: none; }
#mw-data-after-content .contact-wrap { display: block; padding: 0; margin: 10px 0 20px; }
#mw-data-after-content .contact-card.dp-form-suelto { max-width: none; border: 1px solid #c8ccd1; border-top: 4px solid #2e3563; background: #f8f9fa; border-radius: 8px; padding: 16px 20px; box-shadow: none; }
.dp-form-suelto .contact-header { display: block; margin-bottom: 10px; }
.dp-form-suelto h2 { font-size: 16px; font-weight: 700; color: #2e3563; border: none; margin: 0; padding: 0; font-family: inherit; }
.dp-form-suelto .sub { font-size: 13px; color: #54595d; margin: 3px 0 0; }
.dp-form-suelto .cta-whatsapp, .dp-form-suelto .alt-text { display: none; }
#contacto .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#contacto .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#contacto .field.full { grid-column: 1 / -1; }
#contacto .field label { font-size: 12px; font-weight: 600; color: #54595d; }
#contacto .field input, #contacto .field textarea { width: 100%; box-sizing: border-box; border: 1px solid #d5d8e0; border-radius: 6px; background: #fff; padding: 8px 10px; font-size: 14px; font-family: inherit; color: #202122; }
#contacto .field input:focus, #contacto .field textarea:focus { border-color: #2e3563; box-shadow: 0 0 0 3px rgba(46,53,99,.15); outline: none; }
#contacto .field textarea { min-height: 60px; height: 64px; }
#contacto .actions { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#contacto .btn-submit { width: auto; background: #2e3563; color: #fff; border: none; border-radius: 20px; padding: 9px 20px; font-weight: 700; font-size: 13px; cursor: pointer; }
#contacto .dp-alt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#contacto .dp-o { font-size: 12px; color: #72777d; }
#contacto .dp-wa-pill { background: #25D366; color: #fff !important; font-weight: 700; padding: 8px 16px; border-radius: 20px; font-size: 13px; text-decoration: none !important; }
#contacto .dp-mail { font-size: 13px; }
#contacto .privacy { flex-basis: 100%; text-align: left; margin: 2px 0 0; font-size: 12px; color: #72777d; }
.dp-form-error { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #fdf2f1; border: 1px solid #f0c9c4; color: #8a1f11; font-size: 13px; }
#dp-form-slot .thanks, .dp-form-suelto .thanks { font-size: 13px; border-radius: 6px; background: #fff; }
@media (max-width: 680px) {
  #contacto .grid { grid-template-columns: 1fr; }
  #contacto .field input, #contacto .field textarea { font-size: 16px; }
}

/* === Chat IA: sube el botón de WhatsApp para que no choque con la burbuja del chat === */
html.dp-con-chat .dp-wa-flotante { bottom: 92px !important; }
@media (max-width: 760px) { html.dp-con-chat .dp-wa-flotante { bottom: 84px !important; } }
/* Globo de bienvenida del chat: a la izquierda de los botones, sin tapar WhatsApp */
html.dp-con-chat #chatbase-message-bubbles { right: 92px !important; bottom: 24px !important; max-width: 300px !important; }
@media (max-width: 760px) { html.dp-con-chat #chatbase-message-bubbles { right: 84px !important; bottom: 20px !important; max-width: 62vw !important; } }