/* ============================================================
   Aduba Digital — Shared Stylesheet (Salesforce Design System)
   © 2026 Aduba Digital SLU. Todos los derechos reservados.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --sf-navy:        #032D60;
  --sf-navy-mid:    #021d5b;
  --sf-blue:        #2138CA;
  --sf-blue-mid:    #1B5296;
  --sf-blue-light:  #EAF5FE;
  --sf-blue-pale:   #F4F9FE;
  --sf-purple:      #6B3FA0;
  --sf-purple-lt:   #F5F0FA;
  --sf-white:       #FFFFFF;
  --sf-grey-text:   #444444;
  --sf-grey-mid:    #717171;
  --sf-grey-light:  #F3F3F3;
  --sf-border:      #DDEAF6;
  --sf-border-mid:  #BDD3E8;
  --sf-green:       #2E844A;
  --sf-shadow-sm:   0 2px 8px rgba(3,45,96,.08);
  --sf-shadow-md:   0 4px 20px rgba(3,45,96,.10);
  --sf-shadow-lg:   0 8px 40px rgba(3,45,96,.14);
  --sf-r:           8px;
  --sf-r-lg:        16px;
  --font:           'Sora', system-ui, sans-serif;
  --font-serif:     'Source Serif 4', Georgia, serif;
  --nav-h:          64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  color: var(--sf-grey-text);
  background: var(--sf-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: var(--sf-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* LANG VISIBILITY */
[data-lang]        { display: none }
[data-lang].active { display: block }
span[data-lang]        { display: none }
span[data-lang].active { display: inline }

/* ── NAVIGATION ── */
.sf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--sf-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  box-shadow: var(--sf-shadow-sm);
  transition: box-shadow .2s;
}
.sf-nav.scrolled { box-shadow: 0 4px 20px rgba(3,45,96,.12); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

/* Cloud SVG logo mark */
.nav-cloud {
  width: 44px; height: 30px; flex-shrink: 0;
  display: block;
}
.nav-cloud svg {
  width: 44px; height: 30px;
  display: block;
}

.nav-brand {
  font-size: 17px; font-weight: 700; color: var(--sf-navy);
  letter-spacing: -.02em;
}
.nav-brand span { color: var(--sf-blue); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--sf-grey-text);
  padding: 8px 14px; border-radius: 4px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--sf-blue-light); color: var(--sf-navy);
  text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 8px; }

.lang-sw {
  display: flex; gap: 1px;
  background: var(--sf-grey-light); padding: 3px; border-radius: 6px;
}
.lb {
  padding: 4px 9px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--sf-grey-mid); background: none; border: none;
  cursor: pointer; border-radius: 4px; font-family: var(--font);
  transition: all .12s;
}
.lb.active, .lb:hover { background: var(--sf-navy); color: var(--sf-white); }

.btn-demo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--sf-navy);
  padding: 9px 16px; border: 1px solid var(--sf-border-mid);
  border-radius: var(--sf-r); background: var(--sf-white);
  cursor: pointer; text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.btn-demo svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-demo:hover {
  background: var(--sf-blue-light); border-color: var(--sf-blue);
  text-decoration: none; color: var(--sf-navy);
}

.btn-trial {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--sf-white);
  padding: 9px 20px; background: var(--sf-blue);
  border: none; border-radius: var(--sf-r);
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-trial:hover {
  background: var(--sf-navy); transform: translateY(-1px);
  text-decoration: none; color: var(--sf-white);
}

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--sf-navy); border-radius: 2px;
  transition: all .2s;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sf-blue); color: var(--sf-white);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  padding: 13px 28px; border-radius: var(--sf-r);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--sf-navy); transform: translateY(-1px);
  box-shadow: var(--sf-shadow-md); text-decoration: none; color: var(--sf-white);
}
.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--sf-blue);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  padding: 12px 26px; border-radius: var(--sf-r);
  border: 2px solid var(--sf-blue);
  cursor: pointer; text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--sf-blue-light); text-decoration: none;
}

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--sf-blue);
  text-decoration: none; transition: gap .15s;
  background: none; border: none; cursor: pointer; font-family: var(--font);
}
.btn-text:hover { gap: 10px; text-decoration: none; }
.btn-text svg { width: 14px; height: 14px; transition: transform .15s; }
.btn-text:hover svg { transform: translateX(3px); }

/* ── DEMO MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(3,45,96,.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s;
}
.modal-overlay:not([hidden]) { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--sf-white);
  border-radius: var(--sf-r-lg);
  width: 100%; max-width: 860px;
  box-shadow: 0 24px 64px rgba(3,45,96,.3);
  overflow: hidden;
  transform: scale(.96); transition: transform .25s;
}
.modal-overlay:not([hidden]) .modal-box { transform: scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(3,45,96,.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 1;
}
.modal-close:hover { background: rgba(3,45,96,.15); }
.modal-close svg { width: 18px; height: 18px; color: var(--sf-navy); }

.modal-header {
  padding: 28px 32px 20px; position: relative;
  border-bottom: 1px solid var(--sf-border);
}
.modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sf-blue);
  background: var(--sf-blue-light);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--font-serif); font-size: clamp(18px,2.5vw,26px);
  font-weight: 700; color: var(--sf-navy); line-height: 1.2;
}

.modal-video-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: var(--sf-navy);
}
.modal-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}
/* Local video fallback */
.modal-video-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}

