/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #0c1524;
  --bg-2:        #101d2e;
  --bg-3:        #162036;
  --bg-card:     #162036;
  --bg-card-2:   #1b2840;
  --text:        #f0f6fc;
  --text-soft:   #b8cce0;
  --text-mute:   #6b8aaa;
  --accent:      #1b6ec2;
  --accent-2:    #1453a0;
  --accent-glow: rgba(27,110,194,0.28);
  --accent-light: #3d8fd6;
  --line:        rgba(176,210,240,0.08);
  --line-2:      rgba(176,210,240,0.15);
  --sans:        'Montserrat', system-ui, sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}
abbr[title] { text-decoration: none; }
::selection { background: var(--accent); color: var(--text); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .5rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: var(--radius); font-weight: 600; font-size: .875rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* =============================================================
   4. Typography
   ============================================================= */
.sec-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.sec-header {
  margin-bottom: 3rem;
}
.sec-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--text);
  margin-bottom: .75rem;
}
.sec-header h2 em {
  font-style: italic;
  color: var(--accent);
}
.sec-header .sec-desc {
  color: var(--text-mute);
  max-width: 56ch;
  font-size: 1rem;
}
.sec-header--light h2,
.sec-header--light .sec-eyebrow,
.sec-header--light .sec-desc { color: var(--text); }
.sec-header--light .sec-eyebrow { color: var(--accent); }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 6px 32px rgba(27,110,194,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--text-soft);
  background: rgba(240,246,252,0.06);
  transform: translateY(-2px);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  transition: transform .2s var(--ease-out), background .2s;
}
.btn-primary-sm:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.btn-block { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

.btn-loading { display: none; }
.form-sending .btn-text { display: none; }
.form-sending .btn-loading { display: inline; }
.form-sending .btn { pointer-events: none; opacity: .7; }

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s var(--ease-soft), backdrop-filter .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}
.nav-logo-text {
  align-items: baseline;
  gap: .3rem;
}
.nav-logo-main { color: var(--text); }
.nav-logo-accent { color: var(--accent); }
.nav-logo-divider { color: var(--text-mute); font-weight: 300; font-size: .9rem; }
.nav-logo-sub { color: var(--text-mute); font-size: .8rem; font-weight: 600; }

/* Badge DeAcero® in product titles */
.badge-deacero {
  display: inline-block;
  padding: .15rem .45rem;
  background: rgba(27,110,194,0.15);
  border: 1px solid rgba(27,110,194,0.3);
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: .03em;
  vertical-align: middle;
  margin-left: .3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .45rem .85rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(240,246,252,0.06); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: .5rem;
  padding: .5rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  transition: background .2s, transform .2s var(--ease-out);
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero.is-ready .hero-bg img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,17,23,0.88) 0%,
    rgba(13,17,23,0.76) 50%,
    rgba(13,17,23,0.82) 100%
  );
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle 700px at var(--mx, 30%) var(--my, 60%),
      rgba(27,110,194,0.22) 0%, transparent 60%),
    radial-gradient(circle 500px at calc(var(--mx, 30%) + 15%) calc(var(--my, 60%) - 20%),
      rgba(20,83,154,0.14) 0%, transparent 55%);
  pointer-events: none;
  transition: background .1s linear;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp .7s .2s var(--ease-out) forwards;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 16ch;
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp .8s .35s var(--ease-out) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--text-soft);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp .75s .5s var(--ease-out) forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp .7s .65s var(--ease-out) forwards;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp .7s .8s var(--ease-out) forwards;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: rgba(240,246,252,0.07);
  border: 1px solid var(--line-2);
  border-radius: 40px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-soft);
  backdrop-filter: blur(8px);
}
.hero-badge svg { color: var(--accent); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: .4;
  animation: heroFadeUp .6s 1.2s var(--ease-out) both;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollLine 2s 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   8. Reveal animation
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Safety: elements with data-split never hidden by .reveal */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   9. PRODUCTS section
   ============================================================= */
.sec-products {
  padding: 6rem 0;
  background: var(--bg-2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.product-card:hover {
  border-color: rgba(27,110,194,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(27,110,194,0.18);
}
a.product-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
a.product-card--link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 2px rgba(27,110,194,0);
  transition: box-shadow .3s;
  pointer-events: none;
}
a.product-card--link:hover::after {
  box-shadow: inset 0 0 0 2px rgba(27,110,194,0.5);
}
a.product-card--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.6) 0%, transparent 55%);
}

