:root {
  --ink: #071019;
  --ink2: #0b1722;
  --blue: #0878d1;
  --blue2: #21a1ff;
  --muted: #74818a;
  --line: #dce2e6;
  --bg: #f5f7f8;
  --white: #fff;
  --max: 1380px;
  --ease: cubic-bezier(.22, 1, .36, 1)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden
}

body.no-scroll {
  overflow: hidden
}

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

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

button,
input,
textarea {
  font: inherit
}

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

.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 9999;
  padding: 10px 15px;
  background: #fff;
  color: #000
}

.skip-link:focus {
  top: 15px
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 16, 25, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.nav-wrap {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand img {
  width: 184px;
  height: auto
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 0
}

.nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--blue2);
  transition: .3s var(--ease)
}

.nav-link:hover,
.nav-link.active {
  color: #fff
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px;
  transition: .25s
}

.hero-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: end;
  padding: 0 0 72px;
  color: #fff;
  isolation: isolate;
  overflow: hidden
}

.hero-page .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2
}

.hero-page:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 8, 12, .97), rgba(3, 8, 12, .65) 52%, rgba(3, 8, 12, .35));
  z-index: -1
}

.hero-page h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 850px
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8dccff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .19em;
  margin: 0 0 20px
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: currentColor
}

.eyebrow.dark {
  color: var(--blue)
}

.section {
  padding: 135px 0
}

.section-heading h2,
.split h2 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 140px;
  align-items: end
}

.lead {
  font-size: 1.3rem;
  line-height: 1.45;
  color: #20313d
}

.muted {
  color: var(--muted)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: .3s var(--ease)
}

.btn-primary {
  background: var(--blue);
  color: #fff
}

.btn-primary:hover {
  background: #1594ed;
  transform: translateY(-2px)
}

.btn-light {
  background: #fff;
  color: var(--ink)
}

.btn-light:hover {
  transform: translateY(-2px)
}

.link {
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .06em
}

.link span {
  color: var(--blue);
  margin-left: 8px
}

.image-full {
  margin-top: 70px;
  position: relative;
  overflow: hidden
}

.image-full img {
  width: 100%;
  height: 540px;
  object-fit: cover
}

.image-full:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 50%)
}

.caption {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  left: 30px;
  color: #fff;
  font-size: .8rem
}

.dark-section {
  background: var(--ink);
  color: #fff
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12)
}

.value {
  padding: 48px 40px;
  background: var(--ink);
  min-height: 270px
}

.value small {
  color: #5dbbff;
  font-weight: 900
}

.value h3 {
  font-size: 1.4rem;
  margin: 22px 0 10px
}

.value p {
  color: #8997a1;
  font-size: .88rem
}

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

.service {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: #fff;
  padding: 38px;
  border: 1px solid #e1e7ea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .45s var(--ease)
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(6, 25, 40, .12)
}

.service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  transition: .6s;
}

.service:hover img {
  transform: scale(1.05);
  opacity: .42;
}

.service:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(255, 255, 255, .88) 0%,
      rgba(255, 255, 255, .65) 35%,
      rgba(255, 255, 255, .25) 65%,
      rgba(255, 255, 255, .03) 100%);
}

.service>* {
  position: relative;
  z-index: 2
}

.service-number {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 900
}

.service h3 {
  font-size: 2.1rem;
  line-height: 1.05;
  margin: 8px 0 14px;
  letter-spacing: -.035em
}

.service p {
  color: #26343d;
  font-size: .98rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 470px;
}

.service.featured {
  min-height: 560px
}

.service.featured h3 {
  font-size: 2.8rem
}

.process {
  background: #fff
}

.process-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 140px
}

.steps {
  border-top: 1px solid var(--line)
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line)
}

.step>span {
  color: var(--blue);
  font-weight: 900;
  font-size: .72rem
}

.step h3 {
  margin: 0
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .88rem
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr .825fr .825fr;
  grid-auto-rows: 280px;
  gap: 14px
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #ddd;
  text-align: left
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s
}

.gallery-item:hover img {
  transform: scale(1.06)
}

.gallery-item:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 9, 13, .75), transparent 60%)
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between
}

.gallery-item i {
  font-style: normal;
  color: #8dccff
}

.item-large {
  grid-row: span 2
}

.item-wide {
  grid-column: span 2
}

.cta {
  background: var(--blue);
  color: #fff;
  padding: 85px 0
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -.04em
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 140px
}

.facts {
  margin-top: 40px;
  border-top: 1px solid var(--line)
}

.fact {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line)
}

.fact span {
  color: var(--blue);
  font-weight: 900;
  font-size: .7rem
}

.fact small {
  display: block;
  color: #87929a;
  font-weight: 900;
  font-size: .65rem;
  letter-spacing: .12em
}

.fact strong {
  font-size: .92rem
}

