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

  p {
    margin: 0;
  }

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

@font-face {
  font-family: "Orbitron";
  src: url("./fonts/Orbitron/Orbitron-VariableFont_wght.ttf");
}

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

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

:root {
  --ink: #000;
  --blanco: #fffaf2;
  --crema: #fff0d9;
  --verdegris: #A0A9A0;
  --verdeoscuro: #005d27;
  --verdeboton: #2B685C;
  --verdetexto: #0C2219;
  --red: #ee2e2e;
  --yellow: #ffd105;
  --green: #1cac55;
  --muted: #74766d;
}

@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;
    margin-bottom: 1rem;
    font-size: 24px;
  }

  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: bolder;
  }

  .pequeno {
    font-size: 14px;
  }

  .titulo {
    font-size: 36px;
    font-weight: bold;
  }

  .subtitulo{
    font-size: 28px;
    font-weight: bold;
  }

  .titulo-cards {
    font-size: 16px;
    font-weight: bold;
  }

  .parrafos {
    font-size: 24px;
  }

  .contenedor {
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 10%;
    padding-right: 10%;
  }

  @media (max-width: 64rem) {
    h1 {
      font-size: 2rem;
    }

    h2 {
      font-size: 1.6rem;
    }

    h3 {
      font-size: 1.5rem;
    }

    h4 {
      font-size: 1.3rem;
    }

    p {
      font-size: 1.15rem;
    }

    .macro {
      font-size: 2.5rem;
    }

    .pequeno {
      font-size: 0.8rem;
    }

    .titulo {
      font-size: 1.75rem;
    }

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

    .parrafos {
      font-size: 1.15rem;
    }
  }

  @media (max-width: 48rem) {
    h1 {
      font-size: 1.6rem;
    }

    h2 {
      font-size: 1.3rem;
    }

    h3 {
      font-size: 1.25rem;
    }

    h4 {
      font-size: 1.15rem;
    }

    p {
      font-size: 1.05rem;
    }

    .macro {
      font-size: 1.75rem;
    }

    .pequeno {
      font-size: 0.75rem;
    }

    .titulo {
      font-size: 1.4rem;
    }

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

    .parrafos {
      font-size: 1.05rem;
    }

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

/* primera pagina: hero + "el 2030 es nuestro punto de no retorno" */
@layer primera-pagina {
  .hero {
    min-height: 90dvh;
    color: var(--blanco);
    background:
      linear-gradient(rgb(0 20 13 / 38%), rgb(0 20 13 / 38%)),
      url("./images/diego-costa-IDbWBUS4S6U-unsplash 1.png") center / cover;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    isolation: isolate;

    .hero__topbar {
      min-height: 5.6rem;
      padding: 1.15rem 4.2rem 1rem 3rem;
      background: rgb(205 210 201 / 62%);
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      gap: 2rem;
    }

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

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

    nav {
      display: flex;
      align-items: center;
      gap: 2.8rem;
      padding-top: 0.7rem;
      border-top: 0.0625rem solid rgb(255 255 255 / 72%);

      a {
        &.active {
          font-weight: 700;
        }
      }
    }

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

    .hero__heading {
      text-align: center;

      p {
        margin: 0.2rem 0 0.5rem;
        font-family: "Orbitron", monospace;
      }

      h2 {
        font-size: clamp(1.15rem, 2.15vw, 1.75rem);
        line-height: 1.2;
      }
    }

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

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

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

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

        .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;
        }
      }
    }

    .hero__calendar {
      position: absolute;
      z-index: 1;
      bottom: -0.9rem;
      left: 50%;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.38rem 2rem;
      border: 0.0625rem solid var(--blanco);
      border-radius: 99rem;
      background: #2d6c64;
      color: var(--blanco);
      font-family: "Orbitron", monospace;
      font-size: 0.78rem;
      text-decoration: none;
      white-space: nowrap;

      svg {
        width: 1rem;
        height: 1rem;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
      }
    }
  }

  .primera-texto {
    min-height: 5.6rem;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(
      90deg,
      #A0A9A0 1%,
      #0C2219 62%,
      #0C2219 100%
    );
    display: grid;
    place-items: center;
    text-align: center;

    h2 {
      color: var(--blanco);
      font-size: clamp(1.35rem, 2.25vw, 2rem);
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }
  }

  @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.72rem;
          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%;
      }
    }

    .primera-texto {
      padding: 2.4rem 1.25rem 1.4rem;

      h2 {
        font-size: 1.4rem;
        text-wrap: balance;
      }
    }
  }

  @media (max-width: 48rem) {
    .page.primera {
      min-height: 100svh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
    }

    .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;
        }
      }

      .hero__content {
        gap: 1.4rem;
        padding: 1.5rem 1rem 1.9rem;
      }

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

      .hero__heading .pequeno {
        font-size: 0.62rem;
        padding-inline: 0.5rem;
      }

      .hero__heading h2 {
        font-size: 1.05rem;
        padding-inline: 0.5rem;
      }

      .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;
          }
        }
      }

      .hero__calendar {
        max-width: calc(100% - 2rem);
        padding: 0.45rem 1.1rem;
        font-size: 0.68rem;
        white-space: normal;
        text-align: center;
        justify-content: center;
      }
    }

    .primera-texto {
      min-height: auto;
      padding: 1.5rem 1rem 1.1rem;
    }
  }
}

