:root{
  --bg-0:#071a33;
  --bg-1:#082043;
  --bg-2:#0a2b52;
  --card:#0f2b55;
  --card2:#0b244a;
  --text:#e9f1ff;
  --muted:#b9c8e6;
  --muted2:#93a9cf;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.16);
  --green:#46b04f;
  --green2:#2ea445;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 70% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 20% 50%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

main{
  padding-top: 90px;
}

.home-main{
  padding-top: 0;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(1200px, calc(100% - 64px));
  margin:0 auto;
}

/* ===== Top nav ===== */
.top{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  width:100%;
  background:rgba(4,16,34,.94);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.top__inner{
  height:76px;
  display:flex;
  align-items:center;
  gap:22px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.5px;
}
.top .brand{
  color:var(--text);
}
.brand__mark{
  width:44px;
  height:44px;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}
.brand__mark img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.brand__word{
  font-size:26px;
  color:var(--text);
}

.nav{
  margin-left:auto;
  margin-right:auto;
  display:flex;
  align-items:center;
  gap:26px;
  font-weight:600;
  color:rgba(233,241,255,.92);
}
.nav a{
  opacity:.92;
}
.nav a:hover{
  opacity:1;
  text-decoration:underline;
  text-underline-offset:6px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 18px;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.2px;
  border:1px solid transparent;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.btn--green{
  background:linear-gradient(180deg, var(--green), var(--green2));
  color:#eaffea;
  border-color: rgba(255,255,255,.08);
}
.btn--green:hover{ filter:brightness(1.02); transform:translateY(-1px); }
.btn--ghost{
  background:rgba(10,32,64,.35);
  border-color: rgba(255,255,255,.18);
  color:rgba(233,241,255,.95);
  box-shadow:none;
}
.btn--ghost:hover{ background:rgba(10,32,64,.5); }
.btn--pill{ border-radius:999px; height:42px; padding:0 18px; }
.btn--wide{ width:min(340px, 100%); height:48px; border-radius:12px; }

/* ===== Hero ===== */
.hero{
  position:relative;
  overflow:hidden;
  padding:62px 0 34px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.55;
  transform:scale(1.02);
}

.hero__veil{
  position:absolute;
  inset:0px;
  background:
    /* foscor lateral esquerra perquè el text sigui llegible */
    linear-gradient(90deg,
      rgba(6,24,52,.92) 0%,
      rgba(6,24,52,.80) 28%,
      rgba(6,24,52,.25) 52%,
      rgba(6,24,52,0) 70%,
      rgba(6,24,52,0) 100%),
    /* lleu foscor superior i inferior com a la captura */
    linear-gradient(180deg,
      rgba(6,24,52,.0) 0%,
      rgba(6,24,52,.0) 85%,
      rgba(6,24,52,1) 100%);
}

.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns: 1fr;
  align-items:center;
  gap:28px;
  min-height:520px;
  padding: 30px 0 20px;
}

.hero__left{
  max-width: 620px; /* controla l’amplada del text com al PNG */
}

.hero__title{
  margin:0 0 14px;
  font-size:44px;
  line-height:1.08;
  letter-spacing:-.6px;
}
.t-strong{ font-weight:800; }

.hero__lead{
  margin:0 0 22px;
  color:rgba(233,241,255,.82);
  font-size:15px;
  line-height:1.55;
}

.hero__badge{
  margin-top:12px;
  display:inline-block;
  padding:6px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.08);
  font-size:13px;
  letter-spacing:.5px;
  font-weight:700;
}

.hero__cta{
  display:flex;
  gap:14px;
  align-items:center;
}


/* ===== Cards (3) ===== */
.cards{
  padding:18px 0 26px;
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(255,255,255,.06), transparent 60%);
}

.cards__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}

