﻿/* ——— Panel principal (/) — azul / gris / negro / blanco ——— */
body.home-body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 110% 65% at 50% -8%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(30, 58, 95, 0.35), transparent 50%),
    linear-gradient(168deg, #080a0f 0%, #0c1018 42%, #08090c 100%);
  color: #e2e8f0;
  position: relative;
  isolation: isolate;
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.home-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 110% 75% at 50% 28%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 110% 75% at 50% 28%, #000 0%, transparent 75%);
}

.home-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  animation: homeGlowFloat 24s ease-in-out infinite;
}

.home-bg-glow--slate {
  top: -14%;
  left: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.48), transparent 70%);
}

.home-bg-glow--blue {
  top: -8%;
  right: -6%;
  width: 500px;
  height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 68%);
  animation-delay: -6s;
}

/* Reemplaza verdes: segundo foco azul apagado */
.home-bg-glow--blue-soft {
  bottom: -4%;
  left: 10%;
  width: 480px;
  height: 380px;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.22), transparent 72%);
  animation-delay: -12s;
}

.home-bg-glow--mist {
  top: 32%;
  left: 38%;
  width: 580px;
  height: 380px;
  filter: blur(130px);
  opacity: 0.2;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.5), transparent 72%);
  animation-delay: -15s;
}

@keyframes homeGlowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.04); }
}

.home-shell {
  max-width: min(1240px, 100%);
  margin: 0 auto;
  padding: max(36px, env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px))
    max(44px, env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
}

/* Rejilla: barra de módulos + escenario (vista previa mapa) */
.home-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px 28px;
  align-items: stretch;
  margin-top: 8px;
}

.home-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(71, 85, 105, 0.35);
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(8, 12, 20, 0.88) 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.8) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-aside__head {
  padding: 0 2px 2px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  margin-bottom: 2px;
}

.home-aside__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Una columna: .home-grid--compact venía después y forzaba 4 cols — rompía el panel */
.home-aside .home-nav-panel.home-grid--sidebar,
.home-nav-panel.home-grid--sidebar.home-grid--compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

.home-grid--sidebar {
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-grid--sidebar .home-card {
  min-height: 0;
}

.home-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Vista previa decorativa (sustituye lienzo vacío hasta abrir el editor) */
.home-map-preview {
  position: relative;
  flex: 1;
  min-height: clamp(260px, 36vh, 420px);
  border-radius: 20px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  background:
    radial-gradient(ellipse 90% 70% at 70% 18%, rgba(37, 99, 235, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 78%, rgba(71, 85, 105, 0.2), transparent 50%),
    linear-gradient(165deg, #0a0e16 0%, #06080d 100%);
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-map-preview__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 15%, transparent 70%);
}

.home-map-preview__glow {
  position: absolute;
  width: 120%;
  height: 70%;
  left: -10%;
  bottom: -20%;
  background: radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.home-map-preview__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-map-preview__fiber {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  opacity: 0.65;
  box-shadow: 0 0 12px currentColor;
}

.home-map-preview__fiber--a {
  width: 42%;
  top: 38%;
  left: 8%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, #64748b, #3b82f6);
  color: #60a5fa;
}

.home-map-preview__fiber--b {
  width: 48%;
  top: 52%;
  left: 22%;
  transform: rotate(6deg);
  background: linear-gradient(90deg, #3b82f6, #94a3b8, transparent);
  color: #93c5fd;
}

.home-map-preview__fiber--c {
  width: 36%;
  top: 66%;
  right: 12%;
  transform: rotate(-14deg);
  background: linear-gradient(90deg, transparent, #475569, #60a5fa);
  color: #94a3b8;
}

.home-map-preview__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 22px 24px;
  max-width: 52ch;
}

.home-map-preview__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.home-map-preview__text {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.home-map-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-map-preview__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-map-preview__btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.home-map-preview__btn--ftth {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.92));
  border-color: rgba(96, 165, 250, 0.4);
}

.home-map-preview__btn--ftth:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.65);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.2);
}

.home-map-preview__btn--corp {
  color: #f1f5f9;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.6), rgba(15, 23, 42, 0.85));
  border-color: rgba(148, 163, 184, 0.35);
}

.home-map-preview__btn--corp:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 198, 213, 0.55);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.4);
}

.home-hero-head .home-title {
  margin-bottom: 10px;
}