@layer segunda-pagina {
  .page.segunda {
    min-height: 31.9rem;
    padding: 3.35rem max(2rem, 9.6vw);
    background: var(--verdegris);
    display: grid;
    place-items: center;
  }

  .segunda__composicion {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .segunda__imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 0.98;

    .segunda__fabrica {
      position: absolute;
      inset: 0 0 auto auto;
      width: 90%;
      height: 91%;
      object-fit: cover;
      border-left: 0.8rem solid #e8e9e3;
      border-bottom: 0.8rem solid #e8e9e3;
      box-shadow: 0 0.0625rem 0 #58675f;
    }

    .segunda__arbol {
      position: absolute;
      z-index: 1;
      left: -27%;
      bottom: 0;
      width: 93%;
      height: auto;
      pointer-events: none;
    }
  }

  .segunda__texto {
    color: #092a20;

    .titulo {
      max-width: 500px;
    }

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

  @media (max-width: 45rem) {
    .page.segunda {
      padding: 4rem 1.5rem;
    }

    .segunda__composicion {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }

    .segunda__imagen {
      width: min(24rem, 90%);
      justify-self: center;
    }

    .segunda__texto {
      width: min(24rem, 100%);
      justify-self: center;
    }
  }
}

@layer tercera-pagina {
  .page.tercera {
    min-height: 45.4rem;
    color: var(--blanco);
    display: grid;
    grid-template-rows: 1fr 9rem;
    background: url("./images/boris-hadjur-tercera.png") center / cover;
  }

  .tercera__contenido {
    padding: 3.25rem 1.5rem 2.5rem;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8.4rem;
  }

  .tercera__compromiso {
    width: min(41.5rem, 80%);
    height: 200px;
    padding: 2.15rem 2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #092a20;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    p {
      font-family: "Orbitron", monospace;
      line-height: 1.17;
    }
  }

  .tercera__tarjetas {
    width: min(58.5rem, 90%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.7rem;
  }

  .tarjeta-restauracion {
    min-height: 11.5rem;
    padding: 1.65rem 1rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;

    .tarjeta-restauracion__icono {
      position: absolute;
      top: -4rem;
      left: 50%;
      width: 4.7rem;
      height: 4.7rem;
      transform: translateX(-50%);
      border-radius: 50%;
      background: rgb(203 210 199 / 72%);
      display: grid;
      place-items: center;

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

    p {
      margin: 0;
    }
  }

  .tercera__cierre {
    padding: 2.3rem 1rem 1.2rem;
    background: linear-gradient(
      90deg,
      #A0A9A0 1%,
      #0C2219 62%,
      #0C2219 100%
    );
    display: grid;
    place-items: center;
    font-family: "Orbitron", monospace;
    font-size: clamp(1.25rem, 2.25vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
  }

  @media (max-width: 45rem) {
    .page.tercera {
      grid-template-rows: auto auto;
    }

    .tercera__contenido {
      padding-block: 3rem 4rem;
      gap: 6rem;
    }

    .tercera__compromiso {
      width: 100%;
    }

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

    .tarjeta-restauracion {
      min-height: 13rem;
    }
  }
}

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

  .intro-bn {
    max-width: 1200px;
    display: grid;
    gap: 2rem;
    justify-items: center;
    margin: 0 auto; 
    text-align: center;
    h2{
      max-width: 950px;
    }

    /* img {
      width: 100px;
    } */
  }

  .arboles {
    width: 85%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: center;
    gap: 0.5rem;
  }

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

  .arbol img {
    display: block;
    width: 100%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
    fill: var(--verdeoscuro);
  }

  .grilla-bn {
    border: 1px solid black;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    background-size: 32px 32px;
  }

  .bloque-bn {
    align-self: start;
    margin: 0;
    padding: 1.8rem 1rem;
    text-align: center;
  }

  .bloque-definicion {
    grid-column: 4 / 10;
  }

  .bloque-circulos {
    grid-column: 6 / 8;
    margin-top: 2rem;
    font-size: 0.8rem;
  }

  .bloque-especies {
    grid-column: 9 / 13;
    grid-row: 3;
  }

  .bloque-comunidades {
    grid-column: 1 / 5;
    grid-row: 3;
  }

  .bloque-clima {
    grid-column: 9 / 13;
    grid-row: 4;
  }

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

  .bloque-incendio {
    grid-column: 1 / 5;
    grid-row: 4;
    background-image: url("./images/incendio_bn.png");
    background-size: cover;
    color: var(--blanco);
  }

  .mapa-bn__contenedor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--verdegris);
  }

  .mapa-bn {
    width: 100%;
  }

  .mapa-bn__leyenda {
    grid-column: 2/3;
    grid-row: 1/2;
    color: var(--blanco);
    text-align: center;
    padding: 1rem;

    .equivalencia-cordoba {
      margin-top: 1.5rem;

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

      .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 {
        margin: 0.7rem 0 0;
        font-family: "Orbitron", monospace;
        font-size: clamp(0.95rem, 1.45vw, 1.35rem);
      }
    }
  }

  .mapa-bn__contenedor--secuencia {
    width: 100%;
    height: 100svh;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    overflow: hidden;
    position: sticky;
    top: 0;

    .mapa-bn__atajos {
      position: absolute;
      top: 16px;
      right: 20px;
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .mapa-bn__atajo {
      display: block;
      width: 72px;
      height: 22px;
      border: 2px solid transparent;
      transition: transform 150ms ease, border-color 150ms ease;
      border-radius: 99px;
    }

    .mapa-bn__atajo--rojo { background-color: var(--red); }
    .mapa-bn__atajo--amarillo { background-color: var(--yellow); }
    .mapa-bn__atajo--verde { background-color: var(--green); }

    .mapa-bn__atajo:hover {
      transform: scale(1.05);
      border-color: #000;
    }

    .mapa-bn__saltar {
      font-family: "Orbitron", monospace;
      font-size: 14px;
      color: var(--blanco);
      text-decoration: none;
      white-space: nowrap;
    }
  }

  .mapa-bn--secuencia {
    width: 100%;
    height: 100%;
    max-height: 100svh;
    object-fit: contain;
    object-position: center;
  }

  .mapa-bn__leyenda--secuencia {
    align-self: center;
    padding: 1rem;
    color: var(--blanco);
    position: relative;
    transition: opacity 300ms ease, transform 300ms ease;

    p {
      margin: 0;
      font-family: "Orbitron", monospace;
    }

    .mapa-bn__categoria {
      font-weight: 700;
      line-height: 1;
    }

    .mapa-bn__categoria--rojo { color: var(--red); }
    .mapa-bn__categoria--amarillo { color: var(--yellow); }
    .mapa-bn__categoria--verde { color: var(--green); }

    .mapa-bn__total {
      margin-top: 0.7rem;
      font-weight: 800;
      line-height: 0.95;
    }
  }

  .mapa-bn__leyenda--secuencia .aparece {
    position: absolute;
    inset: 1rem;
    display: grid;
    place-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(1.5rem);
    pointer-events: none;
    transition: opacity 350ms ease, transform 350ms ease;

    p,
    h2 {
      margin: 0;
      font-family: "Orbitron", monospace;
    }

    p {
      font-size: clamp(1rem, 1.85vw, 1.6rem);
      line-height: 1.2;
    }

    h2 {
      font-size: clamp(1.8rem, 3.4vw, 3.35rem);
      line-height: 1;
    }
  }

  [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"] {
    opacity: 1;
    transform: translateY(0);
  }

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

  .otbn-secuencia__disparador {
    height: 100svh;
  }

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

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

      .mapa-bn__atajos {
        top: 12px;
        right: 12px;
        gap: 8px;
      }

      .mapa-bn__atajo {
        width: 52px;
        height: 18px;
      }

      .mapa-bn__saltar {
        font-size: 12px;
      }
    }

    .mapa-bn--secuencia {
      height: min(75svh, 42rem);
    }

    .mapa-bn__leyenda--secuencia {
      grid-column: 1;
      grid-row: 1;
      align-self: center;
      padding: 1rem 1rem 3rem;
      .aparece h2{
        font-size: 16px;
      }
    }
  }
}