.form {
  background: #eef2f4;
  padding: 38px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

label {
  display: block;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px
}

input,
textarea {
  display: block;
  width: 100%;
  padding: 15px 16px;
  margin-top: 7px;
  border: 1px solid #d5dfe4;
  background: #fff;
  outline: 0;
  font-size: .92rem
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 209, .09)
}

textarea {
  min-height: 150px;
  resize: vertical
}

.form-note,
.status {
  font-size: .7rem;
  color: #7b8790
}

.footer {
  background: #050b10;
  color: #fff;
  padding-top: 70px
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-bottom: 60px
}

.footer-brand {
  max-width: 360px
}

.footer-brand img {
  width: 210px
}

.footer-brand p {
  color: #77858e;
  font-size: .82rem
}

.footer-links {
  display: flex;
  gap: 90px
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.footer-links span {
  font-size: .65rem;
  color: #63717a;
  font-weight: 900;
  letter-spacing: .15em
}

.footer-links a {
  font-size: .8rem;
  color: #b7c0c6
}

.footer-links a:hover {
  color: #fff
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  color: #63717a;
  font-size: .68rem
}

.footer-bottom p {
  margin: 0
}

.footer-bottom div {
  display: flex;
  gap: 24px
}

.map-wrap {
  align-content: center;
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  filter: grayscale(.18) contrast(1.02)
}

@media(max-width:900px) {

  .map-wrap,
  .map-wrap iframe {
    min-height: 420px;
    height: 420px
  }
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: .3s
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto
}

.lightbox figure {
  margin: 0;
  max-width: 95vw
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh
}

.lightbox figcaption {
  color: #fff;
  margin-top: 10px;
  font-size: .8rem
}

.lightbox-close {
  position: absolute;
  right: 22px;
  top: 8px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 3rem
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: .8s var(--ease)
}

.reveal.visible {
  opacity: 1;
  transform: none
}

@media(max-width:900px) {
  .container {
    width: min(calc(100% - 34px), var(--max))
  }

  .nav-wrap {
    height: 78px
  }

  .brand img {
    width: 150px
  }

  .menu-toggle {
    display: block;
    z-index: 1001
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: rgba(6, 15, 23, .98);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 22px;
    transform: translateX(100%);
    transition: .45s var(--ease)
  }

  .main-nav.open {
    transform: none
  }

  .nav-link {
    font-size: 1.1rem
  }

  .two-col,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px
  }

  .section {
    padding: 95px 0
  }

  .values-grid {
    grid-template-columns: 1fr
  }

  .service-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 250px
  }

  .item-large {
    grid-row: span 1
  }

  .item-wide {
    grid-column: span 2
  }

  .cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .footer-links {
    gap: 55px
  }
}

@media(max-width:600px) {
  .container {
    width: calc(100% - 26px)
  }

  .hero-page {
    min-height: 460px;
    padding-bottom: 55px
  }

  .hero-page h1 {
    font-size: 3.1rem
  }

  .image-full img {
    height: 300px
  }

  .service {
    min-height: 410px;
    padding: 28px
  }

  .service.featured {
    min-height: 430px
  }

  .service.featured h3 {
    font-size: 2.1rem
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px
  }

  .item-wide {
    grid-column: auto
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0
  }

  .form {
    padding: 24px
  }

  .footer-bottom {
    flex-direction: column
  }

  .footer-bottom div {
    flex-wrap: wrap;
    gap: 14px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }
}


.legal-content {
  background: #fff
}

.legal-content .container {
  max-width: 1040px
}

.legal-content h2 {
  font-size: 1.45rem;
  margin: 48px 0 12px
}

.legal-content h2:first-child {
  margin-top: 0
}

.legal-content p,
.legal-content li {
  color: #68747c;
  max-width: 900px
}

.legal-content ul {
  padding-left: 20px
}

.footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px
}

.footer-contact-mini a {
  color: #9eabb3;
  font-size: .78rem
}

.footer-contact-mini a:hover {
  color: #fff
}

.contact-facts a,
.facts a {
  color: inherit
}

/* ===== Icon cards / value blocks ===== */
.value{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.value-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  margin:0 auto 18px;
  color:#80c9ff;
  border:1px solid rgba(128,201,255,.22);
  border-radius:50%;
}
.value-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.value h3{margin:0 0 10px}
.value p{max-width:300px;margin:0 auto}

/* ===== Process steps ===== */
.step{
  grid-template-columns:52px 1fr;
  align-items:center;
  gap:22px;
}
.process-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  color:var(--blue);
  background:rgba(8,120,209,.08);
  border:1px solid rgba(8,120,209,.12);
  border-radius:50%;
}
.process-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.step h3{margin:0}
.step p{margin:4px 0 0}

