:root {
  --bg: #0a2540;
  --bg-soft: #0e314f;
  --card: rgba(7, 27, 43, 0.86);
  --card-border: rgba(45, 212, 191, 0.24);
  --text: #f7fbff;
  --muted: #a8bdca;
  --cyan: #2dd4bf;
  --cyan-deep: #169fca;
  --whatsapp: #25d366;
  --silver: #aebcc5;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.2), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(37, 211, 102, 0.14), transparent 28rem),
    linear-gradient(135deg, #04111e 0%, var(--bg) 48%, #0e314f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

body::after {
  position: fixed;
  inset: auto 8% 8% auto;
  width: 360px;
  height: 360px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgba(45, 212, 191, 0.035),
    0 0 0 128px rgba(174, 188, 197, 0.025);
  opacity: 0.75;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px 16px;
}

.selector-card {
  position: relative;
  width: min(100%, 1080px);
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.selector-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--whatsapp), transparent);
}

.brand {
  display: grid;
  justify-items: center;
  text-align: center;
}

.brand-label {
  width: fit-content;
  margin-bottom: 6px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: #d8fffa;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(45, 212, 191, 0.08);
}

.brand-mark {
  width: min(100%, 260px);
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 18px 34px rgba(33, 212, 253, 0.16));
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.intro {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.holding-copy {
  max-width: 560px;
  margin: 6px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.32;
  text-align: center;
}

.brand-domain {
  display: block;
  width: fit-content;
  margin: 5px auto 0;
  color: #d8fffa;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.brand-domain:hover,
.brand-domain:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.system-map {
  margin-top: 12px;
}

.map-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-kicker span:last-child {
  color: rgba(174, 188, 197, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.map-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.map-grid::before {
  position: absolute;
  inset: 50% 12% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.32), transparent);
}

.core-strip {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 0;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
  padding: 6px 11px;
  color: rgba(216, 255, 250, 0.86);
  background: rgba(45, 212, 191, 0.055);
}

.core-strip span {
  color: rgba(174, 188, 197, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.core-strip a {
  color: rgba(216, 255, 250, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
}

.division-node {
  position: relative;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.064), transparent 72%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.featured-node {
  border-color: rgba(45, 212, 191, 0.3);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.064), transparent 72%),
    rgba(255, 255, 255, 0.052);
}

.division-logo {
  width: min(100%, 214px);
  height: auto;
  border: 1px solid rgba(45, 212, 191, 0.14);
  border-radius: 14px;
}

.wash-logo {
  margin-top: -2px;
}

.division-node h2 {
  margin: 0;
}

.division-node p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.32;
}

.division-node .division-status {
  width: fit-content;
  margin-top: -2px;
  border-left: 2px solid var(--cyan);
  padding-left: 8px;
  color: rgba(216, 255, 250, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
}

.node-link {
  overflow: hidden;
  color: rgba(216, 255, 250, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  line-height: 1.22;
  list-style: none;
}

.node-list li {
  position: relative;
  padding-left: 12px;
}

.node-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  content: "";
  background: var(--cyan);
}

.node-actions {
  display: grid;
  gap: 6px;
}

.brand-email {
  display: grid;
  gap: 3px;
}

.brand-email span {
  color: rgba(174, 188, 197, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.active {
  border-color: rgba(37, 211, 102, 0.34);
  color: #c9ffdc;
  background: rgba(37, 211, 102, 0.1);
}

.country-pill {
  letter-spacing: 0.02em;
  text-transform: none;
}

.flag {
  display: inline-block;
  position: relative;
  min-width: 22px;
  width: 22px;
  height: 14px;
  flex: 0 0 22px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

.flag-do {
  background:
    linear-gradient(#fff, #fff) center / 100% 18% no-repeat,
    linear-gradient(90deg, #fff, #fff) center / 14% 100% no-repeat,
    linear-gradient(90deg, #002d62 0 50%, #ce1126 50% 100%) top / 100% 50% no-repeat,
    linear-gradient(90deg, #ce1126 0 50%, #002d62 50% 100%) bottom / 100% 50% no-repeat;
}

.flag-do::after {
  content: "";
  position: absolute;
  inset: 5px 9px;
  border-radius: 999px;
  background: #25d366;
}

.flag-us {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 7.7%,
    #fff 7.7% 15.4%
  );
}

.flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 54%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px) 1px 1px / 5px 4px,
    #3c3b6e;
}

h2 {
  font-size: 1.18rem;
  line-height: 1.15;
}

.company-copy p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.42;
}

.company-tags {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.company-tags span {
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(45, 212, 191, 0.06);
}

.muted-tags span {
  border-color: rgba(174, 188, 197, 0.16);
  background: rgba(174, 188, 197, 0.055);
}

.action-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  color: #041522;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
  box-shadow: 0 12px 28px rgba(33, 212, 253, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(33, 212, 253, 0.24);
  filter: brightness(1.04);
  outline: none;
}

.action-button.muted {
  color: rgba(255, 255, 255, 0.54);
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.action-button.muted-link {
  border: 1px solid rgba(174, 188, 197, 0.18);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.action-button.muted-link:hover,
.action-button.muted-link:focus-visible {
  border-color: rgba(45, 212, 191, 0.28);
  color: #ffffff;
  background: rgba(45, 212, 191, 0.12);
}

.quick-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.contact-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.055);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.contact-link strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(33, 212, 253, 0.4);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.contact-link.whatsapp {
  border-color: rgba(37, 211, 102, 0.36);
  color: #dcffe9;
}

.contact-link.whatsapp strong {
  color: #bfffd7;
}

footer {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-align: center;
}

footer a {
  color: rgba(216, 255, 250, 0.62);
  font-weight: 700;
  transition: color 180ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: rgba(255, 255, 255, 0.86);
  outline: none;
}

@media (min-width: 680px) {
  .page-shell {
    padding: 8px 24px;
  }

  .selector-card {
    padding: 14px 16px;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
  }

  .snackeria-node {
    order: 1;
  }

  .wash-node {
    order: 2;
  }

  .quick-contact {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (min-height: 760px) {
  .company-tags {
    display: flex;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 14px 16px;
  }

  .selector-card {
    padding: 16px;
  }

  .brand {
    gap: 0;
  }

  .brand-mark {
    width: min(100%, 235px);
  }

  .holding-copy {
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .intro {
    margin-top: 8px;
  }

  .signal-row {
    gap: 7px;
    margin-top: 10px;
  }

  .signal-row span {
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .system-map {
    margin-top: 12px;
  }

  .map-kicker {
    align-items: flex-start;
    font-size: 0.68rem;
  }

  .map-kicker span:last-child {
    font-size: 0.62rem;
  }

  .map-grid {
    gap: 8px;
    margin-top: 8px;
  }

  .map-grid::before,
  .core-strip::before,
  .core-strip::after {
    display: none;
  }

  .division-node {
    gap: 6px;
    padding: 11px;
  }

  .division-logo {
    width: min(100%, 190px);
  }

  .wash-node .node-list {
    display: none;
  }

  .snackeria-node .node-list {
    display: none;
  }

  .core-strip {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
  }

  .core-strip a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .node-list {
    display: none;
  }

  .action-button,
  .contact-link {
    min-height: 40px;
  }

  .quick-contact {
    margin-top: 8px;
  }

  footer {
    margin-top: 9px;
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
