/* GWAE · Ajustes visuales comunes · 22/10/2026
   Las imágenes de cabecera siguen configurándose en cada elemento de menú. */

/* Cabeceras interiores: 100 px menos en escritorio; 80 px menos en móvil. */
body .sp-page-title { --page_title_padding_y: 150px; }
@media (max-width: 1399.98px) {
  body .sp-page-title { --page_title_padding_y: 100px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body .sp-page-title { --page_title_padding_y: 80px; }
}
@media (max-width: 767.98px) {
  body .sp-page-title { --page_title_padding_y: 50px; }
}

/* Acercar el contenido sin añadir espacios a las páginas del constructor. */
body:not(.com-sppagebuilder) #sp-main-body { padding-top: 48px; }
@media (max-width: 767.98px) {
  body:not(.com-sppagebuilder) #sp-main-body { padding-top: 32px; }
}

/* Accesos de cuenta discretos, con tamaño cómodo y sin la forma de presupuesto. */
#sp-header .sp-module a[href$="/mi-perfil"],
#sp-header .sp-module a[href$="/administracion"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  border-radius: 6px !important;
  clip-path: none !important;
  background: transparent !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: color .15s ease, background-color .15s ease;
}
#sp-header .sp-module a[href$="/administracion"] {
  border-color: #f2bd20 !important;
  color: #f6c638 !important;
}
#sp-header .sp-module a[href$="/mi-perfil"]::before,
#sp-header .sp-module a[href$="/mi-perfil"]::after,
#sp-header .sp-module a[href$="/administracion"]::before,
#sp-header .sp-module a[href$="/administracion"]::after {
  display: none !important;
  content: none !important;
}
#sp-header .sp-module a[href$="/mi-perfil"]:hover {
  background: #fff !important;
  color: #173e69 !important;
}
#sp-header .sp-module a[href$="/administracion"]:hover {
  background: #f2bd20 !important;
  color: #17283d !important;
}
#sp-header .sp-module a[href$="/mi-perfil"]:focus-visible,
#sp-header .sp-module a[href$="/administracion"]:focus-visible {
  outline: 3px solid #f2bd20;
  outline-offset: 4px;
}