/* ===== Contact cards ===== */
.contact-facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:40px;
  border-top:0;
}
.contact-card{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:108px;
  padding:22px;
  border:1px solid var(--line);
  background:#fff;
  transition:.35s var(--ease);
}
.contact-card:hover{
  transform:translateY(-3px);
  border-color:#c8d3d9;
  box-shadow:0 15px 35px rgba(6,25,40,.08);
}
.fact-icon{
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px;
  height:48px;
  color:var(--blue);
  background:rgba(8,120,209,.08);
  border:1px solid rgba(8,120,209,.12);
  border-radius:50%;
}
.fact-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.contact-card > div{
  min-width:0;
}
.contact-card small{
  display:block;
  margin-bottom:5px;
  color:var(--blue);
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.12em;
}
.contact-card strong{
  display:block;
  font-size:.92rem;
  line-height:1.45;
}
.contact-card a{
  color:inherit;
  text-decoration:none;
}
.contact-card a:hover{color:var(--blue)}
.contact-card-wide{grid-column:1/-1}

@media(max-width:900px){
  .contact-facts{grid-template-columns:1fr}
  .contact-card-wide{grid-column:auto}
}
@media(max-width:600px){
  .contact-card{padding:19px}
  .fact-icon{flex-basis:44px;width:44px;height:44px}
  .process-icon{width:42px;height:42px}
}


/* ===== Mobile navigation & footer refinement ===== */
@media(max-width:900px){
  .main-nav{
    inset:0 0 0 30%;
    width:auto;
    min-height:100svh;
    padding:40px;
    align-items:flex-start;
    justify-content:center;
    gap:22px;
    text-align:left;
    box-shadow:-18px 0 45px rgba(0,0,0,.18);
  }

  .nav-link{
    width:auto;
    padding:10px 0;
    font-size:1.1rem;
    letter-spacing:.05em;
  }

  .nav-link:after{
    left:0;
    transform:none;
    bottom:2px;
  }

  .menu-toggle{
    position:relative;
    width:48px;
    height:48px;
    padding:9px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border:1px solid rgba(255,255,255,.14);
    border-radius:50%;
    background:rgba(255,255,255,.04);
  }

  .menu-toggle span{
    width:22px;
    margin:3px 0;
  }

  .footer-top{
    align-items:center;
    text-align:center;
    gap:36px;
  }

  .footer-brand{
    max-width:420px;
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .footer-brand img{width:190px}
  .footer-contact-mini{align-items:center;margin-top:0}

  .footer-links{
    width:100%;
    justify-content:center;
    text-align:center;
    gap:55px;
  }

  .footer-links div{align-items:center}

  .footer-bottom{
    align-items:center;
    text-align:center;
    gap:16px;
  }

  .footer-bottom p{max-width:330px}
  .footer-bottom div{justify-content:center}
}

@media(max-width:600px){
  .main-nav{
    inset:0 0 0 24%;
    padding:90px 24px 40px;
  }

  .nav-link{
    font-size:1rem;
    padding:13px 8px;
  }

  .footer-top{gap:30px}
  .footer-links{gap:36px}
  .footer-bottom div{gap:14px}
}

/* ===== Subvenciones ===== */
.subsidies-list{display:grid;gap:24px;max-width:1050px;margin:55px auto 0}
.subsidy-card{display:grid;grid-template-columns:58px 1fr;gap:26px;align-items:start;padding:34px;background:#fff;border:1px solid var(--line);transition:.35s var(--ease)}
.subsidy-card:hover{transform:translateY(-3px);border-color:#c8d3d9;box-shadow:0 18px 40px rgba(6,25,40,.08)}
.subsidy-icon{display:grid;place-items:center;width:52px;height:52px;color:var(--blue);background:rgba(8,120,209,.08);border:1px solid rgba(8,120,209,.12);border-radius:50%}
.subsidy-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.subsidy-year{display:block;margin:0 0 8px;color:var(--blue);font-size:.68rem;font-weight:900;letter-spacing:.14em}
.subsidy-card h2{margin:0 0 12px;font-size:1.25rem}
.subsidy-card p{max-width:850px;margin:0 0 12px;color:var(--muted);line-height:1.75}
.subsidy-card p:last-child{margin-bottom:0}
@media(max-width:600px){.subsidy-card{grid-template-columns:1fr;gap:20px;padding:25px 21px}.subsidy-icon{width:48px;height:48px}.subsidy-card h2{font-size:1.1rem}}


/* ===== Icon alignment refinements ===== */
.step{align-items:center}
.step .process-icon{align-self:center;justify-self:start}
.step > div{min-width:0}
.subsidy-card{align-items:center}
.subsidy-card > div:last-child{min-width:0}

@media(max-width:600px){
  .step{grid-template-columns:46px 1fr;gap:16px;padding:21px 0}
  .step .process-icon{width:42px;height:42px}
  .step h3{line-height:1.3}
  .step p{line-height:1.55}
  .subsidy-card{grid-template-columns:46px 1fr;gap:16px;align-items:center;padding:22px 18px}
  .subsidy-icon{width:44px;height:44px}
  .subsidy-icon svg{width:21px;height:21px}
  .subsidy-card h2{font-size:1.08rem;line-height:1.35}
  .subsidy-card p{line-height:1.65}
}
