/* =====================================================
   Rectium Labs – Main Stylesheet
   Página: index.html
   ===================================================== */

/* ── TOKENS ──────────────────────────────────────── */
:root {
  --dark:         #4A4F57;
  --navy:         #2F3946;
  --navy-mid:     #69717B;
  --blue:         #0B86D4;
  --blue-light:   #62C6FF;
  --silver:       #C2C8CF;
  --silver-light: #F4F7FA;
  --white:        #FFFFFF;
  --text-muted:   #D7DEE6;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #CDD3DA 0%, #B5BDC7 100%);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAVBAR ──────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(219, 227, 236, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(119, 124, 132, .18);
  box-shadow: 0 8px 24px rgba(5, 10, 18, .08);
  transition: padding .3s, background .3s;
}
#navbar.scrolled { padding: 12px 60px; background: rgba(232, 237, 243, .97); }

.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 225px;
  height: 64px;
  overflow: hidden;
  text-decoration: none;
}
.nav-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 210px;
  width: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 12px rgba(8, 18, 30, .12));
}
.nav-logo-text {
  font-size: 22px; font-weight: 800; letter-spacing: -.5px; display: none;
}
.nav-logo-text span { color: var(--blue-light); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--navy); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: .4px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

.btn-cliente {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white) !important;
  padding: 10px 26px; border-radius: 7px; font-weight: 700 !important;
  transition: transform .2s, box-shadow .2s !important;
}
.btn-cliente:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 134, 212, .4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1003;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ──────────────────────────── */
#navOverlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(14, 20, 28, .52);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
#navOverlay.open { opacity: 1; pointer-events: auto; }

/* ── HERO ─────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5C636C 0%, #6D7580 55%, #838C96 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 72%);
}
.hero-glow-1 { width: 700px; height: 700px; top: -220px; right: -180px; }
.hero-glow-2 { width: 420px; height: 420px; bottom: 60px; left: -120px; opacity: .7; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 130px 60px 80px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
  padding: 8px 18px; border-radius: 40px;
  font-size: 13px; color: var(--blue-light); margin-bottom: 26px; letter-spacing: .4px;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-light); animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(34px, 4.5vw, 62px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 22px;
}
.hero-title .hl {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 17px; color: rgba(255, 255, 255, .88);
  line-height: 1.75; margin-bottom: 38px; max-width: 490px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(135deg, rgba(93, 100, 109, .88), rgba(122, 131, 142, .78));
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; padding: 40px;
  backdrop-filter: blur(10px); box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-item {
  text-align: center; padding: 22px 12px;
  background: rgba(255, 255, 255, .08); border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.stat-num {
  font-size: 34px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 12px; color: var(--silver); margin-top: 4px; letter-spacing: .4px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white); padding: 15px 34px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all .3s; box-shadow: 0 4px 20px rgba(11, 134, 212, .28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(11, 134, 212, .30); }

.btn-outline {
  background: transparent; color: var(--silver-light); padding: 15px 34px;
  border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(210, 214, 219, .22); transition: all .3s;
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); background: rgba(255, 255, 255, .09); }

/* ── SECTION SHARED ──────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 100px 60px; }
.section-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 18px;
}
.section-sub { font-size: 16px; color: var(--silver); line-height: 1.75; max-width: 580px; }
.quote-block {
  max-width: 640px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  background: rgba(255, 255, 255, .10);
  color: var(--white);
  font-size: 15px;
  line-height: 1.7;
}
.band {
  background: linear-gradient(180deg, rgba(92, 99, 108, .98), rgba(112, 121, 132, .98));
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

/* ── ABOUT ───────────────────────────────────────── */
#about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-feats { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.feat-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feat-body p  { font-size: 14px; color: rgba(244, 247, 250, .86); line-height: 1.6; }

.about-visual { display: flex; align-items: center; justify-content: center; }
.logo-orbit { position: relative; display: flex; align-items: center; justify-content: center; }
.logo-orbit img {
  width: 480px;
  height: auto;
  filter: drop-shadow(0 0 44px rgba(255, 255, 255, .10));
  image-rendering: -webkit-optimize-contrast;
}
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .10); }
.orbit-ring-1 { width: 320px; height: 320px; animation: spin 20s linear infinite; }
.orbit-ring-2 { width: 400px; height: 400px; animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SERVICES ────────────────────────────────────── */
.srv-hdr { margin-bottom: 54px; }
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ── ECOSYSTEM FLOW IMAGE ───────────────────────── */
.flow-img-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.flow-img {
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(11, 30, 36, .18);
}

.srv-card {
  background: linear-gradient(135deg, rgba(112, 121, 132, .86), rgba(145, 154, 164, .68));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 34px;
  transition: all .3s; opacity: 0; transform: translateY(28px);
}
.srv-card.visible { opacity: 1; transform: none; }
.srv-card:hover {
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18), 0 0 30px rgba(255, 255, 255, .08);
}
.srv-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .24);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.srv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.srv-card p  { font-size: 14px; color: rgba(244, 247, 250, .84); line-height: 1.7; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.srv-tag {
  font-size: 11px; padding: 4px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  color: var(--blue-light); font-weight: 500;
}

/* ── PROCESS ─────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  margin-top: 56px; position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 35px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .30), transparent);
}
.step { text-align: center; opacity: 0; transform: translateY(28px); transition: all .5s; }
.step.visible { opacity: 1; transform: none; }
.step-num {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; box-shadow: 0 0 28px rgba(11, 134, 212, .20);
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.step p  { font-size: 14px; color: rgba(244, 247, 250, .84); line-height: 1.65; }

/* ── CONTACT ─────────────────────────────────────── */
.contact-hdr { margin-bottom: 52px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }

.cinfo h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.cinfo p  { font-size: 15px; color: rgba(244, 247, 250, .86); line-height: 1.7; margin-bottom: 30px; }
.cinfo-items { display: flex; flex-direction: column; gap: 18px; }
.cinfo-item { display: flex; gap: 14px; align-items: center; }
.cinfo-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; font-size: 18px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
}
.cinfo-item span { font-size: 14px; color: var(--white); }

