/* ============================================
   POLIZARIUM — ESTILOS FINALES v1.0 (ADAPTATIVO + TEXTAREA)
   Motor de Revelación + UX Optimizada + Grids Responsivos
   ============================================ */

:root {
  --bg: #2f4348;
  --card: #213338;
  --muted: #b8c4c8;
  --text: #f4f7f8;
  --accent1: #FF67BF; /* Rosa cálido */
  --accent2: #8827FF; /* Púrpura profundo */
  --accent3: #00B8FF; /* Azul cielo */
  --grad: linear-gradient(135deg, var(--accent1), var(--accent2) 50%, var(--accent3));
  --glass1: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.03);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

#dojoApp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--glass1), var(--glass2));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 24px;
  padding-bottom: calc(24px + 90px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

img.logo-image {
  width: 240px;
  height: auto;
  padding: 30px 0 0 30px;
}

.title {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .2px;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.topnav {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.navbtn {
  background: #1b2a2f;
  color: #e8f1f3;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all .18s;
  font-weight: 600;
  font-size: 13px;
}

.navbtn:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-2);
}

.progress {
  height: 8px;
  background: #1b2a2f;
  border-radius: 999px;
  overflow: hidden;
  width: 260px;
  border: 1px solid var(--stroke);
}

.bar {
  height: 100%;
  width: 10%;
  background: var(--grad);
  transition: width .35s;
}

.step {
  display: none;
  animation: fade .25s;
}

.step.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

h1 {
  margin: 10px 0 6px;
  font-size: 26px;
}

p {
  color: #dfe6e8;
  line-height: 1.6;
}

#p0 .input {
  margin-top: 15px;
}

#p0 .grid.two {
  display: inline-block;
  margin-top: 20px;
}

p.muted1 {
    font-size: 11px;
    padding: 2px 15px;
    background: #3A4D51;
    border-radius: 5px;
    text-align: center;
}
@media (max-width: 820px) {
   p.muted1 {
    font-size: 12px;
    border-radius: 5px;
    background: #3A4D51;
    padding: 3px 15px;
}
}

#p1 p.muted {
  margin-bottom: 20px;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--grad);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 700;
}

.group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.btn {
  background: #1b2a2f;
  color: #e8f1f3;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all .18s;
  font-weight: 650;
  text-align: center;
  min-width: 120px;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-2);
}

.btn.primary {
  background: var(--grad);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(136, 39, 255, 0.28);
}

.btn.ghost {
  background: transparent;
}

