/* Panel privado GouHu — Taxi seguro */
.gh-panel-atmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(196, 90, 44, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(184, 137, 74, 0.1), transparent 50%),
    var(--gh-bg-deep);
  z-index: 0;
}

.gh-login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.25rem;
}

.gh-login-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
}

.gh-panel-main {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3.5rem;
}

/* Hub: una sola pantalla, sin scroll vertical (cel / tablet / PC) */
body.gh-panel:has(.gh-wrap--hub) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.gh-panel:has(.gh-wrap--hub) .gh-panel-main {
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  padding: max(0.45rem, env(safe-area-inset-top, 0px)) 0 max(0.45rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.gh-wrap--hub {
  width: min(var(--gh-wrap-hub), 96vw);
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Contenedor premium: logo + hub completo */
.gh-shell-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(0.55rem, 1.4vh, 1.15rem) clamp(0.65rem, 2vw, 1.5rem) clamp(0.55rem, 1.2vh, 1rem);
  border-radius: 22px;
  border: 1px solid var(--gh-card-border);
  background:
    linear-gradient(165deg, rgba(196, 90, 44, 0.12), rgba(22, 20, 22, 0.96)),
    var(--gh-bg-elevated);
  box-shadow: 0 22px 56px var(--gh-card-glow);
  overflow: hidden;
}

.gh-shell-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gh-bronze), transparent);
  pointer-events: none;
}

.gh-shell-logo-wrap {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0 0 clamp(0.2rem, 0.8vh, 0.55rem);
}

.gh-shell-logo {
  display: block;
  width: clamp(40px, 7vh, 64px);
  height: clamp(40px, 7vh, 64px);
  object-fit: contain;
}

/* PC / tablet ancha: sin logo (más espacio); cel conserva logo */
@media (min-width: 900px) {
  .gh-shell-logo-wrap {
    display: none !important;
  }
}

.gh-panel-head--hub {
  text-align: center;
  flex: 0 0 auto;
  margin-bottom: clamp(0.35rem, 1vh, 0.75rem);
}

.gh-title--hub {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vh, 1.85rem) !important;
  line-height: 1.15;
}

.gh-hub-logout {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.gh-hub-logout a {
  color: var(--gh-cream-muted);
}

.gh-hub-logout a:hover {
  color: var(--gh-terracotta);
}

.gh-panel-head {
  margin-bottom: 1.35rem;
}

.gh-trip-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gh-trip-card {
  display: block;
  padding: 1.1rem 1.2rem;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.gh-trip-card:hover {
  border-color: var(--gh-bronze);
  color: inherit;
  transform: translateY(-1px);
}

.gh-trip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.gh-trip-folio {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gh-cream);
}

.gh-trip-route {
  font-size: 0.98rem;
  color: var(--gh-cream);
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.gh-trip-route span {
  color: var(--gh-bronze);
  margin: 0 0.35rem;
}

.gh-trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  font-size: 0.86rem;
  color: var(--gh-cream-muted);
}

.gh-trip-meta strong {
  color: var(--gh-cream);
  font-weight: 700;
}

.gh-login-wrap {
  min-height: calc(100vh - 2rem);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.gh-login-card {
  width: min(420px, 92vw);
  padding: 1.75rem 1.45rem 1.5rem;
  text-align: center;
}

.gh-login-card .gh-lead {
  margin-inline: auto;
}

.gh-login-card .gh-field {
  text-align: left;
}

.gh-login-card .gh-kicker,
.gh-login-card .gh-title {
  text-align: center;
}

.gh-detail-card {
  padding: 1.35rem 1.35rem 1.5rem;
}

.gh-detail-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0 1.35rem;
}

.gh-detail-row {
  display: grid;
  gap: 0.15rem;
}

.gh-detail-row dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-bronze);
}

.gh-detail-row dd {
  margin: 0;
  color: var(--gh-cream);
  font-size: 1.02rem;
}

