:root {
  color-scheme: light;
  --violet: #5d4b8f;
  --ink: #14263c;
  --white: #fff;
  --line: #e4e8e5;
  --margin: clamp(1.25rem, 5.4vw, 6rem);
  --frame: 85rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: white;
  font: 1rem/1.65 "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--violet); text-underline-offset: .24em; text-decoration-thickness: .09em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.hero :focus-visible, footer :focus-visible, .callout :focus-visible { outline-color: white; }
.wrap { width: min(calc(100% - 2 * var(--margin)), var(--frame)); margin-inline: auto; }
h1, h2, h3 { font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; line-height: 1.04; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2.1rem, 3.3vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2.05rem); }
p { margin: .9rem 0 0; }
.section { padding-block: clamp(3.2rem, 6.2vw, 6.8rem); }
header { background: white; border-bottom: 1px solid var(--line); }
.mast { display: flex; gap: clamp(1rem, 3vw, 3.6rem); align-items: center; min-height: 5.25rem; }
.brand { margin-right: auto; }
.brand img { width: 6.1rem; height: auto; }
nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 3rem); }
nav a, .header-phone { color: var(--ink); font-weight: 650; text-decoration: none; }
nav a { position: relative; padding: 1.55rem 0; }
nav a[aria-current], nav a:hover, .header-phone:hover { color: var(--violet); }
nav a[aria-current]::after { content: ""; position: absolute; bottom: .85rem; left: 0; right: 0; height: 2px; background: var(--violet); }
.header-phone { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 2rem); white-space: nowrap; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: white; }
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 46%; background: var(--violet); clip-path: polygon(9% 0,100% 0,100% 100%,0 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; clip-path: polygon(calc(9% + 8px) 0,100% 0,100% 100%,8px 100%); }
.hero-inner { padding-block: clamp(4.1rem, 7.4vw, 8.3rem); }
.eyebrow { margin: 0 0 1.15rem; display: flex; gap: .65rem; align-items: center; color: var(--violet); font-size: .875rem; line-height: 1.3; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.8rem; height: .16rem; background: currentColor; }
.hero .eyebrow { color: white; }
.hero h1 { max-width: 48%; font-size: clamp(2.55rem, 4.35vw, 5rem); line-height: 1.02; }
.hero p:not(.eyebrow) { max-width: min(36ch, 43%); font-size: clamp(1.02rem, 1.3vw, 1.23rem); margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.45rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.95rem; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: .18rem; font: inherit; line-height: 1.35; font-weight: 700; text-decoration: none; cursor: pointer; color: white; background: var(--violet); }
.btn:hover { box-shadow: inset 0 0 0 1px currentColor; }
.btn.outline { border: 0; padding-inline: 0; background: transparent; color: white; text-decoration: underline; }
.banner { background: var(--ink); color: white; padding-block: clamp(3rem, 5vw, 5.5rem); border-bottom: 5px solid var(--violet); }
.banner .eyebrow { color: white; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.15rem, 2.5vw, 2.8rem); }
h2 + .cards, h2 + .gallery { margin-top: clamp(1.6rem, 2.5vw, 2.6rem); }
.cards img { width: 100%; aspect-ratio: 1.75; object-fit: cover; border-bottom: 3px solid var(--violet); }
.cards article > div { padding: 1.25rem 0; }
.cards h3 { color: var(--violet); }
.cards p { max-width: 42ch; margin-top: .65rem; }
.tint { background: color-mix(in srgb, var(--line) 40%, white); }
.split { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.split img { width: 100%; aspect-ratio: 1.62; object-fit: cover; }
.split p:not(.eyebrow) { max-width: 56ch; }
.split > div > a, .reviews > a { display: inline-block; font-weight: 700; margin-top: 1.1rem; }
.reviews { display: flex; align-items: center; justify-content: space-between; column-gap: 2rem; }
.reviews > a { white-space: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.gallery a { overflow: hidden; }
.gallery a img { width: 100%; height: 100%; aspect-ratio: 1.5; object-fit: cover; }
.gallery a:hover img { filter: brightness(.92); }
.grants { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; }
.grants img { max-height: 23rem; object-fit: contain; width: 100%; }
.callout { margin-top: 2.5rem; background: var(--ink); color: white; padding: clamp(1.75rem, 4vw, 3.5rem); }
.callout .btn { margin-top: 1.25rem; }
.contact { align-items: start; }
dl { margin: 1.75rem 0 0; }
dt { font-weight: 700; color: var(--violet); }
dd { margin: .2rem 0 1.2rem; }
form { border-top: .25rem solid var(--violet); background: color-mix(in srgb, var(--line) 40%, white); padding: clamp(1.2rem, 3vw, 2.5rem); }
form h2 { margin-bottom: 1.5rem; }
label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 650; }
input, textarea, select { border: 1px solid color-mix(in srgb, var(--ink) 46%, white); border-radius: .15rem; padding: .62rem .7rem; background-color: white; color: var(--ink); font: inherit; width: 100%; }
select { appearance: none; padding-right: 2.7rem; background-image: linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%); background-position: calc(100% - 1.1rem) 50%,calc(100% - .8rem) 50%; background-size: .3rem .3rem; background-repeat: no-repeat; }
textarea { resize: vertical; }
.note { font-size: .9rem; }
footer { background: var(--ink); color: white; }
footer a { color: white; }
.foot { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 2.6rem; }
.foot strong { font-size: 1.25rem; }
.foot p { margin: .4rem 0 0; }
@media (max-width: 53rem) {
  .header-phone { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { padding-block: 2.75rem; }
  .hero h1 { max-width: 100%; }
  .hero p:not(.eyebrow) { max-width: 42ch; }
  .hero-media { position: relative; inset: auto; order: 2; clip-path: none; }
  .hero-media img { height: clamp(12rem, 44vw, 19rem); object-position: center 53%; clip-path: none; border-top: 4px solid var(--violet); }
  .cards { gap: 1rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .mast { flex-direction: column; align-items: stretch; gap: 0; }
  .brand { align-self: center; margin: .45rem 0 0; }
  .brand img { width: 4.6rem; }
  nav { justify-content: space-between; gap: .35rem; }
  nav a { padding: .58rem 0 .8rem; font-size: .92rem; }
  nav a[aria-current]::after { bottom: .35rem; }
  .cards, .split { grid-template-columns: 1fr; }
  .cards { gap: 1.6rem; }
  .cards article > div { padding-bottom: 0; }
  .reviews, .foot { display: block; }
  .foot > div + div { margin-top: 1.4rem; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .grants { grid-template-columns: 1fr; }
}

.funding { border-top: 1px solid var(--line); background: var(--white); }
.funding-inner { padding-block: clamp(2rem, 4vw, 3.5rem); }
.funding-intro { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.75rem); }
.funding-brand { width: 8.2rem; max-width: none; }
.funding h2 { color: var(--ink); font-size: 1.45rem; }
.funding p { margin-top: .45rem; max-width: 80ch; }
.funding-logos { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); flex-wrap: wrap; padding-top: 1.8rem; }
.funding-logos img { object-fit: contain; height: auto; }
.kd-next-generation-eu { width: 10.8rem; }
.kd-gobierno { width: 14rem; }
.kd-red-es { width: 5.8rem; }
.kd-recuperacion { width: 7.5rem; }
@media (max-width: 42rem) {
  .funding-intro { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .funding-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}

.legal-copy { max-width: 48rem; }
.legal-copy section + section { margin-top: 2.4rem; }
.legal-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.legal-copy address { font-style: normal; margin-top: .85rem; }
.legal-source { margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.posters { border-top: 1px solid var(--line); background: white; }
.posters .wrap { max-width: 65rem; }
.poster-list { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); margin-top: 2rem; }
.poster { margin: 0; }
.poster figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: .85rem; }
.poster h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.poster img { display: block; width: 100%; height: auto; }
.poster > a { display: block; }
.poster-institutions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.poster-institutions img:first-child { width: min(100%, 34rem); }
.poster-institutions img:last-child { width: 7rem; }

.review-section { max-width: 69rem; padding-top: clamp(2.5rem, 5vw, 5rem); margin-bottom: 0; }
.review-section h2 { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.35rem); }
.review-carousel { position: relative; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem; overflow-x: auto; padding: .35rem .15rem .8rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; min-width: 0; min-height: 14.4rem; padding: 1.25rem; border-radius: .85rem; border: 1px solid #eee; background: #fff; color: #202124; box-shadow: 0 3px 9px rgb(20 25 35 / 10%); }
.review-header { display: flex; align-items: flex-start; gap: .75rem; }
.review-byline { min-width: 0; flex: 1; line-height: 1.28; }
.review-byline strong { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.review-byline time { font-size: .875rem; color: #62656a; }
.review-avatar { position: relative; display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--violet); color: white; font-weight: 600; overflow: hidden; }
.review-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.google-mark { flex: 0 0 auto; }
.review-stars { margin: .55rem 0 .35rem; font-size: 1.25rem; line-height: 1.2; color: #e6a900; letter-spacing: -.045em; }
.review-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.48; }
.review-control { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 1px solid #d9d9d9; border-radius: 50%; background: #fff; color: #53545a; cursor: pointer; }
.review-control[hidden] { display: none; }
.review-control::after { content: ''; width: .46rem; height: .46rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.review-next { right: -.75rem; }
.review-next::after { transform: rotate(45deg); }
.review-prev { left: -.75rem; }
.review-prev::after { transform: rotate(-135deg); }
.review-map { display: block; width: fit-content; font-size: .9rem; margin: .3rem auto 0; }
#review-status { font-size: .9rem; text-align: center; }
.inicio .posters { border-top: 0; }
.inicio .posters .section { padding-top: 1.7rem; }
.inicio #titulo-carteles, .inicio .poster figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inicio .poster figcaption:focus-within { position: static; width: auto; height: auto; clip-path: none; }
.inicio .poster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.inicio .poster-institutions { justify-content: center; }
@media (max-width: 58rem) { .review-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 40rem) {
  .review-track { grid-auto-columns: 100%; }
  .review-card { min-height: 12.5rem; }
  .inicio .poster-list { grid-template-columns: 1fr; }
}