.input {
  background: #152327;
  color: #e8f1f3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* === GRIDS RESPONSIVOS === */
.area-grid.three-col,
.sc-grid.three-col {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .area-grid.three-col,
  .sc-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jugada-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .jugada-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* === TARJETAS DE ÁREA — ESTILOS BASE === */
.area-card {
  position: relative;
  background: #16252a;
  border: 1px solid rgb(91, 91, 91);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  will-change: transform;
  backface-visibility: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.area-card .btn.primary {
  background: linear-gradient(to right, #191919, #454545, #292929);
}

.area-card:hover {
  border-color: var(--stroke-2);
  transform: translateY(-2px);
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  z-index: 1;
  pointer-events: none;
}

.area-card > * {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 767px) {
   .area-card {
   background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
}
   

.area-title {
  text-shadow: 1px 1px 4px black;
}

.area-title,
.sc-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.area-desc,
.sc-desc {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.area-desc {
  padding-right: 110px;
  text-shadow: -1px 1px 4px black;
}

/* ✅ ESTILO PARA TEXTAREA LIBRE */
#user-response {
  background: #16252a;
  color: #e8f1f3;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 80px;
}

#user-response:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px rgba(136, 39, 255, 0.3);
}

/* Botón "Revelar mi ADN" */
#reveal-adn {
  width: 100%;
  margin-top: 8px;
}

.fb {
  background: #16252a;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px 30px;
  margin-top: 14px;
}

.fb h3 {
  margin: 0 0 10px;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feedback-plain {
  background: #16252a;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}

.feedback-plain br {
  display: block;
  margin: 8px 0;
}

.corner-guide {
  position: absolute;
  left: 20px;
  bottom: 70px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.12);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.corner-guide:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-2);
}

.corner-logo {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.12);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  text-decoration: none;
}

.corner-logo img {
  height: 42px;
  display: block;
  filter: brightness(1.2);
}

@media screen and (max-width: 767px) {
  #dojoApp {
    padding: 10px;
  }

  .card {
    padding: 25px 10px 18px 10px;
    padding-bottom: calc(18px + 80px);
     min-height: 97vh;
  }

  h1 {
    font-size: 22px;
  }

  .feedback-plain {
    padding: 16px;
    font-size: 14px;
  }

  .corner-logo img {
    height: 36px;
  }

  .corner-guide {
    bottom: 60px;
    left: 16px;
    padding: 7px 12px;
    font-size: 12px;
  }
}

#dojoApp .topnav [data-nav="guia"] {
  display: none !important;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dots::after {
  content: '.';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Estilos por tipo de acción — AHORA NO SE USAN, PERO LOS DEJAMOS POR SI ACASO */
.jugada-btn[data-estilo="Lógica"] { border-left: 4px solid #00B8FF; }
.jugada-btn[data-estilo="Empática"] { border-left: 4px solid #FF67BF; }
.jugada-btn[data-estilo="Estratégica"] { border-left: 4px solid #8827FF; }
.jugada-btn[data-estilo="Proactivo"] { border-left: 4px solid #00C853; }

.jugada-btn[data-estilo="Lógica"]::before { content: "📊 "; }
.jugada-btn[data-estilo="Empática"]::before { content: "❤️ "; }
.jugada-btn[data-estilo="Estratégica"]::before { content: "🎯 "; }
.jugada-btn[data-estilo="Proactivo"]::before { content: "🤝 "; }

.feedback-animated {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-section {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-section strong {
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#dojo-header {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.area-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: none;
}

.area-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.area-banner .banner-content {
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.area-banner .banner-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.area-banner .banner-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.area-banner.bg-objeciones_clasicas { background-image: url("images/objeciones_clasicas_banner.jpg"); }
.area-banner.bg-guerra_digital { background-image: url("/images/guerra_digital_banner.jpg"); }
.area-banner.bg-situaciones_limite { background-image: url('/images/situaciones_limites_banner.jpg'); }
.area-banner.bg-renovaciones { background-image: url('/images/renovaciones_banner.jpg'); }
.area-banner.bg-upsell_crossell { background-image: url('/images/upsell_crossells_banner.jpg'); }
.area-banner.bg-clientes_dificiles { background-image: url('/images/clientes_dificiles_banner.jpg'); }
.area-banner.bg-cierre_ventas { background-image: url('/images/cierre_ventas_banner.jpg'); }

.sc-card {
  background: #16252a;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.sc-card:hover {
  border-color: var(--stroke-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sc-title,
.sc-desc {
  color: #cfe0e4;
  line-height: 1.4;
}

.sc-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-desc {
  font-size: 14px;
  color: #b8c4c8;
}

.sc-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Lista tipo acordeón: por defecto, solo el título es visible */
.sc-grid.list-view .sc-desc,
.sc-grid.list-view .sc-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-2px);
  transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  margin-top: 0; /* para que no deje hueco mientras está colapsado */
}

/* Cuando la tarjeta está expandida, mostrar descripción y botón */
.sc-grid.list-view .sc-card.expanded .sc-desc,
.sc-grid.list-view .sc-card.expanded .sc-extra {
  max-height: 200px; /* ajusta según largo de tus textos */
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
}
.sc-grid.list-view .sc-card {
  display: flex;
  flex-direction: column;
  padding: 14px !important;
  min-height: auto !important;
  background: #1b2a2f;
  border-left: 4px solid var(--accent2);
  width: 100%;
}

.sc-grid.list-view .sc-card:hover {
  border-left-color: var(--accent1);
  background: #1f3035;
  transform: translateX(4px);
}

.sc-grid.list-view .sc-title {
  font-size: 16px !important;
  margin-bottom: 4px !important;
  flex: 1;
}

.sc-grid.list-view .sc-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #dfe6e8;
  flex: 2;
  font-style: italic;
}

.sc-grid.list-view .sc-title span {
  font-size: 14px !important;
  color: #FFD700;
}

.header-with-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.header-with-toggle h1 {
  margin: 0;
  font-size: 24px;
}

.small-btn {
  padding: 8px 12px !important;
  font-size: 13px !important;
  min-width: auto !important;
  white-space: nowrap;
}

#esc-answer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#esc-answer.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .header-with-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-with-toggle h1 {
    font-size: 17px;
    line-height: 1.3;
  }
  .small-btn {
    align-self: flex-end;
  }
  .sc-grid.list-view .sc-card {
    padding: 10px !important;
  }
  .sc-grid.list-view .sc-title {
    font-size: 15px !important;
  }
  .sc-grid.list-view .sc-desc {
    font-size: 12px !important;
  }
  .area-banner .banner-content {
    text-align: left;
  }
  .area-banner .banner-title {
    line-height: 1.3;
    padding-right: 75px;
    font-size: 25px;
  }
  .area-banner {
    background-position: right;
  }
  #p0 .grid.two {
    padding: 2px 30px 20px 30px;
  }
  #p0 .group {
    padding-left: 25px;
    margin-top: 1px;
  }
  p {
    line-height: 1.3;
  }
  h1 {
    line-height: 1.3;
    padding-top: 10px;
  }
  .sc-grid.list-view .sc-card .sc-desc {
    padding: 1px;
  }
  p.muted {
    padding: 5px 0 15px 0;
    line-height: 1.3;
  }
  img.logo-image {
    padding: 15px 0 0 0;
    width: 175px;
    height: auto;
  }
  .brand {
    text-align: center;
  }
}
/* Layout p1: título+texto a la izquierda, sugerido a la derecha en desktop */
.p1-header-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.p1-header-left {
  flex: 1 1 240px;
}

.p1-header-right {
  flex: 0 0 32.5%;
}

/* En mobile, se apilan en columna (ya por flex-wrap) */
@media (max-width: 820px) {
  .p1-header-grid {
    flex-direction: column;
  }
  .p1-header-right {
    flex: 1 1 auto;
  }
   .p1-header-left {
    flex: 1 1 1px;
}
   #p1 p.muted {
    margin-bottom: 1px;
}
}
/* =========================
   POLIZARIUM - SIDEBAR
   ========================= */

#polizarium-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar contenedor */
.pz-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;            /* ocupa toda la altura */
  background: #1b2a2f;
  border-right: 1px solid var(--stroke);
  color: var(--text);
  width: 260px;
  padding: 16px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: width 0.25s ease, padding 0.25s ease;
  z-index: 5;
}
/* Estado colapsado */
.pz-sidebar.collapsed {
  width: 80px;     /* antes 56px, un poco más ancho para transiciones más suaves */
  min-width: 80px;
  padding: 16px 4px;
}

/* Toggle superior */
.pz-sidebar-toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.pz-toggle-icon {
  font-size: 18px;
}

/* Top: logo + label */
.pz-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--stroke);
}

