:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --teal: #14b8a6;
  --wa: #25d366;
  --wa-hover: #1ebe57;
  --border: rgba(148, 163, 184, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Outfit', system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo__icon {
  color: var(--accent);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.header__wa { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #0a0e17;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}

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

.btn--lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
}

.hero__stats div {
  display: flex;
  flex-direction: column;
}

.hero__stats strong {
  font-size: 1.25rem;
  color: var(--accent-light);
}

.hero__stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 3D Cube visual */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hero__cube {
  width: 160px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeSpin 12s linear infinite;
}

.cube-face {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.06);
  backdrop-filter: blur(4px);
}

.cube-face--front  { transform: translateZ(80px); }
.cube-face--back   { transform: rotateY(180deg) translateZ(80px); }
.cube-face--right  { transform: rotateY(90deg) translateZ(80px); }
.cube-face--left   { transform: rotateY(-90deg) translateZ(80px); }
.cube-face--top    { transform: rotateX(90deg) translateZ(80px); }
.cube-face--bottom { transform: rotateX(-90deg) translateZ(80px); }

.hero__ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero__ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px dashed rgba(20, 184, 166, 0.15);
  border-radius: 50%;
}

@keyframes cubeSpin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* Sections */
section { position: relative; z-index: 1; padding: 5rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* Categories */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.cat-card:hover, .cat-card.active {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.cat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.cat-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Catalog filters */
.catalog__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Product grid */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(6, 182, 212, 0.3);
}

.product-card__img {
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #0a0e17;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
}

.skeleton-card {
  height: 340px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img, .gallery-item video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.gallery-item__embed {
  aspect-ratio: 9/16;
  max-height: 480px;
  overflow: hidden;
}

.gallery-item__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.gallery-item__caption {
  padding: 1rem;
  font-size: 0.9rem;
}

.gallery-item__caption strong { display: block; margin-bottom: 0.25rem; }
.gallery-item__caption span { color: var(--text-muted); font-size: 0.85rem; }

/* Trust */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: border-color var(--transition);
}

.trust-card:hover { border-color: rgba(6, 182, 212, 0.3); }

.trust-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

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

/* CTA */
.cta {
  padding: 4rem 0;
}

.cta__inner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta__text h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta__text p { color: var(--text-muted); }

.cta__meta {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.cta__meta a { color: var(--accent-light); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer__text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__social a:hover { color: var(--accent-light); }

/* Modal */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

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

.modal__body { padding: 2rem; }

.modal__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: var(--bg-elevated);
}

.modal__body h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal__body .price { font-size: 1.5rem; color: var(--accent-light); font-weight: 700; margin: 1rem 0; }
.modal__body p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* FAB WhatsApp */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.fab-wa:hover {
  transform: scale(1.08);
  background: var(--wa-hover);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__visual { min-height: 260px; order: -1; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.97);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 50;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; margin-left: auto; }
  .header__wa { display: none; }
  .header__inner { gap: 0.5rem; }
  .logo__text { font-size: 0.95rem; }
  .hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero { padding: 3rem 0 2rem; }
  .section-head h2 { font-size: 1.5rem; }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery__grid { grid-template-columns: 1fr; }
  .product-card__name { font-size: 0.95rem; }
  .product-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .modal__dialog { margin: 0; max-width: none; width: 100%; min-height: 100vh; border-radius: 0; }
  .modal__actions { flex-direction: column; }
  .modal__actions .btn { width: 100%; justify-content: center; }
  .cta__inner { flex-direction: column; text-align: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .fab-wa { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
  .trust__grid { grid-template-columns: 1fr; }
  .filter-btn { font-size: 0.8rem; padding: 0.4rem 0.65rem; }
  .catalog__filters { gap: 0.35rem; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .catalog__grid, .categories__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 0.75rem; }
}

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

.gallery-item--demo .gallery-demo-card {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center; padding: 1.5rem; min-height: 200px;
}
.gallery-demo-card span { font-size: 2.5rem; filter: drop-shadow(0 0 12px var(--accent-glow)); }
.gallery-demo-card p { font-weight: 600; color: var(--text); }
.gallery-demo-card small { color: var(--text-muted); font-size: .8rem; }
.product-card__placeholder { width:100%; height:100%; min-height:200px; display:grid; place-items:center; border-radius:inherit; }
.product-card__placeholder span { font-size:3rem; filter:drop-shadow(0 0 16px var(--accent-glow)); }

.logo__img { max-height: 36px; width: auto; object-fit: contain; }
.logo__icon[hidden] { display: none; }

.maintenance {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: grid; place-items: center; padding: 2rem;
}
.maintenance[hidden] { display: none !important; }
.maintenance__box { text-align: center; max-width: 420px; }
.maintenance__box h1 { color: var(--accent); margin-bottom: 1rem; }

.order-form { padding: 4rem 0; background: var(--bg-card); border-block: 1px solid var(--border); }
.order-form__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 640px;
}
.order-form__full { grid-column: 1 / -1; }
.order-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }
.order-form input, .order-form textarea {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem; color: var(--text); font-family: inherit;
}
.order-form__msg--ok { color: var(--teal); }
.order-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.catalog-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 2rem; }

.modal__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.gallery-item__zoom { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 1rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
@media (max-width: 600px) { .order-form__grid { grid-template-columns: 1fr; } }