.cform {
  background: rgba(120, 129, 140, .76); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: 40px;
}
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: 13px; font-weight: 600; color: var(--silver-light); margin-bottom: 7px; }
.fg input,
.fg textarea {
  width: 100%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px; padding: 13px 15px; color: var(--white); font-size: 14px;
  font-family: inherit; transition: border-color .2s;
}
.fg input:focus,
.fg textarea:focus { outline: none; border-color: var(--blue); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg input::placeholder,
.fg textarea::placeholder { color: var(--text-muted); }

.btn-send {
  width: 100%; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white); border: none; padding: 15px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s; font-family: inherit;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11, 134, 212, .24); }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, rgba(99, 107, 117, .98), rgba(79, 86, 95, .98));
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 60px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.fbrand img  {
  height: 130px;
  width: auto;
  margin-bottom: 6px;
  margin-left: -18px;
  transform: translateY(-6px);
}
.fbrand p    { font-size: 14px; color: rgba(244, 247, 250, .88); line-height: 1.7; }
.fcol h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--silver-light); margin-bottom: 18px;
}
.fcol ul   { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fcol ul a { font-size: 14px; color: rgba(244, 247, 250, .84); text-decoration: none; transition: color .2s; }
.fcol ul a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px; margin: 38px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: rgba(244, 247, 250, .72); }

/* ── RESPONSIVE ──────────────────────────────────── */

/* Large tablet / small desktop (≤ 1024px) */
@media (max-width: 1024px) {
  #navbar, #navbar.scrolled { padding-left: 32px; padding-right: 32px; }
  .srv-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet / large mobile (≤ 768px) */
@media (max-width: 768px) {
  #navbar         { padding: 14px 20px; }
  #navbar.scrolled{ padding: 10px 20px; }

  .nav-logo {
    width: 180px;
    height: 52px;
  }
  .nav-logo img {
    height: 168px;
    transform: translate(-50%, -50%);
  }

  .nav-links {
    display: flex; flex-direction: column; gap: 10px; list-style: none;
    position: fixed; top: 0; right: 0;
    width: min(74vw, 290px);
    height: 100dvh;
    background: rgba(233, 238, 244, .92);
    padding: max(88px, calc(env(safe-area-inset-top) + 72px)) 18px 24px;
    transform: translateX(100%); transition: transform .28s ease; z-index: 1002;
    visibility: hidden;
    overflow-y: auto;
    box-shadow: -20px 0 48px rgba(0, 0, 0, .28);
    border-left: 1px solid rgba(47, 57, 70, .16);
  }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  .nav-toggle {
    display: flex;
    position: fixed;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(47, 57, 70, .18);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle:hover {
    background: #FFFFFF;
    border-color: rgba(11, 134, 212, .36);
  }

  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--navy);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(47, 57, 70, .12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
  }
  .nav-links a:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(11, 134, 212, .96), rgba(98, 198, 255, .96));
    border-color: rgba(11, 134, 212, .65);
  }
  .nav-links a:active {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(10, 117, 184, .98), rgba(44, 170, 238, .98));
    border-color: rgba(10, 117, 184, .7);
    transform: scale(.985);
  }
  .nav-links a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 134, 212, .22);
    border-color: rgba(11, 134, 212, .45);
  }
  .nav-links .btn-cliente {
    margin-top: 8px;
    text-align: center;
    border: none;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
  }
  .nav-links .btn-cliente:hover {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #0A74B6, #1EA9F2) !important;
    box-shadow: 0 8px 22px rgba(11, 134, 212, .34);
  }
  .nav-links .btn-cliente:active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #095F96, #1491D6) !important;
  }

  .hero-content { grid-template-columns: 1fr; padding: 110px 22px 60px; }
  .hero-card    { display: none; }
  .wrap         { padding: 64px 22px; }

  #about .wrap { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  .srv-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .steps       { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  footer { padding: 40px 22px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .fbrand img { height: 80px; margin-left: 0; transform: none; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .nav-logo {
    width: 148px;
    height: 46px;
  }
  .nav-logo img {
    height: 150px;
    transform: translate(-50%, -50%);
  }

  .hero-title { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; }
  .btn-primary,
  .btn-outline { text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .cform { padding: 26px 18px; }
}