.pz-logo-mini img {
  height: 24px;
  width: auto;
}

.pz-product-label {
  font-size: 12px;
  color: var(--muted);
}

/* Middle: historial */
.pz-sidebar-middle {
  flex: 1 1 auto;
  padding-top: 12px;
  overflow-y: auto;
}

.pz-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pz-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.pz-history-list li {
  padding: 6px 4px;
  border-radius: 8px;
  cursor: default;
  color: #dfe6e8;
}

.pz-history-list li:hover {
  background: rgba(255,255,255,0.04);
}

.pz-history-empty {
  color: var(--muted);
  font-style: italic;
}

/* Bottom: usuario */
.pz-sidebar-bottom {
  display: 1 1 auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
}

.pz-user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 25px;
  margin-top: 15px;
  margin-left: 6px;
}

.pz-user-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.pz-sidebar.collapsed .pz-user-info {
    gap: 15px;
}

.pz-user-label {
  font-size: 12px;
  color: #fff;
  text-align: center;
}

/* Comportamiento en colapsado */
.pz-sidebar.collapsed .pz-product-label,
.pz-sidebar.collapsed .pz-section-title,
.pz-sidebar.collapsed .pz-history-list
 {
  display: none;
}
.pz-sidebar.collapsed .pz-user-label {
  display: none;
}

