/* ===========================
   Variables y reset
=========================== */
:root{
  --bg:#f5f9fc;
  --bg-2:#eef5fb;
  --text:#0e2233;
  --muted:#5b7284;
  --brand:#0b3d63;
  --brand-2:#0f5690;
  --accent:#0ea5e9;
  --card:#ffffff;

  --radius:18px;
  --shadow:0 10px 30px rgba(2,26,44,.08);
  --shadow-lg:0 18px 45px rgba(7,42,68,.12);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Inter,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,var(--bg),var(--bg-2));
  scroll-behavior:smooth;
}

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

a{
  color:var(--brand-2);
  text-decoration:none;
}

p{
  margin:0 0 12px;
  line-height:1.6;
  color:var(--muted);
}

.small{
  font-size:13px;
}

/* ===========================
   Layout general
=========================== */
.container{
  max-width:1100px;
  margin-inline:auto;
  padding:0 24px;
}

/* ===========================
   Linked In
=========================== */
.libutton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px;
  text-align: center;
  outline: none;
  text-decoration: none !important;
  color: #ffffff !important;
  width: 200px;
  height: 32px;
  border-radius: 16px;
  background-color: #0A66C2;
  font-family: "SF Pro Text", Helvetica, sans-serif;
}

/* Secciones: más aire entre bloques */
main > section{
  padding:72px 0;
}

main > section + section{
  margin-top:32px;
}

/* ===========================
   Header y navegación
=========================== */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(245,249,252,0.95);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(15,86,144,0.06);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

/* menú principal */
.menu{
  display:flex;
  align-items:center;
  gap:20px;
  font-size:14px;
}

.menu a{
  color:var(--muted);
  font-weight:500;
}

.menu a:hover{
  color:var(--brand-2);
}

/* ===========================
   Botones
=========================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 16px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  transition:.15s ease transform,.15s ease box-shadow,.15s ease background,.15s ease border-color;
  text-decoration:none;
  color:var(--brand);
  background:#f7fbff;
  border-color:#d8e4ef;
}

.btn.prim{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color:transparent;
  box-shadow:var(--shadow-lg);
}

.btn.inv{
  background:#fff;
  color:#0b2a3f;
  border-color:#fff;
  font-weight:700;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(10,45,75,.16);
}

/* ===========================
   Hero
=========================== */
.hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:32px;
  align-items:center;
  padding:96px 0 40px; /* más aire arriba y separación con lo siguiente */
}

.hero h1{
  font-size:42px;
  letter-spacing:-0.3px;
  margin:0 0 14px;
}

.lead{
  font-size:17px;
  max-width:56ch;
}

/* pill de arriba */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#f8fbff;
  border:1px solid #e2ecfa;
  border-radius:999px;
  padding:8px 14px;
  font-size:12px;
  color:var(--brand-2);
  margin-bottom:16px;
}

/* tarjetita derecha */
.illus{
  border-radius:var(--radius);
  background:radial-gradient(120% 120% at 0% 0%,#eaf5ff 0,#f7fbff 60%,#fff 100%);
  box-shadow:var(--shadow-lg);
  padding:22px 20px 18px;
}

.illus .small{
  color:var(--muted);
}



/* ===========================
   Trust bar
=========================== */
.trust{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  padding:8px 0;
}

.trust span{
  background:#e7f3ff;
  border:1px solid #d7e8fb;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--brand-2);
}

/* ===========================
   Títulos de sección
=========================== */
main > section.container > h2{
  margin:0 0 10px;
  font-size:26px;
  letter-spacing:-0.2px;
}

main > section.container > p.lead{
  margin-top:4px;
  margin-bottom:18px;
}

/* ===========================
   Grid / cards
=========================== */
.grid{
  display:grid;
  gap:22px;
}

.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.cols-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.card{
  background:var(--card);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px 18px;
  text-decoration:none;
  color:var(--text);
}

.card.service{
  padding:20px 20px 18px;
}

.card.service h3{
  margin:4px 0 6px;
  font-size:18px;
}

.card.service p.small{
  font-size:14px;
}

/* mini hover en cards clicables (links) */
a.card.service:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lg);
}

/* ===========================
   Sección "Cómo trabajo"
=========================== */
section.container:nth-of-type(3) .grid{
  margin-top:12px;
}

section.container:nth-of-type(3) .card.service .small:first-child{
  color:var(--brand-2);
  font-weight:700;
}

/* ===========================
   CTA final
=========================== */
.cta{
  background:linear-gradient(135deg,#063559,#0f5690);
  color:#e8f2fb;
  padding:56px 0;
  margin-top:52px;
  text-align:center;
}

.cta h2{
  font-size:26px;
  margin:0 0 12px;
}

.cta p{
  color:#cfe1f1;
}

/* ===========================
   Footer
=========================== */
footer{
  background:#041622;
  color:#cfe0ee;
  padding:22px 0 26px;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  font-size:13px;
}

footer .logo img{
  height:40px;
}

footer p.small{
  color:#cfe0ee;
}

footer strong{
  font-size:14px;
}

footer a{
  color:#cfe0ee;
}

/* ===========================
   Responsivo
=========================== */
@media (max-width:960px){
  .hero{
    grid-template-columns:1fr;
    padding-top:80px;
  }

  .hero .illus{
    order:-1;
  }

  .menu{
    gap:12px;
    font-size:13px;
  }

  .cols-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cols-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:720px){
  main > section{
    padding:56px 0;
  }

  .hero{
    padding:72px 0 32px;
  }

  .hero h1{
    font-size:32px;
  }

  .cols-3,
  .cols-4{
    grid-template-columns:1fr;
  }

  .footer-grid{
    flex-direction:column;
    align-items:flex-start;
  }

  .menu{
    display:none; /* si luego quieres menú hamburguesa ya lo montas aquí */
  }
}
