:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --line: #dce5f2;
  --text: #08142f;
  --muted: #64748b;
  --blue-900: #083c9f;
  --blue-800: #0b57d0;
  --blue-700: #1669f2;
  --blue-100: #ebf2ff;
  --green: #15a05e;
  --shadow: 0 20px 50px rgba(9, 23, 54, 0.10);
  --shadow-soft: 0 12px 28px rgba(9, 23, 54, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 125, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #f3f7fd 0%, #edf2fb 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.app-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 18px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 4px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 10px 22px rgba(11, 87, 208, 0.22);
}
.brand-copy strong,
.brand-copy small { display: block; }
.brand-copy strong { font-size: 0.98rem; }
.brand-copy small { margin-top: 2px; font-size: 0.78rem; color: var(--muted); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.ghost-btn,
.primary-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ghost-btn {
  color: var(--blue-800);
  background: rgba(11, 87, 208, 0.08);
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 10px 24px rgba(11, 87, 208, 0.24);
}

.map-layout {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 110px);
}

.sidebar,
.map-panel {
  border: 1px solid rgba(220, 229, 242, 0.95);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: 30px;
}

.sidebar {
  overflow: hidden;
}
.sidebar-scroll {
  height: 100%;
  overflow: auto;
  padding: 26px;
}
.sidebar-scroll::-webkit-scrollbar { width: 10px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #d7e1f0; border-radius: 999px; }

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.78rem;
  font-weight: 800;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e83a4f;
  box-shadow: 0 0 0 6px rgba(232, 58, 79, 0.11);
}

h1,
h2,
strong { letter-spacing: -0.02em; }

h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 0.95;
}

h1 span { color: var(--blue-800); }

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 18px;
  min-height: 78px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.action:hover { transform: translateY(-2px); }
.action-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 16px 32px rgba(11, 87, 208, 0.23);
}
.action-light {
  border: 1px solid var(--line);
  background: var(--surface);
}
.action-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.action-primary .action-icon { background: rgba(255, 255, 255, 0.14); }
.action-light .action-icon { background: var(--blue-100); color: var(--blue-800); }
.action-icon svg { width: 22px; height: 22px; fill: currentColor; }
.action strong,
.action small { display: block; }
.action strong { font-size: 0.94rem; }
.action small { margin-top: 3px; opacity: 0.84; font-size: 0.78rem; }

.stand-preview {
  position: relative;
  margin: 22px 0 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.stand-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.stand-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 20, 47, 0.72) 100%);
}
.stand-preview__overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stand-preview__overlay strong,
.stand-preview__overlay small { display: block; color: #fff; }
.stand-preview__overlay strong { font-size: 0.95rem; }
.stand-preview__overlay small { margin-top: 3px; font-size: 0.74rem; opacity: 0.88; }
.live-pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
}

.info-card,
.steps-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.mini-btn {
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.76rem;
  font-weight: 800;
}
.coords {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}
.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullet-list li {
  margin-top: 9px;
  line-height: 1.55;
  font-size: 0.9rem;
}

.steps-card h2 {
  margin: 0 0 14px;
  font-size: 1.22rem;
}
.steps-list {
  display: grid;
  gap: 14px;
}
.steps-list article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.steps-list span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.74rem;
  font-weight: 800;
}
.steps-list strong {
  display: block;
  font-size: 0.92rem;
}
.steps-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.map-panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 6px 16px;
}
.panel-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}
.panel-header h2 {
  margin: 0;
  font-size: 1.7rem;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-actions a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.map-canvas {
  position: relative;
  flex: 1;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #eaf0f8;
}
.map-canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.map-overlay--search {
  top: 18px;
  left: 18px;
}
.map-overlay--bottom {
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: flex-start;
}
.search-chip,
.floating-card {
  pointer-events: auto;
}
.search-chip {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 26px rgba(8, 20, 47, 0.12);
  backdrop-filter: blur(12px);
}
.search-chip svg {
  width: 22px;
  height: 22px;
  fill: var(--blue-800);
}
.search-chip strong,
.search-chip small { display: block; }
.search-chip strong { font-size: 0.92rem; }
.search-chip small { margin-top: 2px; color: var(--muted); font-size: 0.76rem; }

.floating-card {
  max-width: 340px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 20px;
  background: rgba(8, 20, 47, 0.84);
  color: #fff;
  box-shadow: 0 18px 40px rgba(8, 20, 47, 0.26);
  backdrop-filter: blur(14px);
}
.floating-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff445e;
  box-shadow: 0 0 0 6px rgba(255, 68, 94, 0.16);
}
.floating-card__head strong,
.floating-card__head small { display: block; }
.floating-card__head strong { font-size: 0.95rem; }
.floating-card__head small { margin-top: 2px; font-size: 0.74rem; opacity: 0.82; }
.floating-card p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
  line-height: 1.55;
}
.floating-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.floating-card__actions a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  font-size: 0.8rem;
  font-weight: 700;
}

.mobile-dock { display: none; }

@media (max-width: 1180px) {
  .map-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sidebar-scroll {
    overflow: visible;
  }
  .map-canvas {
    min-height: 620px;
  }
}

@media (max-width: 740px) {
  body { padding-bottom: 86px; }
  .app-shell {
    width: min(100% - 14px, 1440px);
    padding-top: 10px;
  }
  .app-topbar {
    padding: 4px 2px 12px;
  }
  .ghost-btn { display: none; }
  .map-panel,
  .sidebar { border-radius: 24px; }
  .sidebar-scroll,
  .map-panel { padding: 14px; }
  h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
  .lead {
    font-size: 0.94rem;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 4px 14px;
  }
  .panel-actions {
    display: none;
  }
  .map-canvas {
    min-height: 500px;
    border-radius: 20px;
  }
  .map-overlay--search {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .search-chip {
    min-width: 0;
    width: 100%;
  }
  .map-overlay--bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .floating-card {
    max-width: none;
    width: 100%;
  }
  .mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 18px;
    background: rgba(8, 20, 47, 0.92);
    box-shadow: 0 18px 44px rgba(8, 20, 47, 0.28);
    backdrop-filter: blur(16px);
  }
  .mobile-dock a {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
  }
  .mobile-dock a:first-child { background: var(--blue-800); }
  .mobile-dock a:last-child { background: rgba(255,255,255,0.10); }
}


/* V2.1 — ajuste solicitado:
   mismo ancho global de la V2, columna izquierda más amplia
   y columna del mapa proporcionalmente más estrecha. */
@media (min-width: 1181px) {
  .map-layout {
    grid-template-columns: 470px minmax(0, 1fr);
  }

  .sidebar-scroll {
    padding: 30px;
  }

  h1 {
    max-width: 410px;
  }

  .lead {
    max-width: 405px;
  }
}