.pz-sidebar.collapsed .pz-sidebar-top,
.pz-sidebar.collapsed .pz-sidebar-middle,
.pz-sidebar.collapsed .pz-sidebar-bottom {
  align-items: center;
}

/* En colapsado, centramos avatar */
.pz-sidebar.collapsed .pz-user-avatar {
  margin: 0 auto;
}

/* Ajuste del contenido principal cuando hay sidebar */
#dojoApp {
  flex: 1 1 auto;
   margin-left: 260px;
   transition: margin-left 0.25s ease;
}

/* Modo móvil: sidebar como overlay */
@media (max-width: 820px) {
  #polizarium-shell {
    display: block;
  }

  .pz-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    transform: translateX(-100%); /* oculta fuera de pantalla */
    width: 260px;
    padding: 16px 12px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
    transition: transform 0.25s ease;
    z-index: 61;
  }

  .pz-sidebar.collapsed {
    transform: translateX(-100%);
  }

  .pz-sidebar.expanded {
    transform: translateX(0);
  }

  /* En móvil, el contenido ocupa toda la anchura */
  #dojoApp {
    margin-left: 0;
  }
}
#pz-header-toggle {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: none; /* por defecto oculto, se muestra en móvil */
}
/* Desktop: ocultar el botón de header */
@media (min-width: 769px) {
  #pz-header-toggle {
    display: none !important;
  }
}

/* Móvil: mostrar el botón y usarlo para abrir la sidebar */
@media (max-width: 820px) {
  #pz-header-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}
.pz-sidebar-link {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.pz-sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--stroke-2);
  transform: translateY(-1px);
}
/* Acciones principales en la barra lateral */
.pz-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.pz-action-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.pz-action-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--stroke-2);
  transform: translateY(-1px);
}
@media (max-width: 820px) {
   .pz-action-item {
      border: 1px solid var(--stroke);
   }}
.pz-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* o el tamaño que prefieras para tu SVG */
  width: 22px;
  height: 22px;
}
.pz-action-icon img {
    width: 100%;
}

.pz-action-label {
  white-space: nowrap;
}

/* En colapsado: solo mostrar icono, ocultar texto */
.pz-sidebar.collapsed .pz-actions .pz-action-label {
  display: none;
}

/* En colapsado: centrar iconos */
.pz-sidebar.collapsed .pz-actions .pz-action-item {
  justify-content: center;
  padding: 8px;
}
.pz-account-link {
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pz-account-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--stroke-2);
  transform: translateY(-1px);
}

.pz-account-icon img {
  height: 14px;
  width: 14px;
}

.pz-account-label {
  white-space: nowrap;
}

/* En colapsado, opcionalmente podrías ocultar el texto y solo dejar avatar arriba, 
   pero como ya tienes el avatar, podríamos incluso ocultar por completo el botón de cuenta */

.pz-sidebar.collapsed .pz-account-link {
  display: none;
}
/* En colapsado, ocultar el texto de Cuenta/Equipo y centrar solo el icono */
.pz-sidebar.collapsed .pz-action-account .pz-action-label {
  display: none;
}

.pz-sidebar.collapsed .pz-action-account {
  justify-content: center;
}
