
:root{ --primary:#0B1B33; --accent:#D4AF37; --light:#F5F7FA; --ink:#0f172a; --muted:#64748b; }
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);
  background:radial-gradient(1400px 700px at 10% -10%, #102540 0%, #0b1f39 40%, #081a33 60%, #07182f 100%);}
a{text-decoration:none;color:inherit}
.container{width:min(1120px,92%);margin-inline:auto}
.header{position:sticky;top:0;background:rgba(255,255,255,.85);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid #e2e8f0;z-index:20}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0;flex-wrap:wrap;row-gap:.4rem}
.brand{display:flex;align-items:center;gap:.75rem}
.brand img{height:36px;width:auto;border-radius:.5rem}
.brand-text{display:flex;flex-direction:column;line-height:1}
.word{font-weight:800;color:var(--primary)}
.tagline{font-size:.82rem;color:#64748b;margin-top:2px}
.nav{display:flex;gap:.75rem;overflow-x:auto;white-space:nowrap;padding:.25rem .25rem;border-radius:.75rem}
.nav::-webkit-scrollbar{display:none}
.nav a{display:inline-block;padding:.55rem .8rem;border-radius:.8rem;color:#0b1b33;font-weight:600}
.nav a:hover{background:#eef2f7}
.cta{background:var(--primary);color:#fff;padding:.55rem .9rem;border-radius:.9rem;border:2px solid var(--primary);font-weight:700}
.cta:hover{background:#fff;color:var(--primary)}

.hero{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));}
.hero-inner{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:start;padding:1.25rem 0 1rem}
.card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.2);box-shadow:0 16px 40px rgba(0,0,0,.25);border-radius:20px;padding:1.25rem;color:#e5e7eb}
.card.invert{background:#fff;border-color:#e5e7eb;color:#0b1b33}
.badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:#e5e7eb;border-radius:999px;padding:.35rem .75rem;margin-bottom:.75rem}
.badge span{width:.55rem;height:.55rem;border-radius:50%;background:var(--accent);display:inline-block}
.hero h1{font-size:clamp(1.8rem,4.8vw,3rem);line-height:1.1;color:#fff;margin:.25rem 0}
.hero p{font-size:1.05rem;color:#e2e8f0}
.inline-note{font-size:.92rem;color:#cbd5e1}

.rate-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:1rem}
.rate-card h3{color:var(--primary);margin:.25rem 0 .5rem}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;min-width:540px}
.table th,.table td{padding:.75rem;border-bottom:1px solid #eef2f7;text-align:left}
.table th{background:#f8fafc;font-weight:700;color:#0b1b33}
.table tr:last-child td{border-bottom:none}
.source{font-size:.85rem;color:#64748b;margin-top:.35rem}

.features{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
.feature{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden}
.feature .head{height:130px;display:grid;place-items:center;position:relative}
.feature .head svg{width:52px;height:52px}
.head.fx-service{background:linear-gradient(135deg,#dbeafe,#f0f9ff)}
.head.fx-security{background:linear-gradient(135deg,#dcfce7,#eafff3)}
.head.fx-divicoins{background:linear-gradient(135deg,#fff7cc,#fff0b3)}
.head.fx-support{background:linear-gradient(135deg,#ede9fe,#e0e7ff)}
.feature .body{padding:.9rem}
.feature .body h4{margin:.1rem 0 .25rem;color:#0B1B33;display:block}
.feature .body p{margin:0;color:#475569}
@keyframes spinCoin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.spin{animation:spinCoin 8s linear infinite}

.divizito{margin-top:1rem}
.divizito .wrap{display:grid;grid-template-columns:1fr 1.2fr;gap:1rem;align-items:center}
.divizito img{max-width:260px;width:100%;height:auto;display:block;margin-inline:auto;border-radius:16px;background:#fff}
.divizito h2{color:#0b1b33;margin:.25rem 0}
.divizito p{color:#334155;margin:.5rem 0 0}

.footer{padding:1.25rem 0;margin:1rem 0 2rem;border-top:1px solid rgba(255,255,255,.12)}
.footer .row{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;text-align:center;color:#cbd5e1}
.soc{display:flex;gap:.5rem;justify-content:center}
.soc a{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:999px;background:rgba(255,255,255,.12)}
.soc a:hover{background:rgba(255,255,255,.22)}

#whatsapp-btn{position:fixed;right:18px;bottom:18px;width:58px;height:58px;border-radius:50%;background:#25D366;box-shadow:0 10px 20px rgba(0,0,0,.25);display:grid;place-items:center;z-index:99;transition:transform .2s ease}
#whatsapp-btn:hover{transform:scale(1.05)}
#whatsapp-btn img{width:28px;height:28px}

@media (max-width:980px){
  .hero-inner{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:start;padding:1.25rem 0 1rem}
  .rate-card{padding:.85rem}
  .feature .head{height:120px}
  .features{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
}
@media (max-width:720px){
  .brand img{height:32px}
  .tagline{font-size:.78rem}
  #whatsapp-btn{width:54px;height:54px;right:14px;bottom:14px}
  #whatsapp-btn img{width:26px;height:26px}
}
@media (max-width:560px){
  .features{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
  .feature .head{height:110px}
}
@media (max-width:480px){
  .feature .head{height:100px}
  .features{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
  .footer{padding:1rem 0}
}

@media (min-width: 992px){
  .hero-inner{grid-template-columns:1.05fr .95fr;gap:2rem;align-items:center;padding:2.25rem 0 1.5rem}
}

@media (min-width: 700px){ .features{grid-template-columns:repeat(2,1fr)} }
@media (min-width: 1120px){ .features{grid-template-columns:repeat(4,1fr)} }

/* Mobile menu */
.menu-toggle{display:none;position:relative;width:42px;height:38px;border:0;background:transparent;cursor:pointer;margin-left:auto}
.menu-toggle span{position:absolute;left:8px;right:8px;height:3px;background:#0b1b33;border-radius:2px;transition:transform .25s ease,opacity .25s ease}
.menu-toggle span:nth-child(1){top:10px}
.menu-toggle span:nth-child(2){top:17px}
.menu-toggle span:nth-child(3){top:24px}
.menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width: 768px){
  .menu-toggle{display:block}
  .header-inner{align-items:center}
  #site-nav{display:none;position:absolute;left:4%;right:4%;top:64px;background:#ffffff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 20px 40px rgba(0,0,0,.18);padding:.5rem}
  #site-nav.open{display:flex;flex-direction:column;gap:.25rem}
  #site-nav a{padding:.9rem 1rem;border-radius:.75rem}
}

/* --- v10 mobile layout & contrast fixes --- */
/* Prevent overlap with floating chat button */
body{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px));}

/* Make links in white cards use brand color and be readable */
.card.invert a{color:var(--primary);font-weight:700}
.card.invert a:hover{text-decoration:underline}

/* Header polish */
.header{background:rgba(255,255,255,.92);border-bottom:1px solid #e5e7eb}
.brand .word{letter-spacing:.2px}
.tagline{color:#475569}

/* Mobile: hide the CTA to avoid the dark pill and keep the menu clean */
@media (max-width: 768px){
  .cta{display:none}
  .header-inner{padding:.55rem 0}
  .brand img{height:30px}
}

/* Nav scroll polish */
.nav{scroll-snap-type:x mandatory}
.nav a{scroll-snap-align:center}

/* Cards spacing on mobile */
@media (max-width: 768px){
  .card{padding:1rem}
  .rate-card{padding:.8rem}
}

/* SUNAT table small typography for narrow screens */
@media (max-width: 420px){
  .table th,.table td{padding:.6rem .55rem}
  .rate-card h3{font-size:1rem}
}

/* Fix icon color/contrast */
.soc a svg{fill:#ffffff}

/* --- v11 CTA fix --- */
.cta{
  background:#fff;
  color:var(--primary);
  padding:.55rem .9rem;
  border-radius:.9rem;
  border:2px solid var(--primary);
  font-weight:700;
  transition:all .25s ease;
}
.cta:hover{
  background:var(--primary);
  color:#fff;
}

/* === v12 Layout polish === */
.container{width:min(1080px,94%);margin-inline:auto}

body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px));}

.header{position:sticky;top:0;left:0;right:0;width:100%;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(140%) blur(10px);}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0;gap:.75rem}

.menu-toggle{display:none;position:relative;width:42px;height:38px;border:0;background:transparent;cursor:pointer;margin-left:auto}
.menu-toggle span{position:absolute;left:8px;right:8px;height:3px;background:#0b1b33;border-radius:2px;transition:transform .25s ease,opacity .25s ease}
.menu-toggle span:nth-child(1){top:10px}
.menu-toggle span:nth-child(2){top:17px}
.menu-toggle span:nth-child(3){top:24px}
.menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

#site-nav{display:flex;gap:.75rem}
@media (max-width: 820px){
  /* turn nav into drawer */
  .menu-toggle{display:block}
  #site-nav{display:none;position:fixed;left:0;right:0;top:64px;background:#ffffff;border-top:1px solid #e5e7eb;box-shadow:0 16px 40px rgba(0,0,0,.18);padding:.5rem 1rem;z-index:60}
  #site-nav.open{display:flex;flex-direction:column;gap:.25rem}
  #site-nav a{padding:1rem;border-radius:.8rem}
  .cta{display:block;margin-top:.25rem}
}

.hero-inner{display:grid;grid-template-columns:1fr;gap:1rem;align-items:start;padding:1rem 0 .75rem}
@media (min-width: 992px){
  .hero-inner{grid-template-columns:1.05fr .95fr;gap:2rem;align-items:center;padding:2rem 0 1.5rem}
}

.card{border-radius:22px}
.card.invert{box-shadow:0 6px 24px rgba(2,6,23,.14)}

.rate-card{margin-top:.25rem}

.features{display:grid;grid-template-columns:1fr;gap:.9rem;margin-top:.9rem}
.feature .head{height:100px}
@media (min-width: 700px){ .features{grid-template-columns:repeat(2,1fr)} }
@media (min-width: 1120px){ .features{grid-template-columns:repeat(4,1fr)} }
@media (max-width: 480px){ .feature .head{height:92px} }

/* Fix link contrast inside white cards */
.card.invert a{color:var(--primary);font-weight:700}
.card.invert a:hover{text-decoration:underline}

/* WhatsApp floating button should not cover content edges */
#whatsapp-btn{right:16px;bottom:16px}

/* === v13: Full-bleed header bar + mobile drawer polish === */
.header{position:sticky;top:0;z-index:70;overflow:visible;background:transparent}
.header::before{
  content:"";position:absolute;inset:0;background:#ffffff;box-shadow:0 2px 0 rgba(226,232,240,.9), 0 10px 30px rgba(2,6,23,.06);
  z-index:0;
}
.header .container{position:relative;z-index:1;width:100%;max-width:none;padding-inline:4%}
.brand{gap:.6rem}
.brand img{height:28px}
.tagline{font-size:.8rem}

/* Ensure nav drawer covers full width under header */
@media (max-width: 820px){
  #site-nav{left:0;right:0;top:56px;border-top:1px solid #e5e7eb;padding:.5rem 4%}
  .header-inner{padding:.5rem 0}
  .cta{display:block}
}

/* Prevent that white card touches edges on mobile */
.container{width:min(1080px,94%);margin-inline:auto}

/* Feature tiles spacing and coin centering */
.feature .head{height:96px}
@media (max-width:480px){ .feature .head{height:90px} }

/* Divizito card spacing at bottom */
.divizito .wrap{gap:.9rem}
footer.footer{margin-top:1.2rem}

/* Make sure contact links are always readable */
.card.invert a{color:#0B1B33!important;font-weight:800}
.card.invert a:hover{text-decoration:underline}

/* WhatsApp button */
#whatsapp-btn{right:14px;bottom:14px}
body{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));}
