/*
  FinLav - Sitio estático
  Fondo blanco • Diseño creativo y profesional
*/

:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);

  /* Tonos inspirados en el logotipo */
  --blue: #0ea5e9;
  --blue-2: #1d4ed8;
  --green: #84cc16;
  --green-2: #22c55e;

  --shadow: 0 10px 30px rgba(2, 6, 23, .10);
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, .08);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1140px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.35;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

/* Fondo decorativo */
.bg-shapes{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.shape{
  position: absolute;
  filter: blur(0px);
  opacity: .35;
}
.shape--1{
  width: 520px;
  height: 520px;
  right: -220px;
  top: -240px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.55), rgba(34,197,94,.25) 60%, transparent 70%);
}
.shape--2{
  width: 420px;
  height: 420px;
  left: -220px;
  bottom: -240px;
  background: radial-gradient(circle at 70% 30%, rgba(132,204,22,.45), rgba(29,78,216,.22) 60%, transparent 70%);
}
.shape--3{
  width: 260px;
  height: 260px;
  left: 12%;
  top: 20%;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.22), transparent 70%);
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header--scrolled{
  box-shadow: 0 10px 25px rgba(2, 6, 23, .08);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__logo{
  height: 46px;
  width: auto;
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav__link{
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(15,23,42,.86);
  transition: background .2s ease, transform .2s ease;
}
.nav__link:hover{
  background: rgba(14,165,233,.10);
  transform: translateY(-1px);
}

.nav__toggle{
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px;
  box-shadow: var(--shadow-soft);
}
.nav__bar{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(15,23,42,.85);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero{
  padding: clamp(38px, 5vw, 72px) 0 28px;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.eyebrow{
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  color: rgba(15,23,42,.72);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
}
.hero__title{
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero__subtitle{
  margin: 0;
  color: rgba(15,23,42,.78);
  font-size: 16px;
}
.dot{
  display: inline-block;
  margin: 0 6px;
  opacity: .6;
}
.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}
.pill{
  font-size: 13px;
  font-weight: 600;
  color: rgba(15,23,42,.82);
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14,165,233,.12), rgba(132,204,22,.08));
  border: 1px solid rgba(15,23,42,.08);
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn{
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  color: #0b1220;
  background: linear-gradient(90deg, rgba(14,165,233,.95), rgba(132,204,22,.92));
  box-shadow: 0 16px 30px rgba(14,165,233,.20);
}
.btn--primary:hover{ box-shadow: 0 18px 38px rgba(14,165,233,.24); transform: translateY(-1px); }

.btn--ghost{
  background: rgba(255,255,255,.9);
  border-color: rgba(15,23,42,.12);
  color: rgba(15,23,42,.86);
  box-shadow: var(--shadow-soft);
}
.btn--ghost:hover{ transform: translateY(-1px); }

.mini-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.mini-card{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}
.mini-card__label{
  display: block;
  font-size: 12px;
  color: rgba(15,23,42,.60);
  margin-bottom: 4px;
}
.mini-card__value{
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.86);
}

.hero__visual{
  display: grid;
  place-items: center;
}
.mascot-frame{
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 25%, rgba(14,165,233,.20), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(132,204,22,.18), transparent 55%),
    #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
}
.mascot{
  width: 100%;
  height: auto;
}

/* Secciones */
.section{
  padding: 54px 0;
}
.section--alt{
  padding: 54px 0;
  background: linear-gradient(180deg, rgba(14,165,233,.06), rgba(132,204,22,.04) 60%, rgba(255,255,255,1));
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.section__header{
  margin-bottom: 18px;
}
.section__title{
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.01em;
}
.section__subtitle{
  margin: 0;
  color: rgba(15,23,42,.70);
}

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.card::before{
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, rgba(14,165,233,.20), rgba(132,204,22,.20));
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover::before{ opacity: 1; }
.card > *{ position: relative; }

.card__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0b1220;
  background: linear-gradient(135deg, rgba(14,165,233,.30), rgba(132,204,22,.22));
  border: 1px solid rgba(15,23,42,.10);
  margin-bottom: 10px;
}
.card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.range{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.range__value{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.range__big{
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.range__sep{ opacity: .6; font-weight: 800; }
.range__bar{
  height: 12px;
  background: rgba(15,23,42,.08);
  border-radius: 999px;
  overflow: hidden;
}
.range__fill{
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(14,165,233,.85), rgba(132,204,22,.85));
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.feature{
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.feature__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(14,165,233,.28), rgba(132,204,22,.22));
  border: 1px solid rgba(15,23,42,.10);
}
.feature__text{
  font-weight: 800;
}

.cta-band{
  margin-top: 18px;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background:
    radial-gradient(circle at 20% 20%, rgba(14,165,233,.14), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(132,204,22,.12), transparent 50%),
    rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cta-band__title{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}
.cta-band__text{
  margin: 0;
  color: rgba(15,23,42,.72);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(15,23,42,.06);
  background: #fff;
}
.footer__grid{
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.footer__logo{ height: 40px; width: auto; }
.footer__text{ margin: 10px 0 0; color: rgba(15,23,42,.70); }
.footer__title{ margin: 0 0 10px; font-weight: 900; }
.footer__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(15,23,42,.76);
}
.footer__bottom{
  border-top: 1px solid rgba(15,23,42,.06);
  padding: 14px 0;
  color: rgba(15,23,42,.70);
}
.footer__bottom-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.backtop{
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
}
.backtop:hover{ background: rgba(14,165,233,.08); }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal.is-open{ display: flex; }
.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .50);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position: relative;
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.92);
  box-shadow: 0 30px 70px rgba(2, 6, 23, .32);
  padding: 18px 18px 16px;
}
.modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal__logo{
  height: 46px;
  width: auto;
  margin-bottom: 10px;
}
.modal__title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}
.modal__text{
  margin: 0 0 14px;
  color: rgba(15,23,42,.76);
}
.modal__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip{
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(14,165,233,.10), rgba(132,204,22,.08));
}

/* Animaciones de aparición */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__visual{ order: -1; }
  .mini-cards{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px){
  .nav__toggle{ display: inline-flex; }
  .nav{
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav.is-open{ display: flex; }
  .nav__link{ width: 100%; }
  .footer__grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; }
  .btn{ transition: none; }
  .nav__link{ transition: none; }
}
