/* ===================================================================
   Portfolio de Inversión — Modern landing stylesheet
   =================================================================== */

:root{
  --navy: #0a0e27;
  --navy-2: #121735;
  --navy-3: #1a2050;
  --ink: #0b0f2b;
  --muted: #5b6178;
  --muted-light: #8b90a8;
  --line: #e7e9f3;
  --bg: #f6f7fb;
  --white: #ffffff;
  --green: #16a34a;
  --green-soft: #e9f9ef;
  --c1: #f8a949;
  --c2: #ec5bab;
  --c3: #9b5cf0;
  --c4: #4d6ef5;
  --grad: linear-gradient(120deg, var(--c1) 0%, var(--c2) 38%, var(--c3) 70%, var(--c4) 100%);
  --shadow-sm: 0 2px 10px rgba(11,15,43,.06);
  --shadow-md: 0 12px 30px rgba(11,15,43,.10);
  --shadow-lg: 0 24px 60px rgba(11,15,43,.18);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; line-height:1.15; font-weight:800; letter-spacing:-.02em; }
p{ margin:0; }
.container{ width:100%; max-width: var(--container); margin:0 auto; padding:0 24px; }
section{ position:relative; }
.sr-only{ position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* -------- buttons -------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:.95rem; padding: 14px 28px; border-radius: 100px;
  border: none; cursor:pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn-primary{ background: var(--grad); color:#fff; box-shadow: 0 10px 24px rgba(155,92,240,.30); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 32px rgba(155,92,240,.38); }
.btn-ghost{ background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.28); }
.btn-ghost:hover{ background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-outline{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-outline:hover{ border-color: var(--c3); color: var(--c3); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 20px; font-size:.85rem; }

/* -------- header -------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:100;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-header.is-scrolled{ background: rgba(10,14,39,.86); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 12px 0; }
.brand{ display:flex; align-items:center; }
.brand img{ height:38px; width:auto; }
.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav a{ color: rgba(255,255,255,.88); font-weight:600; font-size:.92rem; transition: color .2s ease; position:relative; }
.main-nav a:hover{ color:#fff; }
.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-switch{ display:flex; align-items:center; gap:6px; font-size:.82rem; font-weight:700; color: rgba(255,255,255,.75); }
.lang-switch a{ padding:4px 8px; border-radius:6px; color: rgba(255,255,255,.6); }
.lang-switch a.is-active{ color:#fff; background: rgba(255,255,255,.12); }
.link-login{ color: rgba(255,255,255,.88); font-weight:700; font-size:.9rem; }
.nav-toggle{
  display:none; width:42px; height:42px; border-radius:10px; border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); position:relative; cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:10px; right:10px; height:2px; background:#fff; transition: all .25s ease;
}
.nav-toggle span{ top:50%; transform:translateY(-50%); }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle.is-open span{ background:transparent; }
.nav-toggle.is-open span::before{ top:0; transform:rotate(45deg); }
.nav-toggle.is-open span::after{ top:0; transform:rotate(-45deg); }

/* -------- hero -------- */
.hero{
  background: radial-gradient(1100px 600px at 85% -10%, rgba(155,92,240,.35), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(77,110,245,.28), transparent 55%),
              var(--navy);
  padding: 170px 0 120px;
  color:#fff;
  overflow:hidden;
}
.hero .blob{ position:absolute; border-radius:50%; filter: blur(70px); opacity:.5; pointer-events:none; }
.hero .blob-1{ width:420px; height:420px; background: var(--c2); top:-120px; right:-80px; }
.hero .blob-2{ width:360px; height:360px; background: var(--c4); bottom:-140px; left:-100px; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap:60px; align-items:center; position:relative; z-index:2; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:100px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color: rgba(255,255,255,.85);
  margin-bottom:22px;
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background: var(--grad); }
.hero h1{ font-size: clamp(2.2rem, 4vw, 3.4rem); color:#fff; margin-bottom:22px; }
.hero h1 em{ font-style:normal; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{ font-size:1.12rem; color: rgba(255,255,255,.72); max-width:520px; margin-bottom:34px; line-height:1.65; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:22px; }
.hero-trust span{ display:flex; align-items:center; gap:8px; font-size:.86rem; font-weight:600; color: rgba(255,255,255,.75); }
.hero-trust svg{ width:18px; height:18px; color: var(--c1); flex:none; }

.hero-visual{ position:relative; display:flex; justify-content:center; }
.phone-wrap{ position:relative; max-width:320px; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.phone-wrap img{ animation: float 6s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-16px);} }
.float-card{
  position:absolute; background:#fff; color: var(--ink); border-radius:14px; padding:12px 16px;
  box-shadow: var(--shadow-lg); display:flex; align-items:center; gap:10px; font-weight:700; font-size:.82rem;
}
.float-card .ic{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: var(--green-soft); color: var(--green); flex:none; }
.float-card.card-up{ top:8%; left:-8%; animation: float 6s ease-in-out infinite; animation-delay:.4s; }
.float-card.card-down{ bottom:10%; right:-10%; animation: float 6s ease-in-out infinite; animation-delay:1s; }
.float-card small{ display:block; color: var(--muted); font-weight:600; font-size:.72rem; }

/* -------- stats strip -------- */
.stats-strip{ margin-top:-56px; position:relative; z-index:5; }
.stats-card{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px 20px; display:grid; grid-template-columns: repeat(4,1fr);
}
.stats-card .stat{ text-align:center; padding: 10px 14px; border-right:1px solid var(--line); }
.stats-card .stat:last-child{ border-right:none; }
.stats-card .stat b{ display:block; font-size:1.7rem; font-weight:800; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stats-card .stat span{ font-size:.82rem; color: var(--muted); font-weight:600; }

/* -------- section heading -------- */
.eyebrow-dark{ color: var(--c3); background: #f3edff; border-color: #e7d9ff; }
.section-head{ max-width:640px; margin: 0 auto 56px; text-align:center; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 14px 0 14px; color: var(--ink); }
.section-head p{ color: var(--muted); font-size:1.05rem; line-height:1.6; }
.section-head.align-left{ margin: 0 0 40px; text-align:left; }

.section{ padding: 110px 0; }
.bg-soft{ background: var(--bg); }

/* -------- benefits -------- */
.benefits-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.benefit-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit-ic{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background: var(--grad); color:#fff; margin-bottom:20px;
}
.benefit-ic svg{ width:26px; height:26px; }
.benefit-card h3{ font-size:1.15rem; margin-bottom:10px; }
.benefit-card p{ color: var(--muted); font-size:.95rem; line-height:1.6; }

/* -------- feature split -------- */
.feature{ display:grid; grid-template-columns: 1fr 1fr; gap:70px; align-items:center; }
.feature.reverse .feature-media{ order:2; }
.feature.reverse .feature-text{ order:1; }
.feature-text h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 18px; }
.feature-text > p{ color: var(--muted); font-size:1.05rem; line-height:1.65; margin-bottom:26px; }
.check-list{ display:flex; flex-direction:column; gap:18px; margin-bottom: 30px; }
.check-list li{ display:flex; gap:14px; align-items:flex-start; }
.check-list .ic{
  width:28px; height:28px; border-radius:8px; background: var(--green-soft); color: var(--green);
  display:flex; align-items:center; justify-content:center; flex:none; margin-top:2px;
}
.check-list .ic svg{ width:16px; height:16px; }
.check-list span{ color: var(--ink); font-size:.98rem; line-height:1.6; }
.check-list b{ display:block; font-weight:700; margin-bottom:2px; }

.feature-media{ position:relative; }
.browser-frame{
  background:#fff; border-radius:16px; box-shadow: var(--shadow-lg); overflow:hidden; border:1px solid var(--line);
}
.browser-bar{ display:flex; align-items:center; gap:7px; padding:12px 16px; background:#f1f2f8; border-bottom:1px solid var(--line); }
.browser-bar span{ width:10px; height:10px; border-radius:50%; background:#d7d9e6; }
.browser-bar span:nth-child(1){ background:#ef6a6a; }
.browser-bar span:nth-child(2){ background:#f3b951; }
.browser-bar span:nth-child(3){ background:#5fcf80; }
.browser-frame img{ display:block; width:100%; }
.feature-badge{
  position:absolute; bottom:-18px; left:-18px; background: var(--ink); color:#fff; padding:14px 18px;
  border-radius: 14px; box-shadow: var(--shadow-lg); font-weight:700; font-size:.85rem; display:flex; gap:10px; align-items:center;
}
.feature.reverse .feature-badge{ left:auto; right:-18px; }
.feature-badge .pct{ background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; font-size:1.1rem; }

/* -------- gallery -------- */
.gallery-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.gallery-item{
  position:relative; border-radius: var(--radius-sm); overflow:hidden; border:1px solid var(--line);
  background:#fff; box-shadow: var(--shadow-sm); aspect-ratio: 4/3;
}
.gallery-item{ cursor: zoom-in; }
.gallery-item img{ width:100%; height:100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.gallery-item:hover img{ transform: scale(1.05); }
.gallery-item figcaption{
  position:absolute; left:0; right:0; bottom:0; padding: 10px 14px; font-size:.78rem; font-weight:700;
  background: linear-gradient(to top, rgba(10,14,39,.78), transparent); color:#fff; opacity:0; transition: opacity .25s ease;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.gallery-item:hover figcaption{ opacity:1; }
.gallery-item .zoom-ic{ width:26px; height:26px; border-radius:50%; background: rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; flex:none; }
.gallery-item .zoom-ic svg{ width:14px; height:14px; }

/* -------- lightbox -------- */
.lightbox{
  position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center;
  background: rgba(8,10,28,.92); padding: 60px 24px; backdrop-filter: blur(4px);
}
.lightbox.is-open{ display:flex; animation: lb-fade .2s ease; }
@keyframes lb-fade{ from{ opacity:0; } to{ opacity:1; } }
.lightbox-fig{ max-width: min(1100px, 92vw); max-height: 86vh; text-align:center; }
.lightbox-fig img{
  max-width: 100%; max-height: 78vh; width:auto; height:auto; margin:0 auto; border-radius:12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); background:#fff;
}
.lightbox-fig figcaption{ color:#fff; font-weight:700; margin-top:18px; font-size:.95rem; }
.lightbox-close{
  position:absolute; top:22px; right:26px; width:44px; height:44px; border-radius:50%;
  background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover{ background: rgba(255,255,255,.2); transform: rotate(90deg); }
.lightbox-close svg{ width:18px; height:18px; }
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:50%;
  background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition: background .2s ease;
}
.lightbox-nav:hover{ background: rgba(255,255,255,.2); }
.lightbox-nav svg{ width:20px; height:20px; }
.lightbox-prev{ left:18px; }
.lightbox-next{ right:18px; }
@media (max-width:640px){
  .lightbox-nav{ width:40px; height:40px; }
  .lightbox-prev{ left:6px; }
  .lightbox-next{ right:6px; }
}

/* -------- CTA band -------- */
.cta-band{
  background: var(--navy); background-image: radial-gradient(900px 400px at 15% 0%, rgba(236,91,171,.35), transparent 60%), radial-gradient(900px 400px at 85% 100%, rgba(77,110,245,.3), transparent 60%);
  border-radius: 28px; padding: 64px 48px; text-align:center; color:#fff;
  max-width: var(--container); margin: 0 auto;
}
.cta-band h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); color:#fff; margin-bottom:14px; }
.cta-band p{ color: rgba(255,255,255,.72); max-width:520px; margin: 0 auto 30px; font-size:1.05rem; }
.cta-actions{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }

/* -------- footer -------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.72); padding: 80px 0 0; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom: 56px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand img{ height:36px; margin-bottom:16px; }
.footer-brand p{ font-size:.92rem; line-height:1.6; max-width:280px; margin-bottom:20px; }
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:38px; height:38px; border-radius:10px; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, transform .2s ease; color:#fff;
}
.social-row a:hover{ background: var(--grad); transform: translateY(-3px); }
.social-row svg{ width:16px; height:16px; }
.footer-title{ color:#fff; font-size:.92rem; font-weight:700; margin-bottom:18px; text-transform:uppercase; letter-spacing:.04em; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:.92rem; transition: color .2s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding: 24px 0; font-size:.85rem; }
.footer-bottom .lang-switch a{ color: rgba(255,255,255,.55); }
.footer-bottom .lang-switch a.is-active{ color:#fff; }

/* -------- responsive -------- */
@media (max-width: 991px){
  .main-nav{ display:none; }
  .nav-toggle{ display:block; }
  .site-header.is-open .main-nav{
    display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0; margin:0 16px;
    background: rgba(10,14,39,.98); border-radius:16px; padding:20px; gap:8px; box-shadow: var(--shadow-lg);
  }
  .site-header.is-open .main-nav a{ padding:10px 6px; border-bottom:1px solid rgba(255,255,255,.08); }
  .header-actions .btn-sm{ display:none; }
  .hero-grid{ grid-template-columns: 1fr; text-align:center; }
  .hero p.lead{ margin-left:auto; margin-right:auto; }
  .hero-cta, .hero-trust{ justify-content:center; }
  .hero-visual{ margin-top:40px; }
  .stats-card{ grid-template-columns: repeat(2,1fr); gap:20px 0; }
  .stats-card .stat:nth-child(2){ border-right:none; }
  .stats-card .stat{ border-bottom:1px solid var(--line); padding-bottom:20px; }
  .stats-card .stat:nth-child(3), .stats-card .stat:nth-child(4){ border-bottom:none; }
  .benefits-grid{ grid-template-columns: repeat(2,1fr); }
  .feature{ grid-template-columns: 1fr; gap:40px; }
  .feature.reverse .feature-media, .feature.reverse .feature-text{ order:0; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cta-band{ border-radius:20px; padding: 48px 24px; }
}
@media (max-width: 580px){
  .section{ padding: 80px 0; }
  .hero{ padding: 140px 0 90px; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap:32px; }
  .float-card{ display:none; }
  .stats-card{ grid-template-columns: 1fr; }
  .stats-card .stat{ border-bottom:1px solid var(--line); }
  .stats-card .stat:last-child{ border-bottom:none; }
}
