/* =========================================================
   HERMES AI — FINAL V1
   OFICINA 2D / PIXEL
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --navy: #102535;
  --navy-dark: #091923;
  --outline: #263b45;
  --ink: #172830;

  --working: #22d486;
  --available: #7899ad;
  --queue: #f4c84b;

  --cream: #eee3ca;
  --hall: #d8cbb1;

  --blue-room: #c9e2ee;
  --green-room: #cee5d1;
  --purple-room: #ded3eb;
  --pink-room: #ebcfdb;
  --gold-room: #ecdfbd;
}

html {
  background: var(--navy-dark);
}

body {
  margin: 0;
  min-width: 1100px;

  color: var(--ink);
  background: var(--navy-dark);

  font-family:
    "Courier New",
    monospace;

  image-rendering: pixelated;
}


/* =========================================================
   CABECERA
   ========================================================= */

.hq-header {
  height: 68px;

  display: flex;
  align-items: center;

  gap: 22px;

  padding: 8px 24px;

  color: #eef5f7;
  background: var(--navy);

  border-bottom: 5px solid #294958;
}

.brand {
  display: flex;
  align-items: center;

  gap: 11px;
}

.brand-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 3px solid #dbe8ed;

  font-size: 23px;
  font-weight: 900;
}

.brand strong {
  font-size: 23px;
  letter-spacing: 2px;
}

.discord-status {
  padding-left: 18px;

  border-left:
    2px solid #4a6574;

  color: var(--working);

  font-size: 12px;
  font-weight: 900;
}

.discord-status i {
  display: inline-block;

  width: 15px;
  height: 15px;

  margin-right: 7px;

  vertical-align: -3px;

  background: var(--working);

  border-radius: 50%;
}

.global-status {
  display: flex;
  align-items: center;

  gap: 7px;

  color: var(--working);

  font-size: 12px;
}

.global-status strong {
  font-size: 14px;
}

.header-right {
  margin-left: auto;

  text-align: right;
}

.header-right div {
  font-size: 14px;
}

.header-right strong {
  display: block;

  margin-top: 4px;

  font-size: 11px;
  letter-spacing: 1px;
}


/* =========================================================
   EDIFICIO
   ========================================================= */

.office-building {
  width: calc(100% - 14px);
  max-width: 1800px;

  margin: 7px auto 0;

  overflow: hidden;

  background: var(--hall);

  border: 6px solid #213842;
}


/* =========================================================
   DIRECCIÓN
   ========================================================= */

.executive-office {
  position: relative;

  height: 190px;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(255,255,255,.13),
      rgba(255,255,255,.13)
    ),
    var(--cream);

  border-bottom:
    5px solid var(--outline);
}

.executive-title {
  position: absolute;

  width: 235px;
  height: 37px;

  left: 50%;
  top: 10px;

  transform:
    translateX(-50%);

  z-index: 30;

  display: grid;
  place-items: center;

  color: white;
  background: var(--navy);

  border:
    4px solid #294957;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
}


/* =========================================================
   VENTANA DIRECCIÓN
   ========================================================= */

.city-window {
  position: absolute;

  width: 405px;
  height: 95px;

  left: 50%;
  top: 16px;

  transform:
    translateX(-50%);

  overflow: hidden;

  background:
    linear-gradient(
      #96cae2 0 62%,
      #d9e5dc 62%
    );

  border:
    5px solid #3d535d;
}

.city-window i {
  position: absolute;

  bottom: 0;

  background: #67838e;
}

.city-window i:nth-child(1) {
  width: 48px;
  height: 48px;

  left: 35px;
}

.city-window i:nth-child(2) {
  width: 66px;
  height: 70px;

  left: 125px;
}

.city-window i:nth-child(3) {
  width: 52px;
  height: 57px;

  right: 108px;
}

.city-window i:nth-child(4) {
  width: 38px;
  height: 42px;

  right: 34px;
}


/* =========================================================
   PUERTAS
   ========================================================= */

.office-door {
  position: absolute;

  width: 50px;
  height: 88px;

  bottom: 8px;

  background: #9a603c;

  border:
    5px solid #61452f;
}

.office-door::after {
  content: "";

  position: absolute;

  width: 6px;
  height: 6px;

  right: 7px;
  top: 40px;

  background: #e4c674;

  border:
    2px solid #594832;
}

.door-left {
  left: 45px;
}

.door-right {
  right: 45px;
}


/* =========================================================
   LIBRERO
   ========================================================= */

.bookcase {
  position: absolute;

  width: 92px;
  height: 125px;

  left: 195px;
  bottom: 8px;

  padding: 9px;

  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 5px;

  background: #715039;

  border:
    5px solid #3e4140;
}

.bookcase span {
  background: #c77c58;

  border:
    2px solid #594738;
}

.bookcase span:nth-child(3n) {
  background: #d7a959;
}

.bookcase span:nth-child(4n) {
  background: #638293;
}


/* =========================================================
   PLANTAS PIXEL
   ========================================================= */

.plant {
  position: absolute;
}

.plant::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  transform:
    translateX(-50%);

  background: #a76a42;

  border:
    4px solid #584238;
}

/* hojas */
.plant::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 24px;

  transform:
    translateX(-50%)
    rotate(-12deg);

  background: #4e8350;

  border:
    4px solid #315d3a;

  box-shadow:
    -18px 8px 0 -2px #4e8350,
     18px 5px 0 -2px #4e8350,
     29px 20px 0 -3px #4e8350,
    -28px 21px 0 -3px #4e8350;
}

.plant-xl {
  width: 68px;
  height: 100px;
}

.plant-xl::after {
  width: 32px;
  height: 29px;
}

.plant-xl::before {
  width: 18px;
  height: 58px;
}

.plant-small {
  width: 45px;
  height: 63px;
}

.plant-small::after {
  width: 24px;
  height: 20px;

  border-width: 3px;
}