.home-sub--hero {
  margin: 0 0 18px;
  max-width: 62ch;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-aside {
    padding: 16px 14px 18px;
  }

  .home-grid--sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* El panel de módulos: siempre una columna (evita 4 celdas rotas) */
  .home-aside .home-nav-panel.home-grid--sidebar,
  .home-nav-panel.home-grid--sidebar.home-grid--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-grid--sidebar {
    grid-template-columns: 1fr;
  }

  .home-map-preview__inner {
    max-width: none;
    padding: 18px 16px 20px;
  }

  .home-map-preview__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-map-preview__btn {
    width: 100%;
  }
}

/* Hero */
.home-hero {
  margin-bottom: 28px;
}

.home-hero-head {
  min-width: 0;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
  animation: homePulseDot 2.4s ease-in-out infinite;
}

@keyframes homePulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.75; }
}

.home-title {
  margin: 14px 0 24px;
  font-size: clamp(1.65rem, 2vw + 0.95rem, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.12;
  color: #f1f5f9;
}

.home-title-grad {
  background: linear-gradient(102deg, #e2e8f0 0%, #93c5fd 38%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 46ch;
}

.home-sub code {
  font-size: 0.82em;
  color: #cbd5e1;
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-hero-head .home-chips {
  margin-top: 14px;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-chip-ico {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.home-chip-ico--postgis { color: #60a5fa; }
.home-chip-ico--mapbox { color: #94a3b8; }
.home-chip-ico--fiber { color: #cbd5e1; }

.home-chip--live {
  color: #e2e8f0;
  border-color: rgba(59, 130, 246, 0.32);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(15, 23, 42, 0.5));
}

.home-chip-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.home-chip-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.45);
  animation: homeLivePulse 2s ease-out infinite;
}

@keyframes homeLivePulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Grid y tarjetas */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.home-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-grid--compact .home-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

@media (max-width: 900px) {
  .home-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-grid--compact {
    grid-template-columns: 1fr;
  }
}

.home-grid--compact .home-card-ico {
  margin-bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.home-grid--compact .home-card-ico img {
  width: 20px;
  height: 20px;
}

.home-grid--compact .home-card-icon-img {
  width: min(100%, 20px);
  max-width: 100%;
  height: auto;
}

.home-grid--compact .home-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

.home-card-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.home-card-hint {
  margin: 3px 0 0;
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 500;
  color: #94a3b8;
}

.home-aside .home-card {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.home-aside .home-card-title {
  font-size: 0.95rem;
  color: #f8fafc;
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.45);
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.75) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(2, 6, 23, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    background 260ms ease;
  min-height: 140px;
}

.home-card,
.home-card:visited {
  color: #f1f5f9;
}

.home-aside a.home-card,
.home-aside a.home-card:visited,
.home-aside a.home-card:hover {
  color: inherit;
}

.home-card::before {
  /* Acento superior: tono del módulo (solo azul / gris) */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, currentColor 40%, currentColor 60%, transparent 100%);
  opacity: 0.55;
  color: #60a5fa;
}

.home-card::after {
  /* Resplandor radial al hover, sigue el color del módulo */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, var(--home-card-accent-soft, rgba(56, 189, 248, 0.18)) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 0;
}

.home-card > * { position: relative; z-index: 1; }

.home-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-card-accent, rgba(96, 165, 250, 0.4));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--home-card-accent-soft, rgba(59, 130, 246, 0.12)),
    0 0 32px var(--home-card-glow, rgba(37, 99, 235, 0.1));
}

.home-card:hover::after { opacity: 1; }

.home-card:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 3px;
}

.home-card--ftth {
  --home-card-accent: rgba(59, 130, 246, 0.5);
  --home-card-accent-soft: rgba(59, 130, 246, 0.2);
  --home-card-glow: rgba(37, 99, 235, 0.15);
}
.home-card--ftth::before { color: #3b82f6; }

.home-card--corp {
  --home-card-accent: rgba(100, 116, 139, 0.55);
  --home-card-accent-soft: rgba(100, 116, 139, 0.22);
  --home-card-glow: rgba(51, 65, 85, 0.2);
}
.home-card--corp::before { color: #94a3b8; }

.home-card--dashboard {
  --home-card-accent: rgba(59, 130, 246, 0.48);
  --home-card-accent-soft: rgba(59, 130, 246, 0.18);
  --home-card-glow: rgba(30, 64, 175, 0.14);
}
.home-card--dashboard::before { color: #60a5fa; }

.home-card--analytics {
  --home-card-accent: rgba(99, 115, 142, 0.55);
  --home-card-accent-soft: rgba(99, 115, 142, 0.2);
  --home-card-glow: rgba(51, 65, 85, 0.18);
}
.home-card--analytics::before { color: #7c8db3; }

.home-card-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 14px;
}

.home-card-ico {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-card-ico img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
  opacity: 0.95;
}

/* Iconos del home: tamaño fluido para validación responsive. */
.home-card-icon-img {
  display: block;
  width: min(100%, 24px);
  max-width: 100%;
  height: auto;
}

.home-card-ico--ftth { background: linear-gradient(145deg, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.85)); border-color: rgba(59, 130, 246, 0.35); }
.home-card-ico--corp { background: linear-gradient(145deg, rgba(71, 85, 105, 0.4), rgba(15, 23, 42, 0.85)); border-color: rgba(100, 116, 139, 0.45); }
.home-card-ico--dashboard { background: linear-gradient(145deg, rgba(30, 64, 175, 0.35), rgba(15, 23, 42, 0.88)); border-color: rgba(96, 165, 250, 0.3); }
.home-card-ico--analytics { background: linear-gradient(145deg, rgba(55, 65, 90, 0.45), rgba(15, 23, 42, 0.88)); border-color: rgba(129, 140, 160, 0.35); }

.home-card-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #f1f5f9;
}

.home-card-desc {
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #94a3b8;
  flex: 1;
}

.home-card-desc code {
  font-size: 0.85em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.1);
  color: #7dd3fc;
}

.home-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.home-card-cta-arrow {
  width: 14px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: width 220ms ease;
}

.home-card-cta-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.home-card:hover .home-card-cta {
  border-color: var(--home-card-accent, rgba(56, 189, 248, 0.55));
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.7), rgba(8, 13, 26, 0.55));
  color: #f8fafc;
}