.product-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}
.product-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.product-body p {
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.product-specs {
  font-size: .78rem !important;
  color: var(--text-mute) !important;
  font-weight: 600;
  letter-spacing: .01em;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .25rem;
}
.tag {
  padding: .25rem .65rem;
  background: rgba(27,110,194,0.12);
  border: 1px solid rgba(27,110,194,0.25);
  border-radius: 40px;
  font-size: .72rem;
  font-weight: 700;
  color: #74b3f5;
  letter-spacing: .02em;
}
.btn-card {
  margin-top: auto;
  padding-top: .6rem;
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap .2s var(--ease-out);
  gap: .3rem;
}
.btn-card:hover { gap: .6rem; }

.product-card--cta {
  background: linear-gradient(135deg, rgba(27,110,194,0.18) 0%, rgba(22,32,54,0.98) 100%);
  border-color: rgba(27,110,194,0.3);
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.product-card--cta:hover {
  border-color: rgba(27,110,194,0.65);
  box-shadow: 0 16px 40px rgba(27,110,194,0.18);
}
.product-cta-inner {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.product-cta-icon { color: var(--accent); opacity: .8; }
.product-cta-inner h3 { font-size: 1.1rem; color: var(--text); }
.product-cta-inner p { font-size: .88rem; color: var(--text-soft); }

/* =============================================================
   10. SERVICES section
   ============================================================= */
.sec-services {
  position: relative;
  padding: 6rem 0;
  overflow: clip;
}
.sec-services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sec-services-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sec-services-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13,17,23,0.95) 0%,
    rgba(13,17,23,0.90) 60%,
    rgba(13,17,23,0.85) 100%
  );
}
.sec-services > .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  background: rgba(28,35,51,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s var(--ease-out);
}
/* Solid fallback if backdrop-filter unsupported */
@supports not (backdrop-filter: blur(10px)) {
  .service-card { background: var(--bg-card); }
}
.service-card:hover {
  border-color: rgba(27,110,194,0.4);
  transform: translateY(-3px);
}
.service-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(240,246,252,0.05);
  letter-spacing: -.02em;
  line-height: 1;
  pointer-events: none;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* =============================================================
   11. WHY section
   ============================================================= */
.sec-why {
  padding: 6rem 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.why-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.why-card:hover {
  border-color: rgba(27,110,194,0.35);
  transform: translateY(-3px);
}
.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(27,110,194,0.22);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}
.why-card p {
  font-size: .875rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.why-card strong { color: var(--text); }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: .1rem;
  line-height: 1;
}
.stat-num {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--line-2);
  margin-inline: 1rem;
}

/* =============================================================
   12. CONTACT section
   ============================================================= */
.sec-contact {
  padding: 6rem 0;
  background: var(--bg-2);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .01em;
}
.form-group label abbr { color: var(--accent); margin-left: .15rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-mute); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-legal {
  font-size: .75rem;
  color: var(--text-mute);
  text-align: center;
}
.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  color: #4ade80;
  font-size: .9rem;
  font-weight: 600;
}
.form-success[hidden] { display: none; }