.plant-small::before {
  width: 13px;
  height: 37px;

  bottom: 18px;

  border-width: 3px;

  box-shadow:
    -12px 6px 0 -2px #4e8350,
     12px 4px 0 -2px #4e8350;
}

.plant-desk {
  width: 35px;
  height: 48px;
}

.plant-desk::after {
  width: 20px;
  height: 16px;

  border-width: 3px;
}

.plant-desk::before {
  width: 10px;
  height: 28px;

  bottom: 14px;

  border-width: 3px;

  box-shadow:
    -9px 5px 0 -2px #4e8350,
     9px 3px 0 -2px #4e8350;
}


/* plantas Dirección */

.exec-plant-1 {
  left: 115px;
  bottom: 6px;
}

.exec-plant-2 {
  left: 315px;
  bottom: 6px;
}

.exec-plant-3 {
  right: 315px;
  bottom: 6px;
}

.exec-plant-4 {
  right: 115px;
  bottom: 6px;
}


/* =========================================================
   TABLERO HERMES
   ========================================================= */

.mission-board {
  position: absolute;

  width: 150px;

  right: 200px;
  top: 33px;

  padding: 11px 13px;

  background: #f2ebda;

  border:
    4px solid #435259;

  font-size: 11px;
  line-height: 1.38;
}

.mission-board strong,
.mission-board span {
  display: block;
}


/* =========================================================
   FILA DE DEPARTAMENTOS
   ========================================================= */

.department-row {
  display: grid;

  grid-template-columns:
    repeat(5,1fr);

  gap: 5px;

  padding: 5px;

  background: #293d46;
}

.department {
  position: relative;

  height: 225px;

  overflow: hidden;

  border:
    4px solid #31454e;
}

.department h2,
.creative-office h2,
.single-office h2,
.rest-zone h2,
.meeting-zone h2 {
  height: 36px;

  margin: 0;

  padding: 9px 10px;

  border-bottom:
    3px solid rgba(48,60,65,.68);

  font-size: 11px;
}

.dept-shopify {
  background: var(--blue-room);
}

.dept-commercial {
  background: var(--green-room);
}

.dept-products {
  background: var(--purple-room);
}

.dept-primo {
  background: var(--pink-room);
}

.dept-audit {
  background: var(--gold-room);
}


/* decoración interior */

.decor-left {
  left: 18px;
  top: 53px;
}

.decor-right {
  right: 17px;
  bottom: 10px;
}

.wall-frame,
.wall-chart {
  position: absolute;

  width: 50px;
  height: 40px;

  right: 17px;
  top: 53px;

  background: #f2eee4;

  border:
    4px solid #4c5d64;
}

.wall-frame::after {
  content: "";

  position: absolute;

  inset: 7px;

  background:
    linear-gradient(
      135deg,
      #51849b 0 48%,
      #dabd73 48%
    );
}

.wall-chart::after {
  content: "";

  position: absolute;

  left: 7px;
  right: 7px;
  bottom: 6px;

  height: 24px;

  background:
    linear-gradient(
      90deg,
      #50849c 0 18%,
      transparent 18% 27%,
      #50849c 27% 50%,
      transparent 50% 60%,
      #50849c 60% 78%,
      transparent 78% 87%,
      #50849c 87%
    );
}


/* =========================================================
   ARCHIVADORES
   ========================================================= */

.file-cabinet {
  position: absolute;

  width: 31px;
  height: 59px;

  bottom: 13px;

  background: #7d8d93;

  border:
    4px solid #4a595f;
}

.file-cabinet::before,
.file-cabinet::after {
  content: "";

  position: absolute;

  width: 18px;
  height: 16px;

  left: 3px;

  background: #abb5b7;

  border:
    2px solid #59666b;
}

.file-cabinet::before {
  top: 4px;
}

.file-cabinet::after {
  bottom: 4px;
}

.cabinet-left {
  left: 12px;
}

.cabinet-right {
  right: 12px;
}


/* =========================================================
   PRODUCTOS / PRIMO
   ========================================================= */

.product-boxes {
  position: absolute;

  width: 65px;
  height: 55px;

  right: 12px;
  bottom: 12px;
}

.product-boxes i {
  position: absolute;

  width: 31px;
  height: 28px;

  bottom: 0;

  background: #bd894e;

  border:
    3px solid #704f31;
}

.product-boxes i:nth-child(1) {
  left: 0;
}

.product-boxes i:nth-child(2) {
  right: 0;
}

.product-boxes i:nth-child(3) {
  left: 17px;
  bottom: 26px;
}

.strategy-board {
  position: absolute;

  right: 13px;
  top: 53px;

  padding: 7px;

  background: #f3eddf;

  border:
    3px solid #536168;

  font-size: 8px;
  line-height: 1.4;
}/* =========================================================
   PASILLO DE MISIONES
   ========================================================= */

.mission-hall {
  position: relative;

  height: 125px;

  overflow: hidden;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(93,80,61,.10) 0 1px,
      transparent 1px 42px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(93,80,61,.07) 0 1px,
      transparent 1px 42px
    ),
    var(--hall);

  border-top: 5px solid #30434b;
  border-bottom: 5px solid #30434b;
}

.hall-center {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 15px;
}

.hall-center strong {
  font-size: 11px;
  letter-spacing: 2px;
}

.hall-road {
  position: absolute;

  left: 8%;
  right: 8%;
  top: 68%;

  height: 3px;

  background:
    repeating-linear-gradient(
      90deg,
      #978c77 0 20px,
      transparent 20px 43px
    );
}

.hall-plant-left {
  left: 15px;
  bottom: 2px;

  transform: scale(.72);
  transform-origin: bottom;
}

.hall-plant-right {
  right: 15px;
  bottom: 2px;

  transform: scale(.72);
  transform-origin: bottom;
}


/* dispensador */

.water-cooler {
  position: absolute;

  width: 32px;
  height: 46px;

  right: 85px;
  bottom: 8px;

  background: #e7e7df;

  border:
    4px solid #5b686d;
}

