@import "https://unpkg.com/open-props" layer(design.system);

@layer demo {
  fieldset {
    grid-template-columns: repeat(5, auto);

    @media (prefers-reduced-motion: no-preference) {
      label {
        transition: 2s var(--ease-spring-5);
      }
    }

    >label {
      background: var(--_img) 50%/cover;
      width: 0;
      min-width: 100%;
    }

    >label:has(input:checked) {
      width: 18vw;
    }

    >label:has(input:checked)+* */

    /*> label:has(+ label:has(input:checked)) */
      {
      width: 8vw;
    }

    /* a hacky way to get all the cases*/
    &:has(label:nth-child(2) > input:checked) label:nth-child(1),
    &:has(label:nth-child(3) > input:checked) label:nth-child(2),
    &:has(label:nth-child(4) > input:checked) label:nth-child(3),
    &:has(label:nth-child(5) > input:checked) label:nth-child(4) {
      width: 8vw;
    }
  }
}

@layer demo.support {
  fieldset {
    inline-size: 80vw;

    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 50vh;
    gap: var(--size-3);
    border: none;

    >label {
      cursor: pointer;
      border-radius: var(--radius-4);

      &:focus-within {
        outline: 3px solid rgba(116, 199, 203, 255);
        outline-offset: 5px;
      }

      >input {
        opacity: 0;
      }
    }
  }
}

#article_fotos {
  display: flex;
  justify-content: center;
}

/* esto es lo del card del logo que pasando por arriba se cambia y muestra otra pagina */
section.card_logo {
  position: relative;
  width: 100%;
  height: 86%;

  border-radius: 10px;
  display: flex;
  border: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card_logo img {
  fill: #000;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 3px;
}

.card_logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 6px #000000;
  background-color: rgb(142, 138, 138);
  color: #ffffff;
}

.card__content {
  color: #000000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: ghostwhite;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 10px solid rgba(116, 199, 203, 255);
}

.card_logo:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  padding-left: 5px;

  color: #000000;
  font-weight: 700;
}

.card_logo:hover img {
  scale: 0;
}

.card__description {
  margin: 10px 0 0;

  color: #000000;
  line-height: 1.4;
}

.centrar {
  display: flex;
  justify-content: center;

}

#primero_contenedor {
  padding-left: 5px;
  padding-right: 5px;

}

.informacion_texto {
  margin: 0px;

}

@media screen and (min-width: 517px) {

  #imagen_fondo_principal {
    background-image: url("/static/img/abstract12.jpg");
  }
}

@media screen and (max-width: 558px) {

  #article_fotos {
    display: none;
  }

  .informacion_texto {
    padding: 5px;
    font-size: 1em;
    margin: 1%;
    margin-top: 10%;

  }

  .tamano_cartas {
    padding: 0px;
  }

  #navScroll {
    width: 100%;
  }
}