@import url(https://fonts.bunny.net/css?family=jura:300,500);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;
    --bg-dark: rgb(12, 10, 9);
    --txt-dark: rgb(245, 245, 245);

    --clr-bg: light-dark(var(--bg-dark), var(--bg-dark));
    --clr-txt: light-dark(var(--txt-dark), var(--txt-dark));
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-txt);
    min-height: 100svh;
    margin: 0;
    padding: 0;
    font-family: "Jura", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
}

.gallery-container {
    position: fixed;
    inset: 0;
    background: rgb(12, 10, 9);
}

.image-box {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.image-box hgroup {
    position: sticky;
    display: block;
    top: 86%;
    translate: 0 -50%;
    text-align: center;
    z-index: 2;
    display: grid;
    gap: .3rem;
    border: 1px solid rgb(255 255 255 / .5);
    padding: .6em .8em;
    border-radius: 8px;
    background: rgb(0 0 0 / .1);
    backdrop-filter: blur(5px);
    color: white;
    max-width: 90%;
    margin-inline: auto;
    width: fit-content;
}

.image-box h2 {
    font-size: clamp(.7rem, 2.8vw + .03rem, 1rem);
    margin: 0;
    font-weight: 500;
}

.image-plane {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.4s ease;
    will-change: opacity, transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-plane img {
    display: none;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-plane.fade {
    animation: imageFade 0.55s ease both;
}

@keyframes imageFade {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Asegurar que la imagen ocupe toda la pantalla en móvil */
@media (max-width: 768px) {
    .gallery-container {
        position: fixed;
        inset: 0;
    }

    .image-box {
        position: absolute;
        inset: 0;
    }

    .image-plane {
        position: absolute;
        inset: 0;
        background-size: cover;
    }

    .image-plane img {
        display: none;
    }

    .image-box hgroup {
        max-width: 82%;
        padding: .5em .7em;
        top: 82%;
    }

    .image-box h2 {
        font-size: clamp(.65rem, 2.5vw, .85rem);
    }
}

@media (min-width: 769px) {
    .image-plane {
        background: none !important;
    }

    .image-plane img {
        display: block;
    }
}

.info {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.info a {
    color: rgba(255, 255, 255, 0.7);
    pointer-events: auto;
}

.copy {
    position: fixed;
    top: 24px;
    right: 30px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    z-index: 10;
}

.scroll-down {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scroll-down.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 1.3s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

.footer-logo {
    position: fixed;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.footer-logo img {
    width: 130px;
    height: auto;
    opacity: 0.5;
}


/* estilos de arrows */

.arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  z-index: 5;
  pointer-events: none;
}
.left,
.right {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  box-shadow: -3px 3px 0 rgba(0, 0, 0, 0.5);
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  transition: 0.5s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.left {
  transform: rotate(45deg);
}
.right {
  transform: rotate(-135deg);
}
.left:hover,
.right:hover {
  box-shadow: -3px 3px 0 rgba(255, 255, 255);
}
.left:active,
.right:active {
  outline: none;
  box-shadow: -3px 3px 0 rgba(0, 0, 0, 0.5) !important;
}
.left:focus,
.right:focus {
  outline: none !important;
  box-shadow: -3px 3px 0 rgba(0, 0, 0, 0.5) !important;
}