.water-bottle {
  position: absolute;

  width: 23px;
  height: 28px;

  left: 1px;
  top: -27px;

  background: #7fc2dc;

  border:
    4px solid #536f7b;

  border-radius: 8px 8px 2px 2px;
}


/* capa para personajes caminando */

.walking-layer {
  position: absolute;
  inset: 0;

  z-index: 200;

  pointer-events: none;
}


/* =========================================================
   PISO INFERIOR
   ========================================================= */

.lower-floor {
  display: grid;

  grid-template-columns:
    2.15fr .85fr .85fr 1.45fr;

  gap: 5px;

  padding: 5px;

  background: #293d46;
}


/* =========================================================
   OFICINA CREATIVA
   ========================================================= */

.creative-office {
  position: relative;

  height: 245px;

  overflow: hidden;

  background: var(--pink-room);

  border:
    4px solid #31454e;
}

.creative-grid {
  height: 200px;

  display: grid;

  grid-template-columns:
    repeat(4,1fr);
}

.creative-desk {
  position: relative;

  min-width: 0;

  border-right:
    3px solid rgba(72,62,67,.20);
}

.creative-desk:last-child {
  border-right: 0;
}

.creative-desk::after {
  content: "";

  position: absolute;

  left: 8px;
  right: 8px;
  bottom: 4px;

  height: 5px;

  background:
    rgba(75,65,53,.10);
}

.creative-desk .plant-desk {
  left: 7px;
  top: 12px;
}


/* =========================================================
   LOGÍSTICA / ADS
   ========================================================= */

.single-office {
  position: relative;

  height: 245px;

  overflow: hidden;

  border:
    4px solid #31454e;
}

.logistics-office {
  background: var(--green-room);
}

.ads-office {
  background: var(--blue-room);
}

.single-office .wall-chart {
  top: 54px;
}


/* =========================================================
   ZONA DE DESCANSO + REUNIONES
   ========================================================= */

.utility-zones {
  height: 245px;

  display: grid;

  grid-template-rows:
    1fr 1fr;

  gap: 5px;
}

.rest-zone,
.meeting-zone {
  position: relative;

  overflow: hidden;

  background: var(--gold-room);

  border:
    4px solid #31454e;
}

.rest-zone h2,
.meeting-zone h2 {
  height: 28px;

  padding: 6px 8px;

  font-size: 9px;
}


/* descanso */

.rest-plant {
  left: 9px;
  bottom: 2px;

  transform: scale(.68);
  transform-origin: bottom;
}

.sofa {
  position: absolute;

  width: 120px;
  height: 38px;

  left: 68px;
  bottom: 13px;

  background: #3f6680;

  border:
    4px solid #27424f;
}

.sofa::before {
  content: "";

  position: absolute;

  left: -4px;
  right: -4px;
  top: -23px;

  height: 25px;

  background: #4a7690;

  border:
    4px solid #27424f;
}

.sofa::after {
  content: "";

  position: absolute;

  width: 32px;
  height: 22px;

  left: 12px;
  top: 7px;

  background: #eadac0;

  border:
    3px solid #9c8b76;

  box-shadow:
    58px 0 0 0 #eadac0;
}

.coffee-table {
  position: absolute;

  width: 53px;
  height: 21px;

  left: 205px;
  bottom: 17px;

  background: #8c6648;

  border:
    4px solid #513e31;
}

.rest-message {
  position: absolute;

  right: 10px;
  top: 37px;

  padding: 5px;

  background: #f2ebda;

  border:
    3px solid #4f5b60;

  font-size: 7px;
  line-height: 1.35;
}


/* reuniones */

.meeting-plant {
  left: 7px;
  bottom: 0;

  transform: scale(.58);
  transform-origin: bottom;
}

.meeting-table {
  position: absolute;

  width: 142px;
  height: 37px;

  left: 50%;
  bottom: 23px;

  transform:
    translateX(-50%);

  background: #8c6749;

  border:
    4px solid #513e31;
}

.meeting-chairs i {
  position: absolute;

  width: 25px;
  height: 30px;

  background: #315166;

  border:
    4px solid #213b49;
}

.meeting-chairs i:nth-child(1) {
  left: 72px;
  bottom: 5px;
}

.meeting-chairs i:nth-child(2) {
  left: 119px;
  bottom: 5px;
}

.meeting-chairs i:nth-child(3) {
  left: 166px;
  bottom: 5px;
}

.meeting-chairs i:nth-child(4) {
  left: 72px;
  bottom: 58px;
}

.meeting-chairs i:nth-child(5) {
  left: 119px;
  bottom: 58px;
}

.meeting-chairs i:nth-child(6) {
  left: 166px;
  bottom: 58px;
}

.meeting-screen {
  position: absolute;

  width: 68px;
  height: 43px;

  right: 9px;
  top: 36px;

  display: grid;
  place-items: center;

  color: #49e09a;

  background: #17313c;

  border:
    4px solid #43585f;

  text-align: center;
  font-size: 8px;
}


/* =========================================================
   ESPACIO DE LOS AGENTES
   ========================================================= */

.agent-slot {
  position: absolute;

  width: 150px;
  height: 155px;

  left: 50%;
  bottom: 3px;

  transform:
    translateX(-50%);

  z-index: 20;
}

.creative-desk .agent-slot {
  width: 135px;

  bottom: 0;
}


/* =========================================================
   PANEL DEL AGENTE
   ========================================================= */

.agent-panel {
  position: fixed;

  width: 335px;

  right: 18px;
  top: 85px;

  z-index: 5000;

  padding: 21px;

  color: #e8f0f4;

  background: #10212e;

  border:
    4px solid #3a586c;

  box-shadow:
    -8px 8px 0 rgba(0,0,0,.22);

  transform:
    translateX(390px);

  transition:
    transform .25s ease;
}

