/* ═══════════════════════════════════════════
   SICÜ BI — Global CSS
   Compartido por todas las páginas del sitio
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:         #f5f6f8;
  --bg-white:   #ffffff;
  --bg-dark:    #09090f;
  --text:       #0d0d14;
  --text-mid:   #52526a;
  --text-soft:  #9898b0;
  --primary:    #3d58f2;
  --primary-lt: rgba(61,88,242,0.07);
  --primary-md: rgba(61,88,242,0.15);
  --lime:       #c5f222;
  --border:     rgba(13,13,20,0.07);
  --border-md:  rgba(13,13,20,0.12);
  --shadow-sm:  0 1px 8px rgba(13,13,20,0.05), 0 2px 16px rgba(13,13,20,0.04);
  --shadow-md:  0 4px 24px rgba(13,13,20,0.07), 0 8px 48px rgba(13,13,20,0.05);
  --shadow-lg:  0 16px 64px rgba(13,13,20,0.12), 0 4px 16px rgba(13,13,20,0.06);
  --r:          20px;
  --r-sm:       12px;
  --r-pill:     999px;
  --nav-h:      72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-sm {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── TIPOGRAFÍA ── */
.t-display {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.t-h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.t-h2 em { font-style: normal; color: var(--primary); }
.t-h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.t-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.011em;
  color: var(--text-mid);
}
.t-body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.008em;
  color: var(--text-mid);
}
em { font-style: normal; color: var(--primary); }

/* ── TAG PILL ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-lt);
  border: 1px solid var(--primary-md);
  padding: 5px 13px;
  border-radius: var(--r-pill);
}
.tag-dot { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ── BOTONES ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; background: var(--primary);
  padding: 14px 28px; border-radius: var(--r-pill);
  box-shadow: 0 2px 20px rgba(61,88,242,0.3);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(61,88,242,0.38); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text); background: transparent;
  padding: 13px 28px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border-md);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--text); background: rgba(13,13,20,0.03); transform: translateY(-2px); }

.btn-lime {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--bg-dark); background: var(--lime);
  padding: 14px 32px; border-radius: var(--r-pill);
  box-shadow: 0 2px 24px rgba(197,242,34,0.3);
  transition: opacity 0.2s, transform 0.2s;
  border: none;
}
.btn-lime:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.06);
  padding: 13px 28px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; transform: translateY(-2px); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  background: rgba(245,246,248,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
nav .container { height: 100%; }   /* ← ESTA línea sola fix el problema */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 0;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 36px; width: auto; }

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: block;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-mid);
  padding: 7px 13px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
/* HOVER — fondo sutil, texto más oscuro */
.nav-links a:hover {
  color: var(--text);
  background: rgba(13,13,20,0.055);
}
/* ACTIVE — fondo azul suave, texto azul */
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-lt);
  font-weight: 600;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost-nav {
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  padding: 8px 16px; border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.btn-ghost-nav:hover { color: var(--text); background: rgba(13,13,20,0.055); }
.btn-nav {
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--primary); padding: 8px 20px;
  border-radius: var(--r-pill); border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 199;
  flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px; font-weight: 500; color: var(--text-mid);
  padding: 12px 8px; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--text); background: var(--bg); }
.nav-mobile .btn-nav { width: 100%; text-align: center; margin-top: 8px; padding: 12px; }

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.055);
  padding: 52px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo-wrap img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1) opacity(0.7);
}
.footer-tagline {
  font-size: 12px; color: rgba(255,255,255,0.28);
  line-height: 1.6; max-width: 280px;
}
.footer-social {
  display: flex; gap: 10px; margin-top: 4px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.footer-links {
  display: flex; flex-direction: column;
  gap: 10px; list-style: none;
  padding-top: 4px;
}
.footer-links a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }
.footer-contact {
  display: flex; flex-direction: column;
  gap: 12px; padding-top: 4px;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-contact-item:hover { color: rgba(255,255,255,0.75); }
.footer-contact-item svg { flex-shrink: 0; opacity: 0.6; }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom { text-align: left; }
}

