
:root {
  --navy:       #152040;
  --navy-mid:   #1e3163;
  --navy-light: #2a4494;
  --blue:       #2563c4;
  --blue-mid:   #3b7de8;
  --blue-pale:  #dbeafe;
  --blue-ghost: #f0f5ff;
  --accent:     #e8a020;
  --accent-pale:#fff7e6;
  --bg:         #f3f6fb;
  --card:       #ffffff;
  --text:       #111827;
  --text-mid:   #374151;
  --text-muted: #6b7280;
  --border:     rgba(37,99,196,0.13);
  --wa:         #25D366;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--bg);color:var(--text);
  overflow-x:hidden;font-size:16px;line-height:1.65;
}

nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 6%;height:66px;
  background:rgba(255,255,255,0.07);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,0.22);
}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;}
.nav-logo img{height:38px;width:38px;object-fit:contain;border-radius:50%;}
.nav-logo-text{font-size:1.15rem;font-weight:800;color:#ffffff;letter-spacing:-.3px;}
.nav-logo-text span{color:#60a5fa;}
.nav-wa{
  display:flex;align-items:center;gap:8px;
  background:var(--wa);color:#fff;text-decoration:none;
  padding:9px 20px;border-radius:50px;font-weight:700;font-size:.88rem;
  transition:transform .2s,box-shadow .2s;
}
.nav-wa:hover{transform:scale(1.04);box-shadow:0 4px 18px rgba(37,211,102,.35);}
.nav-wa svg{width:17px;height:17px;fill:#fff;}

.hero{
  min-height:100vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:110px 6% 70px;
  background:linear-gradient(135deg, #0d1f45 0%, #1a3a7a 40%, #2a6dd9 75%, #5ba4f5 100%);
  position:relative;overflow:hidden;
}
.hero-rings{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;}
.hero-rings span{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.04);}
.hero-rings span:nth-child(1){width:500px;height:500px;}
.hero-rings span:nth-child(2){width:750px;height:750px;}
.hero-rings span:nth-child(3){width:1000px;height:1000px;}
.hero-content{position:relative;z-index:1;max-width:720px;}
.hero-logo{
  width:88px;height:88px;border-radius:50%;
  border:3px solid rgba(255,255,255,.15);
  object-fit:contain;margin:0 auto 28px;display:block;
  background:#1e3163;animation:fadeUp .7s ease both;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  border-radius:50px;padding:5px 15px;
  font-size:.82rem;font-weight:600;color:rgba(255,255,255,.8);
  margin-bottom:22px;animation:fadeUp .7s .1s ease both;
}
.hero-badge .dot{width:7px;height:7px;background:var(--wa);border-radius:50%;animation:pulse 2s infinite;}
h1{
  font-size:clamp(2rem,5.5vw,3.6rem);font-weight:800;line-height:1.1;
  color:#ffffff;margin-bottom:20px;letter-spacing:-1px;
  animation:fadeUp .7s .15s ease both;
}
h1 em{font-style:normal;color:#93c5fd;}
.hero-sub{
  font-size:clamp(.95rem,2.2vw,1.15rem);color:rgba(255,255,255,.65);
  line-height:1.75;margin-bottom:36px;font-weight:500;
  animation:fadeUp .7s .2s ease both;
}
.hero-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;animation:fadeUp .7s .25s ease both;}
.btn-wa,.btn-wa-lg,.btn-outline{
  display:inline-flex;align-items:center;text-decoration:none;
  border-radius:50px;font-weight:800;transition:transform .2s,box-shadow .2s;
}
.btn-wa{
  gap:9px;background:#ffffff;color:var(--navy);
  padding:15px 30px;font-size:.97rem;
  box-shadow:0 6px 28px rgba(0,0,0,.18);
}
.btn-wa:hover{transform:translateY(-3px);box-shadow:0 10px 36px rgba(0,0,0,.25);}
.btn-wa svg{width:20px;height:20px;fill:var(--wa);}
.btn-outline{
  gap:8px;background:transparent;color:#fff;font-weight:700;
  padding:15px 30px;font-size:.97rem;
  border:1.5px solid rgba(255,255,255,.28);transition:background .2s,border-color .2s;
}
.btn-outline:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.5);}

.trust{
  background:var(--navy-mid);padding:18px 6%;
  display:flex;align-items:center;justify-content:center;gap:36px;flex-wrap:wrap;
}
.trust-item{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;color:rgba(255,255,255,.75);}
.trust-item .dt{width:6px;height:6px;background:#60a5fa;border-radius:50%;flex-shrink:0;}

section{padding:80px 6%;}
.section-center{text-align:center;margin-bottom:52px;}
.chip{
  display:inline-block;background:var(--blue-ghost);color:var(--blue);
  font-size:.75rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;
  padding:5px 14px;border-radius:50px;border:1px solid var(--blue-pale);margin-bottom:14px;
}
h2{
  font-size:clamp(1.7rem,3.8vw,2.6rem);font-weight:800;color:var(--navy);
  line-height:1.15;letter-spacing:-.5px;margin-bottom:14px;
}
.sdesc{font-size:1.05rem;color:var(--text-muted);max-width:520px;margin:0 auto;line-height:1.75;font-weight:500;}

.s-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px;max-width:1120px;margin:0 auto;}
.s-card{
  background:var(--card);border-radius:20px;padding:32px 26px;
  border:1px solid var(--border);transition:transform .25s,box-shadow .25s,border-color .25s;
  position:relative;overflow:hidden;
}
.s-card:hover{transform:translateY(-5px);box-shadow:0 18px 44px rgba(37,99,196,.1);border-color:var(--blue-mid);}
.s-card::after{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--blue),var(--accent));opacity:0;transition:opacity .25s;
}
.s-card:hover::after{opacity:1;}
.s-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:18px;}
.ib{background:var(--blue-ghost);}
.in{background:#eef0f8;}
.ia{background:var(--accent-pale);}
.s-card h3{font-size:1.1rem;font-weight:800;color:var(--navy);margin-bottom:9px;letter-spacing:-.2px;}
.s-card p{font-size:.95rem;color:var(--text-muted);line-height:1.7;}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;}
.tag{background:var(--bg);color:var(--navy-mid);font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:50px;border:1px solid var(--border);}
.s-dark{background:var(--navy);border-color:var(--navy);}
.s-dark h3{color:#fff;}
.s-dark p{color:rgba(255,255,255,.6);}
.s-dark::after{display:none;}
.s-dark:hover{border-color:var(--blue-mid);}

.como{background:#fff;}
.como-inner{max-width:960px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;}
.pasos-list{display:flex;flex-direction:column;}
.paso{display:flex;gap:20px;align-items:flex-start;padding:22px 0;border-bottom:1px solid rgba(37,99,196,.08);}
.paso:last-child{border-bottom:none;}
.pnum{
  flex-shrink:0;width:44px;height:44px;background:var(--blue-ghost);color:var(--blue);
  border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:1rem;font-weight:800;border:1.5px solid var(--blue-pale);
}
.paso h3{font-size:1rem;font-weight:800;color:var(--navy);margin-bottom:4px;}
.paso p{font-size:.9rem;color:var(--text-muted);line-height:1.65;}

.r-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;max-width:980px;margin:0 auto;}
.razon{background:var(--card);border-radius:18px;padding:26px 22px;text-align:center;border:1px solid var(--border);transition:transform .2s;}
.razon:hover{transform:translateY(-4px);}
.r-icon{width:52px;height:52px;border-radius:14px;background:var(--blue-ghost);display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin:0 auto 14px;}
.razon h3{font-size:.97rem;font-weight:800;color:var(--navy);margin-bottom:7px;}
.razon p{font-size:.88rem;color:var(--text-muted);line-height:1.65;}

.cta{background:var(--navy);text-align:center;padding:88px 6%;position:relative;overflow:hidden;}
.cta::before{
  content:'';position:absolute;width:600px;height:600px;border-radius:50%;
  background:radial-gradient(circle,rgba(59,125,232,.25) 0%,transparent 70%);
  top:-200px;left:50%;transform:translateX(-50%);
}
.cta>*{position:relative;z-index:1;}
.cta h2{color:#fff;margin-bottom:14px;}
.cta p{color:rgba(255,255,255,.6);font-size:1.05rem;font-weight:500;max-width:480px;margin:0 auto 36px;line-height:1.75;}
.btn-wa-lg{
  gap:12px;background:var(--wa);color:#fff;
  padding:17px 38px;font-size:1.05rem;
  box-shadow:0 8px 32px rgba(37,211,102,.4);
}
.btn-wa-lg:hover{transform:translateY(-4px);box-shadow:0 14px 42px rgba(37,211,102,.5);}
.btn-wa-lg svg{width:24px;height:24px;fill:#fff;}

footer{background:#0d1628;text-align:center;padding:26px 6%;font-size:.83rem;color:rgba(255,255,255,.35);}
footer strong{color:rgba(255,255,255,.7);}

.wa-float{
  position:fixed;bottom:26px;right:26px;z-index:999;
  background:var(--wa);color:#fff;width:58px;height:58px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;text-decoration:none;
  box-shadow:0 6px 24px rgba(37,211,102,.5);transition:transform .2s;
  animation:popIn .5s 1s ease both;
}
.wa-float:hover{transform:scale(1.1);}
.wa-float svg{width:28px;height:28px;fill:#fff;}
.wa-float .tip{
  position:absolute;right:66px;background:var(--navy);color:#fff;
  font-size:.78rem;font-weight:700;padding:5px 11px;border-radius:8px;
  white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;
}
.wa-float:hover .tip{opacity:1;}

@keyframes fadeUp{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.4)}}
@keyframes popIn{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}

@media(max-width:700px){
  .como-inner{grid-template-columns:1fr;gap:0;}
  .nav-wa span{display:none;}
  .trust{gap:16px;}
}


/* ── WILL-CHANGE para elementos con hover/animación ── */
.s-card,
.razon,
.btn-wa,
.btn-wa-lg,
.btn-outline,
.wa-float,
.nav-wa {
  will-change: transform;
}

/* ── RESPETO A PREFERENCIA DE MOVIMIENTO REDUCIDO ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════
   WITTY CHAT WIDGET
   ════════════════════════════════════ */
#witty-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Caja del chat ── */
#witty-box {
  position: absolute;
  bottom: 86px;
  left: 0;
  width: 340px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 60px rgba(21,32,64,.25);
  border: 1.5px solid rgba(42,109,217,.18);
  flex-direction: column;
  overflow: hidden;
  display: none;
}
#witty-box.open { display: flex; }

/* ── Header ── */
#witty-header {
  background: linear-gradient(135deg, #0d1f45 0%, #2a6dd9 100%);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#witty-header h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 3px;
}
#witty-header p {
  color: rgba(255,255,255,.65);
  font-size: 11px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
#witty-header p::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: #25D366;
  border-radius: 50%;
}

/* ── Mensajes ── */
#witty-msgs {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  background: #f3f6fb;
}
.witty-msg { display: flex; gap: 8px; align-items: flex-end; }
.witty-msg.bot { flex-direction: row; }
.witty-msg.user { flex-direction: row-reverse; }
.witty-av { width: 30px; height: 30px; flex-shrink: 0; }
.witty-bub {
  max-width: 230px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.witty-msg.bot .witty-bub {
  background: #fff;
  color: #152040;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.witty-msg.user .witty-bub {
  background: #2a6dd9;
  color: #fff;
  border-bottom-right-radius: 3px;
}

/* ── Opciones ── */
#witty-opts {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-top: 1px solid rgba(21,32,64,.08);
}
.witty-opt {
  background: #f0f5ff;
  border: 1.5px solid #dbeafe;
  color: #1a3a7a;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 50px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  will-change: transform;
}
.witty-opt:hover { background: #dbeafe; }

/* ── Botón WhatsApp final ── */
.witty-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 13px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: opacity .15s;
}
.witty-wa-btn:hover { opacity: .9; }

