:root {
  --navy: #0A2A43;
  --navy-2: #0E3350;
  --steel: #14507A;
  --teal: #1E9E96;
  --teal-light: #5FC4BC;
  --amber: #E2A73E;
  --paper: #F0F3F4;
  --paper-2: #E7ECED;
  --card: #FFFFFF;
  --ink: #16232E;
  --ink-soft: #4A5A66;
  --line: #D7DEE2;
  --line-dark: rgba(255, 255, 255, .14);
  --radius: 2px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, .8, .24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  font-weight: 600;
  letter-spacing: -.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
}

::selection {
  background: var(--teal);
  color: #fff;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

a.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}

a.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 42, 67, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.brand span {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
}

.brand span em {
  font-style: normal;
  color: var(--teal-light);
}

nav.links {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav.links a {
  color: #C9D6DD;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s var(--ease);
}

nav.links a:hover,
nav.links a:focus-visible {
  color: #fff;
}

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background .2s var(--ease);
}

.nav-cta:hover {
  background: var(--teal-light);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.burger svg {
  width: 24px;
  height: 24px;
}

@media (max-width:880px) {
  nav.links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 28px;
    gap: 22px;
    align-items: flex-start;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s var(--ease);
  }

  nav.links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav.links a {
    font-size: 17px;
  }

  .burger {
    display: block;
  }
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 96px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, black 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.hero .eyebrow {
  color: var(--teal-light);
  margin-bottom: 22px;
}

.hero .eyebrow::before {
  background: var(--teal-light);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  max-width: 820px;
}

.hero h1 .accent {
  color: var(--teal-light);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: #C9D6DD;
  max-width: 640px;
  margin-top: 24px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7E93A2;
}

.hero-meta .val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}

/* hero funding card */
.hero-funding {
  margin-top: 46px;
  background: #fff;
  border-radius: 3px;
  padding: 20px 26px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.hero-funding .hf-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  padding-right: 20px;
  line-height: 1.5;
  max-width: 110px;
}

.hero-funding .hf-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-funding img {
  width: auto;
}

/* funding strip (white section under hero) */
.funding-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.funding-strip .wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.funding-strip img {
  height: 36px;
  width: auto;
}

/* ============ SECTION GENERIC ============ */
.section {
  padding: 104px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 16px;
  line-height: 1.12;
}

.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 18px;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-alt {
  background: var(--card);
}

/* ============ PROYECTO ============ */
.proyecto-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: start;
}

.proyecto-body p {
  margin-bottom: 18px;
  color: #2C3A44;
  font-size: 15.5px;
  line-height: 1.75;
}

.callout {
  background: var(--navy);
  color: #fff;
  padding: 32px 30px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
}

.callout p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 24px;
  margin-top: 20px;
}

.fact-card .fact-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.fact-card .fact-row:last-child {
  border-bottom: none;
}

.fact-row .k {
  color: var(--ink-soft);
}

.fact-row .v {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  text-align: right;
}

@media (max-width:880px) {
  .proyecto-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============ OBJETIVOS ============ */
.obj-goal {
  background: var(--navy);
  color: #fff;
  padding: 40px;
  border-radius: 2px;
  margin-bottom: 44px;
}

.obj-goal .eyebrow {
  color: var(--teal-light);
  margin-bottom: 14px;
}

.obj-goal .eyebrow::before {
  background: var(--teal-light);
}

.obj-goal p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.4;
  font-weight: 500;
}

.obj-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.obj-item {
  background: #fff;
  padding: 28px 26px;
  display: flex;
  gap: 18px;
}

.obj-item .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 2px;
}

.obj-item p {
  font-size: 14.5px;
  color: #2C3A44;
  line-height: 1.6;
}

@media (max-width:720px) {
  .obj-list {
    grid-template-columns: 1fr;
  }
}

/* ============ TECNOLOGIA ============ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tech-card {
  background: #fff;
  padding: 32px 26px;
  transition: background .25s var(--ease);
}

.tech-card:hover {
  background: var(--paper);
}

.tech-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
}

.tech-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.4;
}

.tech-card h3 {
  font-size: 16.5px;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 13.8px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width:960px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ FASES - circuit timeline (signature element) ============ */
.timeline {
  position: relative;
  padding-top: 20px;
}

.timeline-track {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.phase {
  flex: 1 1 0;
  min-width: 210px;
  position: relative;
  padding: 0 18px 0 0;
}

.phase-connector {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.phase-connector .line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--line);
}

.phase:first-child .phase-connector .line {
  left: 50%;
}

.phase:last-child .phase-connector .line {
  right: 50%;
}

.phase-connector .line-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  background: var(--teal);
  width: 0%;
  transition: width 1.2s var(--ease);
}

.phase.in-view .phase-connector .line-fill {
  width: 100%;
}

.phase-connector .node {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  margin: 0 auto;
  transition: all .4s var(--ease);
}

.phase.in-view .phase-connector .node {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(30, 158, 150, .16);
}