@layer perdida{
  .page.perdida{
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--verdegris);
    color: var(--blanco);
    text-align: center;
  }

  .perdida__arboles{
    padding: 3rem 0rem;
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: space-between;

  }

  .perdida__fila{
    display: grid;
    align-items: end;
    gap: 24px;
  }

  .perdida__fila--sup{
    grid-template-columns: repeat(7, 1fr);
  }

  .perdida__fila--media{
    grid-template-columns: repeat(10, 1fr);
  }

  .perdida__fila--extra{
    grid-template-columns: repeat(7, 1fr);
    align-self: center;
  }

  .perdida__fila--inf{
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
  }

  .perdida__arboles img{
    width: 100%;
    height: 110px;
    object-fit: contain;
    filter: brightness(0.52) saturate(0.85);
    opacity: 0.95;
  }

  .perdida__fila--media img{
    height: 130px;
  }

  .perdida__fila--sup img:nth-child(3),
  .perdida__fila--media img:nth-child(5),
  .perdida__fila--extra img:nth-child(2),
  .perdida__fila--inf img:nth-child(4) {
    animation: perdida-cae 8s ease-in-out infinite;
  }

  .perdida__fila--sup img:nth-child(6),
  .perdida__fila--media img:nth-child(8),
  .perdida__fila--extra img:nth-child(6) {
    animation: perdida-cae 11s ease-in-out infinite;
    animation-delay: 2.5s;
  }

  .perdida__fila--media img:nth-child(2),
  .perdida__fila--inf img:nth-child(1) {
    animation: perdida-cae 13s ease-in-out infinite;
    animation-delay: 5s;
  }

  @keyframes perdida-cae {
    0%, 55%, 100% {
      opacity: 0.95;
      transform: scale(1);
    }
    30%, 45% {
      opacity: 0;
      transform: scale(0.6);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .perdida__fila img {
      animation: none;
    }
  }

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

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

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

  .perdida__fuente{
    position: absolute;
    right: 24px;
    bottom: 16px;
    z-index: 1;
    margin: 0;
    font-family: "Orbitron", monospace;
    font-size: 12px;
    color: var(--blanco);
    opacity: 0.9;
  }

  @media (max-width: 700px){
    .perdida__arboles{
      padding: 48px 16px;
    }

    .perdida__arboles img{
      height: 70px;
    }

    .perdida__fila--media img{
      height: 85px;
    }
  }
}


