*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0e1a;
  --surface: rgba(14, 20, 36, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #8b95b0;
  --accent: #00a8ff;
  --accent-glow: rgba(0, 168, 255, 0.35);
  --accent-soft: rgba(0, 168, 255, 0.12);
  --silver: #c8d0e0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  min-height: 100dvh;
  overflow-x: clip;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: #0d3a6e;
  top: -10%;
  left: -5%;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: #0066aa;
  bottom: 10%;
  right: -5%;
}

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.88);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  border-radius: 10px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.top nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.top nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.social-icon-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.social-icon-btn:hover {
  color: var(--accent);
  border-color: rgba(0, 168, 255, 0.35);
  background: var(--accent-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lang-current {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(0, 168, 255, 0.35);
  border-radius: 999px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
  border-color: rgba(0, 168, 255, 0.35);
}

main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2rem);
}

.hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.hero h1 {
  font-size: clamp(1.45rem, 4.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--silver);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.hero-media {
  margin: 1.25rem auto 0;
  max-width: min(720px, 100%);
}

.vista-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
}

.vista-open img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(40vh, 420px);
  object-fit: cover;
  object-position: left top;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #060912;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.vista-slices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.vista-slice {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.3rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.vista-slice[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(0, 168, 255, 0.45);
}

.hero-media-caption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.vista-dialog {
  width: min(1100px, 94vw);
  max-width: calc(100vw - 1.5rem);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}

.vista-dialog::backdrop {
  background: rgba(10, 14, 26, 0.82);
}

.vista-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #060912;
}

.vista-dialog p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.vista-close {
  display: inline-flex;
  margin-bottom: 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: none;
  transition: transform 0.15s, border-color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 255, 0.45);
  color: var(--text);
}

.cta-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.cta-icon--fill {
  fill: currentColor;
  stroke: none;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.card:hover,
.card:focus-within,
.card:active {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 255, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.card:hover::before,
.card:focus-within::before,
.card:active::before {
  transform: scaleX(1);
}

@media (min-width: 640px) and (max-width: 959.98px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--suite {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .card--wide {
    grid-column: span 3;
  }

  .card--third {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card::before {
    transition: none;
  }

  .card:hover,
  .card:focus-within,
  .card:active {
    transform: none;
  }
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--silver);
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.social {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.social h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.social-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.social-embed {
  margin-bottom: 1.25rem;
  min-height: 120px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.about {
  margin-bottom: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.about h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--silver);
  margin-bottom: 1rem;
}

.about-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.about-panel {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.about-panel .about-lead,
.about-panel .about-note {
  max-width: none;
  margin: 0;
}

.about-panel .about-lead {
  margin-bottom: 0.75rem;
}

.about-note {
  max-width: 36rem;
  margin: 0 auto;
}

.clients {
  margin-bottom: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.clients h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.clients-rubros {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 auto 0.85rem;
  max-width: 36rem;
  letter-spacing: 0.01em;
}

.clients-lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

.clients-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.client-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  height: 100%;
  padding: 1rem 0.85rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.client-tile:hover {
  border-color: rgba(0, 168, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 168, 255, 0.12);
}

.client-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.75rem;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.client-logo-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 4.75rem;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.client-logo-wrap--contain img {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.client-logo-wrap--square img {
  object-fit: cover;
  transform: scale(1.08);
}

.client-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.15s;
}

.client-tile:hover .client-name {
  color: var(--accent);
}

.contact {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}

.contact-item:hover {
  border-color: rgba(0, 168, 255, 0.35);
  background: var(--accent-soft);
}

.contact-item--wa {
  gap: 0.45rem;
  color: #25d366;
}

.contact-item--wa:hover {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
  color: #3ee07a;
}

.contact-wa-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
}

.contact .social-links {
  margin-top: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--accent);
  border-color: rgba(0, 168, 255, 0.35);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: none;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 3.25rem;
  }

  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.4rem 0.8rem;
  }

  .top nav {
    display: none;
  }

  .logo {
    min-width: 0;
    gap: 0.45rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-text {
    font-size: 1.12rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-social {
    display: none;
  }

  .lang-current {
    font-size: 0.68rem;
    padding: 0.12rem 0.38rem;
  }

  .lang-btn {
    font-size: 0.72rem;
    padding: 0.26rem 0.5rem;
  }

  main {
    padding: 0.6rem 1rem 1.75rem;
  }

  .hero {
    margin-bottom: 1.75rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.3rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
    line-height: 1.15;
    margin-bottom: 0.7rem;
  }

  .cta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 0.68rem;
    line-height: 1.15;
    gap: 0.2rem;
    padding: 0.6rem 0.15rem;
  }

  .cta-row .cta-icon {
    width: 0.8rem;
    height: 0.8rem;
  }

  .hero-media {
    margin-top: 0.75rem;
  }

  .vista-open img {
    aspect-ratio: 16 / 9;
    max-height: 42vh;
    object-position: left top;
  }

  .hero-media-caption {
    margin-top: 0.4rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  }

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

@media (max-width: 480px) {
  .vista-slices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .cta-row .btn {
    font-size: 0.58rem;
    gap: 0.1rem;
    padding-inline: 0.08rem;
  }

  .cta-row .cta-icon {
    width: 0.68rem;
    height: 0.68rem;
  }
}

@media (max-width: 1099px) {
  .top nav {
    display: none;
  }

  body {
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
  }

  html {
    scroll-padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    align-items: stretch;
    justify-content: stretch;
    margin: 0;
    padding: 0.35rem 0.15rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 26, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .footer-nav a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.15rem 0.1rem 0.05rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .footer-nav svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .footer-nav a[aria-current="page"] {
    color: var(--accent);
  }
}
