/* Google Sans local: pesos variables 400–700. */
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/google-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Edita aquí la apariencia común de las tres páginas. */
:root {
  --navy: #072146;
  --blue: #004481;
  --aqua: #83dfd2;
  --ink: #16374a;
  --muted: #597071;
  --paper: #f7f7f0;
  --line: #d8dfd7
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Google Sans", Arial, sans-serif;
  line-height: 1.6
}

a {
  color: inherit
}

a,summary {
  -webkit-tap-highlight-color: transparent
}

a:focus-visible,summary:focus-visible,[role=button]:focus-visible {
  outline: 3px solid #008e91;
  outline-offset: 5px
}

p,h1,h2,h3 {
  margin-top: 0
}

h1,h2,h3 {
  font-family: Georgia,'Times New Roman',serif;
  font-weight: 400
}

h1 {
  font-size: clamp(48px,6.7vw,88px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 28px
}

h1 em {
  color: #1d8176;
  font-style: italic
}

h2 {
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -1px
}

h3 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.8px
}

.wrap {
  width: min(1200px,calc(100% - 88px));
  margin: auto
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 100
}

.skip:focus {
  top: 10px
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line)
}

.masthead {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  text-decoration: none;
  font-size: 23px;
  font-weight: bold;
  letter-spacing: -1px
}

.brand span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #268b7a;
  margin-left: 9px;
  border-radius: 50%
}

.sponsor {
  display: flex;
  align-items: center;
  gap: 18px
}

.sponsor small {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.sponsor .bbva-logo {
  display: block;
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 27px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px
}

.nav a {
  text-decoration: none
}

.nav a:hover,.nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px
}

.nav span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase
}

.eyebrow {
  font-family: "Google Sans", Arial, sans-serif;
  display: block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 19px
}

.hero {
  background: var(--navy);
  color: white;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 65px;
  padding-bottom: 65px
}

.hero .eyebrow {
  color: #a3e5d6;
  max-width: 380px
}

.hero h1 em {
  color: var(--aqua)
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  max-width: 620px
}

.hero .lead {
  font-size: 17px;
  color: #cedfdf;
  max-width: 440px
}

.button {
  display: inline-flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  background: var(--blue);
  color: #fff;
  padding: 13px 19px;
  text-decoration: none;
  font-size: 13px;
  margin-top: 10px
}

.button.light {
  background: #e1f5eb;
  color: var(--navy)
}

.hero-image svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50% 50% 0 0;
  aspect-ratio: 1;
  object-fit: cover
}

.hero-image small {
  font-size: 9px;
  color: #a5bfcb;
  display: block;
  text-align: right;
  margin-top: 15px
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-top: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line)
}

.intro-band p {
  font-family: Georgia,serif;
  font-size: 25px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0
}

.intro-band .eyebrow {
  padding-top: 10px;
  color: #1d8176
}

.stories {
  padding-top: 52px;
  padding-bottom: 80px
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px
}

.section-head h2 {
  margin: 0
}

.section-head>span {
  font-size: 11px;
  color: var(--muted)
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px
}

.story {
  text-decoration: none;
  display: block
}

.story:last-child {
  padding-top: 50px
}

.cover {
  position: relative;
  height: 310px;
  overflow: hidden
}

.cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s
}

.story:hover .cover svg {
  transform: scale(1.025)
}

.cover-tag {
  position: absolute;
  bottom: 17px;
  left: 18px;
  font-size: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 12px
}

.numbers {
  background: #164b47;
  color: #b6ebce;
  display: flex;
  align-items: center;
  justify-content: center
}

.numbers>span:first-child {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: Georgia,serif;
  font-size: 150px;
  line-height: 1
}

.numbers>span:first-child>span {
  font: italic 27px/1.2 Georgia,serif
}

.story-text {
  padding-top: 24px
}

.story-text .eyebrow {
  color: #367260
}

.story h3 {
  margin-bottom: 15px
}

.story p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px
}

.link {
  font-size: 13px;
  color: var(--blue);
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  gap: 30px
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 5px
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: #edf0e8
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px
}

.footer-row small {
  font-size: 10px;
  color: var(--muted)
}

.footer-row p {
  font-size: 12px;
  margin: 4px 0 20px
}

.footer-row a {
  font-size: 12px;
  text-decoration: none
}

.fine {
  font-size: 10px;
  color: var(--muted)
}

.fine p {
  margin-bottom: 7px
}

.back {
  display: inline-block;
  font-size: 12px;
  text-decoration: none;
  margin: 30px 0 40px;
  color: var(--blue)
}

.article-title {
  max-width: 880px;
  margin: auto
}

.article-title>.eyebrow {
  color: #1d8176
}