@layer investigacion {
  .investigacion {
    > h2 {
      text-align: center;
    }

    .investigacion-band {
      background: linear-gradient(
        180deg,
        #A0A9A0 1%,
        #0C2219 62%,
        #0C2219 100%
      );
      width: 100%;
      margin-top: 5rem;
      padding-top: 5rem;
      /* padding-bottom: 40px; */
      position: relative;
    }
/* 
    .investigacion-band::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 52px;
      background: var(--verdetexto);
      z-index: 0;
    } */

    .investigacion-cards {
      display: grid;
      width: 80%;
      margin: 0 auto;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 5rem;

      .investigacion-card {
        color: var(--blanco);
        text-align: center;
        background-color: var(--verdeoscuro);
        border-radius: 1rem 1rem 0 0;
        overflow: hidden;
        cursor: pointer;
        transition: background-color 180ms ease;

        &:hover,
        &:focus-visible {
          background-color: var(--blanco);
        }

        &.activa,
        &.activa:hover,
        &.activa:focus-visible {
          align-self: end;
          z-index: 2;
          height: 5rem;
          background-color: var(--verdeboton);

          img,
          .investigacion-card__title {
            display: none;
          }

          .investigacion-card__activa {
            display: flex;
          }
        }

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

        img {
          display: block;
          overflow: hidden;
          width: 100%;
          height: auto;
        }

        .investigacion-card__activa {
          display: none;
          width: 100%;
          height: 5rem;
          padding: 0.7rem 0.5rem 0.55rem;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 0.25rem;
          text-align: center;

          strong {
            color: var(--verdeoscuro);
            font-family: "Orbitron", monospace;
            font-size: 0.75rem;
            line-height: 1;
            text-transform: uppercase;
          }

          span {
            font-family: "Atkinson Hyperlegible", Arial, sans-serif;
            font-size: 0.65rem;
            line-height: 1;
          }
        }
      }
    }

    .investigacion-texto {
      background-color: var(--blanco);
      padding: 5rem;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      border-bottom: 1px dashed black;

      &[hidden] {
        display: none;
      }

      .investigacion-texto-titulo {
        text-align: left;
      }
    }

    @media (max-width: 700px) {
      .investigacion-texto {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
    }
  }
}

@layer bn-pagina {
  .bn-provincias {
    background-color: var(--blanco);
    padding: 5rem;
  }

  .forest-explorer {
    display: grid;
  }

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

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

  @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-width: 48rem) {
    .bn-provincias {
      padding: 0.5rem 0.5rem;
    }

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

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

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

@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:
      /* left 0.75s cubic-bezier(0.22, 0.75, 0.22, 1),
      top 0.75s cubic-bezier(0.22, 0.75, 0.22, 1),
      width 0.75s cubic-bezier(0.22, 0.75, 0.22, 1),
      height 0.75s cubic-bezier(0.22, 0.75, 0.22, 1), */
      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: contain;
  }

  .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);
    font-weight: bold;
    text-align: center;
    margin: 0;
  }

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

  .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-color: transparent;
    background-image: url("./svgs/tronco2.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

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

  .pie-chart {
    overflow: visible;
  }

  .pie-chart__connector {
    stroke-width: 0.8;
  }

  .pie-chart__label {
    fill: var(--ink);
    font-size: 3px;
    font-family: "Orbitron",monospace;
    paint-order: stroke;
    /* stroke: #fffefc; */
    /* stroke-linejoin: round; */
    /* stroke-width: 2px; */
  }

  .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;
      }
    }

    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-title {
        margin: 0;
        padding: 0.7rem 1rem 0;
        text-align: center;
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.35;
        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);

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

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

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

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

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

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

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

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

      &[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;
    }
  }

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

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

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

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

    .province-dot .dot-text {
      font-size: 10px;
      line-height: 1.2;
    }

    .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 summary,
    .map-stage.is-detail .category-legend-medio summary,
    .map-stage.is-detail .category-legend-bajo 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;
    }

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

    .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: #3f3a30;
      border-radius: 16px 0 0 16px;
      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;
    }

    .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: 0;
      border-radius: 50%;
      background: #fffaf2;
      color: #111;
      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;
    }

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