/* Info blocks */
.contact-block {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.contact-block h3 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .85rem;
}
.contact-phone-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
  transition: color .2s;
}
.contact-phone-link:hover { color: var(--accent); }
.contact-phone-link svg { color: var(--accent); flex-shrink: 0; }
.contact-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.25rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s, transform .2s var(--ease-out);
}
.contact-whatsapp-link:hover { background: #1ebe5c; transform: translateY(-2px); }
.contact-schedule {
  font-size: .9rem;
  color: var(--text-soft);
  padding: .2rem 0;
}
.contact-schedule--closed { color: var(--text-mute); }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-map iframe { display: block; filter: grayscale(30%) contrast(1.05); }

/* =============================================================
   13. FOOTER
   ============================================================= */
.footer {
  background: #080b10;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .5rem;
}
.footer-logo-accent { color: var(--accent); }
.footer-logo-sep { color: var(--text-mute); margin-inline: .3rem; font-weight: 300; }
.footer-tagline { font-size: .85rem; color: var(--text-mute); }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.footer-nav a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-mute);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-phones { display: flex; flex-direction: column; gap: .5rem; }
.footer-phones-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  margin-bottom: .2rem;
}
.footer-phones a {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: color .2s;
}
.footer-phones a:hover { color: var(--accent); }
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #4ade80 !important;
  font-size: .85rem !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-mute);
}
.footer-credits a { color: var(--text-mute); text-decoration: underline; }

/* =============================================================
   14. WhatsApp FAB
   ============================================================= */
.wa-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.25rem .85rem 1rem;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform .3s var(--ease-out), box-shadow .3s, background .2s;
  text-decoration: none;
}
.wa-fab:hover {
  background: #1ebe5c;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
.wa-fab-label { font-weight: 700; }

/* =============================================================
   15. Stagger delays for grids
   ============================================================= */
.products-grid .product-card:nth-child(2) { transition-delay: .08s; }
.products-grid .product-card:nth-child(3) { transition-delay: .16s; }
.products-grid .product-card:nth-child(4) { transition-delay: .24s; }
.products-grid .product-card:nth-child(5) { transition-delay: .32s; }
.products-grid .product-card:nth-child(6) { transition-delay: .40s; }
.services-grid .service-card:nth-child(2) { transition-delay: .1s; }
.services-grid .service-card:nth-child(3) { transition-delay: .2s; }
.services-grid .service-card:nth-child(4) { transition-delay: .3s; }
.why-grid .why-card:nth-child(2) { transition-delay: .1s; }
.why-grid .why-card:nth-child(3) { transition-delay: .2s; }
.why-grid .why-card:nth-child(4) { transition-delay: .3s; }

/* =============================================================
   16. Responsive – mobile first
   ============================================================= */
@media (min-width: 540px) {
  .hero-title { font-size: clamp(2.8rem, 7vw, 5rem); }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .contact-wrap { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-inner { padding-top: 7rem; }
  .contact-wrap { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; }
}

@media (min-width: 1280px) {
  .stats-bar { padding: 2.5rem 3rem; }
}

/* Mobile nav */
@media (max-width: 719px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(85vw, 320px);
    height: 100vh;
    background: rgba(13,17,23,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: .25rem;
    border-left: 1px solid var(--line);
    transition: right .35s var(--ease-out);
  }
  .nav-links.is-open { right: 0; }
  .nav-link { padding: .85rem 1rem; font-size: 1rem; border-radius: var(--radius); }
  .nav-cta { margin-left: 0; margin-top: 1rem; justify-content: center; padding: .9rem; font-size: .95rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }
  .stat-divider { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .wa-fab-label { display: none; }
  .wa-fab { padding: 1rem; border-radius: 50%; }
}

/* =============================================================
   17. Reduced motion – only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { transform: none; transition: none; }
  .hero-scroll-line { animation: none; }
  @keyframes pulse { to {} }
}

/* =============================================================
   18. Product detail pages
   ============================================================= */

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { color: var(--line-2); }
.breadcrumb-current { color: var(--text-soft); font-weight: 600; }

/* Product hero banner */
.product-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
}
.product-hero-bg {
  position: absolute;
  inset: 0;
}
.product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(.85);
}
.product-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,21,36,0.95) 0%, rgba(12,21,36,0.4) 60%, transparent 100%);
}
.product-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 1.25rem 2.5rem;
}
.product-hero-content .breadcrumb { margin-bottom: 1rem; }
.product-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 .75rem;
}
.product-hero-content h1 em {
  font-style: italic;
  color: var(--accent-light);
}
.product-hero-content .product-hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.product-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Description section */
.sec-product-desc {
  padding: 4rem 0 2.5rem;
}
.product-desc-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .product-desc-grid { grid-template-columns: 1.1fr 1fr; }
}
.product-desc-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
.product-desc-text p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.product-desc-text p:last-child { margin-bottom: 0; }
.product-specs-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-specs-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.product-specs-table th {
  background: rgba(27,110,194,0.1);
  color: var(--accent-light);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .8rem 1.1rem;
  text-align: left;
}
.product-specs-table td {
  padding: .7rem 1.1rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}