.article-title h1 {
  font-size: clamp(55px,7vw,92px)
}

.byline {
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 30px
}

.opening {
  max-width: 680px;
  font-family: Georgia,serif;
  font-size: 23px;
  line-height: 1.5;
  margin: 50px auto 30px
}

.map-story {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 70px;
  position: relative;
  align-items: start
}

.map-sticky {
  position: sticky;
  top: 25px;
  background: #edf1e9;
  border: 1px solid var(--line);
  padding: 24px
}

.map-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px
}

.map-top .eyebrow {
  font-size: 9px;
  max-width: 240px
}

.map-top>span:last-child {
  font-size: 11px;
  white-space: nowrap
}

#producer-map {
  width: 100%;
  display: block;
  height: auto;
  overflow: visible
}

.route {
  fill: none;
  stroke: #258b8b;
  stroke-width: 1.8;
  opacity: .65;
  stroke-dasharray: 1;
  stroke-dashoffset: 0
}

.js .route {
  stroke-dasharray: var(--length,1000);
  stroke-dashoffset: var(--length,1000);
  transition: stroke-dashoffset 1.2s ease
}

.js .route.visible {
  stroke-dashoffset: 0
}

.map-point {
  cursor: pointer
}

.map-point circle {
  fill: #fff;
  stroke: #147c7a;
  stroke-width: 1.5
}

.map-point text {
  fill: #004481;
  text-anchor: middle;
  font-size: 10px;
  font-family: "Google Sans", Arial, sans-serif;
  pointer-events: none
}

.map-point.active circle {
  fill: #004481;
  stroke: #004481
}

.map-point.active text {
  fill: #fff
}

.map-point:focus circle {
  stroke: #d38c14;
  stroke-width: 4
}

.destination {
  font-size: 11px;
  font-weight: bold;
  fill: #004481
}

.map-label {
  font-size: 10px;
  fill: #597071
}

.map-status {
  font-size: 12px;
  min-height: 39px;
  margin: 8px 0
}

.map-progress {
  height: 3px;
  background: #d3ded7
}

.map-progress span {
  display: block;
  height: 100%;
  width: 10%;
  background: #168e87;
  transition: width .5s
}

.editorial {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0
}

.step {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0
}

.step h2 {
  font-size: 34px;
  margin-bottom: 20px
}

.step>.eyebrow {
  color: #1d8176
}

.step p {
  font-size: 15px;
  color: var(--muted)
}

.step .region {
  color: var(--blue);
  font-size: 12px
}

.step .editorial {
  font-size: 11px;
  border-left: 2px solid #a7c2b8;
  padding-left: 14px
}

.step .button {
  align-self: start
}

.end-note {
  padding-top: 45px;
  padding-bottom: 70px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  max-width: 1200px
}

.end-note>p {
  max-width: 650px;
  color: var(--muted)
}

.decalogue-title {
  position: relative
}

.decalogue-intro {
  max-width: 880px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 55px;
  align-items: start
}

.decalogue-intro p {
  font-family: Georgia,serif;
  font-size: 23px;
  line-height: 1.5;
  margin-bottom: 0
}

.decalogue-intro>span {
  font-size: 11px;
  color: #35776a;
  border-left: 2px solid #a7c2b8;
  padding-left: 18px
}

.notice {
  max-width: 880px;
  margin: 25px auto 55px;
  padding: 14px 20px;
  background: #eaf0e7;
  font-size: 11px;
  color: #526d61;
  border-left: 2px solid #6d9b89
}

.lessons {
  max-width: 1000px;
  margin: 0 auto 65px
}

.lesson {
  border-bottom: 1px solid #bfcfc3
}

.lesson:first-of-type {
  border-top: 1px solid #bfcfc3
}

.lesson summary {
  display: grid;
  grid-template-columns: 85px 1fr 40px;
  gap: 20px;
  align-items: center;
  padding: 27px 0;
  cursor: pointer;
  list-style: none
}

.lesson summary::-webkit-details-marker {
  display: none
}

.lesson-no {
  font-family: Georgia,serif;
  font-size: 53px;
  color: #3f8777;
  font-style: italic;
  line-height: 1
}

.lesson summary .eyebrow {
  font-size: 8px;
  letter-spacing: .1em;
  margin: 0 0 8px;
  color: var(--muted)
}

.lesson-title {
  font-family: Georgia,serif;
  font-size: 29px;
  line-height: 1.2;
  display: block
}

.lesson-producer {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 10px
}

.plus {
  display: grid;
  place-items: center;
  border: 1px solid #9db8aa;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  color: #216b64
}

.plus:before {
  content: '+';
  font-size: 25px;
  font-weight: 400
}