.card{
  background:linear-gradient(180deg, rgba(14,44,86,.78), rgba(9,32,66,.84));
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:18px 18px 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  position:relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute;
  inset:-40px -20px auto -20px;
  height:120px;
  background: radial-gradient(240px 120px at 20% 20%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}
.card__icon{
  width:42px;
  height:42px;
  margin-bottom:10px;
  opacity:.95;
}
.card__icon img{
  width:42px; height:42px; object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.card h3{
  margin:0 0 6px;
  font-size:16px;
  font-weight:800;
}
.card p{
  margin:0;
  color:rgba(233,241,255,.72);
  font-size:13px;
  line-height:1.45;
}

/* ===== Features title + grid ===== */
.features{
  padding:18px 0 44px;
  background:
    linear-gradient(180deg, rgba(6,24,52,.0), rgba(6,24,52,.55));
}
.features__title{
  display:flex;
  align-items:center;
  gap:18px;
  margin:18px 0 18px;
}
.features__title h2{
  margin:0;
  font-size:22px;
  font-weight:800;
  letter-spacing:-.2px;
  white-space:nowrap;
}
.features__line{
  height:2px;
  flex:1;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  opacity:.9;
}

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

.feat{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(10,32,64,.55), rgba(10,32,64,.75));
  box-shadow: 0 16px 32px rgba(0,0,0,.28);
}
.feat__img{
  height:130px;
  background:rgba(255,255,255,.06);
}
.feat__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.95;
}
.feat__label{
  padding:12px 12px 12px;
  font-weight:800;
  font-size:13px;
  color:rgba(233,241,255,.92);
  background:linear-gradient(180deg, rgba(9,32,66,.35), rgba(9,32,66,.82));
  border-top:1px solid rgba(255,255,255,.08);
}

/* ===== Testimonial ===== */
.testi{
  position:relative;
  padding:28px 0 44px;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(6,24,52,.55), rgba(6,24,52,.75));
}
.testi__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.40;
  transform:scale(1.02);
}
.testi__veil{
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 340px at 70% 50%, rgba(6,24,52,.40), transparent 60%),
    linear-gradient(180deg, rgba(6,24,52,.70), rgba(6,24,52,.88));
}
.testi__inner{
  position:relative;
  min-height:210px;
  display:flex;
  align-items:flex-end;
  gap:24px;
}
.testi__person{
  width:min(360px, 42vw);
  height:auto;
  opacity:.95;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.45));
  transform:translateY(18px);
}

.testi__quote{
  margin-left:auto;
  width:min(560px, 100%);
  background:rgba(7,24,52,.38);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px 18px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.30);
  position:relative;
}
.testi__quote p{
  margin:0 0 10px;
  color:rgba(233,241,255,.86);
  font-size:14px;
  line-height:1.55;
}
.testi__meta{
  color:rgba(233,241,255,.72);
  font-size:13px;
  font-weight:600;
}
.testi__marks{
  position:absolute;
  left:14px;
  top:-8px;
  font-size:44px;
  line-height:1;
  color:rgba(112, 255, 160, .55);
  font-weight:900;
}
.testi__marks--end{
  left:auto;
  right:16px;
  top:auto;
  bottom:-16px;
}

/* ===== CTA ===== */
.cta{
  padding:44px 0 62px;
  background:
    radial-gradient(850px 360px at 50% 30%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(6,24,52,.55), rgba(6,24,52,.95));
}
.cta__inner{
  text-align:center;
}
.cta h2{
  margin:0 0 8px;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.2px;
}
.cta p{
  margin:0 0 18px;
  color:rgba(233,241,255,.78);
  font-size:13px;
}

/* ===== Footer ===== */
.footer{
  border-top:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(3,14,30,.92), rgba(3,14,30,.98));
  padding:18px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:rgba(233,241,255,.78);
  font-size:12px;
}
.footer__center{
  display:flex;
  gap:18px;
  opacity:.9;
}
.footer__center a:hover{ text-decoration:underline; text-underline-offset:4px; }
.footer__right{
  display:flex;
  align-items:center;
  gap:10px;
}
.social{
  width:20px;
  height:20px;
  opacity:.9;
}
.social img{ width:20px; height:20px; object-fit:contain; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .nav{ display:none; }
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__right{ justify-content:flex-start; height:auto; }
  .hero__title{ font-size:38px; }
  .cards__grid{ grid-template-columns: 1fr; }
  .features__grid{ grid-template-columns: 1fr 1fr; }
  .testi__inner{ flex-direction:column; align-items:flex-start; }
  .testi__person{ transform:none; }
  .testi__quote{ margin-left:0; }
}