/* ── Botón flotante ── */
#witty-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1f45, #2a6dd9);
  border: 3px solid rgba(255,255,255,.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(21,32,64,.4);
  transition: transform .2s;
  position: relative;
  will-change: transform;
}
#witty-btn:hover { transform: scale(1.08); }

/* ── Pulso notificación ── */
#witty-pulse {
  position: absolute;
  top: -3px; right: -3px;
  width: 18px; height: 18px;
  background: #e8a020;
  border-radius: 50%;
  border: 2.5px solid #fff;
  animation: witty-pulse 2s infinite;
}
@keyframes witty-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ── Callout burbuja ── */
#witty-say {
  position: absolute;
  bottom: 82px;
  left: 82px;
  background: #152040;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  animation: witty-fadein .4s 2.5s ease forwards;
  pointer-events: none;
}
#witty-say::before {
  content: '';
  position: absolute;
  left: -6px; bottom: 9px;
  border: 6px solid transparent;
  border-right-color: #152040;
}
@keyframes witty-fadein { to { opacity: 1; } }

/* ── Typing indicator ── */
.witty-typing { display: flex; gap: 5px; padding: 10px 14px; }
.witty-typing span {
  width: 7px; height: 7px;
  background: #b0b8cc;
  border-radius: 50%;
  animation: witty-bounce .9s infinite;
}
.witty-typing span:nth-child(2) { animation-delay: .15s; }
.witty-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes witty-bounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── Witty input libre ── */
.witty-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.witty-input {
  flex: 1;
  border: 1.5px solid #dbeafe;
  border-radius: 50px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #152040;
  outline: none;
  background: #f0f5ff;
}
.witty-input:focus { border-color: #2a6dd9; background: #fff; }
.witty-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #2a6dd9;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.witty-send-btn:hover { background: #1a3a7a; }