.modal-footer {
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--sf-border);
  background: var(--sf-blue-pale);
  gap: 12px; flex-wrap: wrap;
}
.modal-footer p {
  font-size: 13px; color: var(--sf-grey-mid);
}

/* ── FOOTER ── */
.sf-footer {
  background: var(--sf-navy);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-main {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding: 56px 48px 40px;
}
.footer-brand {
  font-size: 20px; font-weight: 700; color: var(--sf-white);
  margin-bottom: 12px; letter-spacing: -.02em;
}
.footer-brand span { color: #7BB8F5; }
.footer-tagline {
  font-size: 13px; color: rgba(255,255,255,.4);
  line-height: 1.65; max-width: 260px; margin-bottom: 20px;
}
.footer-contact a {
  display: block; font-size: 12px; color: rgba(255,255,255,.5);
  text-decoration: none; margin-bottom: 6px; transition: color .15s;
}
.footer-contact a:hover { color: var(--sf-white); text-decoration: none; }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: var(--sf-white); text-decoration: none; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding: 18px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }
.footer-copy a { color: rgba(255,255,255,.35); text-decoration: underline; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px; color: rgba(255,255,255,.25); text-decoration: none; transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ── FORM SHARED STYLES ── */
.flabel {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--sf-navy); margin-bottom: 6px; letter-spacing: .02em;
}
.finput {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--sf-border-mid);
  border-radius: var(--sf-r); font-size: 14px; font-family: var(--font);
  color: var(--sf-grey-text); background: var(--sf-white);
  outline: none; transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.finput:focus {
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px rgba(33,56,202,.12);
}
.finput.err { border-color: #C23934; }
.finput.err:focus { box-shadow: 0 0 0 3px rgba(194,57,52,.12); }
.ferr { font-size: 12px; color: #C23934; margin-top: 5px; font-weight: 500; }
.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frow { margin-top: 16px; }
.terms-row { display: flex; align-items: flex-start; gap: 10px; }
/* Campo señuelo antispam: fuera del flujo visual y del lector de pantalla.
   Va aquí y no en un style inline para que los bots no lo detecten. */
.f-extra-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.fbtn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sf-blue); color: var(--sf-white);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  padding: 13px 28px; border-radius: var(--sf-r); border: none;
  cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap;
}
.fbtn-primary:hover { background: var(--sf-navy); transform: translateY(-1px); }

/* ================================================================
   RESPONSIVE SYSTEM
   Breakpoints:
     Tablet:  ≤ 1024px
     Mobile:  ≤ 767px
     Small:   ≤ 480px
================================================================ */

/* Mobile-only CTA (hidden by default, shown in burger menu at ≤480px) */
.nav-cta-mobile { display: none; }

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {

  /* Nav */
  .sf-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--sf-white); border-bottom: 1px solid var(--sf-border);
    padding: 16px; box-shadow: var(--sf-shadow-md); z-index: 499;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block; padding: 13px 16px;
    border-radius: var(--sf-r); font-size: 15px;
  }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; padding: 48px 32px 36px; gap: 40px; }
  .footer-bottom { padding: 18px 32px; }

  /* Forms */
  .fgrid2 { grid-template-columns: 1fr; gap: 12px; }

  /* Modal */
  .modal-box { margin: 16px; }
  .modal-header { padding: 22px 24px 16px; }
  .modal-footer { padding: 16px 24px; }
}

/* ── MOBILE (≤ 767px) ── */
@media (max-width: 767px) {

  :root { --nav-h: 60px; }

  /* Nav */
  .sf-nav { padding: 0 16px; height: var(--nav-h); }
  .nav-brand { font-size: 15px; }
  .lang-sw { display: none; }
  .btn-demo { display: none; }
  .btn-trial { font-size: 12px; padding: 8px 14px; }
  .nav-right { gap: 6px; }

  /* Nav burger animation */
  .nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.active span:nth-child(2) { opacity: 0; }
  .nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; padding: 40px 20px 28px; gap: 32px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; text-align: center; gap: 8px; }
  .footer-tagline { max-width: 100%; }

  /* Modal */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal-box { border-radius: var(--sf-r-lg) var(--sf-r-lg) 0 0; max-height: 92vh; overflow-y: auto; }
  .modal-header { padding: 20px 20px 14px; }
  .modal-title { font-size: 18px; }
  .modal-footer { flex-direction: column; gap: 10px; }
  .modal-footer .btn-primary { width: 100%; justify-content: center; }

  /* Buttons */
  .btn-primary, .btn-outline { font-size: 13px; padding: 12px 22px; }
  .btn-hero-primary, .btn-hero-secondary { font-size: 13px; padding: 12px 20px; }

  /* Forms */
  .contact-form-box { padding: 24px 18px; }
  .fbtn-primary { width: 100%; justify-content: center; font-size: 14px; padding: 14px; }
  .finput { font-size: 16px; } /* prevents iOS zoom on focus */
  select.finput { font-size: 16px; }
  textarea.finput { font-size: 16px; }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .btn-trial { display: none; }
  .nav-cta-mobile {
    display: flex; width: 100%; margin-top: 8px;
    background: var(--sf-blue); color: #fff;
    font-size: 14px; font-weight: 600; font-family: var(--font);
    padding: 13px 16px; border-radius: var(--sf-r);
    text-decoration: none; justify-content: center;
  }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