.agent-panel.open {
  transform:
    translateX(0);
}

#closePanel {
  position: absolute;

  width: 35px;
  height: 35px;

  right: 8px;
  top: 8px;

  color: white;

  background: #2a4151;

  border: 0;

  font-size: 21px;
  cursor: pointer;
}

.panel-avatar {
  width: 100px;
  height: 100px;

  margin:
    3px auto 10px;

  display: grid;
  place-items: center;

  background: #172d3c;

  border:
    4px solid #3d6782;
}

.panel-status {
  width: max-content;

  margin:
    0 auto 10px;

  padding: 4px 7px;

  background: #172a37;

  font-size: 9px;
}

.panel-status i {
  display: inline-block;

  width: 9px;
  height: 9px;

  margin-right: 5px;

  background: var(--available);

  border-radius: 50%;
}

.panel-status.working i {
  background: var(--working);
}

.agent-panel h2 {
  margin:
    10px 0 2px;

  font-size: 24px;
}

.panel-role {
  margin-bottom: 14px;

  color: #9eb4c2;
}

.panel-item {
  margin-top: 7px;

  padding: 10px;

  background: #172733;

  border:
    2px solid #2d4555;
}

.panel-item small {
  display: block;

  margin-bottom: 4px;

  color: #839ba9;

  font-size: 8px;
}

.panel-item strong {
  display: block;

  font-size: 11px;

  overflow-wrap: anywhere;
}


/* =========================================================
   FOOTER
   ========================================================= */

.office-footer {
  min-height: 52px;

  display: flex;
  align-items: center;

  gap: 34px;

  padding:
    10px 26px;

  color: #dce7eb;

  background: var(--navy);

  border-top:
    5px solid #294957;

  font-size: 10px;
}

.legend i {
  display: inline-block;

  width: 13px;
  height: 13px;

  margin-right: 6px;

  vertical-align: -3px;

  border-radius: 50%;
}

.legend-working i {
  background: var(--working);
}

.legend-available i {
  background: var(--available);
}

.legend-queue i {
  background: var(--queue);
}

.footer-motto {
  margin-left: auto;

  letter-spacing: 1px;
}


/* =========================================================
   RESPONSIVE BÁSICO
   ========================================================= */

@media(max-width: 1250px) {

  body {
    min-width: 900px;
  }

  .department-row {
    grid-template-columns:
      repeat(5, minmax(160px,1fr));
  }

  .lower-floor {
    grid-template-columns:
      2fr .9fr .9fr 1.4fr;
  }
}
/* =========================================================
   PIXEL ART ASSETS — PRUEBA DIRECCIÓN
   ========================================================= */

/* Ocultamos únicamente las versiones CSS antiguas */
.executive-office .exec-plant-1,
.executive-office .exec-plant-2,
.executive-office .exec-plant-3,
.executive-office .exec-plant-4,
.executive-office .bookcase,
.executive-office .office-door {
  background: none;
  border: 0;
}

/* Eliminamos las hojas CSS anteriores */
.executive-office .plant::before,
.executive-office .plant::after {
  display: none;
}


/* PLANTAS PIXEL ART */

.executive-office .exec-plant-1,
.executive-office .exec-plant-2,
.executive-office .exec-plant-3,
.executive-office .exec-plant-4 {
  width: 82px;
  height: 115px;

  background-image:
    url("/final-v1/assets/sprites/plant-large.png");

  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}


/* LIBRERO PIXEL ART */

