
@layer reset {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
  }

  p {
    margin: 0;
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  html{
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-color: var(--scrollbar-thumb, var(--verdetexto)) var(--scrollbar-track, var(--verdegris));
  /* scrollbar-width: thin; */
  }
}

/* @font-face {
  font-family: 'Orbitron';
  src: url("/fonts/Orbitron/Orbitron-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
} */


@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/Atkinson_Hyperlegible/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --blanco: #fffaf2;
  --crema: #fff0d9;
  --claro: #FAF6EE;
  --cremaboton: #fffBF5;
  --verdegris: #A0A9A0;
  --verdeoscuro: #005d27;
  --verdelinks: #005D27;
  --verdeboton: #2B685C;
  --verdetexto: #0C2219;
  --celeste: #ADCDFE;
  --muted: #74766d;
  --baseclara:#87A685;

  --destacado: #6D0808;

  --red: #ee2e2e;
  --yellow: #ffd105;
  --green: #1cac55;
}

@layer base {
  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    color: var(--ink);
    background: var(--verdegris);
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: "Orbitron", monospace;
  }

  h1 {
    font-size: 36px;
    font-weight: bold;
  }

  h2 {
    font-size: 28px;
    font-weight: bold;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 24px;
  }

  p {
    font-family: "Atkinson Hyperlegible", Arial, sans-serif;

    font-size: 24px;
  }
  .flow > * + * {
    margin-top: 1.5em;
  }

  header {
    a {
      font-family: "Orbitron", monospace;
      text-decoration: none;
      color: var(--blanco);
    }
  }

  .page {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
  }



  .macro {
    font-size: 50px;
    font-weight:900;
  }

  .titulo {
    font-size: 36px;
    font-weight: bold;
  }
  .subtitulo{
    font-family: "orbitron", monospace;
    font-size: 28px;
    font-weight: bold;
  }
  .destacado{
    font-size: 28px;
    font-family: "orbitron", monospace;
    font-weight:400;
  }

  .textos{
    font-size: 24px;
    font-family: "orbitron", monospace;
    font-weight: 400;
  }
  .textos-bold{
    font-size: 24px;
    font-family: "orbitron", monospace;
    font-weight: bolder;
  }

  .parrafo {
    font-size: 22px;
    font-weight: 400;
  }
  .parrafo-destacado{
    font-size: 22px;
    font-weight: bold;
    font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  }
  .parrafo-secundario{
    font-size: 20px;
    font-weight: 400;
  }
  .parrafo-secundario-bold{
    font-size: 20px;
    font-weight: bold;
  }
  .titulo-cards-variable{
    font-size: 18px;
    font-weight: bolder;
    font-family: "Orbitron", monospace;
  }
  .titulo-cards {
    font-size: 16px;
    font-weight: bold;
    font-family: "Orbitron", monospace;
  }

  .pequeno {
    font-size: 14px;
  }
  .ui-pequeno{
    font-size: 12px;
    font-family: "Orbitron", monospace;
    font-weight: 400;
  }
  .ui-pequeno-black{
    font-size: 12px;
    font-family: "Orbitron", monospace;
    font-weight: bold;
  }


  .limite-545{
    max-width: 545px;
    margin-top: 7rem;
  }

  .contenedor {
    margin: 0 auto;
    --wrapper-max-width: 1200px;
    max-width: var(--wrapper-max-width);


    &[data-width="narrow"] {
      --wrapper-max-width: 720px;
    }
    &[data-width="wide"] {
      --wrapper-max-width: 1330px;
    }



  }
    .scroll-watcher{
      height: 3px;
      position: fixed;
      top: 0;
      z-index: 1000;
      background: var(--verdeoscuro);
      width: 100%;
      scale: 0 1;
      transform-origin:left;
      animation: scroll-watcher linear;
      animation-timeline: scroll();
    }
    @keyframes scroll-watcher {
      to {scale: 1 1;}
    }

    .enlace{



      color: inherit;
      &:hover{
        color: var(--verdeboton);
      }
    }

  .vidrio {
    position: absolute;
    bottom: 0;
    background-color: alpha(from rgb(203, 210, 199) / 22%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 42px;

    color: #fff;
  }


  .boton{
    background-color: var(--verdeboton);
    color: var(--blanco);
    border: 1px solid var(--blanco);
    font-family: "Orbitron", monospace;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
  }
  .boton:hover{
    background-color: var(--verdeboton)!important;
  }
  .boton.descarga:hover{
    color: var(--verdetexto)!important;
  }
  .boton .parrafo-secundario{
    font-size: 17px !important;
    line-height: 1.45 !important;
  }
  .boton ul{
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-family: "Atkinson Hyperlegible", Arial, sans-serif !important;
    list-style: inside !important;
  }

  .rojo-otbn{
    color: var(--red);
  }
  .amarillo-otbn{
    color: var(--yellow);
  }
  .verde-otbn{
    color: var(--green);
  }
  .verde-texto{
    color: var(--verdetexto);
  }
  .verde-boton{
    color: var(--verdeboton);
  }
  @media (max-width: 64rem) {

    .macro {
      font-size: 2.5rem;
    }


    h1 {
      font-size: 2rem;
    }

    .titulo {
      font-size: 1.75rem;
    }

    h2 {
      font-size: 1.6rem;
    }

    .subtitulo {
      font-size: 1.6rem;
    }

    h3 {
      font-size: 1.5rem;
    }

    .destacado {
      font-size: 1.5rem;
    }


    h4 {
      font-size: 1.3rem;
    }

    p {
      font-size: 1.15rem;
    }

    .textos {
      font-size: 1.15rem;
    }

    .textos-bold {
      font-size: 1.15rem;
    }

    .parrafo {
      font-size: 1.15rem;
    }

    .parrafo-secundario {
      font-size: 1.05rem;
    }


    .titulo-cards-variable {
      font-size: 1rem;
    }

    .titulo-cards {
      font-size: 0.95rem;
    }


    .pequeno {
      font-size: 0.8rem;
    }

    .ui-pequeno {
      font-size: 0.75rem;
    }
  }

  @media (max-width: 48rem) {

    .macro {
      font-size: 1.75rem;
    }


    h1 {
      font-size: 1.6rem;
    }

    .titulo {
      font-size: 1.4rem;
    }

    h2 {
      font-size: 1.3rem;
    }

    .subtitulo {
      font-size: 1.3rem;
    }

    h3 {
      font-size: 1.25rem;
    }

    .destacado {
      font-size: 1.25rem;
    }


    h4 {
      font-size: 1.15rem;
    }

    p {
      font-size: 1.05rem;
    }

    .textos {
      font-size: 1.05rem;
    }

    .textos-bold {
      font-size: 1.05rem;
    }

    .parrafo {
      font-size: 1.05rem;
    }

    .parrafo-secundario {
      font-size: 1rem;
    }


    .titulo-cards-variable {
      font-size: 0.95rem;
    }

    .titulo-cards {
      font-size: 0.9rem;
    }


    .pequeno {
      font-size: 0.75rem;
    }

    .ui-pequeno {
      font-size: 0.7rem;
    }

    .contenedor {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }
}


@layer primera-pagina {
  .page.primera {
    display: flex;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    flex: 1 1 auto;
    color: var(--blanco);
    /* background:url("../images/diego-costa-IDbWBUS4S6U-unsplash 1.png") center / cover; */
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    isolation: isolate;

    .hero__video{
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: translate(-50%, -50%);
      z-index: 0;
      pointer-events: none;
    }

    .hero__topbar {
      min-height: 5.6rem;
      padding: 1.15rem 4.2rem 1rem 3rem;
      background-color: alpha( from var(--verdetexto)/ 70%) ;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      gap: 2rem;
      z-index: 2;
    }

    .hero__brand {
      opacity: 1;
      display: block;
      width: 7.1rem;
      line-height: 0;

      img {
        width: 100%;
        height: auto;
      }
    }

    nav {
      opacity: 1;
      display: flex;
      align-items: center;
      gap: 3rem;
      padding-top: 1rem;
      border-top: 0.1rem solid rgb(255 255 255 / 72%);
      align-self: end;

      a {
        color: alpha(from var(--blanco)/ 70%);
        &.active {
          font-weight: 700;
        }

        &:hover {
          color: alpha(from var(--blanco)/ 100%);
          background-color: alpha(from var(--verdetexto) / 100%);
        }
      }
    }

    .hero__content {
      position: relative;
      display: grid;
      justify-items: center;
      align-content: center;
      gap: 4rem;
      padding: 3rem 1.5rem 4.4rem;

    }

    .hero__fuente {
      max-width: 474px;
      position: absolute;
      bottom: 0.5rem;
      left: 2rem;
      margin: 0;
      color: var(--blanco);
      text-shadow: 0 1px 3px rgb(0 0 0 / 90%);
      /* font-family: "Atkinson Hyperlegible", sans-serif; */
    }

    .hero__heading {
      max-width: 872px;
      display: grid;
      gap: 1rem;
      h1{
        font-size: 42.55px;
      }
      &>*+*{
        margin-top: 1rem;
      }
      text-align: center;

      >p {
        margin: 0 auto;
        max-width: 702px;

      }
    }

    .contador {
      display: flex;
      justify-content: center;
      gap: 1.75rem;

      .unidad {
        display: grid;
        gap: 0.9rem;

        .label {
          text-align: center;
        }

        .digits {
          display: flex;
          gap: 0.45rem;
        }

        .digit {
          width: 60px;
          height: 75px;
          display: grid;
          place-items: center;
          background: var(--blanco);
          color: var(--ink);
          font-family: "Orbitron", monospace;
          line-height: 1;
          font-size: 34px;
        }
      }
    }

  }

  @media (max-width: 75rem) and (min-width: 64.01rem) {
    .hero {
      .hero__topbar {
        padding: 1rem 2rem 0.9rem 1.5rem;
        gap: 1.5rem;
      }

      .hero__brand {
        width: 6.5rem;
      }

      nav {
        gap: 1.25rem;
        padding-top: 0.9rem;

        a {
          font-size: 0.85rem;
          white-space: nowrap;
        }

        .boton.descarga {
          padding: 0.45rem 0.8rem;
          white-space: nowrap;
        }
      }
    }
  }

  @media (max-width: 64rem) {
    .hero {
      .hero__topbar {
        padding: 1rem 1.5rem;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1rem;
      }

      .hero__brand {
        width: 6rem;
      }

      nav {
        width: 100%;
        max-width: 34rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem 1.4rem;
        padding-top: 0.8rem;

        a {
          font-size: 0.9rem;
          white-space: nowrap;
        }
      }

      .hero__content {
        gap: 2.75rem;
        padding: 2.5rem 1.25rem 5rem;
      }

      .hero__heading .macro {
        font-size: 2.4rem;
        line-height: 1.15;
        text-wrap: balance;
      }

      .hero__heading .pequeno {
        font-size: 0.72rem;
      }

      .hero__heading h2 {
        font-size: 1.3rem;
        text-wrap: balance;
      }

      .contador {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.25rem;
        max-width: 100%;
      }
    }

  }

  @media (max-width: 48rem) {
    .page.primera {
      min-height: 100svh;
      min-height: 100vh;
    }

    .hero {
      min-height: auto;
      flex: 1 0 auto;

      .hero__topbar {
        padding: 0.9rem 1rem 1rem;
      }

      nav {
        gap: 0.55rem 1rem;

        a {
          font-size: 0.68rem;
        }

        .boton.descarga {
          display: inline-flex;
          flex: 0 1 auto;
          min-width: 0;
          max-width: 100%;
          justify-content: center;
          text-align: center;
          white-space: normal;
          overflow-wrap: break-word;
          line-height: 1.2;
        }
      }

      .hero__content {
        gap: 1.4rem;
        padding: 1.25rem 1rem 3rem;
      }

      .hero__fuente {
        bottom: 0.75rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 0.55rem;
        line-height: 1.1;
      }

      .hero__heading {
        gap: 0.7rem;
        max-width: 36rem;

        h1 {
          font-size: 1.5rem;
          line-height: 1.2;
          text-wrap: balance;
        }

        > .parrafo {
          font-size: 1rem;
          line-height: 1.4;
        }

        > .ui-pequeno-black {
          font-size: 0.65rem;
          line-height: 1.3;
        }

        > * + * {
          margin-top: 0;
        }
      }

      .contador {
        gap: 0.9rem 0.6rem;
        width: 100%;
        max-width: 26rem;

        .unidad {
          gap: 0.55rem;

          .label {
            font-size: 0.58rem;
          }

          .digits {
            gap: 0.3rem;
          }

          .digit {
            width: 2rem;
            height: 2.8rem;
            font-size: 1.2rem;
          }
        }
      }

    }
  }

  @media (min-width: 48.01rem) and (max-height: 48rem) {
    .hero {
      .hero__content {
        gap: 2rem;
        padding: 1.5rem 1.5rem 2.5rem;
      }
    }
  }
}

@layer segunda-pagina {
  .page.segunda {
    min-height: 100vh;

    background-color: var(--verdegris);


  }
  .page.segunda{
    display: grid;
    align-items: center;
    .contenedor{
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .segunda__texto {
    color: var(--verdetexto);
    width: 100%;
    max-width: 887px;
    justify-self: center;
    padding-top: 140px;
    padding-bottom: 140px;

    /* .fecha{
      font-family: "Atkinson Hyperlegible", sans-serif;
      font-size: 15px;
      color: var(--verdetexto);
      margin-bottom: 1.5rem;
      text-align: left;
    } */

    .reforestacion-restauracion {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-width: 100%;
      margin: 1rem auto;
      background-color: var(--baseclara);

      .reforestacion-restauracion__encabezados {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 4.1rem;
        align-items: center;
        padding: 0.75rem 0;
        background-image:
          linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 20%)),
          url("../images/reforestacion_es.jpg");
        background-position: center 65%;
        background-size: cover;
        color: var(--blanco);

        h3 {
          font-size: 24.75px;
          padding-inline: 1rem;
        }
      }

      .reforestacion-restauracion__descripcion {
        padding: 0.75rem 1rem 1rem;
        color: var(--verdetexto);
        font-family: "Atkinson Hyperlegible", Arial, sans-serif;
        font-size: 1rem;
        line-height: 1.3;
      }

    }

    .reforestacion-restauracion__fuente {
      max-width: 780px;
      margin: 0;
      color: var(--verdetexto);
      font-family: "Orbitron", monospace;
      font-size: 0.7rem;
    }

    .titulo {
      max-width: 500px;
      margin-bottom: 1.5rem;
    }

    .parrafos {
      max-width: 500px;
    }
  }

  @media (max-width: 80rem) {
    .page.segunda {
      padding-inline: 2rem;
    }
  }

  @media (max-width: 45rem) {
    .page.segunda {
      padding: 0 1.5rem;
      grid-template-columns: minmax(0, 1fr);
      row-gap: 2.5rem;

      .contenedor {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .segunda__texto {
      width: 100%;
      max-width: 24rem;
      justify-self: center;
      padding-top: 2rem;
      padding-bottom: 2rem;

      .reforestacion-restauracion {
        grid-template-columns: minmax(0, 1fr);

        .reforestacion-restauracion__encabezados {
          grid-template-columns: minmax(0, 1fr);
          gap: 0.5rem;

          h3 {
            margin: 0;
            text-align: center;
          }
        }
      }
    }
  }

}

@layer tercera-pagina {
  .page.tercera {

    position: relative;
    color: var(--blanco);
    display: grid;
    grid-template-rows: 1fr;
    background: url("../images/bosque_esp.jpg") center 0% / cover no-repeat;;


    min-height: 60vh;
  }

  .tercera__fuente {
    position: absolute;
    bottom: 1rem;
    left: 3rem;
    color: var(--blanco);
    text-shadow: 0 1px 3px rgb(0 0 0 / 90%);
  }

  .tercera__contenido {
    padding: 7rem 3rem;
    display: grid;
    justify-items: center;
    align-content: center;
  }

  .tercera__tarjetas {

    display: grid;
    grid-template-columns: repeat(3, 365px);
    gap: 1.7rem;
    justify-content: center;
  }

  .tarjeta-restauracion {
    background-color: alpha(from var(--verdegris) /62%);

    color: var(--verdetexto);
    width: 100%;
    max-width: 365px;
    max-height: 240px;
  
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 49px;
    padding-bottom: 25px;
    
    position: relative;
    display: grid;
    align-items: start;
    text-align: center;
    
    .parrafo {
      margin: 0;
      align-self: start;
    }
    

    .tarjeta-restauracion__icono {
      background-color: var(--verdegris);
      position: absolute;
      top: -3.2rem;
      left: 50%;
      width: 90px;
      height: 90px;
      transform: translateX(-50%);
      border-radius: 50%;
      display: grid;
      place-items: center;
      box-shadow: 0 0.5rem 0.7rem rgb(0 0 0 / 18%);

      img {
        width: 70%;
        height: 70%;
      }
    }
     
  }

  @media (max-width: 1200px) {
    .tercera__tarjetas {
      width: 100%;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 45rem) {
    .tercera__contenido {
      padding: 3rem 1.5rem;
    }

    .tercera__fuente {
      position: static;
      margin: 1.5rem 1.5rem 1rem;
      font-size: 0.62rem;
      line-height: 1.1;
    }

    .tercera__tarjetas {
      grid-template-columns: 1fr;
      gap: 5.5rem;

      .tarjeta-restauracion:first-child {
        margin-top: 2rem;
      }
    }
  }
}

@layer cuarta-pagina {
  .page.cuarta {
    margin-top: 2rem;
  }

  .arbol {
    min-width: 0;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: end center;
  }











  .bloque-otbn {
    width: 100%;
    /* height: 1000svh; */
    height: auto;
    margin-top: 5rem;
    padding: 0;
    justify-self: center;
    position: relative;
    z-index: 1;
  }

  @media (max-width:45rem) {
    .page.cuarta{
      margin-top: 0;
    }
    .bloque-otbn{
      margin-top: 0;
    }
  }

  .mapa-bn {
    width: 100%;
  }

  .otbn-720 {
    display:none;
    color:var(--blanco);
  }

  /* aviso scroll */
 .aviso-scroll {
  font-family: "orbitron",monospace;
  position: sticky;
  bottom: 15px;
  width: fit-content;
  margin: 10px auto;
  padding: 10px 16px;
  background: #222;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
  animation: aparecerDesdeAbajo 0.5s ease-out;
}

@keyframes aparecerDesdeAbajo {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.vidrio.perdida-otbn {
  text-align: center;
  max-width: 384px;
}
.vidrio.otbn-rojo-vidrio{
  width: 100%;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  text-align: left;
  >p{
    padding-top: 21px;
    padding-bottom: 21px;
    max-width: 500px;
  }
  >*{
    padding-left: 24px;
  } 
}
  .mapa-bn__leyenda {
    grid-column: 2/3;
    grid-row: 1/2;
    color: var(--blanco);
    text-align: center;


    .equivalencia-cordoba {
      margin-top: 3.5rem;
      >*+*{
        padding-top: 1rem;
      }

      .equivalencia-cordoba__siluetas {
        min-height: 7.65rem;
        display: flex;
        align-items: center;
        gap: 1.7rem;
        margin: auto;
        width: fit-content;
      }

      .equivalencia-cordoba__provincia,
      .equivalencia-cordoba__fraccion {
        width: 4.65rem;
        height: 7.65rem;
        display: block;
      }

      .equivalencia-cordoba__provincia {
        object-fit: contain;
      }

      .equivalencia-cordoba__fraccion {
        position: relative;

        > img {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
        }

        .equivalencia-cordoba__fantasma {
          opacity: 0.18;
        }

        .equivalencia-cordoba__recorte {
          clip-path: inset(0 var(--cordoba-recorte) 0 0);
        }
      }

      p {



      }
    }
  }
  .otbn-categoria-ha{
    position: absolute;
    top: 0;
    z-index: 2;
    margin: 0px 0px 0px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 10px 21px;
    border-radius: 13px;
    justify-content: space-between;

    >p{
      text-align: center;
    }
    .subtitulo{
      font-size: 22px;
      line-height: 1.3;
      text-align: left !important;
    }
    > .subtitulo{
      min-width:0;
      flex:1 1 55%;
    }
    .otbn-ha{
      min-width:0;
      flex:0 1 45%;
      .macro{
        font-size: 34px;
        letter-spacing: 1px;
      }
    }
    .otbn-divisor {
      width: 2px;
      flex: none;
      align-self: stretch;
      background-color: var(--blanco);
    }
  }
  .otbn-categoria-ha:has(.otbn-divisor){
    display:grid;
    grid-template-columns:minmax(0, 1.15fr) 2px minmax(0, 1fr);
  }
  .otbn-categoria-ha:has(.otbn-divisor) > .otbn-ha{
    width:100%;
  }
  .otbn-rojo-fondo {
    background-color: var(--red);
  }
  .otbn-amarillo-fondo {
    background-color: var(--yellow);
  }
  .otbn-verde-fondo {
    background-color: var(--green);
  }
  .otbn-gris-fondo{
    background-color: #808080;
  }
  .otbn-rojo-provincia-destacada,.otbn-amarillo-provincia-destacada,.otbn-verde-provincia-destacada{
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    min-height: 85%;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background-image: url("../images/otbn/otbn_rojo_cordoba.jpg");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    color: var(--blanco);
    position: relative;
  }
  .otbn-amarillo-provincia-destacada{
    background-image: url("../images/otbn/otbn_medio_sgo.jpg");
  }
  .otbn-verde-provincia-destacada{
    background-image: url("../images/otbn/otbn_bajo_formosa.jpg");
  }

  /* MAPAS OTBN PARALLAX */
  .bloque-otbn{
    height: auto;
  }

  .mapa-bn__contenedor--secuencia{
    display:block; /* anula el grid 1fr 1fr de .mapa-bn__contenedor */
    position:relative;
    width:100%;
    max-width:100%;
    min-width:0;
    --otbn-titulo-alto:96px; /* lo actualiza el JS con el alto real del título */
  }

  .mapa-bn__visualizacion{
    display:grid;
    min-width:0;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap:48px;
    align-items:start;
  }

  /* EL GRUPO FIJO: título + mapa + crédito, todos juntos, sticky.*/
  .mapa-bn__fijo{
    position:sticky;
    top:11vh; /* separación desde arriba del viewport */
    align-self:start;
    display:flex;
    flex-direction:column;
    gap:0px;
    max-height:100vh;
    min-width:0;
  }

  .mapa-bn__cabecera-secuencia{
    position:sticky;
    top:0;
    z-index:5;
    width:100%;
    padding:1rem 1.5rem;
    background:var(--verdegris);
    text-align:center;
    margin:0;
  }
  .mapa-bn__titulo-secuencia{
    margin:0 auto;
    max-width:1000px;
    text-align:center;
    color:var(--verdetexto);
    font-size: 30px
  }

  .mapa-bn--secuencia{
    position:static;
    width:100%;
    max-width:100%;
    max-height:85vh;
    object-fit:contain;
    transition:opacity .35s ease;
  }

  .mapa-bn__credito{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    color: var(--blanco);

    /* p.ui-pequeno{
      font-family: "Atkinson Hyperlegible", sans-serif;
      font-size: 0.75rem;
    } */
  }
  .mapa-bn__credito img{
    width:5rem;
    height:auto;
  }

  .mapa-bn__leyenda--secuencia{
    display:flex;
    flex-direction:column;
    min-width:0;
    max-width:100%;
  }
  .mapa-bn__leyenda--secuencia.otbn-720{
    display:none;
  }
  .mapa-bn__leyenda--secuencia .aparece{
    min-width:0;
    max-width:100%;
    min-height:70vh;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    opacity:0;
    /* transform:translateY(1px); */
    transition: all .3s ease;
    /* overflow-y: hidden; */
    pointer-events: none;

    .otbn-resumen-fondo{
      background-color: var(--verdetexto);
      border-radius: 13px;
      color: var(--blanco);
      padding: 10px 21px;
      margin: 0px 0px 10px;
    }
    .equivalencia-cordoba{
      margin-top: 100px;
      .cordobas{
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0px auto 10px;
      }
      .titulo-cards-variable{
        font-size: 18px;
        font-weight: bolder;
        font-family: "Orbitron", monospace;
        margin: 0 auto;
      }
    }
    .flow{
      &.cero{
        margin-top: 80px;
      }
      .parrafos{
        text-align: left !important;
        font-size: 19px !important;
        width: 90% !important;
        margin: 20px auto;
        color: var(--blanco);
      }
      .textos {
        font-size: 19px;
        font-family: "orbitron", monospace;
        margin: 0 auto;
        text-align: left;
      }
      ul{
        list-style: disc;
        li .destacado{
          font-size: 22px;
          text-align: left;
          margin-left: 1rem;
          font-weight: bold;
        } 
      }
    }
    .parrafo-destacado{
      text-align: left !important;
      line-height: 3;
      padding: 0 2rem;
    }
    div {
      .parrafos{
        text-align: left !important;
        font-size: 19px !important;
        width: 90% !important;
        margin: 20px auto;
        color: var(--blanco);
      }
      .credFrase{
        font-size: 12px;
        line-height: 1.5;
        font-family: "Atkinson Hyperlegible", sans-serif;
        margin: 15px auto;
        width: 90%;
        text-align: left;
      }
    }
    .otbn-rojo-vidrio{
      border-radius: 0 0 10px 10px;
      /* ha */
      div{
        background-color: var(--blanco);
      }
    }
    .vidrio{
      /* padding: 10px 0; */
      .subtitulo{
        font-size: 21px;
        line-height: 1.3;
        width: 83%;
        margin: 10px auto 0;
      }
      .macro{
        letter-spacing: 1px;
        .textos{
          font-size: 21px;
        }
      }

    }
    .cred-prov{
      font-size: 12px;
      line-height: 1.5;
      /* font-family: "Atkinson Hyperlegible", sans-serif; */
      font-family: "orbitron";
      margin: 5px 0;
      text-align: left;
    }
  }
  .mapa-bn__leyenda--secuencia .aparece.is-active{
    opacity:1;
    /* transform:translateY(0); */
    height: 70vh;
    position: relative;

    .otbn-resumen-fondo{
      background-color: var(--verdetexto);
      border-radius: 13px;
      color: var(--blanco);
      padding: 10px 21px;
      margin: 0px 0px 10px;
    }
    .equivalencia-cordoba{
      margin-top: 100px;
      .cordobas{
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0px auto 10px;
      }
      .titulo-cards-variable{
        font-size: 18px;
        font-weight: bolder;
        font-family: "Orbitron", monospace;
        margin: 0 auto;
        text-align: left;
        width: 90%;
      }
    }
    /* primer texto */
    .flow{
      &.cero{
        margin-top: 180px;
      }
      .parrafos{
        text-align: left !important;
        font-size: 19px !important;
        width: 90% !important;
        margin: 20px auto;
        color: var(--blanco);
      }
      .textos {
        font-size: 19px;
        font-family: "orbitron", monospace;
        margin: 0 auto;
        text-align: left;
      }
      ul{
        list-style: disc;
        li .destacado{
          font-size: 22px;
          text-align: left;
          margin-left: 1rem;
          font-weight: bold;
        } 
      }
    }
    .parrafo-destacado{
      text-align: left !important;
      line-height: 3;
      padding: 0 2rem;
    }
    div {
      .parrafos{
        text-align: left !important;
        font-size: 19px !important;
        width: 90% !important;
        margin: 20px auto;
        color: var(--blanco);
      }
      .credFrase{
        font-size: 12px;
        line-height: 1.5;
        font-family: "Atkinson Hyperlegible", sans-serif;
        margin: 15px auto;
        width: 90%;
        text-align: left;
      }
    }
    .vidrio{
      /* padding: 10px 0; */
      border-radius: 0 0 10px 10px;
      overflow: hidden;
      .subtitulo{
        font-size: 21px;
        line-height: 1.3;
        width: 83%;
        margin: 10px auto 0;
      }
  
      .macro{
        letter-spacing: 1px;
        .textos{
          font-size: 21px;
        }
      }

    }
      .vidrio.perdida-otbn {
        border-radius: 10px;
        .textos-bold{
          padding-inline: 40px;
          padding-top: 19px;
          padding-bottom: 10px;
        }
      }
    .cred-prov{
      font-size: 12px;
      line-height: 1.5;
      /* font-family: "Atkinson Hyperlegible", sans-serif; */
      margin: 5px 0;
      text-align: left;
    }
  }

  /* en mobile no alcanza el ancho para 2 columnas: el grupo fijo
    (título + mapa + crédito) queda arriba, sticky, más chico */
  @media (max-width:860px){
    .mapa-bn__visualizacion{
      grid-template-columns:1fr;
    }
    .mapa-bn__fijo{
      top:0;
      max-height:48vh;
      gap:8px;
      background: var(--verdegris);
      z-index:2;
      padding-bottom:8px;
    }
    .mapa-bn__titulo-secuencia{
      font-size:1.05rem;
      line-height:1.3;
    }
    .mapa-bn--secuencia{
      max-height:28vh;
    }
    .mapa-bn__credito img{
      width:3.5rem;
    }
    .mapa-bn__leyenda--secuencia .aparece{
      min-height:55vh;
      background: rgba(255,255,255,.08);
      padding:16px;
      border-radius:10px;
    }
  }

  /* [data-otbn-estado="0"] .aparece[data-otbn-paso="0"],
  [data-otbn-estado="1"] .aparece[data-otbn-paso="1"],
  [data-otbn-estado="2"] .aparece[data-otbn-paso="2"],
  [data-otbn-estado="3"] .aparece[data-otbn-paso="3"],
  [data-otbn-estado="4"] .aparece[data-otbn-paso="4"],
  [data-otbn-estado="5"] .aparece[data-otbn-paso="5"],
  [data-otbn-estado="6"] .aparece[data-otbn-paso="6"],
  [data-otbn-estado="7"] .aparece[data-otbn-paso="7"],
  [data-otbn-estado="8"] .aparece[data-otbn-paso="8"],
  [data-otbn-estado="9"] .aparece[data-otbn-paso="9"] {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    gap: 2rem;
    align-items: flex-start;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    text-align: left;
    max-height: 90%;
  }
 [data-otbn-estado="3"] .aparece[data-otbn-paso="3"],
 [data-otbn-estado="5"] .aparece[data-otbn-paso="5"],
 [data-otbn-estado="7"] .aparece[data-otbn-paso="7"]{
    gap: 0;
  }

  @media (min-width: 721px) and (max-height: 720px) {
    [data-otbn-estado="0"] .aparece[data-otbn-paso="0"],
    [data-otbn-estado="1"] .aparece[data-otbn-paso="1"],
    [data-otbn-estado="2"] .aparece[data-otbn-paso="2"],
    [data-otbn-estado="3"] .aparece[data-otbn-paso="3"],
    [data-otbn-estado="4"] .aparece[data-otbn-paso="4"],
    [data-otbn-estado="5"] .aparece[data-otbn-paso="5"],
    [data-otbn-estado="6"] .aparece[data-otbn-paso="6"],
    [data-otbn-estado="7"] .aparece[data-otbn-paso="7"],
    [data-otbn-estado="8"] .aparece[data-otbn-paso="8"],
    [data-otbn-estado="9"] .aparece[data-otbn-paso="9"] {
      margin-top: 0px;
      max-height: 100%;
      gap: 0.5rem;
    }
  }

 .aparece[data-otbn-paso="9"] ul{
    list-style-type: disc;
    list-style-position: inside;
  }
 .aparece[data-otbn-paso="9"] ul li h3{
    display: inline-block;
  } 

  .otbn-secuencia__pasos {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }*/

  @media (min-width: 721px) and (max-height: 720px) {
    .bloque-otbn > .aviso-scroll {
      display:none;
    }

    .mapa-bn__contenedor--secuencia {
      display:none;
    }

    .mapa-bn__leyenda--secuencia.otbn-720 {
      display:grid;
      grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
      gap:24px;
      align-items:start;
    }

    .otbn-720__encabezado {
      grid-column:1 / -1;
      position:sticky;
      top:0;
      z-index:5;
      width:100%;
      padding:16px 12px;
      background:var(--verdegris);
      text-align:center;
    }

    .otbn-720__aviso {
      grid-column:1 / -1;
      position:static;
      margin:10px auto 24px;
    }

    .otbn-720 .limite-545 {
      margin-top:2rem;
    }

    .otbn-720 .aparece .equivalencia-cordoba {
      margin-top:2rem;
    }

    .otbn-720__escena {
      min-height:100svh;
      display:flex;
      align-items:center;
      padding:24px 0;
    }

    .otbn-720__mapa-columna {
      position:sticky;
      top:8vh;
      align-self:start;
      min-width:0;
      height:90vh;
      display:flex;
      flex-direction:column;
      justify-content:center;
    }

    .otbn-720__pasos {
      min-width:0;
    }

    .otbn-720__mapa {
      display:block;
      width:100%;
      height:84vh;
      object-fit:contain;
      transition:opacity .35s ease;
    }

    .otbn-720__mapa-columna .mapa-bn__credito {
      flex:none;
    }

    .otbn-720__contenido,
    .otbn-720 .aparece {
      min-width:0;
      width:100%;
      min-height:0;
      height:auto;
      position:relative;
      display:flex;
      flex-direction:column;
      justify-content:flex-start;
      opacity:1;
      visibility:visible;
      pointer-events:auto;
      transition:none;
    }

    .otbn-720 .otbn-categoria-ha {
      position:relative;
      top:auto;
      gap:6px;
      padding:6px 12px;
    }

    .otbn-720 .otbn-categoria-ha:has(.otbn-divisor) {
      display:grid;
      grid-template-columns:minmax(0, 1fr) 2px minmax(0, 1.6fr);
      align-items:center;
    }

    .otbn-720 .otbn-categoria-ha:has(.otbn-divisor) .otbn-ha {
      min-width:0;
    }

    .otbn-720 .aparece[data-otbn-paso="8"] .otbn-categoria-ha {
      display:grid;
      grid-template-columns:minmax(0, 1fr);
      gap:6px;
      align-items:start;
      padding:8px 12px;
    }

    .otbn-720 .aparece[data-otbn-paso="8"] .otbn-categoria-ha > div {
      min-width:0;
      width:100%;
    }

    .otbn-720 .aparece[data-otbn-paso="8"] .otbn-divisor {
      display:none;
    }

    .otbn-720 .aparece[data-otbn-paso="8"] .otbn-ha {
      display:flex;
      align-items:baseline;
      justify-content:flex-start;
      gap:8px;
      text-align:left !important;
    }

    .otbn-720 .aparece[data-otbn-paso="8"] .otbn-ha .macro {
      font-size:32px;
    }

    .otbn-720 .vidrio {
      position:static;
      width:100%;
    }

    .otbn-720 .vidrio.otbn-rojo-vidrio {
      text-align:left;
    }

    .otbn-720 .otbn-rojo-provincia-destacada,
    .otbn-720 .otbn-amarillo-provincia-destacada,
    .otbn-720 .otbn-verde-provincia-destacada {
      min-height:360px;
      height:360px;
    }

  }

  @media (min-width: 45.01rem) and (max-width: 64rem) {
    .otbn-720 .aparece:is(
      [data-otbn-paso="2"],
      [data-otbn-paso="3"],
      [data-otbn-paso="4"],
      [data-otbn-paso="5"],
      [data-otbn-paso="6"],
      [data-otbn-paso="7"],
      [data-otbn-paso="8"]
    ) .otbn-categoria-ha {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 6px;
      align-items: start;
      padding: 8px 12px;
    }

    .otbn-720 .aparece:is(
      [data-otbn-paso="2"],
      [data-otbn-paso="3"],
      [data-otbn-paso="4"],
      [data-otbn-paso="5"],
      [data-otbn-paso="6"],
      [data-otbn-paso="7"],
      [data-otbn-paso="8"]
    ) .otbn-categoria-ha > div {
      min-width: 0;
      width: 100%;
    }

    .otbn-720 .aparece:is(
      [data-otbn-paso="2"],
      [data-otbn-paso="3"],
      [data-otbn-paso="4"],
      [data-otbn-paso="5"],
      [data-otbn-paso="6"],
      [data-otbn-paso="7"],
      [data-otbn-paso="8"]
    ) .otbn-divisor {
      display: none;
    }

    .otbn-720 .aparece:is(
      [data-otbn-paso="2"],
      [data-otbn-paso="3"],
      [data-otbn-paso="4"],
      [data-otbn-paso="5"],
      [data-otbn-paso="6"],
      [data-otbn-paso="7"],
      [data-otbn-paso="8"]
    ) .otbn-ha {
      display: flex;
      align-items: baseline;
      justify-content: flex-start;
      gap: 8px;
      text-align: left !important;
    }

    .otbn-720 .aparece:is(
      [data-otbn-paso="2"],
      [data-otbn-paso="3"],
      [data-otbn-paso="4"],
      [data-otbn-paso="5"],
      [data-otbn-paso="6"],
      [data-otbn-paso="7"],
      [data-otbn-paso="8"]
    ) .otbn-ha .macro {
      font-size: 32px;
    }
  }

  .otbn-movil {
    display: none;
  }

  @media (max-width: 45rem) {
    .bloque-otbn {
      height: auto;
    }

    .mapa-bn__contenedor--secuencia {
      height: 100svh;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: 1fr 1fr;

    }

    .mapa-bn--secuencia {
      height: 60svh;
    }

    .mapa-bn__leyenda--secuencia {
      grid-column: 1;
      grid-row: 1;
      align-self: center;
      padding: 1rem 1rem 3rem;



    }
    .mapa-bn__contenedor--secuencia {
      display: none;
    }

    .otbn-movil {
      display: block;
    }

    .otbn-movil__tarjeta {
      height: 100vh;
      min-height: 0;
      margin: 0 auto;
      background-color: var(--verdegris);
      overflow-y: auto;
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      visibility: hidden;
      opacity: 0;
      transition: opacity 350ms ease, visibility 350ms ease;

      p{

      }
    }

    .otbn-movil .otbn-movil__pildoras,
    .otbn-movil .otbn-movil__slogan {
      display: none;
    }

    .otbn-movil__escena {
      position: sticky;
      top: 0;
      height: 100vh;
    }

    .otbn-movil__disparador {
      height: 100vh;
    }

    [data-otbn-estado="i0"] .otbn-movil__tarjeta[data-otbn-i="0"],
    [data-otbn-estado="i1"] .otbn-movil__tarjeta[data-otbn-i="1"],
    [data-otbn-estado="i2"] .otbn-movil__tarjeta[data-otbn-i="2"],
    [data-otbn-estado="r0"] .otbn-movil__tarjeta[data-otbn-r="0"],
    [data-otbn-estado="r1"] .otbn-movil__tarjeta[data-otbn-r="1"],
    [data-otbn-estado="r2"] .otbn-movil__tarjeta[data-otbn-r="2"],
    [data-otbn-estado="m0"] .otbn-movil__tarjeta[data-otbn-m="0"],
    [data-otbn-estado="m1"] .otbn-movil__tarjeta[data-otbn-m="1"],
    [data-otbn-estado="m2"] .otbn-movil__tarjeta[data-otbn-m="2"],
    [data-otbn-estado="v0"] .otbn-movil__tarjeta[data-otbn-v="0"],
    [data-otbn-estado="v1"] .otbn-movil__tarjeta[data-otbn-v="1"],
    [data-otbn-estado="v2"] .otbn-movil__tarjeta[data-otbn-v="2"],
    [data-otbn-estado="g0"] .otbn-movil__tarjeta[data-otbn-g="0"],
    [data-otbn-estado="g1"] .otbn-movil__tarjeta[data-otbn-g="1"],
    [data-otbn-estado="g2"] .otbn-movil__tarjeta[data-otbn-g="2"],
    [data-otbn-estado="g3"] .otbn-movil__tarjeta[data-otbn-g="3"],
    [data-otbn-estado="0"] .otbn-movil__tarjeta[data-otbn-i="0"] {
      visibility: visible;
      opacity: 1;
    }
    [data-otbn-m="1"],
    [data-otbn-r="1"],
    [data-otbn-v="1"] {
      .otbn-movil__cuerpo{
        flex: 0 0 auto;
        margin-top: auto;
        padding: 0;

        .otbn-movil__vidrio {
          position: static;
          width: 100%;
          padding: 1.25rem 1rem 2rem;
          border-radius: 1rem 1rem 0 0;
          color: var(--verdetexto);

          h2,
          p {
            color: inherit;
            font-family: "Orbitron", monospace;
            line-height: 1.25;
          }

          > div {
            margin-top: 0;
            padding: 0;
            border-radius: 0;
          }
        }
      }
    }
    .otbn-movil__cabecera{
      display: grid;
      align-items: center;
      border-radius: 0 0 1rem 1rem;

      .macro{
        font-size: 50px;
      }
    }

    .otbn-movil__cabecera .equivalencia-cordoba {
      margin-top: 1rem;
    }

    .otbn-movil__cabecera .equivalencia-cordoba__siluetas {
      width: 12rem;
      height: 4rem;
      min-height: 0;
      margin: 0 auto;
      background: url("../images/otbn/cordobas.png") center / contain no-repeat;

      > * {
        display: none;
      }
    }

    .otbn-movil__cabecera .equivalencia-cordoba__provincia,
    .otbn-movil__cabecera .equivalencia-cordoba__fraccion {
      width: 2.5rem;
      height: 4rem;
      display: block;
    }

    .otbn-movil__cabecera .equivalencia-cordoba__provincia {
      object-fit: contain;
    }

    .otbn-movil__cabecera .equivalencia-cordoba__fraccion {
      position: relative;
    }

    .otbn-movil__cabecera .equivalencia-cordoba__fraccion > img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .otbn-movil__cabecera .equivalencia-cordoba__fantasma {
      opacity: 0.18;
    }

    .otbn-movil__cabecera .equivalencia-cordoba__recorte {
      clip-path: inset(0 var(--cordoba-recorte) 0 0);
    }
    /* primero */
    .otbn-movil__tarjeta[data-otbn-i="1"] .otbn-movil__cuerpo{
      >*{
        margin-top: 0.5rem;
      }

    }

    /* cordobas */
    .otbn-movil__tarjeta[data-otbn-i="2"] .otbn-movil__cabecera {
      display: grid;
      gap: 1rem;
      padding: 46px 1rem 1.5rem;
      height: auto;
      max-height: 457px;
      flex-shrink: 0;
      border-radius: 0 0 1rem 1rem;


      .macro {
        margin-top: 38px;
        font-family: "Orbitron", monospace;
        /* font-size: 2.5rem; */
        /* line-height: 1; */
        font-size: 48px;
      }


    }

    .equivalencia-cordoba__leyenda{
      font-size: 18px;
    }

    .otbn-movil__cabecera .equivalencia-cordoba {
      margin-top: 1rem;
    }
    .otbn-movil__tarjeta[data-otbn-i="2"] .otbn-movil__cabecera .equivalencia-cordoba {
      margin: 0;

      p {
        margin-top: 1.5rem;
      }
    }

    .otbn-movil__tarjeta[data-otbn-i="2"] .otbn-movil__cuerpo {
      width: auto;
      text-align: center;
      margin-left:2rem ;
      margin-right: 2rem;
      padding-top: 2rem;
      line-height: 1.7rem;

    }
    /* rojo alto */
    .otbn-movil__tarjeta[data-otbn-r="0"] .otbn-movil__cuerpo{
      >*{
        margin-top: 0.5rem;
      }
    }

    .otbn-movil__cabecera {
      padding: 0.5rem;
      text-align: center;
      color: var(--blanco);
    }

    .otbn-movil__cabecera--roja {
      padding-top: 40px;
      background-color: var(--red);
    }

    .otbn-movil__cabecera--amarilla {
      padding-top: 40px;
      background-color: var(--yellow);
    }

    .otbn-movil__cabecera--verde {
      padding-top: 40px;
      background-color: var(--green);
    }

    .otbn-movil__cabecera--gris {
      padding-top: 40px;
      background-color: #808080;
    }

    .otbn-movil__cabecera--actualiza {
      padding-top: 40px;
      background-color: var(--verdeboton);
    }
    /* data otbn g */
    
    .otbn-movil__tarjeta[data-otbn-g="0"]{
      .otbn-movil__cabecera{ 
      .macro {
        margin-top: 0.5rem;
        white-space: nowrap;
      }
      .ui-pequeno {
        margin-top: 0;
      }
    }
    }
    .otbn-movil__tarjeta[data-otbn-g="1"]{
      .otbn-movil__cuerpo{
        >*{
          margin-top: 1rem;
        }
      }
    }
    .otbn-movil__tarjeta[data-otbn-g="2"]{
      .otbn-movil__cuerpo{
        >*{
          margin-top: 3rem;
        }
      }
    }

    .otbn-movil__tarjeta[data-otbn-g] .otbn-movil__cuerpo {
      text-align: left;
    }

    .otbn-movil__vidrio--actualiza {
      position: static;
      margin-top: 1rem;
      padding: 1.25rem 1rem;
      border-radius: 1rem;
      background-color: rgba(250, 246, 238, 0.35);
      color: var(--verdeboton);
      text-align: center;
    }

    .otbn-movil__mapa-con-lista {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 1rem;
      padding-right: 1rem;

      .otbn-movil__mapa {
        padding-right: 0;
        margin-top: 45px;
      }
    }

    .otbn-movil__provincias {
      margin: 0;
      color: var(--verdeboton);
      font-family: "Orbitron", monospace;
      font-size: 1rem;
      line-height: 1.5;
    }

    .otbn-movil__cabecera--intro {
      max-height: 140px;
      height: 140px;
      flex-shrink: 0;
      background-color: var(--verdetexto);
    }


    .otbn-movil__pildoras {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .otbn-movil__pildora {
      font-family: "Orbitron", monospace;
      font-size: 12px;
      text-decoration: none;
      padding: 0.25rem 0.75rem;
      border-radius: 99rem;
      border: 2px solid var(--blanco);
      background-color: var(--blanco);
    }

    .otbn-movil__pildora--roja {
      border-color: var(--red);
      color: var(--red);
    }

    .otbn-movil__pildora--amarilla {
      border-color: var(--yellow);
      color: var(--yellow);
    }

    .otbn-movil__pildora--verde {
      border-color: var(--green);
      color: var(--green);
    }

    .otbn-movil__slogan {
      margin: 0.5rem;
      text-align: center;
    }

    .otbn-movil__mapa {
      display: block;
      width: 80%;
      padding-left: 20%;
      padding-right: 20%;
      margin: 0 auto;
      margin-top: 45px;
    }

    .otbn-movil__cuerpo {
      padding: 1.5rem 1rem 0.2rem;
      text-align: center;
      color: var(--blanco);
      flex: 1;
      width: 100%;
      margin: 0 auto;
      .parrafo{
        font-size: 22px;
      }
      .parrafo-secundario{
        font-size: 20px;
      }
    }

    .otbn-movil__cuerpo > * + * {
      margin-top: 0.2rem;
    }

    .otbn-movil__tarjeta[data-otbn-m="0"] .otbn-movil__cabecera > .macro,
    .otbn-movil__tarjeta[data-otbn-m="1"] .otbn-movil__cabecera > .macro,
    .otbn-movil__tarjeta[data-otbn-r="0"] .otbn-movil__cabecera > .macro,
    .otbn-movil__tarjeta[data-otbn-r="1"] .otbn-movil__cabecera > .macro,
    .otbn-movil__tarjeta[data-otbn-v="0"] .otbn-movil__cabecera > .macro,
    .otbn-movil__tarjeta[data-otbn-v="1"] .otbn-movil__cabecera > .macro {
      white-space: nowrap;
    }

    .otbn-movil__foto {
      position: relative;
      min-height: 60svh;
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;

      overflow: hidden;
      flex: 1;
    }

    .otbn-movil__foto > .cred-prov {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      z-index: 2;
      width: 90%;
      margin: 0;
      font-size: 0.65rem;
      color: var(--blanco);
      text-align: right;
      text-shadow: 0 1px 2px rgb(0 0 0 / 80%);
    }

    .otbn-movil__foto--cordoba {
      background-image: url("../images/otbn/otbn_rojo_cordoba.jpg");
    }

    .otbn-movil__foto--sgo {
      background-image: url("../images/otbn/otbn_medio_sgo.jpg");
    }

    .otbn-movil__tarjeta[data-otbn-r="2"] .otbn-movil__foto--cordoba,
    .otbn-movil__tarjeta[data-otbn-m="2"] .otbn-movil__foto--sgo,
    .otbn-movil__tarjeta[data-otbn-v="2"] .otbn-movil__foto--formosa {
      align-items: center;
    }

    .otbn-movil__tarjeta[data-otbn-r="2"] .otbn-movil__vidrio--provincia,
    .otbn-movil__tarjeta[data-otbn-m="2"] .otbn-movil__vidrio--provincia,
    .otbn-movil__tarjeta[data-otbn-v="2"] .otbn-movil__vidrio--provincia {
      width: 100%;
      padding: 0;
      border-radius: 0;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      color: var(--blanco);
      text-align: center;
    }

    .otbn-movil__tarjeta[data-otbn-r="2"] .otbn-movil__provincia-descripcion,
    .otbn-movil__tarjeta[data-otbn-m="2"] .otbn-movil__provincia-descripcion,
    .otbn-movil__tarjeta[data-otbn-v="2"] .otbn-movil__provincia-descripcion {
      padding: 1rem 1.5rem;
      background-color: rgba(12, 34, 25, 0.48);

      p {
        margin: 0;
        font-size: 1.15rem;
        line-height: 1.25;
      }

      h2 {
        margin-top: 0.75rem;
        font-size: 1.35rem;
        line-height: 1.2;
      }
    }

    .otbn-movil__tarjeta[data-otbn-r="2"] .otbn-movil__provincia-cifra,
    .otbn-movil__tarjeta[data-otbn-m="2"] .otbn-movil__provincia-cifra,
    .otbn-movil__tarjeta[data-otbn-v="2"] .otbn-movil__provincia-cifra {
      margin: 0;
      padding: 0.5rem 1rem;
      background-color: var(--claro);

      h2 {
        margin: 0;
        font-size: 1.75rem;
        line-height: 1.2;
        white-space: nowrap;
      }

      .textos {
        font-size: 1rem;
      }
    }

    .otbn-movil__foto--formosa {
      background-image: url("../images/otbn/otbn_bajo_formosa.jpg");
    }

    /* .otbn-movil__vidrio {
      text-align: center;
      border-radius: 0;
      padding-top: 2rem;
      padding-bottom: 2rem;
    } */

    .otbn-movil__vidrio > p {

      margin-inline: 2rem;
    }

    .otbn-movil__vidrio > div {
      margin-top: 1rem;
      padding: 0.5rem 1.5rem 1rem;
      border-radius: 0 0 12px 12px;
    }

  }

}

@layer perdida{
  .page.perdida{
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--verdegris);
    color: var(--blanco);
    text-align: center;
    align-items: start;
    padding: 50px 0;
    width: 100%;
    --wrapper-max-width: 100%!important;
  }

  .perdida__texto{
    position: relative;
    z-index: 1;
    align-self: end;
  }

  .perdida__texto .macro{
    color: var(--blanco);
  }

  .perdida__texto .parrafos{
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--blanco);
  }

  .perdida__fuente{
    position: absolute;
    left: 5rem;
    bottom: 20px;
    z-index: 1;
    margin: 0;
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-size: 11px;
    color: var(--blanco);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    p{

    }

    img {
      display: block;
      width: 7rem;
      height: auto;
    }
  }

}


@layer perdida {
  .map-libre-contenedor {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 600px;

    margin: 24px auto 0;
  }

  .map-libre-mapa {
    width: 100%;
    height: 600px;
    background: var(--crema);
  }

  .map-libre-mapa--sin-fondo {
    background: #fff;
  }

  .map-libre-leyenda {
    position: absolute;
    left: 12px;
    bottom: 24px;
    z-index: 1;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--blanco);
    color: var(--ink);
    font-family: "Atkinson Hyperlegible", Arial, sans-serif;
    font-size: 12px;
    text-align: left;
  }

  .map-libre-leyenda__titulo {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
  }

  .map-libre-leyenda__item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .map-libre-leyenda__color {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -3px;
  }

  .map-libre-leyenda__color--1 {
    background: #fff3b0;
  }

  .map-libre-leyenda__color--2 {
    background: #ffd105;
  }

  .map-libre-leyenda__color--3 {
    background: #fe9929;
  }

  .map-libre-leyenda__color--4 {
    background: #ee2e2e;
  }

  .map-libre-leyenda__color--5 {
    background: #b30d0d;
  }

  .map-libre-contenedor .maplibregl-popup-content {
    font-family: "Atkinson Hyperlegible", Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
  }

  @media (max-width: 700px) {
    .page.perdida {
      width: 90%;
      min-height: 100svh;
      margin: 0 auto;
      padding: 1rem 0 90px;
      grid-template-rows: auto minmax(360px, 75svh);
      align-content: start;
      gap: 1rem;
    }

    .perdida__texto {
      align-self: start;
      padding: 0 0.5rem;

      .titulo {
        font-size: 1.4rem;
        line-height: 1.2;
      }

      .subtitulo {
        margin-top: 0.5rem;
        font-size: 1.2rem;
        line-height: 1.25;
      }
    }

    .perdida__fuente {
      right: 0.75rem;
      bottom: 0;
      left: 0.75rem;
      justify-content: space-between;
      gap: 0.5rem;

      img {
        width: 6rem;
      }

      p {
        max-width: 9rem;
        text-align: right;
        line-height: 1.2;
      }
    }

    .map-libre-contenedor {
      height: 75svh;
      min-height: 360px;
      margin: 0;
    }

    .map-libre-mapa {
      height: 100%;
    }

    .map-libre-leyenda {
      bottom: 0.75rem;
      left: 0.75rem;
      gap: 0.25rem;
      padding: 0.6rem;
      font-size: 0.7rem;
    }

    .map-libre-leyenda__titulo {
      font-size: 0.7rem;
    }

    .map-libre-leyenda__color {
      width: 0.85rem;
      height: 0.85rem;
    }
  }
}

@layer investigacion {
  .investigacion {
    background-color: var(--blanco);
    > h2 {
      text-align: center;
    }

    .investigacion-band {
      background: linear-gradient(
        180deg,
        #A0A9A0 1%,
        #0C2219 62%,
        #0C2219 100%
      );
      width: 100%;
      padding-top: 5rem;
      position: relative;
    }











    .investigacion-cards {
      display: flex;
      width: 80%;
      margin: 3rem auto 0;
      gap: 2rem;
      align-items: flex-end;
      justify-content: center;

      .investigacion-card {
        flex: 1 1 0;
        min-width: 0;
        color: var(--blanco);
        text-align: center;
        background-color: var(--verdetexto);
        border-radius: 1rem 1rem 0 0;
        overflow: hidden;
        cursor: pointer;
        transition: background-color 180ms ease, color 180ms ease, flex-grow 250ms ease;

        &:hover:not(.activa) {
          background-color: var(--verdeboton);
        }

        &:focus-visible {
          outline: 3px solid var(--yellow);
          outline-offset: 4px;
        }

        &.activa {
          flex-grow: 1.25;
          color: var(--verdetexto);
          background-color: var(--blanco);
        }

        .investigacion-card__title {
          margin: 0;
          padding: 1rem;
          font-family: "Orbitron", monospace;
          /* font-size: 0.85rem; */
          white-space: nowrap;
          font-size: 16px;
          line-height: 1.2;
          overflow: hidden;
          text-overflow: ellipsis;
          /* text-wrap: balance; */
        }

        &.activa .investigacion-card__title {
          visibility: hidden;
        }

      }

      @media (max-width: 700px) {
        flex-direction: column;
        align-items: stretch;

        .investigacion-card {
          flex: none;
        }

      }
    }

    .investigacion-cards .investigacion-card[hidden] {
      display: none;
    }

    .investigacion-nav {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 90%;
      margin: 0 auto;
      height: 0;
    }

    .investigacion-nav__btn {
      width: 2.25rem;
      height: 2.25rem;
      padding: 0;
      border: 1px solid var(--blanco);
      border-radius: 50%;
      background-color: var(--verdeboton);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translateY(-50%);
      flex: none;
    }

    .investigacion-nav__btn span {
      width: 0.6rem;
      height: 0.6rem;
      border-right: 2px solid var(--blanco);
      border-bottom: 2px solid var(--blanco);
      transform: rotate(-45deg);
    }

    #investigacion-anterior span {
      transform: rotate(135deg);
    }

    @media (max-width: 700px) {
      .investigacion-card {
        display: none;
      }

      .investigacion-card.activa {
        display: block;
      }

      .investigacion-cards .investigacion-card[hidden] {
        display: none;
      }
    }

    .investigacion-introduccion{
      font-weight: 400;
      margin-bottom: 46px;
      -webkit-text-stroke: 0.1px currentColor;
    }

    .investigacion-texto {
      background-color: var(--blanco);
      padding: 5rem;
      padding-left: 0rem;
      padding-right: 0rem;
      margin: 0 auto;
      /* border-bottom: 1px dashed black; */
      text-wrap: wrap;

      &[hidden] {
        display: none;
      }

    

      .investigacion-texto-titulo {
        max-width: 50%;
        margin: 0 0 1rem;
        text-align: left;

      }

      .investigacion-texto__columnas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
      }
      .investigacion-frase-destacada{
        margin: 0 auto;
        max-width: 452px;
        text-align: center;
        margin-bottom: 1rem;
        p{
          margin-top: 6px;
        }
      }
      /* Emprendimientos alternativos invisibilizados */
      &#investigacion2{
        .investigacion-texto-titulo{
          max-width: 549px;
        }
        .grafico{
          margin-top: 2rem;
        }
        .investigacion-frase-destacada{
          max-width: 523px;
          margin-bottom: 91px;

        }
      }
      /* entre lo perdido y  */
      &#investigacion3{
        .investigacion-frase-destacada{
          margin-bottom: 34px;
          max-width: 555px;
        }
        .grafico{
          margin-top: 32px;
        }
      }
      &#investigacion4{
        .investigacion-frase-destacada{
          /* margin-bottom: 5rem; */
          max-width: 600px;
          margin-bottom: 53px;
        }
      }/* una ley sin fondos */
      &#investigacion5{
        .investigacion-texto__columnas{
          gap: 68px;
          .investigacion-texto__columna:first-child{
            max-width: 556px;            
          }
        }
        .investigacion-frase-destacada{
          max-width: 481px;
          margin-bottom: 58px;
        }
        .investigacion-frase-destacada:last-child{
          margin-top: 92px;
        }
        .investigacion-introduccion{
          margin-bottom: 96px;
        }
        .grafico{
          margin-top: 16px;
        }
      }
      /* La restauración: Regla en la ley, excepción en la práctica. */
      &#investigacion6{
        .investigacion-introduccion{
          margin-bottom: 20px;
        }
        .investigacion-frase-destacada{
          max-width: 472px;
          margin-bottom: 95px;
        }
        .restauracion-guia {
          margin-top: 3rem;
        }
        .restauracion-guia__titulo {
          max-width: 926px;
          margin: 0 auto 1rem;
          text-align: center;
        }
        .restauracion-guia__tabla {
          display: grid;
          grid-template-columns: repeat(4, minmax(0, 1fr));
          background-color: var(--baseclara);
        }
        .restauracion-guia__tabla--movil {
          display: none;
        }
        .restauracion-guia__encabezados {
          grid-column: 1 / -1;
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          align-items: center;
          min-height: 75px;
          color: var(--blanco);
          background-image:
            linear-gradient(rgb(0 0 0 / 35%), rgb(0 0 0 / 35%)),
            url("../images/investigaciones/dentro/jose-ignacio.png");
          background-position: center;
          background-size: cover;
          h4 {
            margin: 0;
            /* padding: 0.75rem 1rem; */
            padding-left: 15px;

            &:first-child {
              border-right: 1px solid rgb(255 255 255 / 25%);
            }
          }
        }
        .restauracion-guia__item {
          padding: 0.75rem 1rem 1rem;
          color: var(--verdetexto);
          border-right: 1px solid rgb(12 34 25 / 15%);

          &:last-child {
            border-right: 0;
          }

          h4 {
            /* font-family: "Orbitron", monospace; */
            
            font-family: "Atkinson Hyperlegible", Arial, sans-serif;
            font-size: 16.58px;
          }

          p {
            margin: 0;
            font-size: 0.85rem;
            line-height: 1.3;
          }
        }
      }

    }
    .investigacion-foto-abajo{
      margin-top: 46px;
      img{
        width: 100%;
        max-width: 100%;
      }
    }


    @media (max-width:1200px) {
      .investigacion-texto-titulo{
        padding-left: 1rem;
      }
      .investigacion-texto__columnas{
        padding-left: 1rem;
        padding-right: 1rem;
      }
      
    }
    @media (max-width: 550px) {
      .investigacion-texto {
        padding: 1.5rem;
      }

      .investigacion-texto .investigacion-texto__columnas {
        grid-template-columns: 1fr;
        gap: 1.5rem;

      }

      .investigacion-texto .investigacion-texto-titulo,
      .entrevista-persona,
      .entrvista-frase-destacada {
        max-width: 100%;
      }

      #investigacion6 .restauracion-guia__tabla {
        display:none;
      }

      #investigacion6 .restauracion-guia__tabla--movil {
        display:block;
        background-color:var(--baseclara);
      }

      #investigacion6 .restauracion-guia__grupo--movil {
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
      }

      #investigacion6 .restauracion-guia__grupo--movil > .titulo-cards-variable {
        grid-column:1 / -1;
        display:flex;
        align-items:center;
        min-height:50px;
        margin:0;
        padding:0.75rem 2rem;
        color:var(--blanco);
        background-image:
          linear-gradient(rgb(0 0 0 / 35%), rgb(0 0 0 / 35%)),
          url("../images/investigaciones/dentro/jose-ignacio.png");
        background-position:center;
        background-size:cover;
      }

      #investigacion6 .restauracion-guia__grupo--movil .restauracion-guia__item {
        min-width:0;
        border-right:1px solid rgb(12 34 25 / 15%);
        border-bottom:1px solid rgb(12 34 25 / 15%);
      }

      #investigacion6 .restauracion-guia__grupo--movil .restauracion-guia__item:last-child {
        border-right:0;
      }

    }

    #investigacion6 .restauracion-guia.guia-movil .restauracion-guia__tabla {
      display: none;
    }

    #investigacion6 .restauracion-guia.guia-movil .restauracion-guia__tabla--movil {
      display: block;
      background-color: var(--baseclara);
    }

    #investigacion6 .restauracion-guia.guia-movil .restauracion-guia__grupo--movil {
      display: grid;
      grid-template-columns: 1fr;
    }

    #investigacion6 .restauracion-guia.guia-movil .restauracion-guia__grupo--movil > .titulo-cards-variable {
      display: flex;
      align-items: center;
      min-height: 50px;
      margin: 0;
      padding: 0.75rem 2rem;
      color: var(--blanco);
      background-image:
        linear-gradient(rgb(0 0 0 / 35%), rgb(0 0 0 / 35%)),
        url("../images/investigaciones/dentro/jose-ignacio.png");
      background-position: center;
      background-size: cover;
    }

    #investigacion6 .restauracion-guia.guia-movil .restauracion-guia__grupo--movil .restauracion-guia__item {
      min-width: 0;
      border-right: 0;
      border-bottom: 1px solid rgb(12 34 25 / 15%);
    }

    #investigacion6 .restauracion-guia.guia-movil .restauracion-guia__grupo--movil .restauracion-guia__item:last-child {
      border-bottom: 0;
    }

  }

    .entrevista-persona{
      width: 100%;
      max-width: 50%;
      margin: 0 0 2rem;
      text-align: left;
      color: var(--verdeboton);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;

      img{
        width: 100%;
      }
      .entrevistado-nombre{
        margin-bottom: 1rem;
      }
    }
    #investigacion7 .entrevista-persona {
      max-width: 100%;
      grid-template-columns: 1fr 1fr 1.8fr;
      align-items: center;

      .entrvista-frase-destacada {
        margin: 0;
      }
    }
    .entrevista-inicio{
      color: var(--verdetexto)
    }
    .entrevista-pregunta-respuesta{
      >p:first-child{
      color: var(--verdeboton);
      }
      .titulo-cards{
        margin-bottom: 1rem;
      }
    }
    .entrvista-frase-destacada{
      width: 100%;
      max-width: 100%;
      margin: 0 0 3rem;
      text-align: center;
      h2{
        text-align: center;
        color: var(--verdeboton);
        max-width: 364px;
        margin: 0 auto;
      }
    }
    @media (max-width: 700px) {
      #investigacion7 .entrevista-persona {
        grid-template-columns: 1fr 1fr;

        .entrvista-frase-destacada {
          grid-column: 1 / -1;
        }
      }
    }
    .investigacion-texto__columna{
      color: var(--verdetexto);




    }

    #investigacion7 .investigacion-texto__columna:nth-child(2) {
      display: flex;
      flex-direction: column;
    }

}

