:root {
  --bg: #071018;
  --bg-elev: #0d1a24;
  --surface: #122433;
  --text: #e8f1f6;
  --muted: #8fa3b3;
  --accent: #2dff8a;
  --accent-2: #1ecf6a;
  --wa: #25d366;
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ff6b6b;
  --radius: 14px;
  --font: "Outfit", sans-serif;
  --display: "Space Grotesk", sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --tabbar-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 255, 138, 0.12), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(40, 120, 200, 0.18), transparent 50%),
    linear-gradient(180deg, #050b11 0%, var(--bg) 40%, #0a1520 100%);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
.chip,
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: grid;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.78);
  border-bottom: 1px solid transparent;
  padding-top: var(--safe-top);
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 24, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #163247, #0d1f2c);
  border: 1px solid rgba(45, 255, 138, 0.45);
  box-shadow: 0 0 0 4px rgba(45, 255, 138, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  color: #04110a !important;
  background: var(--wa);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.header-wa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  background: var(--wa);
  color: #04110a;
}

.header-wa svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 11, 17, 0.92) 18%, rgba(5, 11, 17, 0.55) 55%, rgba(5, 11, 17, 0.35) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 11, 17, 0.95) 100%);
}

.hero-content {
  padding: 7rem 0 4.5rem;
  max-width: 720px;
  animation: rise 0.9s ease both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(45, 255, 138, 0.25);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-sub {
  margin: 1.2rem 0 1.8rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.location-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

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

.btn.is-pressed,
.chip.is-pressed,
.product-card.is-pressed,
.service-item.is-pressed,
.tab-item.is-pressed {
  transform: scale(0.97);
  opacity: 0.92;
}

.btn-sm {
  padding: 0.6rem 0.95rem;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.btn-whatsapp {
  background: var(--wa);
  color: #04110a;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.28);
  animation: pulseSoft 2.8s ease-in-out infinite;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #04110a;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
}

.section-head h2,
.why h2,
.product-detail-info h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head p,
.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-item {
  padding: 1.4rem 1.2rem;
  border-top: 2px solid rgba(45, 255, 138, 0.45);
  background: linear-gradient(180deg, rgba(18, 36, 51, 0.7), transparent);
  transition: transform 0.15s ease;
}

.service-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.service-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
  min-height: 40px;
}

.chip.is-active,
.chip:hover {
  color: #04110a;
  background: var(--accent);
  border-color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: rgba(13, 26, 36, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.7s ease both;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 255, 138, 0.35);
  box-shadow: var(--shadow);
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a1520;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: #04110a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.product-body {
  padding: 1rem 1.1rem 1.2rem;
}

.product-cat {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-body h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.product-price {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--accent);
}

.product-price-lg {
  font-size: 2rem;
}

.why {
  background: linear-gradient(180deg, transparent, rgba(18, 36, 51, 0.45), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-list li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.why-list strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.why-list span {
  color: var(--muted);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 360px;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.location-actions {
  margin-top: 1.25rem;
}

.cta-band {
  padding-top: 2rem;
}

.cta-band-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(45, 255, 138, 0.18), transparent 60%),
    var(--bg-elev);
  border: 1px solid rgba(45, 255, 138, 0.2);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cta-band p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-lead,
.footer-grid p {
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-list a:hover,
.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  place-items: center;
  background: var(--wa);
  color: #04110a;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.product-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-desc {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.empty-state,
.empty-page {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.empty-page h1 {
  color: var(--text);
  font-family: var(--display);
}

.app-tabbar {
  display: none;
}

.mobile-buybar {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.28);
  }
  50% {
    box-shadow: 0 10px 38px rgba(37, 211, 102, 0.48);
  }
}

@media (max-width: 960px) {
  .services-grid,
  .product-grid,
  .footer-grid,
  .why-grid,
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 58px;
  }

  .app-shell {
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 0.5rem);
  }

  .mobile-only {
    display: grid;
  }

  .desktop-only,
  .nav-desktop,
  .whatsapp-float {
    display: none !important;
  }

  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .site-header.is-hidden {
    transform: translateY(calc(-100% - var(--safe-top)));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .hero {
    min-height: calc(100dvh - var(--header-h) - var(--tabbar-h) - var(--safe-bottom));
    align-items: end;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 11, 17, 0.35) 0%, rgba(5, 11, 17, 0.55) 40%, rgba(5, 11, 17, 0.96) 100%),
      url("../img/hero.jpg") center/cover no-repeat;
  }

  .hero-content {
    padding: 5.5rem 0 2.25rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
  }

  .hero-sub {
    font-size: 1rem;
    margin: 0.9rem 0 1.35rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .location-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .section-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 0.45rem;
    padding: 0.15rem 0.15rem 0.55rem;
    margin: 0 -0.15rem;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .service-item {
    border-radius: 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: rgba(13, 26, 36, 0.9);
    padding: 1.1rem 1rem;
  }

  .product-grid,
  .footer-grid,
  .why-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 0.9rem;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .product-actions .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 0.5rem;
    font-size: 0.85rem;
  }

  .map-wrap {
    border-radius: 16px;
    min-height: 260px;
  }

  .map-wrap iframe {
    height: 260px;
  }

  .location-actions {
    display: grid;
    gap: 0.65rem;
  }

  .cta-band-inner {
    padding: 2rem 1.1rem;
    border-radius: 18px;
  }

  .site-footer {
    padding: 2.25rem 0 calc(1.25rem + var(--safe-bottom));
  }

  .product-detail {
    padding-top: 1.25rem;
  }

  .product-detail-media {
    border-radius: 18px;
  }

  .product-detail-media img {
    aspect-ratio: 1 / 1;
  }

  .product-actions-lg {
    display: none;
  }

  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding: 0.35rem 0.35rem calc(0.35rem + var(--safe-bottom));
    background: rgba(8, 14, 20, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 12px;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .tab-item svg {
    width: 22px;
    height: 22px;
  }

  .tab-item.is-active {
    color: var(--accent);
  }

  .tab-wa {
    position: relative;
    top: -10px;
  }

  .tab-wa-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--wa);
    color: #04110a;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  }

  .tab-wa-btn svg {
    width: 26px;
    height: 26px;
  }

  .tab-wa span:last-child {
    color: var(--wa);
  }

  .mobile-buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 0.55rem);
    z-index: 70;
    padding: 0.7rem 0.75rem;
    border-radius: 16px;
    background: rgba(13, 26, 36, 0.96);
    border: 1px solid rgba(45, 255, 138, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
  }

  .mobile-buybar-info {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
  }

  .mobile-buybar-info strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-buybar-info span {
    color: var(--accent);
    font-family: var(--display);
    font-weight: 700;
  }

  .mobile-buybar .btn {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
  }

  .app-shell:has(.mobile-buybar) {
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 5.5rem);
  }
}

@media (max-width: 420px) {
  .product-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