.phase-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 20px;
  margin-top: 8px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.phase.in-view .phase-card {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.phase-card .fid {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: .06em;
}

.phase-card h4 {
  font-size: 15.5px;
  margin-top: 10px;
  line-height: 1.35;
}

.phase-card .dates {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 12px;
}

.phase-card .lead {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.phase-card .lead b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width:880px) {
  .timeline-track {
    flex-direction: column;
    gap: 0;
  }

  .phase {
    padding-right: 0;
  }

  .phase-connector {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 0 6px;
  }

  .phase-connector .line {
    left: 6px;
    top: 0;
    bottom: -14px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .phase-connector .line-fill {
    left: 6px;
    top: 0;
    width: 2px;
    height: 0%;
  }

  .phase.in-view .phase-connector .line-fill {
    height: 100%;
  }

  .phase-connector .node {
    margin: 0;
  }
}

/* ============ ENTIDADES ============ */
.entities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.entity-card {
  background: #fff;
  padding: 30px 26px;
  cursor: pointer;
}

.entity-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.entity-logo {
  width: 104px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.entity-logo img {
  width: 100%;
  height: 100%;
}

.entity-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 16px;
  font-weight: 600;
}

.tag-cluster {
  background: #E4F3F2;
  color: #0E6E67;
}

.tag-tech {
  background: #EAF0F5;
  color: var(--steel);
}

.tag-pyme {
  background: #FBF1E0;
  color: #8A5F16;
}

.entity-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.entity-card .role {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width:880px) {
  .entities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .entities-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ IMPACTO ============ */
.impact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.impact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.impact-list li:first-child {
  padding-top: 0;
}

.impact-list .ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.impact-list .ico svg {
  width: 100%;
  height: 100%;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.6;
}

.impact-list .t {
  font-size: 14.5px;
  color: #2C3A44;
  line-height: 1.6;
}

.impact-list .t b {
  font-weight: 600;
  color: var(--ink);
}

.ods-box {
  background: var(--navy);
  color: #fff;
  padding: 36px;
  border-radius: 2px;
}

.ods-box .eyebrow {
  color: var(--teal-light);
  margin-bottom: 16px;
}

.ods-box .eyebrow::before {
  background: var(--teal-light);
}

.ods-tiles {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.ods-tile {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'IBM Plex Mono', monospace;
  border-radius: 2px;
  flex-shrink: 0;
}

.ods-tile.o8 {
  background: #A21942;
}

.ods-tile.o9 {
  background: #FD6925;
}

.ods-tile b {
  font-size: 20px;
  line-height: 1;
}

.ods-tile span {
  font-size: 8px;
  margin-top: 2px;
}

.ods-text {
  font-size: 13.5px;
  color: #C9D6DD;
  margin-top: 20px;
  line-height: 1.65;
}

@media (max-width:880px) {
  .impact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============ FINANCIACION ============ */
.fin-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  display: grid;
  gap: 40px;
  align-items: center;
}

.fin-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.fin-badges img {
  height: 40px;
  width: auto;
}

.fin-text p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (max-width:880px) {
  .fin-box {
    grid-template-columns: 1fr;
  }
}

/* ============ CONTACTO ============ */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.contact-info p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.contact-row .ico {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-row .ico svg {
  width: 100%;
  height: 100%;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.6;
}

.contact-row .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
}

.contact-row .val {
  font-size: 14.5px;
  margin-top: 3px;
  font-weight: 500;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-msg {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-radius: 2px;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.ok {
  background: #E4F3F2;
  color: #0E6E67;
}

.form-msg.err {
  background: #FBEAEA;
  color: #A12626;
}

.btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width:880px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .row2 {
    grid-template-columns: 1fr;
  }
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy);
  color: #C9D6DD;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 34px;
  border-radius: 4px;
}

.footer-brand span {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 280px;
  color: #93A6B2;
}

.footer-col h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7E93A2;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: #C9D6DD;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 11px;
  transition: color .2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-funding {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-funding img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .75;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: #7E93A2;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12.5px;
  color: #7E93A2;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

@media (max-width:880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}

@media (max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  background: var(--navy);
  color: #fff;
  padding: 24px 26px;
  z-index: 1000;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: translateY(140%);
  transition: transform .5s var(--ease);
  border-top: 3px solid var(--teal);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 13px;
  color: #C9D6DD;
  line-height: 1.6;
}

.cookie-banner p a {
  color: var(--teal-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cookie-actions button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-accept {
  background: var(--teal);
  color: #fff;
}

.cookie-accept:hover {
  background: var(--teal-light);
}

.cookie-reject {
  background: transparent;
  color: #C9D6DD;
  border-color: rgba(255, 255, 255, .28);
}

.cookie-reject:hover {
  border-color: #fff;
  color: #fff;
}

.cookie-config {
  background: none;
  color: #7E93A2;
  text-decoration: underline;
  padding: 10px 4px;
  border: none;
}

/* Cookie modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 28, .6);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  max-width: 560px;
  width: 100%;
  padding: 36px;
  border-radius: 2px;
  max-height: 84vh;
  overflow-y: auto;
  position: relative;
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.modal .sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.cookie-type {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cookie-type:last-of-type {
  border-bottom: 1px solid var(--line);
}

.cookie-type-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cookie-type-head b {
  font-size: 14.5px;
}

.cookie-type p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: .2s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

input:checked+.slider {
  background: var(--teal);
}

input:checked+.slider::before {
  transform: translateX(16px);
}

input:disabled+.slider {
  opacity: .5;
  cursor: not-allowed;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  justify-content: flex-end;
}

.modal-close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  padding: 6px;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}