@layer bn-pagina {
  .bn-provincias {
    background-color: var(--blanco);
    padding: 5rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
  }

  .forest-explorer {
    flex: 1;
    display: grid;
  }

  .bn-provincias__credito {
    margin-top: auto;
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--verdetexto);

    img {
      display: block;
      width: 7rem;
      height: auto;
    }
  }

  .forest-overview {
    padding: 0;
    text-align: center;
    margin-bottom: 1rem;

    h2 + h2 {
      color: var(--verdetexto);
    }
  }

  @media (max-width: 64rem) {
    .bn-provincias {
      padding: 2.5rem 2rem;
    }

    .forest-overview {
      margin-bottom: 1.5rem;

      .macro {
        font-size: 2rem;
        line-height: 1.15;
        text-wrap: balance;
      }
    }
  }

  @media (max-height: 720px) {
    .bn-provincias {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }

  @media (max-width: 48rem) {
    .bn-provincias {
      padding: 1.5rem 0 1rem;
    }

    .forest-overview {
      margin-bottom: 1.25rem;
      padding: 0 1rem;
      text-align: center;

      h2 {
        font-size: 1.1rem;
        line-height: 1.25;
        text-wrap: balance;
      }

      .macro {
        font-size: 1.6rem;
      }
    }

    .orbita-leyenda {
      margin-top: 0.75rem;
      text-align: center;
    }

    .bn-provincias__credito {
      padding: 0 1rem;
      gap: 0.75rem;

      img {
        width: 5rem;
      }

      p {
        flex: 1;
      }
    }
  }
}

