﻿/* ============================================
   ZENTEK360 â€” Estilos Corporativos
   Fuentes: Inter (web) + League Spartan (logo)
   Paleta: #0b142c | #f3580e | #d8d7f5 | #b0aab3 | #ffffff
============================================ */

/* â”€â”€ Reset y base â”€â”€ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #f3580e #e8eaf0;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #e8eaf0; }
::-webkit-scrollbar-thumb { background: #f3580e; border-radius: 2px; }

body {
  font-family: 'Inter', sans-serif;
  color: #0b142c;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* â”€â”€ Keyframes â”€â”€ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: .5; transform: scale(.85); }
  50%       { opacity: 1;  transform: scale(1); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes bar-fill {
  from { width: 0; }
}

/* â”€â”€ Scroll Reveal â”€â”€ */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.rv.on {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }
.d5 { transition-delay: .50s; }
.d6 { transition-delay: .60s; }

/* â”€â”€ Marquee â”€â”€ */
.mq-track {
  animation: marquee 38s linear infinite;
  display: flex;
  width: max-content;
}
.mq-track:hover { animation-play-state: paused; }

/* â”€â”€ Cards Servicios â”€â”€ */
.svc-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(11, 20, 44, .12);
}
.svc-card .svc-icon {
  transition: background .3s ease;
}
.svc-card:hover .svc-icon {
  background: #f3580e;
}
.svc-card:hover .svc-icon svg {
  stroke: #fff;
}
.svc-card:hover .svc-icon svg path,
.svc-card:hover .svc-icon svg rect,
.svc-card:hover .svc-icon svg circle {
  stroke: #fff;
}

/* â”€â”€ Cards Sectores â”€â”€ */
.sector-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(11, 20, 44, .10);
  border-color: #f3580e;
}

/* â”€â”€ Timeline connector â”€â”€ */
.tl-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #f3580e, #d8d7f5);
  margin-top: 27px;
}
.tl-step { flex: 1; }

/* â”€â”€ Barras animadas â”€â”€ */
.bar-animated {
  animation: bar-fill 1.6s ease-out forwards;
}

/* â”€â”€ Diferenciadores â”€â”€ */
.diff-card {
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 20, 44, .09);
  border-color: #d8d7f5;
}

/* -- Nav base + transicion -- */
#main-nav {
  height: 90px;
  transition: height .35s cubic-bezier(.22,1,.36,1),
              box-shadow .3s ease,
              background-color .3s ease,
              border-color .3s ease;
}
#main-nav.scrolled {
  height: 68px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(11,20,44,.07) !important;
  box-shadow: 0 1px 0 rgba(11,20,44,.06), 0 6px 24px rgba(11,20,44,.07);
}

/* -- Nav link activo -- */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: #f3580e;
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-link.active { color: #0b142c !important; }
.nav-link.active::after { width: 100%; }

/* -- Menu movil con transicion -- */
#mobile-menu {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s ease,
              visibility .3s ease,
              transform .35s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
#mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* -- Hamburger -> X -- */
#ham-btn .bar-top,
#ham-btn .bar-mid,
#ham-btn .bar-bot {
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: 11px 50%;
}
#ham-btn.is-open .bar-top { transform: translateY(5px) rotate(45deg); }
#ham-btn.is-open .bar-mid { opacity: 0; transform: scaleX(0); }
#ham-btn.is-open .bar-bot { transform: translateY(-5px) rotate(-45deg); }

/* â”€â”€ Animaciones flotantes hero â”€â”€ */
.float-slow { animation: float-y 6s ease-in-out infinite; }
.float-mid  { animation: float-y 4.5s ease-in-out infinite; animation-delay: .8s; }

/* â”€â”€ Pulse dot â”€â”€ */
.pulse { animation: pulse-dot 2s ease-in-out infinite; }
/* -- Hero portada Facebook -- */
.hero-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Movil: la portada es landscape ~2.6:1, en portrait mostramos altura proporcional */
@media (max-width: 767px) {
  .hero-cover {
    height: auto;
    aspect-ratio: 820 / 312;
    min-height: 180px;
    max-height: 340px;
    margin-top: 90px;
  }
  .hero-cover-img {
    object-position: center center;
  }
}