/* ══════════════════════════════════════════
   shared.css — IC Tech World
   Common styles used by index + products
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --c-bg: #020b14;
  --c-surface: #041020;
  --c-panel: rgba(4,20,45,0.85);
  --c-blue: #00aaff;
  --c-cyan: #00fff7;
  --c-accent: #0066cc;
  --c-gold: #f0a500;
  --c-text: #cde8ff;
  --c-muted: #6a9fc0;
  --c-border: rgba(0,170,255,0.2);
  --nav-h: 70px;
  --font-display: 'Orbitron', monospace;
  --font-body: 'Exo 2', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(2,11,20,0.95);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  order: 2;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  border: 2px solid var(--c-cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px var(--c-cyan);
  background: rgba(0,255,247,0.05);
}
.nav-logo-icon svg { width: 22px; height: 22px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-cyan);
  letter-spacing: 1px;
  line-height: 1.2;
}
.nav-logo-text span { color: var(--c-blue); font-size: 0.65rem; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  order: 3;
}
.nav-links a {
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--c-cyan);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--c-cyan); }
.nav-links a:hover::after { left: 10%; right: 10%; }
.nav-links a.active { color: var(--c-cyan); }
.nav-links a.active::after { left: 10%; right: 10%; }

.btn-contact {
  background: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  color: #000 !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 30px !important;
  box-shadow: 0 0 15px rgba(0,170,255,0.4);
  transition: all 0.3s !important;
}
.btn-contact:hover {
  box-shadow: 0 0 25px rgba(0,255,247,0.6) !important;
  transform: translateY(-1px);
}
.btn-contact::after { display: none !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  order: 1;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--c-cyan);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(2,11,20,0.98);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.3rem;
  backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.mobile-menu a:hover { border-color: var(--c-border); color: var(--c-cyan); }
.mobile-menu .btn-contact {
  background: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  color: #000 !important;
  text-align: center;
  margin-top: 0.5rem;
  border-radius: 30px !important;
}

/* ── SECTION HELPERS ── */
.page { position: relative; z-index: 1; }
section { position: relative; }
.sec-border { border-top: 1px solid var(--c-border); }

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 5px;
  color: var(--c-cyan);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.section-title .hl {
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  margin: 1rem auto 0;
  border-radius: 3px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  color: #000;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 25px rgba(0,170,255,0.4);
  transition: all 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 35px rgba(0,255,247,0.6); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--c-cyan);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.83rem 2rem;
  border-radius: 30px;
  border: 1px solid var(--c-cyan);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(0,255,247,0.15);
}
.btn-outline:hover { background: rgba(0,255,247,0.1); box-shadow: 0 0 20px rgba(0,255,247,0.3); }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,170,255,0.15); }
.product-card:hover::before { opacity: 1; }
.product-img {
  width: 100%; height: 160px;
  background: rgba(0,60,120,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--c-border);
}
.product-fa-icon {
  font-size: 3rem;
  color: var(--c-cyan);
  opacity: 0.7;
}
.product-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.product-card:hover .product-img-photo {
  transform: scale(1.05);
}
.product-info { padding: 1rem; }
.product-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.product-desc {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.5;
  margin-bottom: 0.7rem;
}
.product-price {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 0.8rem;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #25d366;
  color: #000;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.55rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  width: 100%;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: scale(1.02); }

/* ── FORMS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.72rem;
  color: var(--c-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(0,60,120,0.2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 8px rgba(0,255,247,0.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* ── FLOATING BUTTONS ── */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  animation: pulseWa 2.5s ease-in-out infinite;
  transition: transform 0.3s;
}
.float-wa:hover { transform: scale(1.1); }
@keyframes pulseWa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 35px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}
.float-wa svg { width: 28px; height: 28px; }

.scroll-top {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  z-index: 900;
  width: 46px; height: 46px;
  background: rgba(0,170,255,0.15);
  border: 1px solid var(--c-cyan);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(0,170,255,0.3);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: rgba(0,255,247,0.25); box-shadow: 0 0 25px rgba(0,255,247,0.5); }
.scroll-top svg { width: 20px; height: 20px; stroke: var(--c-cyan); fill: none; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9999;
  background: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  display: none;
  animation: slideIn 0.3s ease;
}
.toast.show { display: block; }
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── FOOTER ── */
footer {
  background: rgba(0,5,15,0.95);
  border-top: 1px solid var(--c-border);
  padding: 3rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.social-links { display: flex; gap: 0.5rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(0,170,255,0.08);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}
.social-link:hover { background: rgba(0,255,247,0.15); border-color: var(--c-cyan); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--c-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--c-cyan); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--c-muted); }
.footer-bottom span { color: var(--c-cyan); }

/* ── PRODUCT MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2,11,20,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,170,255,0.1);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,170,255,0.1);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { background: rgba(0,255,247,0.15); color: var(--c-cyan); border-color: var(--c-cyan); }
.modal-img {
  width: 100%;
  height: 240px;
  background: rgba(0,60,120,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--c-border);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.modal-img .modal-fa-icon {
  font-size: 5rem;
  color: var(--c-cyan);
  opacity: 0.5;
}
.modal-body {
  padding: 1.5rem;
}
.modal-cat-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(0,255,247,0.08);
  border: 1px solid rgba(0,255,247,0.2);
  border-radius: 30px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.8rem;
}
.modal-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.modal-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.modal-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 1.4rem;
}
.modal-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.modal-actions .btn-whatsapp {
  flex: 1;
  min-width: 160px;
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
}

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media(max-width: 480px) {
  .section-wrap { padding: 3.5rem 1.2rem; }
}