.lesson[open] .plus:before {
  content: '−'
}

.lesson[open] summary {
  padding-bottom: 30px
}

.lesson-content {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 35px;
  padding: 0 0 32px 105px
}

.lesson-copy>.eyebrow {
  color: #35776a;
  font-size: 9px
}

.exchange {
  font-size: 15px;
  line-height: 1.4
}

.exchange span {
  color: #318e7d;
  display: inline-block;
  padding: 9px 0
}

.quote-placeholder {
  border-left: 2px solid #3e8977;
  padding-left: 18px;
  margin: 25px 0
}

.quote-placeholder p {
  font-family: Georgia,serif;
  font-size: 20px;
  line-height: 1.45;
  color: #63736c
}

.quote-placeholder .eyebrow {
  font-size: 9px;
  margin-bottom: 10px
}

.context {
  font-size: 12px;
  color: var(--muted)
}

.context b {
  color: #226d61
}

.clip-slot {
  align-self: start
}

.clip-placeholder {
  aspect-ratio: 9/12;
  background: #123c41;
  color: #d4f0e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  position: relative;
  overflow: hidden
}

.clip-placeholder:before {
  content: '';
  width: 230px;
  height: 230px;
  border: 1px solid #6caa922e;
  border-radius: 50%;
  position: absolute;
  right: -110px;
  top: -80px
}

.play-icon {
  font-size: 37px;
  border: 1px solid #6caa92;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  line-height: 1;
  margin-bottom: 30px
}

.clip-placeholder .eyebrow {
  font-size: 9px;
  color: #99c6b0
}

.clip-placeholder strong {
  font-family: Georgia,serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400
}

.clip-placeholder p {
  font-size: 11px;
  color: #a3bfb5;
  margin: 22px 0 0;
  max-width: 220px
}

.clip-caption {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px
}

.clip-slot video {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #072146
}

.lesson summary:hover .lesson-title {
  color: #1d8176
}

@media(max-width:900px) {
  .wrap {
    width: calc(100% - 44px)
  }

  .hero-grid {
    gap: 30px
  }

  .hero h1 {
    font-size: 60px
  }

  .hero-image small {
    font-size: 8px
  }

  .nav span {
    display: none
  }

  .cover {
    height: 250px
  }

  .numbers>span:first-child {
    font-size: 110px
  }

  .numbers>span:first-child>span {
    font-size: 21px
  }

  .map-story {
    gap: 30px;
    grid-template-columns: 1.1fr 1fr
  }

  .map-sticky {
    padding: 15px
  }

  .lesson-content {
    padding-left: 0
  }

  .intro-band {
    gap: 30px
  }

  .step h2 {
    font-size: 29px
  }

}