@media (max-width: 520px){
  .container{ width:calc(100% - 28px); }
  .hero{ padding-top:44px; }
  .hero__title{ font-size:30px; }
  .features__title h2{ white-space:normal; text-align:center; }
  .features__title{ gap:10px; }
  .features__grid{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction:column; align-items:flex-start; }
}


/* Active state for subpages */
.nav a.is-active{
  opacity:1;
  text-decoration:underline;
  text-underline-offset:6px;
}


/* ===== Subpages ===== */
.page-hero{
  padding:44px 0 26px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 420px at 25% 10%, rgba(255,255,255,.08), transparent 62%),
    linear-gradient(180deg, rgba(6,24,52,.75), rgba(6,24,52,.95));
}
.page-hero h1{
  margin:0 0 8px;
  font-size:34px;
  letter-spacing:-.02em;
}
.page-hero p{
  margin:0;
  color:rgba(233,241,255,.75);
  max-width:70ch;
}
.page{
  padding:34px 0 60px;
}
.page__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:start;
}
.page__card{
  background:rgba(7,24,52,.55);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.30);
  backdrop-filter: blur(6px);
}
.page__card h3{
  margin:0 0 10px;
}
.page__list{
  margin:0;
  padding-left:18px;
  color:rgba(233,241,255,.78);
  display:grid;
  gap:8px;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.badge{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(11,18,32,.42);
  padding:8px 10px;
  border-radius:999px;
  color:rgba(233,241,255,.78);
  font-size:12px;
  font-weight:700;
}
.faq{
  display:grid;
  gap:10px;
}
details.faq__item{
  background:rgba(7,24,52,.55);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px 14px;
}
details.faq__item summary{
  cursor:pointer;
  font-weight:800;
  color:rgba(233,241,255,.92);
}
details.faq__item p{
  margin:10px 0 0;
  color:rgba(233,241,255,.78);
  line-height:1.55;
}
.logo-wall{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.logo-wall .logo{
  height:58px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(11,18,32,.35);
  display:grid;
  place-items:center;
  color:rgba(233,241,255,.55);
  font-weight:800;
  letter-spacing:.04em;
}
@media (max-width: 980px){
  .page__grid{ grid-template-columns: 1fr; }
  .logo-wall{ grid-template-columns: repeat(2, 1fr); }
}


/* ===== Contacto ===== */
.contact{
  padding:56px 0 70px;
  background:
    radial-gradient(900px 380px at 20% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 380px at 80% 30%, rgba(255,255,255,.05), transparent 55%),
    linear-gradient(180deg, rgba(6,24,52,.75), rgba(6,24,52,.95));
  border-top:1px solid rgba(255,255,255,.08);
}

.contact__inner{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap:26px;
  align-items:start;
}

.contact__copy h2{
  margin:0 0 10px;
  font-size:22px;
  font-weight:900;
  color:rgba(233,241,255,.95);
}

.contact__copy p{
  margin:0 0 14px;
  color:rgba(233,241,255,.78);
  max-width:46ch;
}

.contact__bullets{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
  color:rgba(233,241,255,.78);
}

.contact__bullets li{
  position:relative;
  padding-left:18px;
}

.contact__bullets li::before{
  content:"";
  position:absolute;
  left:0;
  top:9px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(112,255,160,.85);
  box-shadow:0 0 0 3px rgba(112,255,160,.12);
}

/* Card del formulario */
.form{
  background:rgba(7,24,52,.55);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.30);
  backdrop-filter: blur(6px);
}

.form__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.field{
  display:grid;
  gap:6px;
}

.field--full{
  grid-column:1 / -1;
}

.field__label{
  font-size:12px;
  font-weight:700;
  color:rgba(233,241,255,.78);
}

.field__input{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,18,32,.55);
  color:rgba(233,241,255,.92);
  padding:10px 12px;
  outline:none;
}