/* ── WHATSAPP ── */
.wa-wrap {
  position: fixed; bottom: 30px; right: 30px;
  z-index: 1000;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s;
}
.wa-wrap.show { opacity: 1; pointer-events: auto; }
.wa-btn {
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  cursor: pointer; border: none; position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-btn:hover { transform: scale(1.07); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.wa-btn::before {
  content: ''; position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2.2s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 0; }
}
.wa-modal {
  width: 350px; background: white;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.22);
  display: none; flex-direction: column;
  transform-origin: bottom right;
}
.wa-modal.open {
  display: flex;
  animation: waIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes waIn { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
.wa-header {
  background: #075E54; padding: 14px 18px;
  display: flex; align-items: center; gap: 11px;
}
.wa-av {
  width: 40px; height: 40px; background: #128C7E;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: white;
  font-family: 'Inter', sans-serif; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.wa-hname { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: white; }
.wa-hstatus {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 4px;
}
.wa-hstatus::before {
  content: ''; width: 7px; height: 7px;
  background: #25D366; border-radius: 50%;
}
.wa-close-btn {
  margin-left: auto; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; border: none;
  font-family: inherit; transition: background 0.2s;
}
.wa-close-btn:hover { background: rgba(255,255,255,0.2); }
.wa-body {
  flex: 1; padding: 18px 14px;
  background: #E5DDD5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8bdb6' fill-opacity='0.15'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 160px; display: flex; flex-direction: column; gap: 8px;
}
.wa-msg {
  align-self: flex-start; background: white;
  border-radius: 4px 12px 12px 12px;
  padding: 10px 13px; max-width: 88%;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 400; color: #111;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  line-height: 1.55;
}
.wa-msg-time { font-size: 10px; color: #999; text-align: right; margin-top: 3px; }
.wa-input-row {
  background: #F0F0F0; padding: 9px 12px;
  display: flex; align-items: center; gap: 9px;
  border-top: 1px solid #ddd;
}
.wa-input {
  flex: 1; background: white; border: none;
  border-radius: 22px; padding: 9px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #111; outline: none;
}
.wa-input::placeholder { color: #aaa; }
.wa-send {
  width: 40px; height: 40px; background: #128C7E;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; border: none;
  flex-shrink: 0; transition: background 0.2s;
}
.wa-send:hover { background: #075E54; }
.wa-footer-note {
  background: #F0F0F0; padding: 7px 14px; text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 500; color: #aaa;
}

/* ── SECTION CENTER ── */
.section-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-center .tag { margin-bottom: 20px; }

/* ── CARD BASE ── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ── CTA DARK ── */
.cta-dark {
  padding: 140px 0;
  background: var(--bg-dark);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-dark::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(61,88,242,0.13) 0%, transparent 60%);
  pointer-events: none;
}
.cta-dark-inner { position: relative; z-index: 2; }
.cta-dark-title {
  font-size: clamp(32px,4.5vw,58px);
  font-weight: 900; letter-spacing: -0.045em; line-height: 1.06;
  color: #eef0f8; margin-bottom: 16px;
}
.cta-dark-title em { font-style: normal; color: var(--lime); }
.cta-dark-sub {
  font-size: 17px; font-weight: 400; letter-spacing: -0.012em;
  color: rgba(238,240,248,0.45); line-height: 1.72;
  max-width: 460px; margin: 0 auto 44px;
}
.cta-dark-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 940px) {
  .nav-links, .nav-actions .btn-ghost-nav { display: none; }
  .nav-hamburger { display: flex; }
  .two-col, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container, .container-sm { padding: 0 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .wa-wrap { bottom: 18px; right: 18px; }
  .wa-modal { width: 310px; }
}