/* Mi perfil: la misma ficha de la administración, sin grupos técnicos. */
.gwae-profile{--gwae-profile-gold:var(--primary_color,#edac00);max-width:1180px;margin-inline:auto;border:1px solid #d5dbe2;border-radius:10px;background:#fff;box-shadow:0 4px 20px #17283d08;overflow:hidden;color:#17283d;font:inherit;line-height:1.55}
.gwae-profile .gwae-profile-header{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.5rem;border-bottom:1px solid #d5dbe2;box-shadow:inset 0 4px 0 var(--gwae-profile-gold)}
.gwae-profile .gwae-profile-header h2{font-family:inherit;font-size:1.8rem;line-height:1.3;margin:0 0 .35rem}.gwae-profile .gwae-profile-header p{margin:0;color:#526172;font-size:.95rem}.gwae-profile .gwae-profile-body{padding:1.5rem}.gwae-profile form{margin:0}.gwae-profile .gwae-profile-actions,.gwae-profile .gwae-profile-footer{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.gwae-profile .btn{display:inline-flex;justify-content:center;align-items:center;min-height:44px;height:auto;padding:.65rem 1rem!important;border:1px solid #17283d;border-radius:5px;background:#fff;color:#17283d;font:inherit;font-size:.95rem;font-weight:600;line-height:1.3;text-transform:none;letter-spacing:normal;white-space:normal;box-shadow:none}
.gwae-profile .btn::before,.gwae-profile .btn::after{display:none!important;content:none!important}.gwae-profile .btn-primary{background:var(--gwae-profile-gold)!important;border-color:var(--gwae-profile-gold)!important;color:#17283d!important}.gwae-profile .btn:hover{background:#f1f3f6}.gwae-profile .btn-primary:hover{filter:brightness(1.05)}.gwae-profile :focus-visible{outline:3px solid #125ea9;outline-offset:3px}
.gwae-profile .gwae-profile-data,.gwae-profile .gwae-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem 2rem;margin:0}.gwae-profile .gwae-profile-datum{padding-bottom:1rem;border-bottom:1px solid #edf0f3;min-width:0}.gwae-profile dt{font-size:.9rem;font-weight:600;color:#526172;margin:0 0 .3rem}.gwae-profile dd{font-size:1rem;overflow-wrap:anywhere;margin:0}.gwae-profile .gwae-profile-help{font-size:.9rem;color:#526172;margin:0 0 1.25rem}
.gwae-profile .gwae-profile-fields>.control-group{margin:0;min-width:0}.gwae-profile .gwae-profile-fields .control-label{width:auto!important;float:none!important;text-align:left!important;margin:0 0 .4rem;padding:0;font-weight:600}.gwae-profile .gwae-profile-fields .controls{margin:0!important}.gwae-profile .gwae-profile-fields .form-control,.gwae-profile .gwae-profile-fields .form-select{min-height:46px;width:100%;max-width:100%;font:inherit;border:1px solid #8491a1;border-radius:5px;background:#fbfcfd}.gwae-profile .gwae-profile-fields .input-group{flex-wrap:nowrap}.gwae-profile .gwae-profile-fields .input-group input{min-width:0}.gwae-profile .gwae-profile-fields .form-text{font-size:.85rem;line-height:1.4}
.gwae-profile .gwae-profile-extra{margin:1.5rem 0 0;border:1px solid #d5dbe2;border-radius:6px}.gwae-profile .gwae-profile-extra>summary{padding:.8rem 1rem;cursor:pointer;font-weight:600;min-height:48px;background:#f3f5f7}.gwae-profile .gwae-profile-extra[open]>summary{border-bottom:1px solid #d5dbe2;box-shadow:inset 3px 0 var(--gwae-profile-gold)}.gwae-profile .gwae-profile-extra-body{padding:1rem}.gwae-profile .gwae-profile-footer{padding:1rem 1.5rem;background:#f3f5f7;border-top:1px solid #d5dbe2}
@media(max-width:700px){.gwae-profile .gwae-profile-header{flex-wrap:wrap;gap:1rem;padding:1rem}.gwae-profile .gwae-profile-header h2{font-size:1.5rem}.gwae-profile .gwae-profile-body{padding:1rem}.gwae-profile .gwae-profile-data,.gwae-profile .gwae-profile-fields{grid-template-columns:1fr;gap:1rem}.gwae-profile .gwae-profile-footer{padding:1rem}.gwae-profile .gwae-profile-footer .btn{flex:1 1 100%}}

/* Menú de cuenta: desplegable nativo, accesible también con teclado. */
#sp-header .gwae-account-dropdown{position:relative;color:#fff}
#sp-header .gwae-account-dropdown>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.6rem;min-height:44px;padding:10px 16px;border:1px solid #ffffffa6;border-radius:6px;font:inherit;font-size:15px;font-weight:600;line-height:1.4}
#sp-header .gwae-account-dropdown>summary::-webkit-details-marker{display:none}
#sp-header .gwae-account-dropdown[open]>summary,#sp-header .gwae-account-dropdown>summary:hover{background:#ffffff15}
#sp-header .gwae-account-dropdown>summary:focus-visible{outline:3px solid #f2bd20;outline-offset:4px}
#sp-header .gwae-account-dropdown-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:1100;min-width:220px;padding:.4rem;background:#fff;border:1px solid #d5dbe2;border-top:3px solid #f2bd20;border-radius:6px;box-shadow:0 8px 25px #0b172830}
#sp-header .sp-module .gwae-account-dropdown-panel a{display:block!important;min-height:44px;height:auto!important;margin:0;padding:.65rem .8rem!important;background:#fff!important;color:#17283d!important;border:0!important;border-radius:3px!important;clip-path:none!important;font:inherit;font-size:15px!important;font-weight:500;line-height:1.5!important;text-transform:none!important;white-space:nowrap}
#sp-header .sp-module .gwae-account-dropdown-panel a:hover,#sp-header .sp-module .gwae-account-dropdown-panel a:focus-visible{background:#f2f4f7!important;outline-offset:-3px}
#sp-header .gwae-account-dropdown-panel a:last-child{border-top:1px solid #e2e6ec!important;border-radius:0!important}

/* El ancho y los márgenes exteriores corresponden únicamente a la plantilla. */
body .gwae-profile,body .gwae-portal{width:100%;max-width:none;margin-left:0;margin-right:0}

/* Alinear los campos: las instrucciones de contraseña van debajo, no antes del input. */
.gwae-profile .gwae-profile-fields .controls{display:flex;flex-direction:column}
.gwae-profile .gwae-profile-fields .controls>[id$="-rules"]{order:2;margin-top:.4rem}