.product-specs-table tr:first-child td { border-top: none; }
.product-specs-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 40%;
}

/* Portfolio / trabajos realizados */
.sec-portfolio {
  padding: 3.5rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease-out);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  height: 100%;
  color: var(--text-mute);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.portfolio-placeholder svg { opacity: .35; }
.portfolio-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .6rem .9rem;
  background: linear-gradient(to top, rgba(12,21,36,0.88) 0%, transparent 100%);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* Gallery */
.sec-gallery {
  padding: 3.5rem 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.gallery-item:hover {
  border-color: rgba(27,110,194,0.45);
  transform: translateY(-2px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: .5rem;
  color: var(--text-mute);
  font-size: .75rem;
  font-weight: 600;
}
.gallery-placeholder svg { opacity: .3; }

/* Product CTA section */
.sec-product-cta {
  padding: 4rem 0;
  text-align: center;
}
.product-cta-box {
  background: linear-gradient(135deg, rgba(27,110,194,0.15) 0%, rgba(22,32,54,1) 100%);
  border: 1px solid rgba(27,110,194,0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.product-cta-box h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}
.product-cta-box p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.product-cta-box .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mute);
  text-decoration: none;
  transition: color .2s, gap .2s;
  margin-bottom: 1rem;
}
.btn-back:hover { color: var(--accent-light); gap: .6rem; }
.btn-back svg { flex-shrink: 0; }

/* Photo gallery grid (product pages) */
.pg-row {
  display: grid;
  gap: .6rem;
  margin-top: .6rem;
}
.pg-row--hero {
  grid-template-columns: 1.45fr 1fr;
}
.pg-row--thirds {
  grid-template-columns: repeat(3, 1fr);
}
.pg-row--halves {
  grid-template-columns: 1fr 1fr;
}
.pg-row--halves .pg-cell { aspect-ratio: 16/9; }
.pg-cell {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.pg-cell--tall { aspect-ratio: 3/2; }
.pg-row--thirds .pg-cell { aspect-ratio: 4/3; }
.pg-cell--stack {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.pg-sub {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
}
.pg-cell img,
.pg-sub img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease-out);
}
.pg-cell:hover img,
.pg-sub:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .pg-row--hero,
  .pg-row--thirds {
    grid-template-columns: 1fr 1fr;
  }
  .pg-cell--tall { aspect-ratio: unset; }
  .pg-cell--stack { flex-direction: row; }
  .pg-row--thirds .pg-cell:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16/7; }
}

/* Portfolio collage */
.portfolio-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
  margin-top: 2rem;
}
.collage-main {
  grid-row: 1;
  grid-column: 1;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.collage-side {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.collage-bottom {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.collage-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.collage-side .collage-item { flex: 1; }
.collage-main img,
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease-out);
  display: block;
}
.collage-main:hover img,
.collage-item:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .portfolio-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .collage-main { grid-column: 1 / -1; }
  .collage-side { grid-row: 2; grid-column: 1 / -1; flex-direction: row; }
  .collage-bottom { grid-row: 3; grid-template-columns: 1fr 1fr; }
  .collage-bottom .collage-item:last-child { display: none; }
}

/* Related products */
.sec-related {
  padding: 3.5rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