.home-card:hover .home-card-cta-arrow { width: 22px; }

.home-card--dashboard:hover .home-card-cta { color: #93c5fd; }
.home-card--ftth:hover .home-card-cta { color: #bfdbfe; }
.home-card--corp:hover .home-card-cta { color: #e2e8f0; }
.home-card--analytics:hover .home-card-cta { color: #cbd5e1; }

/* Footer */
.home-foot {
  margin-top: 40px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  background: linear-gradient(180deg, rgba(9, 12, 20, 0.85) 0%, rgba(4, 6, 10, 0.92) 100%);
  border-radius: 18px;
  font-size: 0.85rem;
  color: #94a3b8;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
}

.home-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1;
  min-width: min(100%, 200px);
}

.home-foot-label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 6px;
}

.home-foot-links a,
.home-foot-links a:visited,
.home-foot-links code {
  color: #e2e8f0;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(71, 85, 105, 0.55);
  transition: all 200ms ease;
  font-weight: 500;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.home-foot-links a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.home-foot-links a:hover {
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.55), rgba(15, 23, 42, 0.8));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.home-foot-links code {
  color: #cbd5e1;
}

.home-foot .auth-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.65);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  color: #e2e8f0;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 200ms ease;
  min-height: 36px;
  flex-shrink: 0;
}

.home-foot .auth-logout-btn:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.home-foot .auth-logout-btn:hover {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.85), rgba(30, 41, 59, 0.95));
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.home-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--font);
  transition: background var(--transition), border-color var(--transition);
}

.home-link-btn:hover {
  background: linear-gradient(135deg, var(--accent-dim), var(--success-dim));
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--hover-glow-mix);
}

/* ——— Barra inicio rápido (panel /) ——— */
.home-quickbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: max(8px, env(safe-area-inset-top, 0px));
  z-index: 5;
}

.home-quickbar__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  flex-shrink: 0;
}

.home-quickbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex: 1;
  min-width: 0;
}

.home-quickbar__links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.5);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.home-quickbar__links a:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
  color: #fff;
}

.home-quickbar__links a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.home-quickbar__sep {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
  margin: 0 4px;
}

@media (max-width: 640px) {
  .home-quickbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-quickbar__links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .home-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-title {
    font-size: 1.7rem;
  }

  .home-sub {
    max-width: none;
    font-size: 0.92rem;
  }

  .home-grid {
    gap: 14px;
  }

  .home-card {
    padding: 18px 16px;
  }

  .home-foot-row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-foot .auth-logout-btn {
    width: 100%;
  }
}
