:root {
  --bg: #0b0f19;
  --bg-alt: #11172a;
  --surface: #161d33;
  --text: #f4f6fb;
  --text-muted: #9aa3b8;
  --accent: #4285f4;
  --accent-2: #34d399;
  --gradient: linear-gradient(135deg, #4285f4, #34a853);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo__img { width: 36px; height: 36px; object-fit: contain; }

.logo span { color: var(--accent); }

.topbar__back {
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topbar__back:hover { color: var(--text); border-color: var(--accent); }

/* Section shell */
.port-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px circle at 80% -10%, rgba(66, 133, 244, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 25, 0.55) 0%, rgba(11, 15, 25, 0.88) 65%, var(--bg) 100%) center top / 100% 760px no-repeat,
    url("../images/360-dark.jpg") center top / 100% 760px no-repeat,
    var(--bg);
  padding: 64px 0 96px;
}

.port-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 133, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.port-section::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 240px;
  background: radial-gradient(ellipse, rgba(66, 133, 244, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.port-deco {
  position: absolute;
  font-weight: 800;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  opacity: 0.04;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  z-index: 0;
}

.port-deco-1 { font-size: 72px; top: 4%; left: 2%; }
.port-deco-2 { font-size: 48px; top: 18%; right: 3%; }
.port-deco-3 { font-size: 96px; top: 42%; left: 55%; opacity: 0.03; }
.port-deco-4 { font-size: 40px; bottom: 22%; left: 4%; }
.port-deco-5 { font-size: 60px; bottom: 6%; right: 5%; }

.port-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / profile */
.port-header { position: relative; margin-bottom: 48px; }

/* 360° interactive orb */
.orb360 {
  position: absolute;
  top: -8px;
  right: 0;
  width: 220px;
  height: 220px;
  perspective: 900px;
  z-index: 2;
}

.orb360__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.orb360__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orb360__ring--1 {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  box-shadow: 0 0 24px rgba(66, 133, 244, 0.3);
  animation: orb360-spin 14s linear infinite;
}

.orb360__ring--2 {
  width: 168px;
  height: 168px;
  margin: -84px 0 0 -84px;
  border: 1.5px solid transparent;
  border-bottom-color: var(--accent-2);
  border-left-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.25);
  animation: orb360-spin-reverse 10s linear infinite;
}

.orb360__ring--3 {
  width: 124px;
  height: 124px;
  margin: -62px 0 0 -62px;
  border: 1px dashed rgba(244, 246, 251, 0.25);
  animation: orb360-spin 22s linear infinite;
}

@keyframes orb360-spin {
  from { transform: rotateX(60deg) rotateZ(0deg); }
  to { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes orb360-spin-reverse {
  from { transform: rotateX(60deg) rotateZ(360deg); }
  to { transform: rotateX(60deg) rotateZ(0deg); }
}

.orb360__particle-orbit {
  position: absolute;
  inset: 0;
  animation: orb360-orbit 8s linear infinite;
}

.orb360__particle {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2), 0 0 16px rgba(52, 211, 153, 0.7);
}

@keyframes orb360-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orb360__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -32px 0 0 -28px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(66, 133, 244, 0.6));
}

.orb360__label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  opacity: 0.8;
}

.orb360__hint {
  display: none;
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
  animation: orb360-hint-pulse 2s ease-in-out infinite;
}

@keyframes orb360-hint-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 760px) {
  .orb360 {
    position: fixed;
    top: 70px;
    right: 10px;
    width: 110px;
    height: 110px;
    margin: 0;
    z-index: 60;
    opacity: 0.95;
    pointer-events: auto;
    transform: scale(0.62);
    transform-origin: top right;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    transition: filter 0.2s ease, transform 0.2s ease;
  }

  .orb360.is-touching {
    transform: scale(0.72);
    filter: drop-shadow(0 0 24px rgba(66, 133, 244, 0.7)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  }

  .orb360__ring--1 { animation-duration: 9s; }
  .orb360__ring--2 { animation-duration: 6.5s; }
  .orb360__ring--3 { animation-duration: 14s; }
  .orb360__particle-orbit { animation-duration: 5.5s; }

  .orb360__hint {
    display: block;
    position: fixed;
    top: 190px;
    right: 14px;
    left: auto;
    transform: none;
    width: 110px;
    text-align: center;
    font-size: 0.65rem;
    z-index: 60;
  }
}

.port-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.port-avatar {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.port-eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.port-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.port-bio {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 20px;
}

.port-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.port-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.port-link:hover { transform: translateY(-2px); }

.port-link-panorra:hover { border-color: #4285f4; color: #8ab4f8; }
.port-link-insta:hover { border-color: #c2185b; color: #f48fb1; }
.port-link-whats:hover { border-color: #25d366; color: #6fe0a0; }

.port-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 24px;
}

.port-section-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* Groups & grid */
.port-group { margin-bottom: 48px; }

.port-group-label {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 18px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

/* Cards */
.port-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}

.port-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.port-card-link { display: block; }

.port-card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.port-card-body { padding: 14px 16px; }

.port-card-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.port-bbp-img {
  width: 100%;
  display: block;
}

.port-card-footer { padding: 0 16px 16px; }

.port-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: color 0.15s ease;
}

.port-google-btn:hover { color: var(--text); }

.maps-pin {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 13px;
  height: 17px;
  flex-shrink: 0;
}

.maps-pin__icon {
  position: relative;
  animation: maps-pin-bounce 1.6s ease-in-out infinite;
  transform-origin: bottom center;
}

.maps-pin__shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8px;
  height: 2.5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: maps-pin-shadow 1.6s ease-in-out infinite;
}

@keyframes maps-pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes maps-pin-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
  50% { transform: translateX(-50%) scale(0.55); opacity: 0.15; }
}

/* Public space cards */
.port-card--public { padding-bottom: 8px; }

.port-card--public .port-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px 4px;
}

.port-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pub-tag { background: rgba(66, 133, 244, 0.15); color: #8ab4f8; }
.auto-tag { background: rgba(251, 188, 4, 0.15); color: #fdd663; }
.tech-tag { background: rgba(168, 85, 247, 0.15); color: #d2a8ff; }

.port-card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 25, 0.7);
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--text);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer a { color: var(--accent-2); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: transform 0.15s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #06110a;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(66, 133, 244, 0.35);
}

.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* Tour page */
.tour-hero {
  padding: 64px 0 32px;
  text-align: center;
  background:
    radial-gradient(600px circle at 80% -10%, rgba(66, 133, 244, 0.18), transparent 60%),
    var(--bg);
}

.tour-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 12px 0 10px;
}

.tour-hero__subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.tour-embed-section { padding: 0 0 64px; }

.tour-embed-section__inner { display: flex; justify-content: center; }

.tour-embed {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.tour-embed__iframe {
  width: 100%;
  height: 820px;
  border: none;
  display: block;
}

.tour-cta {
  padding: 64px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.tour-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.tour-cta p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

@media (max-width: 600px) {
  .tour-embed__iframe { height: 560px; }
}

/* Responsive */
@media (max-width: 640px) {
  .port-profile { flex-direction: column; }
  .port-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .topbar__back { font-size: 0.8rem; padding: 6px 12px; }
}