@media(max-width:640px) {
  .masthead {
    min-height: 82px;
    gap: 15px
  }

  .brand {
    font-size: 18px
  }

  .brand span {
    width: 7px;
    height: 7px;
    margin-left: 5px
  }

  .sponsor {
    gap: 9px
  }

  .sponsor small {
    font-size: 8px;
    max-width: 80px
  }

  .sponsor .bbva-logo {
    width: 82px;
  }

  .nav {
    gap: 22px;
    font-size: 11px
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 30px;
    gap: 30px
  }

  .hero h1 {
    font-size: 59px;
    letter-spacing: -2px
  }

  .hero-image {
    max-width: 370px;
    margin: auto;
    width: 100%
  }

  .hero-image svg {
    aspect-ratio: 1.4;
    max-height: 250px
  }

  .hero .lead {
    font-size: 16px
  }

  .hero .eyebrow {
    font-size: 9px
  }

  .intro-band {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 30px;
    padding-bottom: 30px
  }

  .intro-band p {
    font-size: 22px
  }

  .stories {
    padding-top: 35px;
    padding-bottom: 45px
  }

  .section-head {
    align-items: start
  }

  .section-head h2 {
    font-size: 29px
  }

  .section-head>span {
    font-size: 9px;
    max-width: 110px;
    text-align: right
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 35px
  }

  .story:last-child {
    padding: 0
  }

  .cover {
    height: 245px
  }

  .story h3 {
    font-size: 31px
  }

  .numbers>span:first-child {
    font-size: 130px
  }

  .numbers>span:first-child>span {
    font-size: 26px
  }

  .story-text {
    padding-top: 20px
  }

  .back {
    margin: 22px 0 32px
  }

  .article-title h1 {
    font-size: 57px;
    letter-spacing: -2px
  }

  .article-title .lead {
    font-size: 18px
  }

  .opening {
    font-size: 21px;
    margin: 30px auto
  }

  .map-story {
    display: block
  }

  .map-sticky {
    top: 0;
    z-index: 5;
    padding: 10px 14px;
    box-shadow: 0 6px 15px #0a363c10
  }

  .map-top .eyebrow {
    margin-bottom: 0;
    font-size: 8px;
    max-width: none
  }

  .map-top>span:last-child {
    font-size: 10px
  }

  #producer-map {
    height: 190px;
    margin: 0 auto;
    max-width: 320px
  }

  .map-status {
    font-size: 11px;
    min-height: 0;
    margin: 0 0 8px
  }

  .map-sticky .editorial {
    font-size: 8px;
    margin-top: 8px;
    line-height: 1.4
  }

  .step {
    min-height: 70vh;
    padding: 45px 0 70px;
    scroll-margin-top: 290px
  }

  .step h2 {
    font-size: 32px
  }

  .end-note {
    padding-bottom: 40px
  }

  .end-note h2 {
    font-size: 30px
  }

  .decalogue-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px auto
  }

  .decalogue-intro p {
    font-size: 21px
  }

  .notice {
    margin-bottom: 35px
  }

  .lesson summary {
    grid-template-columns: 42px 1fr 28px;
    gap: 12px;
    padding: 22px 0
  }

  .lesson-no {
    font-size: 36px
  }

  .lesson-title {
    font-size: 24px
  }

  .lesson summary .eyebrow {
    font-size: 7px;
    line-height: 1.5
  }

  .lesson-producer {
    font-size: 10px
  }

  .plus {
    height: 27px;
    width: 27px
  }

  .plus:before {
    font-size: 22px
  }

  .lesson-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 25px
  }

  .lesson-copy {
    padding-left: 0
  }

  .exchange {
    font-size: 14px
  }

  .clip-placeholder {
    aspect-ratio: 4/3
  }

  .clip-placeholder strong {
    font-size: 29px
  }

  .play-icon {
    height: 50px;
    width: 50px;
    font-size: 28px;
    margin-bottom: 18px
  }

  .clip-placeholder .eyebrow {
    margin-bottom: 12px
  }

  .clip-placeholder p {
    margin-top: 12px
  }

  .footer-row a {
    font-size: 10px;
    white-space: nowrap
  }

  .fine {
    font-size: 9px
  }

  .fine a {
    overflow-wrap: anywhere
  }

}

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

  .js .route,.map-progress span,.cover svg {
    transition: none
  }

}

/* MAPA DE ESPAÑA · Contorno cartográfico y acabado visual */
.map-sticky {
  background: #f0f6f6;
  border-color: #d5e5e5;
  border-radius: 18px;
}

.geo-spain {
  fill: url(#map-land);
  stroke: #82aaa5;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.geo-neighbor {
  fill: #e3ecec;
  stroke: #cbdcda;
  stroke-width: 1;
  stroke-linejoin: round;
}

.sea-label {
  fill: #89a5af;
  font: 8px "Google Sans", Arial, sans-serif;
  letter-spacing: 2px;
}

.country-label {
  fill: #9eb4b4;
  font: 8px "Google Sans", Arial, sans-serif;
  letter-spacing: 2px;
}

.spain-label {
  fill: #91aea8;
  font: 11px "Google Sans", Arial, sans-serif;
  letter-spacing: 4px;
}

.island-label {
  fill: #72938d;
  font: 8px "Google Sans", Arial, sans-serif;
  letter-spacing: 1px;
}

.canary-inset > rect {
  fill: #eaf2f1;
  stroke: #c9dcd8;
  stroke-width: 1;
}

#producer-map .route {
  stroke: #159eaa;
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: .75;
}

#producer-map .map-point circle {
  fill: #fff;
  stroke: #168693;
  stroke-width: 1.6;
}

#producer-map .map-point text {
  font-size: 9px;
  font-weight: bold;
}

#producer-map .map-point.active circle,
#producer-map .map-point:hover circle {
  fill: #004481;
  stroke: #004481;
}

#producer-map .map-point.active text,
#producer-map .map-point:hover text {
  fill: #fff;
}

#producer-map .map-point:focus-visible circle {
  stroke: #c99027;
  stroke-width: 3;
}

.destination-halo {
  fill: #004481;
  fill-opacity: .09;
}

.destination-dot {
  fill: #004481;
  stroke: #fff;
  stroke-width: 2;
}

.girona-destination path {
  stroke: #004481;
  stroke-width: 1;
  fill: none;
}

.destination-caption {
  fill: #66858b;
  font: 8px "Google Sans", Arial, sans-serif;
}

@media (max-width: 640px) {
  .map-sticky {
    border-radius: 0 0 14px 14px;
  }

  #producer-map {
    height: clamp(215px, 55vw, 265px);
    max-width: 360px;
  }
}