@layer mapa {
  .map-stage {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.8fr) minmax(
        180px,
        1fr
      );
    grid-template-rows: minmax(390px, 1fr) auto;
    grid-template-areas:
      "dots dots dots"
      "dots dots dots";
    min-height: 680px;
    border-top: 2px solid #171717;
    position: relative;
  }

  .map-stage.is-detail {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.8fr) minmax(
        180px,
        1fr
      );
    grid-template-rows: 1fr 3fr;
    grid-template-areas:
      "map titulo legend"
      "map dots legend";
    min-height: 680px;
    position: relative;
  }

  .detail-province {
    display: none;
    text-align: center;
    grid-area: titulo;
    margin-top: 1rem;
  }

  .map-stage.is-detail .detail-province {
    display: block;
  }

  .province-dots {
    grid-area: dots;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
    justify-self: stretch;
    transition: opacity 0.35s ease;
  }

  .province-dot {
    display: grid;
    place-items: center;
    position: absolute;
    transform: translate(-50%, -50%);
    width: var(--size);
    height: var(--size);
    padding: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    transition:




      transform 0.5s ease,
      opacity 0.2s ease,
      box-shadow 0.15s ease;
    background-image:
      radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 58%) 22%, transparent 50%),
      url("../svgs/tronco1.svg");
    background-position: center;
    background-size: cover;
  }

  .province-dot.is-produccion {
    background-image:
      radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 58%) 22%, transparent 50%),
      url("../images/tronco_bordo_2.png");
  }

  .province-dot.is-mixto {
    background-image:
      radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 58%) 22%, transparent 50%),
      url("../images/tronco_verdecito_2.png");

  }

  .province-dot.is-ambiente {
    background-image:
      radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 58%) 22%, transparent 50%),
      url("../images/tronco_verde_2.png");
  }

  .province-dot:hover,
  .province-dot:focus-visible {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 2;
  }

  .province-dot.is-selected {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.8),
      0 3px 8px rgba(0, 0, 0, 0.18);
    z-index: 3;
    outline-color: var(--ink);
  }

  .province-dot:focus-visible {
    outline: 3px solid var(--ink);
  }

  .province-dot.is-empty {
    opacity: 0.2;
    pointer-events: none;
  }

  .province-dot .dot-name {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
  }

  .dot-text {
    font-family: "Orbitron";
    font-size: 14px;
    color: var(--verdetexto);


    text-align: center;
    margin: 0;
    -webkit-text-stroke: 3.3px var(--claro);
    paint-order: stroke fill;
    font-weight: 900;
  }

  .dot-text.hidden {
    display: none;
  }

  .orbita-leyenda {


    margin-top: 1rem;

    text-align: left;
  }

  .orbita-leyenda p {

    line-height: 1.4;
  }

  .orbita-produccion {
    color:var(--destacado);
    font-weight: 700;
  }

  .orbita-mixto {
    color: #6d9c78;
    font-weight: 700;
  }

  .orbita-ambiente {
    color: var(--verdeboton);
    font-weight: 700;
  }

  .map-stage.is-detail .province-dot:not(.is-selected) {
    opacity: 0;
    pointer-events: none;
  }

  .map-stage.is-detail .province-dot.is-selected {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid #111;
    background: #fffefc;
    box-shadow: none;
    cursor: default;
    z-index: 3;
  }

  .map-stage.is-detail .province-dot.is-selected.has-pie-chart {
    background-image: url("../svgs/tronco2.svg");
    background-position: center;
    background-size: cover;
  }

  .map-stage.is-detail .province-dot.is-selected.is-produccion.has-pie-chart {

    background-position: center;
    background-size: cover;
  }

  .map-stage.is-detail .province-dot.is-selected.is-mixto.has-pie-chart {

    background-size: cover;
  }

  .map-stage.is-detail .province-dot.is-selected.is-ambiente.has-pie-chart {

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .map-stage.is-detail .province-dot .dot-name {
    display: none;
  }

  .pie-chart {
    overflow: visible;
  }

  .pie-chart__label {
    font-weight: 700;
    fill: var(--label-color, var(--ink));
    font-size: 4px;
    font-family: "Orbitron",monospace;
    paint-order: stroke;
    padding: 2rem;



  }

  .bubble-points {
    display: none;
  }

  .map-stage.is-detail .bubble-points {
    display: block;
    border-radius: 50%;
    overflow: hidden;
  }

  .map-stage.is-detail .bubble-points.hidden {
    display: none;
  }

  .forest-point {
    position: absolute;
    width: var(--point-size);
    height: var(--point-size);
    border-radius: 50%;
    background: var(--point-color);
    transform: translate(-50%, -50%) scale(0);
    animation: point-in 0.35s ease forwards;
    animation-delay: var(--delay);
  }

  @keyframes point-in {
    to {
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .map-sticky {
    display: contents;
  }

  .map-drawer-toggle,
  .map-drawer-close {
    display: none;
  }

  .detail-map {
    display: none;
    grid-area: map;
    align-self: end;
    justify-self: start;
    position: relative;
    margin-bottom: 1.5rem;
    width: 180px;
    height: 255px;
    transform: translateY(12px);
    transition: transform 0.35s 0.28s ease;
  }

  .map-stage.is-detail .detail-map {
    display: block;
    transform: translateY(0);
  }

  .detail-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .detail-map path {
    fill: transparent;
    stroke: gray;
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition:
      fill 0.15s ease,
      stroke 0.15s ease;
  }

  .detail-map path:hover,
  .detail-map path:focus-visible {
    fill: #ead9d9;
    stroke: #8e171c;
    outline: none;
  }

  .detail-map path.is-current {
    fill: #8e171c;
    stroke: #fffafc;
  }

  .detail-data {
    grid-area: data;
    align-self: end;
    justify-self: center;
    position: relative;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.3s 0.35s ease,
      transform 0.3s 0.35s ease;
  }

  .map-stage.is-detail .detail-data {
    opacity: 1;
    transform: translateY(0);
  }

  .detail-total {
    margin: 0;
    font-family: "Orbitron", monospace;
    line-height: 0.9;
  }

  .detail-total-label,
  .detail-explanation {
    font-family: "Orbitron", monospace;
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    line-height: 1.15;
  }

  .detail-explanation {
    color: gray;
    max-width: 19rem;
    font-size: 0.7rem;
  }

  .detail-navigation {
    grid-area: map;
    align-self: start;
    justify-self: start;
    position: relative;
    z-index: 4;
    display: grid;
    gap: 0.7rem;
    max-width: 220px;
    margin-top: 1rem;
  }

  .back-to-overview {
    font-family: "Orbitron", monospace;
    z-index: 4;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
  }

  .unclassified-losses {
    margin: 0;
    color: #808080;
    font-family: "Orbitron", monospace;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .category-legend {
    grid-area: legend;
    gap: 1rem;
    align-self: start;
    justify-self: end;
    position: relative;
    width: 100%;
    max-width: 240px;
    margin-top: 2rem;
    font-family: "Orbitron", monospace;
    display: none;
    transform: translateX(8px);
    transition: transform 0.3s 0.4s ease;

    .category-legend__filtros {
      display: grid;
      gap: 0.45rem;

      h3 {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        font-weight: 400;
        text-align: right;
      }

      input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin: 0 0.35rem 0 0;
        accent-color: var(--muted);
        vertical-align: middle;
      }

      label {
        font-size: 0.72rem;
        line-height: 1.2;
      }
    }

    .year-filter {
      display: grid;
      gap: 0.05rem;
      margin: 0.15rem 0 0.55rem;

      .year-range {
        position: relative;
        height: 1.2rem;

        &::before {
          content: "";
          position: absolute;
          top: 50%;
          right: 0.25rem;
          left: 0.25rem;
          height: 1px;
          background: #969696;
        }
      }

      .year-range__input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 1.2rem;
        margin: 0;
        background: transparent;
        appearance: none;
        pointer-events: none;

        &::-webkit-slider-runnable-track {
          height: 1px;
          background: transparent;
        }

        &::-moz-range-track {
          height: 1px;
          background: transparent;
        }

        &::-webkit-slider-thumb {
          width: 0;
          height: 0;
          border-top: 5px solid transparent;
          border-bottom: 5px solid transparent;
          border-left: 9px solid #969696;
          appearance: none;
          pointer-events: auto;
          cursor: ew-resize;
        }

        &::-moz-range-thumb {
          width: 0;
          height: 0;
          border-top: 5px solid transparent;
          border-bottom: 5px solid transparent;
          border-left: 9px solid #969696;
          border-radius: 0;
          background: transparent;
          pointer-events: auto;
          cursor: ew-resize;
        }
      }

      .year-range__end {
        z-index: 1;
      }

      .year-range__labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.68rem;
        line-height: 1;
      }
    }

    .filtros-grupos {
      display: grid;
      gap: 0.45rem;
    }

    .filtro-grupo {
      display: grid;
      gap: 0.15rem;
      align-content: start;
    }

    .filtro-check {
      display: flex;
      align-items: center;
    }

    .filtro-grupo--recuperadas:not(.has-years) .year-filter {
      display: none;
    }

    .filtro-grupo--recuperadas.is-unavailable .filtro-check,
    .filtro-grupo--recuperadas.is-unavailable .year-filter {
      display: none;
    }

    .recovery-unavailable {
      display: none;
      min-height: 70px;
      align-items: center;
      margin: 0;
    }

    .filtro-grupo--recuperadas.is-unavailable .recovery-unavailable {
      display: flex;
    }

    .year-selects {
      display: none;
    }

    details {
      width: 100%;
      cursor: pointer;
      background: #fff;
      border: 2px solid #111;
      border-radius: 12px;
      overflow: hidden;
      transition: border-color 0.2s ease;

      summary {
        padding: 0.6rem 1rem;
        text-align: center;
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        list-style: none;

        &::marker {
          content: "";
        }

        &::-webkit-details-marker {
          display: none;
        }
      }

      p {
        margin: 0;
        font-size: 12px;
        padding: 2rem 1rem;
        color: var(--ink);
      }

      .detail-desc {
        margin: 0;
        padding: 0.6rem 1rem 1rem;
        text-align: center;
        font-family: "Atkinson Hyperlegible", Arial, sans-serif;
        font-size: 0.72rem;
        line-height: 1.45;
        color: var(--ink);
      }

      &.category-legend-alto {
        border-color: var(--red);
        background-color: var(--cremaboton);

        &:hover {
          color: var(--red);
        }

        &[open] summary {
          border-bottom: 1px solid var(--red);
        }
      }

      &.category-legend-medio {
        border-color: var(--yellow);
                background-color: var(--cremaboton);


        &:hover {
          color: var(--yellow);
        }

        &[open] summary {
          border-bottom: 1px solid var(--yellow);
        }
      }

      &.category-legend-bajo {
        border-color: var(--green);
                background-color: var(--cremaboton);


        &:hover {
          color: var(--green);
        }

        &[open] summary {
          border-bottom: 1px solid var(--green);
        }
      }
      &.category-legend-totales{
        border-color:#000;
                background-color: var(--cremaboton);

        .porcentajes {
          text-align: center;
          font-family: "orbitron",'Courier New', Courier, monospace;

          span {
            display: block;
          }
        }

        &[open] summary {
          border-bottom: 1px solid #000;
        }

        ul {
          margin: 0;
          padding: 0;
          list-style: none;
          text-align: center;
        }
      }

      &[open] {
        border-radius: 12px;
      }

      &[open] summary {
        justify-content: center;
        border-bottom: 1px solid #111;
      }

      .porcentajes {
        padding: 0.5rem;
      }
    }
  }

  .map-stage.is-detail .category-legend {
    display: grid;
    transform: translateX(0);
  }

  @media (max-width: 64rem) {
    .map-stage,
    .map-stage.is-detail {
      min-height: 560px;
    }

    .map-stage.is-detail .province-dot.is-selected.is-produccion {
      width: 360px;
      height: 360px;
    }
  }

  @media (max-width: 48rem) {
    .bn-provincias {
      min-height: 100svh;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .forest-explorer {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .map-stage {
      flex: 1;
      min-height: 36rem;
    }

    .map-stage {
      grid-template-columns: 1fr;
      grid-template-areas: "dots";
      overflow-x: clip;
    }

    .province-dot .dot-text {
      max-width: calc(100% - 8px);
      font-size: 12px;
      line-height: 1.05;
      -webkit-text-stroke: 2.5px var(--claro);
    }

    .map-stage.is-detail .province-dot.is-selected.is-produccion {
      width: 240px;
      height: 240px;
    }

    .map-stage.is-detail {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto auto;
      grid-template-areas:
        "nav"
        "titulo"
        "dots"
        "legend"
        "map";
      min-height: 0;
    }

    .map-stage.is-detail .detail-navigation {
      grid-area: auto;
      max-width: none;
      margin-top: 0;
    }

    .map-stage.is-detail .province-dots {
      grid-column: 1 / -1;
      order: 7;
      min-height: 240px;
    }

    .map-stage.is-detail .category-legend {
      max-width: none;
      justify-self: stretch;
      margin-top: 1rem;
    }

    .map-stage.is-detail {
      grid-template-columns: repeat(6, 1fr);
      grid-template-rows: none;
      grid-template-areas: none;
      gap: 12px;
      padding: 16px 12px 24px;
    }

    .map-stage.is-detail .category-legend,
    .map-stage.is-detail .category-legend__filtros {
      display: contents;
    }

    .map-stage.is-detail .detail-navigation {
      grid-area: auto;
      grid-column: 1 / -1;
      order: 1;
    }

    .map-stage.is-detail .detail-province {
      grid-area: auto;
      grid-column: 1 / -1;
      order: 2;
      display: grid;
      gap: 8px;
      justify-items: center;
    }

    .map-stage.is-detail .detail-data {
      justify-self: center;
      text-align: center;
    }

    .map-stage.is-detail .detail-explanation {
      grid-column: 1 / -1;
      order: 3;
      justify-self: center;
      text-align: center;
    }

    .map-stage.is-detail .category-legend__consevacion {
      grid-column: 1 / -1;
      order: 5;
    }

    .map-stage.is-detail .category-legend-alto,
    .map-stage.is-detail .category-legend-medio,
    .map-stage.is-detail .category-legend-bajo {
      grid-column: span 2;
      order: 6;
      align-self: start;
    }

    .map-stage.is-detail .category-legend-alto[open],
    .map-stage.is-detail .category-legend-medio[open],
    .map-stage.is-detail .category-legend-bajo[open] {
      grid-column: 1 / -1;
      order: 6;
      align-self: start;
    }

    .map-stage.is-detail .category-legend-alto[open] summary,
    .map-stage.is-detail .category-legend-medio[open] summary,
    .map-stage.is-detail .category-legend-bajo[open] summary {
      padding: 0.5rem;
      font-size: 14px;
    }

    .map-stage.is-detail .category-legend-alto[open] .detail-desc,
    .map-stage.is-detail .category-legend-medio[open] .detail-desc,
    .map-stage.is-detail .category-legend-bajo[open] .detail-desc {
      padding: 0.5rem;
      font-size: 10px;
      line-height: 1.6;
    }

    .map-stage.is-detail:has(.category-legend-alto[open]) .category-legend-medio,
    .map-stage.is-detail:has(.category-legend-alto[open]) .category-legend-bajo,
    .map-stage.is-detail:has(.category-legend-medio[open]) .category-legend-alto,
    .map-stage.is-detail:has(.category-legend-medio[open]) .category-legend-bajo,
    .map-stage.is-detail:has(.category-legend-bajo[open]) .category-legend-alto,
    .map-stage.is-detail:has(.category-legend-bajo[open]) .category-legend-medio {
      display: none;
    }

    .map-stage.is-detail .category-legend-alto summary,
    .map-stage.is-detail .category-legend-medio summary,
    .map-stage.is-detail .category-legend-bajo summary,
    .map-stage.is-detail .category-legend-totales summary {
      padding: 5px;
      font-size: 12px;
      text-align: center;
    }

    .map-stage.is-detail .province-dots {
      grid-area: auto;
    }

    .map-stage.is-detail .province-dots {
      grid-column: 1 / -1;
    }

    .map-stage.is-detail .category-legend__filtros h3 {
      grid-column: 1 / -1;
      order: 4;
    }

    .map-stage.is-detail #supBN {
      grid-column: 1 / -1;
      order: 8;
      align-self: start;
    }

    .map-stage.is-detail .category-legend__filtros > div {
      grid-column: 1 / -1;
      order: 9;
    }

    .map-stage.is-detail .filtros-grupos {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .map-stage.is-detail #provinceName,
    .map-stage.is-detail #detailData,
    .map-stage.is-detail .detail-total,
    .map-stage.is-detail .detail-total-label {
      width: 100%;
      text-align: center;
      grid-column: 1/3;
    }

    .map-stage.is-detail #provinceName {
      grid-column: 1/3;
      justify-self: center;
      align-self: center;
      text-align: center;
    }

    .map-stage.is-detail .otbn-tag {
      display: none;
    }

    .map-sticky {
      display: block;
      grid-row: 1 / -1;
      grid-column: 1 / -1;
      align-self: start;
      height: 0;
      position: sticky;
      top: 300px;
      z-index: 30;
      pointer-events: none;
    }

    .map-stage.is-detail .detail-map {
      display: block;
      position: absolute;
      top: 0;
      right: -28px;
      width: 64px;
      height: 96px;
      margin: 0;
      background-color: var(--cremaboton);
      border-radius: 16px 0 0 16px;
      box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
      padding: 1rem;
      transition: right 0.3s ease, width 0.3s ease, height 0.3s ease;
      z-index: 30;
      align-self: auto;
      justify-self: auto;
      pointer-events: auto;
      svg{
        position: relative;
      }
    }

    .map-stage.is-detail.is-map-open .detail-map {
      right: 0;
      width: 260px;
      height: 360px;
    }

    .map-stage.is-detail .map-drawer-toggle {

      display: block;
      position: absolute;
      top: 0;
      right: -28px;
      width: 64px;
      height: 96px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
      z-index: 31;
      pointer-events: auto;
    }

    .map-stage.is-detail.is-map-open .map-drawer-toggle {
      display: none;
    }

    .map-drawer-toggle::after {
      content: "<";
      position: absolute;
      top: 50%;
      left: 18px;
      transform: translate(-50%, -50%);
      color: #fffaf2;
      font-family: "Orbitron", monospace;
      font-size: 16px;
      line-height: 1;
      text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
    }

    .map-drawer-toggle:focus-visible {
      outline: 3px solid #fffaf2;
      outline-offset: -3px;
    }

    .map-stage.is-detail.is-map-open .map-drawer-close {
      display: grid;
      place-items: center;
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      border: var(--blanco) 1px solid;
      border-radius: 50%;
      background: var(--verdeboton);
      color: var(--blanco);
      font-family: "Orbitron", monospace;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      z-index: 1;
    }

    @media (prefers-reduced-motion: reduce) {
      .map-stage.is-detail .detail-map {
        transition: none;
      }
    }


    .map-stage.is-detail .category-legend .category-legend__filtros h3 {
      text-align: left;
    }

    .map-stage.is-detail .filtro-grupo {
      display: grid;
      gap: 8px;
      align-content: start;
    }

    .map-stage.is-detail .year-filter .year-range,
    .map-stage.is-detail .year-filter .year-range__labels {
      display: none;
    }

    .map-stage.is-detail .year-selects {
      display: flex;
      gap: 8px;
    }

    .map-stage.is-detail .year-selects__label {
      flex: 1;
      display: grid;
      gap: 4px;
      font-size: 0.68rem;
      line-height: 1.2;
    }

    .map-stage.is-detail .year-selects select {
      width: 100%;
      padding: 6px;
      font-size: 14px;
      background-color: var(--cremaboton);
      font-family: "Orbitron", monospace;
    }

    .map-stage.is-detail .detail-explanation {
      grid-column: 1 / 4;
      order: 10;
      align-self: start;
      justify-self: stretch;
      max-width: none;
      text-align: center;
    }

    .map-stage.is-detail .unclassified-losses {
      grid-column: 4 / 7;
      order: 10;
      align-self: start;
      justify-self: stretch;
      margin: 0.55rem 0 0;
      text-align: center;
    }

    .detail-map {
      justify-self: center;
    }

    @media (max-width: 30rem) {
      .map-stage.is-detail .province-dot.is-selected.is-produccion {
        width: 200px;
        height: 200px;
      }
    }
  }
}


@layer footer {
  .footer {
    min-height: 100vh;
    color: var(--blanco);
    background:
      url("../images/black_footer.png") center / cover,
      #0b0b0c;

    a {
      color: var(--blanco);
      text-decoration: none;
    }
    .enlace{
      text-decoration: underline;
    }

    p,
    li {

      line-height: 1.22;
    }

    .footer__countdown {
      display: grid;
      justify-items: center;
      gap: 1rem;
      width: 100%;
      max-width: 60rem;
      margin: 2rem auto 4rem;
      margin-top: 0;
      padding: 1rem 1.5rem;

      p {
        margin: 0;
        text-align: center;
        font-weight: 400;
      }

      .footer__countdown-intro,
      .footer__countdown-outro {
        max-width: 892px;
      }
      
      .footer__countdown-intro.aclara, .footer__countdown-outro.aclara {
        font-size: 19px;
        line-height: 1.5;
      }
      .footer__countdown-main {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 20px auto 0;
        width: 100%;
      }

      .footer__countdown-year {
        display: flex;
        align-items: center;

        margin: 0;
        font-size: 3rem;
        line-height: 1;

        &::before {
          content: "";
          width: 5.5rem;
          border-top: 1px solid var(--blanco);
        }
      }
    }

    .contador--footer {
      display: flex;
      justify-content: center;
      gap: 1.75rem;

      .unidad {
        display: grid;
        gap: 0.9rem;
        transform: translateY(-0.5rem);

        .label {
          font-family: "Orbitron", monospace;
          font-size: 0.63rem;
          text-align: center;
        }

        .digits {
          display: flex;
          gap: 0.45rem;
          transform: translateY(-0.5rem);
        }

        .digit {
          width: 2.95rem;
          height: 3.65rem;
          display: grid;
          place-items: center;
          border: 0.0625rem solid #d7d4cc;
          background: var(--blanco);
          color: var(--ink);
          font-family: "Orbitron", monospace;
          font-size: 1.7rem;
          line-height: 1;
        }
      }
    }

    .footer__topbar {
      min-height: 3rem;
      padding: 0.55rem 1.1rem 0.65rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-top: 0.0625rem solid rgb(255 255 255 / 72%);
      gap: 2rem;
    }
    .footer__topbar img{
      margin: 10px auto;
      width: 200px;
    }
    .footer__topbar .titulo-cards a{
      cursor: pointer;
      margin: 10px;
    }
    .footer__topbar .titulo-cards a:hover{
      opacity: 0.7;
    }

    nav {
      display: flex;
      justify-content: center;
      gap: 2.8rem;

      a {
        font-family: "Orbitron", monospace;
        white-space: nowrap;
      }

      .boton.descarga {
        display: inline-flex;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
        line-height: 1.2;
      }
    }

    .footer__intro {
      max-width: 60rem;
      margin: 0 auto;
      padding: 0 1.5rem;
              margin-top: 2rem;
        margin-bottom: 2rem;
      display: grid;

      text-align: center;

      h2 {
        font-size: 1.15rem;
        line-height: 1.25;
      }

      .footer__programa {
        >p{
          margin-bottom: 1rem;
        }
      }

      p {
        font-family: "Orbitron", monospace;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.5;
      }
    }

    .footer__metodologia{
      padding: 2rem;
      background-color: alpha(from var(--verdetexto)/ 20%) ;
      font-family: "Orbitron", monospace;
      border-radius: 12px;
      max-width: 1100px;
      margin: 30px auto;

      p{
        margin-left: 1rem;
      }
      .subtitulo{
        text-align: center;
      }
      .titulo-cards{
        margin: 3rem 0 1rem;
        font-family: "Atkinson Hyperlegible", Arial, sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
      }

      details{
          margin:1rem auto;
          padding: 1rem;
          background-color: var(--verdetexto);
          summary{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            text-align: left;

            &::after{
              content: "+";
              flex: 0 0 auto;
              font-family: sans-serif;
              font-size: 1.5rem;
              font-weight: 400;
              line-height: 1;
            }
          }

          &[open] summary::after{
            content: "X";
            font-size: 1.1rem;
            line-height: 0.7;
          }

          &[open]{
                      background-color: var(--verdeboton);

        }
        &[open]>*{
          margin:1rem;
        }

        .tabla-pedidos {
        max-width: calc(100% - 2rem);
        overflow-x: auto;

        table {
          width: 100%;
          min-width: 42rem;
          border-collapse: collapse;
          color: var(--blanco);
          font-family: "Atkinson Hyperlegible", Arial, sans-serif;
          font-size: 0.9rem;
          line-height: 1.4;
          text-align: left;
        }

        th,
        td {
          padding: 0.7rem;
          border: 1px solid rgb(255 250 242 / 35%);
          vertical-align: top;
        }

        thead th {
          background-color: rgb(255 250 242 / 12%);
        }

        tbody th {
          font-weight: 700;
        }

        a {
          text-decoration: underline;
          text-underline-offset: 0.15em;
        }
        }
      }
    }

    .footer__credits {
      display: grid;
      justify-items: center;
      gap: 1.4rem;
      padding: 0 1.5rem 2.5rem;
    }
    #botComentarios{
      background-color: var(--verdeboton);
      color: var(--blanco);
      border: none;
      display: inline-block;
      font-family: 'Atkinson Hyperlegible', sans-serif;
      font-weight: 800;
      font-size: 0.85rem;
      padding: 0.85rem 1.6rem;
      text-decoration: none !important;
      transition: all 0.2s ease;
      text-align: center;
    }
    #botComentarios:hover{
      background-color: var(--blanco);
      color: var(--verdeboton);
    }

    .footer__redes {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.6rem;
      list-style: none;
      margin: 0;
      padding: 0;

      a {
        display: inline-flex;
        align-items: center;
        line-height: 0;
      }

      img {
        width: 2rem;
        object-fit: contain;
      }

      img.footer__redes-whatsapp {
        display: block;
        width: 47px;
        height: 47px;
        flex: 0 0 32px;
      }
    }
    
    .footer__credits-main {
      width: 100%;
      max-width: 1000px;
      display: grid;
      gap: 0.5rem;
      padding: 1rem 2rem;

      .titulo-credito{
        font-family: "orbitron", monospace;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.5;
        color: var(--blanco);
        margin-bottom: 15px;
      }

      p {
        margin: 0;
        font-size: 400;
        font-family: "Atkinson Hyperlegible", Arial, sans-serif;
        font-size: 1rem;
        line-height: 1.5;
        text-align: left;

      }

    }
    .footer__credits .footer__credits-main .arbol{
      margin: 50px auto !important;
      width: 35px !important;
    }

    .footer__contacto {
      width: 100%;
      max-width: 1000px;
      border-top: 1px solid rgb(255 255 255 / 70%);
      border-bottom: 1px solid rgb(255 255 255 / 70%);
      padding: 1.2rem 2rem 1.2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 2rem;
      margin: 1rem auto;
      box-sizing: border-box;

      p {
        margin: 0;
        font-family: "Atkinson Hyperlegible", Arial, sans-serif;
        font-size: 0.9rem;
        line-height: 1.5;
      }

      a {
        text-decoration: underline;
        text-underline-offset: 0.2rem;
      }
    }

    @media (max-width: 52rem) {
      padding: 1rem 1.5rem 2rem;


      .footer__countdown {
        margin-top: 2rem;
        margin-bottom: 3rem;
      }

      .footer__countdown-main {
        flex-wrap: wrap;
        gap: 1rem;
      }

      .footer__countdown-year {
        flex: 0 0 100%;
        justify-content: center;
      }

      .contador--footer {
        max-width: 100%;
        gap: 1.25rem;
      }

      .footer__topbar {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.9rem;
      }

      .footer__topbar nav {
        flex-wrap: wrap;
        gap: 0.8rem 1.5rem;
      }

      .footer__credits-main {
        width: 100%;
      }
    }

    @media (max-width: 64rem) {
      nav{
        gap: 1rem;
      }
    }

    @media (max-width: 38rem) {
      padding: 0.75rem 0.75rem 1.5rem;
      gap: 1.3rem;

      .footer__countdown {
        gap: 0.7rem;
        padding: 0.5rem 0;
      }

      .footer__countdown-main {
        gap: 0.6rem;
        flex-wrap: wrap;
      }

      .footer__countdown-year {
        gap: 0.4rem;
        font-size: 1.75rem;

        &::before {
          width: 0.6rem;
        }
      }

      .footer__countdown-intro,
      .footer__countdown-outro {
        font-size: 0.8rem;
      }

      .contador--footer {
        gap: 0.7rem;

        .unidad {
          transform: none;

          .digits {
            transform: none;
          }
        }

        .unidad .digit {
          width: 1.45rem;
          height: 1.85rem;
          font-size: 0.95rem;
        }
      }

      .footer__intro {
        padding: 1rem;


        h2 {
          font-size: 0.95rem;
        }

        p {
          font-size: 0.72rem;
        }
      }

      .footer__credits {
        padding: 1rem 1rem 1.5rem;
      }

      .footer__redes {
        gap: 1.2rem;
      }

      .footer__credits-main {
        gap: 0.15rem;
        padding: 0;

        p{
          br{
            display: block;
          }
        }
      }

      .footer__credits p {
        font-size: 0.85rem;
        margin: 10px 0 0;
      }
    }
  }
}

@layer graficos {
  .grafico {

    margin-bottom: 1rem;

    .ui-pequeno {
      text-align: left;
    }
  }
}

@layer componentes {
  .volver-arriba {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--verdeboton);
    color: var(--blanco);
    border: 1px solid var(--blanco);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;

    svg {
      width: 20px;
      height: 20px;
    }

    &:hover {
      background-color: var(--verdeoscuro);
    }

    &:focus-visible {
      outline: 2px solid var(--verdetexto);
      outline-offset: 2px;
    }

    &.is-visible {
      opacity: 1;
      visibility: visible;
      transform: none;
    }
  }
  @media (max-width:700px) {
    .volver-arriba {
      width: 25px;
      height: 25px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .volver-arriba {
      transition: none;
    }
  }
}
