.empeno-perfil .perfil-cabecera-oficial {
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}
.empeno-perfil .perfil-logo-oficial img { object-fit: contain; }
.empeno-perfil .perfil-subtitulo { color: #642d44; }
.empeno-perfil .empeno-acciones { margin-bottom: 1.25rem; }
.empeno-perfil .empeno-acciones .accion {
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
}
.empeno-perfil .empeno-acciones .empeno-cta-cotizar { color: #fff; background: #156b49; border-color: #156b49; }
.empeno-perfil .empeno-acciones .empeno-cta-catalogo { color: #57253b; background: #f4e7ee; border-color: #e6d4de; }
.empeno-perfil .empeno-catalogo { margin-bottom: 1.25rem; }
.empeno-perfil .empeno-catalogo :is(h4,h5,h6,p), .empeno-visor h4 { margin-top: 0; }
.empeno-perfil .empeno-catalogo :is(button,a,[tabindex]):focus-visible, .empeno-visor :is(button,a,.empeno-fotos):focus-visible {
  outline: 3px solid #974065;
  outline-offset: 2px;
}
.empeno-catalogo button, .empeno-visor button { cursor: pointer; font-family: inherit; }
.empeno-acciones, .empeno-controles { align-items: center; }
.empeno-controles { display: flex; flex-wrap: wrap; gap: .65rem; }
.empeno-catalogo > h4 { margin-bottom: .9rem; font-size: clamp(1.3rem, 3vw, 1.9rem); scroll-margin-block-start: 5rem; }
.empeno-categorias { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: .65rem; }
.empeno-categoria {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 3.3rem;
  gap: .45rem;
  padding: .7rem .85rem;
  border: 1px solid #e1d0ce;
  border-radius: .7rem;
  background: #fff;
  color: #533043;
  text-align: left;
  font-weight: 700 !important;
}
.empeno-categoria:hover { border-color: #863e58; }
.empeno-categoria[aria-pressed="true"] { background: #642d44; border-color: #642d44; color: #fff; }
.empeno-categoria-flecha { flex: none; font-size: 1.25rem; line-height: 1; }
.empeno-resultado { margin-top: 1rem; min-width: 0; }
.empeno-resultado h5 { margin-bottom: .65rem; font-size: 1.15rem; }
.empeno-vacio { background: #f1e9e4; border-radius: .8rem; color: #59434b; padding: .95rem 1rem; }
.empeno-articulos {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .2rem .2rem .65rem;
}
.empeno-articulos > .empeno-articulo { flex: 0 0 min(82%, 16rem); scroll-snap-align: start; }
.empeno-articulos-controles { display: flex; justify-content: flex-end; gap: .45rem; margin-bottom: .35rem; }
.empeno-todos { grid-column: 1 / -1; }
.empeno-articulos-controles .empeno-foto-flecha {
  background: #f4e7ee; color: #57253b; border: 1px solid #e6d4de; border-radius: .45rem;
  width: 2.5rem; height: 2.4rem; font-size: 1.2rem;
}
.empeno-articulo { min-width: 0; background: #fff; border: 1px solid #ecdeda; border-radius: .9rem; overflow: hidden; }
.empeno-articulo-datos { padding: .9rem; display: grid; justify-items: start; gap: .6rem; }
.empeno-articulo h6 { font-size: 1.05rem; line-height: 1.3; }
.empeno-articulo p { font-size: .94rem; color: #5d4c51; white-space: pre-line; }
.empeno-estado { background: #dcefe4; color: #185336; border-radius: .35rem; font-size: .8rem; font-weight: 750; padding: .25rem .5rem; }
.empeno-apartado { background: #ffe7b5; color: #674112; }
.empeno-precio { color: #642d44; font-size: 1.03rem; }
.empeno-consultar { display: inline-block; color: #156145; font-weight: 700; text-underline-offset: .2rem; }
.empeno-fotos {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #f4eeeb;
}
.empeno-fotos::-webkit-scrollbar { display: none; }
.empeno-fotos > * { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; }
.empeno-fotos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.empeno-fotos .empeno-abrir-foto { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; }
.empeno-galeria-controles { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .3rem; color: #4d3542; font-size: .85rem; }
.empeno-galeria-controles .empeno-foto-flecha,
.empeno-visor .empeno-cerrar { background: #f5eeeb; color: #4d273b; border: 1px solid #e6d6d4; padding: .35rem .7rem; border-radius: .45rem; min-height: 2.4rem; }
.empeno-galeria-controles .empeno-foto-flecha { min-width: 2.5rem; font-size: 1.2rem; }
.empeno-foto-flecha:disabled { opacity: .45; cursor: default; }
.empeno-visor {
  width: min(calc(100% - 1.5rem),48rem);
  max-height: 92dvh;
  background: #fffaf6;
  color: #291d22;
  border: 0;
  border-radius: 1rem;
  padding: 1rem;
}
.empeno-visor::backdrop { background: #21121bd9; }
.empeno-visor-cabecera { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.empeno-visor .empeno-fotos img { max-height: 62dvh; }
.empeno-visor .empeno-consultar { margin-top: .65rem; }
@media (max-width: 48rem) {
  .perfil-negocio.empeno-perfil .perfil-hero-oficial { height: auto; aspect-ratio: 16 / 5; }
  .empeno-perfil .perfil-cabecera-oficial { align-items: center; }
  .empeno-perfil .perfil-logo-oficial { margin-top: -38px; }
}
@media (max-width: 36rem) {
  .empeno-perfil .empeno-acciones { grid-template-columns: 1fr; }
  .empeno-categorias { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .empeno-categoria { font-size: .88rem; padding-inline: .55rem; }
  .empeno-categoria:not(.empeno-todos) .empeno-categoria-flecha { display: none; }
}
.empeno-editor form, .empeno-editor section { margin-block: 1rem; }
.empeno-editor .empeno-foto-fila { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-block: .35rem; }
.empeno-editor .empeno-foto-fila img { width: 5rem; aspect-ratio: 4/3; object-fit: contain; }
.panel-empeno > :not(#vista-empeno) { display: none !important; }
.empeno-editor label input:not([type=checkbox]), .empeno-editor label textarea, .empeno-editor label select { display: block; width: 100%; }