.gh-fee-box {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed var(--gh-bronze-soft);
  background: rgba(184, 137, 74, 0.08);
}

.gh-fee-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gh-cream);
}

.gh-fee-box p {
  margin: 0;
  color: var(--gh-cream-muted);
  font-size: 0.92rem;
}

.gh-status-form {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--gh-card-border);
}

.gh-back {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.gh-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--gh-cream-muted);
}

/* Hub = EntryScreen app (hero + tiles), flex para caber sin scroll */
.gh-hub {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
}

.gh-hub-primary {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
}

.gh-entry-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: 1 1 0;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--gh-card-border);
  background-color: var(--gh-bg-elevated);
  background-image:
    linear-gradient(180deg, rgba(11, 11, 12, 0.2) 0%, rgba(11, 11, 12, 0.55) 45%, rgba(11, 11, 12, 0.92) 100%),
    var(--gh-entry-img);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--gh-cream);
  box-shadow: 0 8px 28px var(--gh-card-glow);
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.gh-entry-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(196, 90, 44, 0.22);
  pointer-events: none;
}

.gh-entry-hero:hover,
.gh-entry-hero:focus-visible {
  transform: scale(0.985);
  border-color: var(--gh-bronze);
  color: var(--gh-cream);
  outline: none;
}

.gh-entry-hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  padding: clamp(0.55rem, 1.5vh, 1.1rem) clamp(0.7rem, 2vw, 1.15rem);
  width: 100%;
}

.gh-entry-hero-title {
  font-family: var(--gh-font-body);
  font-size: clamp(1.05rem, 2.6vh, 1.65rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--gh-cream);
}

.gh-entry-hero-hint {
  font-size: clamp(0.7rem, 1.5vh, 0.875rem);
  line-height: 1.3;
  color: var(--gh-cream-muted);
  max-width: 34ch;
}

.gh-hub-secondary {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  margin-top: 0;
  width: 100%;
}

.gh-hub-also {
  margin: 0;
  color: var(--gh-bronze);
  font-size: clamp(0.65rem, 1.3vh, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gh-hub-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 12px);
  width: 100%;
}

.gh-entry-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  /* Cel: vertical. PC: casi cuadrada a ancho completo (sin franja ni chip chico) */
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  padding: 0.55rem 0.6rem 0.65rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gh-card-border);
  background-color: var(--gh-bg-elevated);
  background-image:
    linear-gradient(180deg, rgba(11, 11, 12, 0.15) 20%, rgba(11, 11, 12, 0.88) 100%),
    var(--gh-entry-img);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--gh-cream);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

@media (min-width: 900px) {
  .gh-entry-tile {
    /* PC ancho: 3 columnas a todo el ancho, casi cuadradas */
    aspect-ratio: 1 / 1.08;
    max-height: none;
  }
}

.gh-entry-tile:hover,
.gh-entry-tile:focus-visible {
  transform: scale(0.985);
  color: var(--gh-cream);
  outline: none;
}

.gh-entry-tile-title {
  font-size: clamp(0.75rem, 1.4vh, 0.88rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gh-cream);
}

.gh-soon-card {
  padding: 1.5rem 1.35rem;
}

.gh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}

.gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gh-card-border);
  color: var(--gh-cream-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(22, 20, 22, 0.55);
}

.gh-tab span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.gh-tab.is-active,
.gh-tab:hover {
  color: var(--gh-cream);
  border-color: var(--gh-bronze);
}

.gh-api-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gh-api-pill--wait {
  color: var(--gh-cream-muted);
  border: 1px solid var(--gh-card-border);
}

.gh-api-pill--ok {
  color: var(--gh-cream);
  border: 1px solid var(--gh-bronze);
  background: rgba(184, 137, 74, 0.12);
}

.gh-wa-row {
  margin: 0 0 0.5rem;
}

.gh-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--gh-card-border);
  color: var(--gh-cream);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
}

.gh-btn--ghost:hover {
  border-color: var(--gh-bronze);
  color: var(--gh-cream);
}