.executive-office .bookcase {
  width: 92px;
  height: 125px;

  padding: 0;

  display: block;

  background-image:
    url("/final-v1/assets/sprites/bookcase.png");

  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* ocultar libros CSS */
.executive-office .bookcase span {
  display: none;
}


/* PUERTAS PIXEL ART */

.executive-office .office-door {
  width: 58px;
  height: 100px;

  background-image:
    url("/final-v1/assets/sprites/door.png");

  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* eliminar pomo CSS anterior */
.executive-office .office-door::after {
  display: none;
}/* =========================================================
   PIXEL ART ASSETS — PRUEBA DIRECCIÓN
   ========================================================= */

/* Ocultamos únicamente las versiones CSS antiguas */
.executive-office .exec-plant-1,
.executive-office .exec-plant-2,
.executive-office .exec-plant-3,
.executive-office .exec-plant-4,
.executive-office .bookcase,
.executive-office .office-door {
  background: none;
  border: 0;
}

/* Eliminamos las hojas CSS anteriores */
.executive-office .plant::before,
.executive-office .plant::after {
  display: none;
}


/* PLANTAS PIXEL ART */

.executive-office .exec-plant-1,
.executive-office .exec-plant-2,
.executive-office .exec-plant-3,
.executive-office .exec-plant-4 {
  width: 82px;
  height: 115px;

  background-image:
    url("/final-v1/assets/sprites/plant-large.png");

  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}


/* LIBRERO PIXEL ART */

.executive-office .bookcase {
  width: 92px;
  height: 125px;

/* =========================================================
   FINAL V1 — PIXEL ART REAL
   PRUEBA: SHOPIFY Y SOPORTE
   ========================================================= */

/* Quitar decoración CSS antigua solamente en Shopify */

.dept-shopify .plant-small::before,
.dept-shopify .plant-small::after,
.dept-shopify .file-cabinet::before,
.dept-shopify .file-cabinet::after,
.dept-shopify .wall-frame::after {
  display: none;
}


/* PLANTA */

.dept-shopify .plant-small {
  width: 58px;
  height: 75px;

  left: 15px;
  top: 47px;

  background:
    url("/final-v1/assets/sprites/plant-small.png")
    center bottom / contain
    no-repeat;
}


/* ARCHIVADORES */

.dept-shopify .file-cabinet {
  width: 42px;
  height: 70px;

  background:
    url("/final-v1/assets/sprites/cabinet.png")
    center bottom / contain
    no-repeat;

  border: 0;
}

.dept-shopify .cabinet-left {
  left: 9px;
  bottom: 8px;
}

.dept-shopify .cabinet-right {
  right: 9px;
  bottom: 8px;
}


/* CUADRO */

.dept-shopify .wall-frame {
  width: 62px;
  height: 55px;

  right: 14px;
  top: 48px;

  background:
    url("/final-v1/assets/sprites/picture.png")
    center / contain
    no-repeat;

  border: 0;
}  padding: 0;

  display: block;

  background-image:
    url("/final-v1/assets/sprites/bookcase.png");

  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* ocultar libros CSS */
.executive-office .bookcase span {
  display: none;
}


/* PUERTAS PIXEL ART */

.executive-office .office-door {
  width: 58px;
  height: 100px;

  background-image:
    url("/final-v1/assets/sprites/door.png");

  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* eliminar pomo CSS anterior */
.executive-office .office-door::after {
  display: none;
}
/* =========================================================
   PIXEL ART REAL — SHOPIFY
   ========================================================= */

/* PLANTA */
.dept-shopify .plant-small {
  width: 58px !important;
  height: 75px !important;

  left: 15px !important;
  top: 47px !important;

  background:
    url("/final-v1/assets/sprites/plant-small.png")
    center bottom / contain
    no-repeat !important;
}

.dept-shopify .plant-small::before,
.dept-shopify .plant-small::after {
  display: none !important;
}


/* ARCHIVADORES */
.dept-shopify .file-cabinet {
  width: 42px !important;
  height: 70px !important;

  background:
    url("/final-v1/assets/sprites/cabinet.png")
    center bottom / contain
    no-repeat !important;

  border: 0 !important;
}

.dept-shopify .file-cabinet::before,
.dept-shopify .file-cabinet::after {
  display: none !important;
}


/* CUADRO */
.dept-shopify .wall-frame {
  width: 62px !important;
  height: 55px !important;

  right: 14px !important;
  top: 48px !important;

  background:
    url("/final-v1/assets/sprites/picture.png")
    center / contain
    no-repeat !important;

  border: 0 !important;
}

.dept-shopify .wall-frame::after {
  display: none !important;
}
/* =========================================================
   HERMES FINAL V1 — PIXEL ART GLOBAL
   ========================================================= */

/* ---------- PLANTAS GENERALES ---------- */

.department:not(.dept-shopify) .plant-small,
.single-office .plant-small,
.creative-office .plant-desk,
.rest-zone .plant-small,
.meeting-zone .plant-small {
  background:
    url("/final-v1/assets/sprites/plant-small.png")
    center bottom / contain no-repeat !important;
}

.department:not(.dept-shopify) .plant-small::before,
.department:not(.dept-shopify) .plant-small::after,
.single-office .plant-small::before,
.single-office .plant-small::after,
.creative-office .plant-desk::before,
.creative-office .plant-desk::after,
.rest-zone .plant-small::before,
.rest-zone .plant-small::after,
.meeting-zone .plant-small::before,
.meeting-zone .plant-small::after {
  display: none !important;
}


/* ---------- ARCHIVADORES ---------- */

.department:not(.dept-shopify) .file-cabinet,
.single-office .file-cabinet {
  width: 42px !important;
  height: 70px !important;

  background:
    url("/final-v1/assets/sprites/cabinet.png")
    center bottom / contain no-repeat !important;

  border: 0 !important;
}

.department:not(.dept-shopify) .file-cabinet::before,
.department:not(.dept-shopify) .file-cabinet::after,
.single-office .file-cabinet::before,
.single-office .file-cabinet::after {
  display: none !important;
}


/* ---------- GRÁFICAS DE PARED ---------- */

.wall-chart {
  width: 64px !important;
  height: 58px !important;

  background:
    url("/final-v1/assets/sprites/chart-picture.png")
    center / contain no-repeat !important;

  border: 0 !important;
}

.wall-chart::after {
  display: none !important;
}


/* ---------- CAJAS DE PRODUCTOS ---------- */

.dept-products .product-boxes {
  width: 82px !important;
  height: 70px !important;

  right: 8px !important;
  bottom: 8px !important;

  background:
    url("/final-v1/assets/sprites/boxes.png")
    center bottom / contain no-repeat !important;
}

.dept-products .product-boxes i {
  display: none !important;
}


/* ---------- TABLERO DE PRIMO ---------- */

.dept-primo .strategy-board {
  width: 78px !important;
  height: 65px !important;

  right: 9px !important;
  top: 48px !important;

  padding: 0 !important;

  color: transparent !important;

  background:
    url("/final-v1/assets/sprites/cork-board.png")
    center / contain no-repeat !important;

  border: 0 !important;
}


/* ---------- DISPENSADOR DEL PASILLO ---------- */

.water-cooler {
  width: 53px !important;
  height: 83px !important;

  right: 70px !important;
  bottom: 3px !important;

  background:
    url("/final-v1/assets/sprites/water-cooler.png")
    center bottom / contain no-repeat !important;

  border: 0 !important;
}

.water-cooler .water-bottle {
  display: none !important;
}


/* ---------- PLANTAS DEL PASILLO ---------- */

.hall-plant-left,
.hall-plant-right {
  width: 75px !important;
  height: 105px !important;

  transform: none !important;

  background:
    url("/final-v1/assets/sprites/plant-medium.png")
    center bottom / contain no-repeat !important;
}

.hall-plant-left::before,
.hall-plant-left::after,
.hall-plant-right::before,
.hall-plant-right::after {
  display: none !important;
}


/* =========================================================
   OFICINA CREATIVA
   ========================================================= */

.creative-office .plant-desk {
  width: 48px !important;
  height: 58px !important;

  top: auto !important;
  bottom: 7px !important;

  background:
    url("/final-v1/assets/sprites/plant-small.png")
    center bottom / contain no-repeat !important;
}


/* =========================================================
   DESCANSO
   ========================================================= */

.rest-zone .rest-plant {
  width: 55px !important;
  height: 72px !important;

  transform: none !important;

  background:
    url("/final-v1/assets/sprites/plant-small.png")
    center bottom / contain no-repeat !important;
}

.rest-zone .sofa {
  width: 145px !important;
  height: 78px !important;

  left: 62px !important;
  bottom: 3px !important;

  background:
    url("/final-v1/assets/sprites/sofa.png")
    center bottom / contain no-repeat !important;

  border: 0 !important;
}

.rest-zone .sofa::before,
.rest-zone .sofa::after {
  display: none !important;
}

.rest-zone .coffee-table {
  width: 78px !important;
  height: 48px !important;

  left: 215px !important;
  bottom: 4px !important;

  background:
    url("/final-v1/assets/sprites/coffee-table.png")
    center bottom / contain no-repeat !important;

  border: 0 !important;
}


/* =========================================================
   SALA DE REUNIONES
   ========================================================= */

.meeting-zone .meeting-plant {
  width: 52px !important;
  height: 68px !important;

  transform: none !important;

  background:
    url("/final-v1/assets/sprites/plant-small.png")
    center bottom / contain no-repeat !important;
}

.meeting-zone .meeting-table {
  width: 165px !important;
  height: 90px !important;

  bottom: -7px !important;

  background:
    url("/final-v1/assets/sprites/meeting-table.png")
    center bottom / contain no-repeat !important;

  border: 0 !important;
}


/* La mesa sprite ya trae sillas */
.meeting-zone .meeting-chairs {
  display: none !important;
}


/* TV HERMES TEAM */

.meeting-zone .meeting-screen {
  width: 82px !important;
  height: 60px !important;

  right: 8px !important;
  top: 34px !important;

  color: transparent !important;

  background:
    url("/final-v1/assets/sprites/tv.png")
    center / contain no-repeat !important;

  border: 0 !important;
}


/* =========================================================
   PEQUEÑOS AJUSTES VISUALES
   ========================================================= */

.department,
.creative-office,
.single-office,
.rest-zone,
.meeting-zone {
  background-image:
    linear-gradient(
      rgba(255,255,255,.06),
      rgba(255,255,255,.06)
    );
}


/* Los sprites deben verse nítidos */
.executive-office,
.department,
.mission-hall,
.creative-office,
.single-office,
.rest-zone,
.meeting-zone {
  image-rendering: pixelated;
}
/* =========================================================
   FINAL V1 — AGENTES REALES
   ========================================================= */

.agent-slot,
.executive-agent {
  position: absolute;
  z-index: 30;
}

/* Puestos normales */
.department .agent-slot {
  width: 170px;
  height: 165px;

  left: 50%;
  bottom: 2px;

  transform: translateX(-50%);
}

/* Creativa */
.creative-desk .agent-slot {
  width: 145px;
  height: 155px;

  left: 50%;
  bottom: 0;

  transform: translateX(-50%);
}

/* Logística y Ads */
.single-office .agent-slot {
  width: 165px;
  height: 165px;

  left: 50%;
  bottom: 2px;

  transform: translateX(-50%);
}


/* =========================================================
   TARJETA
   ========================================================= */

.agent-card {
  position: relative;

  width: 100%;
  height: 100%;

  padding: 0;

  overflow: visible;

  color: #172830;
  background: transparent;

  border: 0;

  font-family:
    "Courier New",
    monospace;

  cursor: pointer;
}

.agent-card:hover {
  filter: brightness(1.04);
}


/* =========================================================
   SPRITE
   ========================================================= */

.agent-sprite {
  position: absolute;

  width: 118px;
  height: 120px;

  left: 50%;
  top: 0;

  transform: translateX(-50%);

  object-fit: contain;

  image-rendering: pixelated;

  user-select: none;

  pointer-events: none;
}


/* Creativa un poco más compacta */

.creative-desk .agent-sprite {
  width: 103px;
  height: 110px;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.agent-label {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 2px;

  text-align: center;

  pointer-events: none;
}

.agent-name {
  display: block;

  font-size: 13px;
  font-weight: 900;
}

.agent-role {
  display: block;

  margin-top: 1px;

  font-size: 8px;
}

.agent-state {
  display: block;

  width: max-content;
  max-width: 100%;

  margin: 4px auto 0;

  padding: 2px 5px;

  font-size: 8px;
  font-weight: 900;
}

.agent-state i {
  display: inline-block;

  width: 9px;
  height: 9px;

  margin-right: 4px;

  vertical-align: -1px;

  background: var(--available);

  border:
    2px solid #526771;

  border-radius: 50%;
}


/* =========================================================
   TRABAJANDO
   ========================================================= */

.agent-card.working .agent-state {
  color: #087c4a;

  background:
    rgba(255,255,255,.48);
}

.agent-card.working .agent-state i {
  background: var(--working);

  border-color: #087c4a;

  animation:
    working-dot .65s steps(2,end) infinite;
}

@keyframes working-dot {
  50% {
    opacity: .35;
  }
}


/* Pequeño pulso del puesto trabajando */

.agent-card.working .agent-sprite {
  animation:
    working-pulse .65s steps(2,end) infinite;
}

@keyframes working-pulse {
  50% {
    transform:
      translateX(-50%)
      translateY(1px);
  }
}


/* =========================================================
   HERMES — DIRECCIÓN
   ========================================================= */

.executive-agent {
  width: 230px;
  height: 155px;

  left: 50%;
  bottom: 0;

  transform:
    translateX(-50%);
}

.executive-agent .agent-card {
  height: 155px;
}

.executive-agent .agent-sprite {
  width: 135px;
  height: 130px;

  top: -3px;
}

.executive-agent .agent-label {
  width: 125px;

  left: auto;
  right: -25px;
  bottom: 32px;

  padding: 6px;

  background: #f3eee2;

  border:
    3px solid #40545d;

  text-align: left;
}

.executive-agent .agent-state {
  margin-left: 0;
}


/* =========================================================
   PANEL — AVATAR
   ========================================================= */

.panel-avatar {
  overflow: hidden;
}

.panel-avatar img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  image-rendering: pixelated;
}


/* =========================================================
   ESTADO DISPONIBLE
   ========================================================= */

.agent-card.available {
  opacity: .96;
}

.agent-card.available:hover {
  opacity: 1;
}
/* =========================================================
   HERMES FINAL V1 — FULL SCREEN / TEXTO GRANDE
   ========================================================= */

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-width: 1180px;
  overflow-x: auto;
}

/* Aprovechar prácticamente todo el navegador */
.office-building {
  width: calc(100vw - 12px) !important;
  max-width: none !important;

  margin: 6px auto 0 !important;
}


/* =========================================================
   HEADER MÁS GRANDE
   ========================================================= */

.hq-header {
  height: 78px !important;
  padding: 9px 22px !important;
}

.brand strong {
  font-size: 28px !important;
}

.discord-status {
  font-size: 14px !important;
}

.global-status {
  font-size: 14px !important;
}

.global-status strong {
  font-size: 18px !important;
}

.header-right div {
  font-size: 16px !important;
}

.header-right strong {
  font-size: 13px !important;
}


/* =========================================================
   DIRECCIÓN MÁS ALTA
   ========================================================= */

.executive-office {
  height: 225px !important;
}

.executive-title {
  width: 280px !important;
  height: 43px !important;

  font-size: 17px !important;
}


/* =========================================================
   OFICINAS PRINCIPALES MÁS GRANDES
   ========================================================= */

.department {
  height: 285px !important;
}

.department h2,
.creative-office h2,
.single-office h2 {
  height: 43px !important;

  padding: 11px 12px !important;

  font-size: 14px !important;
  font-weight: 900 !important;
}


/* =========================================================
   AGENTES MÁS GRANDES
   ========================================================= */

.department .agent-slot,
.single-office .agent-slot {
  width: 205px !important;
  height: 220px !important;
}

.agent-sprite {
  width: 160px !important;
  height: 165px !important;
}


/* Nombre */
.agent-name {
  font-size: 18px !important;
  line-height: 1.05 !important;
}

/* Cargo */
.agent-role {
  margin-top: 3px !important;

  font-size: 11px !important;
  line-height: 1.15 !important;
}

/* Estado */
.agent-state {
  margin-top: 6px !important;

  padding: 4px 9px !important;

  font-size: 11px !important;
}

.agent-state i {
  width: 12px !important;
  height: 12px !important;
}


/* =========================================================
   HERMES MÁS GRANDE
   ========================================================= */

.executive-agent {
  width: 290px !important;
  height: 185px !important;
}

.executive-agent .agent-sprite {
  width: 175px !important;
  height: 170px !important;
}

.executive-agent .agent-label {
  width: 160px !important;

  right: -35px !important;
  bottom: 38px !important;

  padding: 8px !important;
}


/* =========================================================
   PASILLO MÁS GRANDE PARA CAMINAR
   ========================================================= */

.mission-hall {
  height: 145px !important;
}

.hall-center strong {
  font-size: 15px !important;
}


/* =========================================================
   PISO INFERIOR
   ========================================================= */

.creative-office,
.single-office,
.utility-zones {
  height: 285px !important;
}

.creative-grid {
  height: 235px !important;
}

.creative-desk .agent-slot {
  width: 165px !important;
  height: 205px !important;
}

.creative-desk .agent-sprite {
  width: 135px !important;
  height: 150px !important;
}


/* =========================================================
   DESCANSO / REUNIONES
   ========================================================= */

.rest-zone h2,
.meeting-zone h2 {
  font-size: 12px !important;
}


/* =========================================================
   FOOTER / BANDA INFERIOR
   ========================================================= */

.office-footer {
  min-height: 70px !important;

  padding: 13px 28px !important;

  font-size: 14px !important;
}

.legend i {
  width: 16px !important;
  height: 16px !important;
}


/* =========================================================
   PANEL DEL AGENTE MÁS LEGIBLE
   ========================================================= */

.agent-panel {
  width: 390px !important;

  font-size: 14px !important;
}

.agent-panel h2 {
  font-size: 29px !important;
}

.panel-role {
  font-size: 15px !important;
}

.panel-item small {
  font-size: 10px !important;
}

.panel-item strong {
  font-size: 14px !important;
  line-height: 1.35 !important;
}


/* =========================================================
   RESOLUCIONES GRANDES
   ========================================================= */

@media (min-width: 1500px) {

  .department {
    height: 300px !important;
  }

  .agent-sprite {
    width: 170px !important;
    height: 175px !important;
  }

  .agent-name {
    font-size: 19px !important;
  }

  .agent-role {
    font-size: 12px !important;
  }

  .creative-office,
  .single-office,
  .utility-zones {
    height: 300px !important;
  }
}
/* =========================================================
   HERMES AI — DELEGACIONES / CAMINATA
   ========================================================= */

/* El agente deja visualmente su puesto mientras delega */
.agent-card.agent-away {
  visibility: hidden !important;
}


/* Capa del pasillo */
.walking-layer {
  position: absolute !important;
  inset: 0 !important;

  z-index: 500 !important;

  overflow: visible !important;
  pointer-events: none !important;
}


/* Personaje que camina */
.delegation-walker {
  position: absolute;

  width: 105px;
  height: 115px;

  z-index: 510;

  transform: translate(-50%, -50%);

  pointer-events: none;

  will-change: left, top;
}


/* Sprite caminando */
.delegation-walker img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  image-rendering: pixelated;

  filter:
    drop-shadow(0 4px 2px rgba(0,0,0,.22));
}


/* ---------------------------------------------------------
   EFECTO DE PASOS

   El desplazamiento real lo hace JavaScript.
   Esta animación produce el pequeño rebote al caminar.
   --------------------------------------------------------- */

.delegation-walker img {
  animation:
    hermes-walk-bob .28s
    steps(2,end)
    infinite;
}

@keyframes hermes-walk-bob {

  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}


/* Caminar hacia la izquierda */
.delegation-walker.walk-left img {
  transform-origin: center;
}


/* ---------------------------------------------------------
   ENTREGA
   --------------------------------------------------------- */

.delegation-walker.delivering img {
  animation:
    hermes-delivery .35s
    ease-in-out
    infinite alternate;
}

@keyframes hermes-delivery {

  from {
    transform:
      translateY(0)
      rotate(0deg);
  }

  to {
    transform:
      translateY(-3px)
      rotate(-2deg);
  }
}


/* ---------------------------------------------------------
   AVISO EN EL AGENTE RECEPTOR
   --------------------------------------------------------- */

.mission-received {
  position: absolute;

  left: 50%;
  top: 3px;

  z-index: 800;

  width: 185px;

  transform:
    translateX(-50%);

  padding: 7px 9px;

  color: #102535;
  background: #fff8d9;

  border:
    3px solid #d69e2e;

  box-shadow:
    4px 4px 0 rgba(0,0,0,.18);

  text-align: center;

  font-family:
    "Courier New",
    monospace;

  animation:
    mission-pop .22s ease-out;
}

.mission-received strong {
  display: block;

  color: #a66500;

  font-size: 11px;
}

.mission-received span {
  display: block;

  margin-top: 3px;

  font-size: 9px;
  line-height: 1.2;
}

@keyframes mission-pop {

  from {
    opacity: 0;

    transform:
      translateX(-50%)
      translateY(8px)
      scale(.9);
  }

  to {
    opacity: 1;

    transform:
      translateX(-50%)
      translateY(0)
      scale(1);
  }
}


/* ---------------------------------------------------------
   PASILLO ACTIVO
   --------------------------------------------------------- */

.mission-hall.delegation-active {
  box-shadow:
    inset 0 0 0 3px rgba(244,200,75,.65);
}
/* =========================================================
   DIRECCIÓN HERMES — DISEÑO FINAL
   ========================================================= */

/* Ocultar cartel superior DIRECCIÓN · HERMES */
.executive-title {
  display: none !important;
}


/* Área ejecutiva */
.executive-office {
  position: relative !important;
  min-height: 225px !important;
  overflow: hidden !important;
}


/* Contenedor completo Hermes + ficha */
.executive-agent {
  position: absolute !important;

  width: 560px !important;
  height: 210px !important;

  left: 50% !important;
  bottom: 0 !important;

  transform: translateX(-50%) !important;

  overflow: visible !important;
}


/* =========================================================
   HERMES
   ========================================================= */

.executive-agent .agent-card {
  position: relative !important;

  width: 100% !important;
  height: 100% !important;

  overflow: visible !important;
}


/* Sprite de Hermes a la izquierda */
.executive-agent .agent-sprite {
  position: absolute !important;

  width: 300px !important;
  height: 205px !important;

  left: 155px !important;
  top: 2px !important;

  transform: translateX(-50%) !important;

  object-fit: contain !important;

  image-rendering: pixelated;
}


/* =========================================================
   TARJETA DE HERMES
   ========================================================= */

.executive-agent .agent-label {
  position: absolute !important;

  width: 205px !important;
  min-height: 105px !important;

  left: auto !important;
  right: 5px !important;

  top: 52px !important;
  bottom: auto !important;

  box-sizing: border-box !important;

  padding: 13px 15px !important;

  background: #f5efe1 !important;

  border: 3px solid #40545d !important;

  box-shadow:
    4px 4px 0 rgba(0,0,0,.13) !important;

  text-align: left !important;

  z-index: 100 !important;
}


/* Hermes */
.executive-agent .agent-name {
  display: block !important;

  font-size: 21px !important;
  line-height: 1 !important;

  font-weight: 900 !important;
}


/* Coordinador */
.executive-agent .agent-role {
  display: block !important;

  margin-top: 6px !important;

  font-size: 13px !important;
  line-height: 1.1 !important;
}


/* Disponible / En ejecución */
.executive-agent .agent-state {
  display: flex !important;

  align-items: center !important;

  width: max-content !important;

  margin: 12px 0 0 !important;

  padding: 4px 7px !important;

  font-size: 12px !important;
  font-weight: 900 !important;
}


/* Punto de estado */
.executive-agent .agent-state i {
  flex: 0 0 auto !important;

  width: 13px !important;
  height: 13px !important;

  margin-right: 7px !important;
}


/* =========================================================
   CUANDO HERMES TRABAJA
   ========================================================= */

.executive-agent .agent-card.working .agent-label {
  border-color: #168b59 !important;
}

.executive-agent .agent-card.working .agent-name {
  color: #102535 !important;
}


/* =========================================================
   EVITAR QUE LA TARJETA TAPE EL SPRITE
   ========================================================= */

.executive-agent .agent-sprite {
  z-index: 20 !important;
}

.executive-agent .agent-label {
  z-index: 30 !important;
}

/* =========================================================
   ECOMMERCE HALL FINAL V10
   ========================================================= */


.mission-hall.ecommerce-hall {
    position: relative !important;

    width: 100% !important;
    height: 170px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    background: #d8ccb4 !important;

    border-top:
        6px solid #263f49 !important;

    border-bottom:
        6px solid #263f49 !important;
}


.ecommerce-hall-image {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: fill !important;

    image-rendering: pixelated;

    pointer-events: none !important;

    user-select: none !important;
}


/* Desactivar definitivamente pasillo anterior */

.ecommerce-hall .hall-center,
.ecommerce-hall .hall-road,
.ecommerce-hall .hall-plant-left,
.ecommerce-hall .hall-plant-right,
.ecommerce-hall .water-cooler,
.ecommerce-hall .walking-layer {
    display: none !important;
}

