/* ===== DUCTYZA v4 — Industrial real ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #0E478C;
  --blue-light:  #2c7fd4;
  --red:         #c41e2a;
  --red-dark:    #9b1620;
  --red-bright:  #ed1924;
  --steel:       #2a3a50;
  --dark:        #0a121e;
  --dark2:       #101a2a;
  --dark3:       #152033;
  --dark4:       #1a2a40;
  --line:        rgba(255,255,255,0.06);
  --line-bright: rgba(255,255,255,0.11);
  --text:        #e2e8f0;
  --text-strong: #f5f8fc;
  --muted:       #6b7d96;
  --muted2:      #94a4bc;
  --accent:      #4d9fff;
  --metal:       #c8d0d8;
  --mono: 'JetBrains Mono', 'Consolas', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #0a121e; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  background: #0a121e; background: var(--dark);
  color: var(--text); min-height: 100vh; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* NAV */
nav {
  position: sticky; top: 0; z-index: 200;
  background: #0a121e; background: rgba(10,18,30,0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
  height: 128px;
}
nav .logo {
  display: flex; align-items: center; gap: 1.1rem;
  text-decoration: none; flex-shrink: 0;
  transition: transform 0.2s;
}
nav .logo:hover { transform: scale(1.02); }
nav .logo img {
  height: 108px; width: auto; object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.55));
}
nav .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
nav .logo-name { font-size: 1.6rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
nav .logo-sub {
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px;
}
nav .nav-links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
nav .nav-links a {
  color: var(--muted2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: 6px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
nav .nav-links a:hover, nav .nav-links a.active {
  color: var(--text-strong); background: rgba(255,255,255,0.05);
}
nav .nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 0.55rem 1.1rem !important; border-radius: 6px !important; font-weight: 600 !important;
}
nav .nav-cta:hover { background: var(--red-dark) !important; }
.nav-whatsapp {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #25d366 !important;
  border: 1px solid rgba(37,211,102,0.22); border-radius: 6px;
}
.nav-whatsapp:hover { background: rgba(37,211,102,0.06) !important; border-color: rgba(37,211,102,0.4); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  margin-left: auto; background: none; border: none; padding: 6px;
  border-radius: 6px; transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 1px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* PAGE HEADER */
.page-header { padding: 3.5rem 2rem 2rem; max-width: 1180px; margin: 0 auto; }
.page-header .breadcrumb {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.page-header .breadcrumb a { color: var(--muted); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--text); }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--text-strong);
  letter-spacing: -0.03em; margin-bottom: 0.6rem; line-height: 1.1;
}
.page-header p { color: var(--muted2); font-size: 1.05rem; max-width: 640px; }
.page-header .accent-line { width: 40px; height: 3px; background: var(--red); margin-bottom: 1.25rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--red); color: #fff;
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 0.78rem 1.4rem; border-radius: 6px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--line-bright); color: var(--text);
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 0.78rem 1.4rem; border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line-bright); color: var(--text);
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 0.62rem 1.1rem; border-radius: 6px;
  white-space: nowrap; transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #25d366; color: #fff;
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 0.78rem 1.4rem; border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }

/* SECTION HEADERS */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-bright); margin-bottom: 0.7rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.section-label::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--red-bright); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 0.7rem; color: var(--text-strong);
}

.section-sub {
  color: var(--muted2); font-size: 1rem;
  line-height: 1.7; margin-bottom: 2.5rem; max-width: 640px;
}

/* TAGS */
.product-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem; border-radius: 3px;
  width: fit-content;
}
.product-tag.primary-tag {
  color: #ffc857;
  background: rgba(255,200,87,0.06);
  border-color: rgba(255,200,87,0.2);
}

/* FOOTER */
footer { margin-top: 4rem; background: var(--dark2); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem;
}

/* Brand-mascot block: logo + gray line + robot */
.brand-mascot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.brand-mascot-logo {
  flex: 0 0 auto;
  display: block;
  height: 108px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.brand-mascot-divider {
  width: 1px;
  align-self: stretch;
  min-height: 130px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.22) 30%, rgba(255,255,255,0.22) 70%, transparent 100%);
  flex-shrink: 0;
}
.brand-mascot-robot {
  flex: 0 0 auto;
  display: block;
  height: 156px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,0.45));
}

.footer-brand-tagline {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.86rem; color: var(--muted2); line-height: 1.65; margin-bottom: 1rem; max-width: 380px; }

/* Legacy support */
.footer-brand .logo-name {
  font-size: 1.15rem; font-weight: 800; color: var(--text-strong);
  display: block; margin-bottom: 0.4rem;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 0.85rem;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.875rem; color: var(--muted2);
  text-decoration: none; margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-strong); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.2rem 2rem; text-align: center;
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  max-width: 1180px; margin: 0 auto;
}
.footer-bottom a { color: var(--muted2); text-decoration: none; }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transition: transform 0.2s; border: none;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav .nav-links {
    display: none; position: fixed; top: 128px; left: 0; right: 0;
    background: rgba(10,18,30,0.98); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem; gap: 0.25rem; margin-left: 0;
    backdrop-filter: blur(16px);
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { width: 100%; padding: 0.75rem 1rem; border-radius: 6px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem 1.5rem; }
  .brand-mascot { gap: 1.1rem; }
  .brand-mascot-logo { height: 84px; max-width: 180px; }
  .brand-mascot-robot { height: 118px; }
  .brand-mascot-divider { min-height: 100px; }

  /* Smaller nav logo on mobile */
  nav { height: 100px; padding: 0 1.25rem; }
  nav .logo img { height: 78px; }
  nav .logo-name { font-size: 1.25rem; }
  nav .logo-sub { font-size: 0.62rem; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .container { padding: 0 1.25rem; }
  .page-header { padding: 2.5rem 1.5rem 1.5rem; }
  /* Stack logo+robot vertically on very small screens */
  .brand-mascot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .brand-mascot-divider { width: 60%; height: 1px; min-height: auto;
    background: linear-gradient(to right, rgba(255,255,255,0.18) 0%, transparent 100%); }
  .brand-mascot-logo { height: 76px; }
  .brand-mascot-robot { height: 140px; }
  nav .logo-text { display: none; }  /* hide text on very small to give room */
}