@layer footer {
  .footer {
    min-height: 100vh;
    display: grid;
    gap: 1.8rem;
    position: relative;
    isolation: isolate;
    color: var(--blanco);
    background:
      url("./images/black_footer.png") center / cover,
      #0b0b0c;

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

    p,
    li {
      font-size: 1rem;
      line-height: 1.22;
    }

    .footer__headline {
      padding: 2.5rem 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      text-align: center;
      background:
        linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)),
        url("./images/diego-costa-IDbWBUS4S6U-unsplash\ 1.png") center / cover;

      p {
        margin: 0;
        font-family: "Atkinson Hyperlegible", Arial, sans-serif;
        font-size: 0.95rem;
      }

      h2 {
        font-size: 1.35rem;
        line-height: 1.25;
        color: #c9e4c5;
      }
    }

    .footer__countdown {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 1.25rem 2.5rem;
      padding: 1rem 1.5rem;

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

    .footer__countdown .hero__calendar {
      position: static;
      transform: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.38rem 2rem;
      border: 0.0625rem solid var(--blanco);
      border-radius: 99rem;
      background: #2d6c64;
      color: var(--blanco);
      font-family: "Orbitron", monospace;
      font-size: 0.78rem;
      text-decoration: none;
      white-space: nowrap;
    }

    .footer__countdown .hero__calendar svg {
      width: 1rem;
      height: 1rem;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.7;
    }

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

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

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

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

        .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: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      border-top: 0.0625rem solid rgb(255 255 255 / 72%);
      gap: 2rem;
    }

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

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

    .footer__brand {
      border-left: 1px solid rgb(255 255 255 / 72%);
      padding: 1rem;
      width: 100px;
      line-height: 0;

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

    .footer__intro {
      max-width: 60rem;
      margin: 0 auto;
      padding: 0 1.5rem;
      display: grid;
      gap: 0.35rem;
      text-align: center;

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

      .footer__programa {
        margin-top: 0.8rem;
      }

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

    .footer__credits {
      display: contents;
    }

    .footer__credits-main {
      width: min(80%, 60rem);
      margin: 0 auto;
      padding: 1.5rem 1.5rem 1.5rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      border: 0.0625rem solid rgb(255 255 255 / 18%);
      border-radius: 1rem;
      background: rgb(255 255 255 / 4%);
    }

    .footer__credits-main ul {
      display: grid;
      align-content: start;
      gap: 0.15rem;
      padding-left: 1rem;
      border-left: 0.0625rem solid rgb(255 255 255 / 28%);
    }

    li {
      font-family: "Atkinson Hyperlegible", Arial, sans-serif;
      font-size: 0.85rem;
      line-height: 1.4;
    }

    .footer__contacto {
      max-width: 60rem;
      margin: 0 auto;
      padding: 0 1.5rem 2.5rem;
      display: grid;
      gap: 0.5rem;
      justify-items: center;
      text-align: center;

      ul {
        display: grid;
        gap: 0.5rem;
        justify-items: center;
        list-style: none;
      }

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

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

      .footer__countdown {
        flex-wrap: wrap;
      }

      .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: 38rem) {
      padding: 0.75rem 0.75rem 1.5rem;
      gap: 1.3rem;

      .footer__countdown {
        gap: 0.7rem;
      }

      .contador--footer {
        gap: 0.7rem;

        .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;
      }

      .footer__credits-main {
        gap: 1rem;
      }

      .footer__credits p,
      .footer__credits li {
        font-size: 0.85rem;
      }
    }
  }
}