.field__input:focus{
  border-color:rgba(112,255,160,.55);
  box-shadow:0 0 0 4px rgba(112,255,160,.12);
}

.field__textarea{
  resize:vertical;
  min-height:110px;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:12px;
  color:rgba(233,241,255,.72);
}

.check input{
  margin-top:3px;
  accent-color:#49d17a;
}

.btn--wide{
  width:100%;
}

.form__note{
  grid-column:1 / -1;
  margin:0;
  font-size:12px;
  color:rgba(233,241,255,.55);
}

/* Responsive */
@media (max-width: 980px){
  .contact__inner{ grid-template-columns: 1fr; }
  .form__grid{ grid-template-columns: 1fr; }
}


/* ===== Figures (subpáginas) ===== */
.page-figure, .section-figure{
  margin:16px 0 0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,24,52,.35);
  box-shadow:0 18px 40px rgba(0,0,0,.25);
}
.section-figure{ margin:14px 0 0; }
.page-figure img, .section-figure img{
  width:100%;
  height:auto;
  display:block;
  transform: scale(1.01);
}


/* ===== Home SEO sections ===== */
.nav--simple{
  margin-left:auto;
  margin-right:auto;
}
.value{
  padding:26px 0 36px;
  background:
    radial-gradient(900px 320px at 50% 10%, rgba(255,255,255,.07), transparent 60%);
}
.value__lead{
  margin:0 0 16px;
  color:rgba(233,241,255,.78);
  line-height:1.65;
  max-width:78ch;
}
.value__lead--center{
  text-align:center;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}
.value__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.vcard{
  background:linear-gradient(180deg, rgba(14,44,86,.68), rgba(9,32,66,.82));
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
}
.vcard h3{
  margin:0 0 8px;
  font-size:15px;
  font-weight:900;
}
.vcard p{
  margin:0;
  color:rgba(233,241,255,.76);
  font-size:13px;
  line-height:1.55;
}
.value__note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,18,32,.35);
  color:rgba(233,241,255,.78);
}
.who{
  padding:18px 0 42px;
  background:linear-gradient(180deg, rgba(6,24,52,.55), rgba(6,24,52,.0));
}
.who__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.wcard{
  background:rgba(7,24,52,.48);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.wcard h3{
  margin:0 0 10px;
  font-size:15px;
  font-weight:900;
}
.wcard ul{
  margin:0;
  padding-left:18px;
  color:rgba(233,241,255,.78);
  display:grid;
  gap:8px;
  font-size:13px;
  line-height:1.5;
}
.faqs{
  padding:18px 0 34px;
  background:
    radial-gradient(900px 320px at 30% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(6,24,52,.0), rgba(6,24,52,.55));
}
.home-split{
  display:grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap:24px;
  align-items:start;
  margin-top:18px;
}
.home-split .home-figure{
  margin:0;
  text-align:left;
}
.home-split .home-figure img{
  max-width:100%;
}
.home-split .who__grid{
  grid-template-columns: 1fr;
}
.home-split__media{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.home-split__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.home-split__cta .btn{
  flex:1 1 auto;
  max-width:240px;
}
 @media (max-width: 980px){
  .home-split{
    grid-template-columns: 1fr;
    gap:16px;
  }
  .value__grid{ grid-template-columns: 1fr; }
  .who__grid{ grid-template-columns: 1fr; }
}


/* ===== Home figures (mida controlada) ===== */
.home-figure{
  margin:40px auto;
  text-align:center;
}

.home-figure img{
  width:100%;
  max-width:960px;        /* controla la mida real */
  height:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,24,52,.35);
  box-shadow:0 20px 60px rgba(0,0,0,.28);
  transform:none;         /* eliminem el scale */
}
