:root {
    --v   : #6914f5;
    --p   : #fdaee6;
    --k   : #000;
    --bone: #f6f1ff
}

html {
    overflow-x: clip
}

* {
    box-sizing: border-box
}

body {
    margin    : 0;
    background: var(--bone);
    color     : #14091f;
    font      : 400 1.08rem/1.65 "Archivo", system-ui, sans-serif;
    overflow-x: hidden
}

a {
    color: inherit
}

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

.blk {
    font-family: "UnifrakturCook", "Times New Roman", serif;
    font-weight: 700
}

.wrap {
    max-width: 1080px;
    margin   : 0 auto;
    padding  : 0 20px;
    position : relative;
    z-index  : 2
}

nav {
    position       : absolute;
    top            : 0;
    left           : 0;
    right          : 0;
    z-index        : 10;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 18px 5vw;
    color          : #fff
}

nav a {
    text-decoration: none;
    font-weight    : 800;
    margin-left    : 18px
}

nav .brand {
    font-size: 1.6rem;
    margin   : 0
}

/* bandas con bordes ondulados */
.band {
    position: relative;
    --c     : var(--bone)
}

.band.v {
    --c       : var(--v);
    color     : #fff;
    background: var(--v) radial-gradient(rgba(255, 255, 255, .13) 1.5px, transparent 1.5px) 0 0/18px 18px;
    animation : dots 7s linear infinite
}

.band.pk {
    --c       : var(--p);
    background: var(--p);
    color     : #14091f
}

@keyframes dots {
    to {
        background-position: 18px 18px
    }
}

.wv {
    position      : absolute;
    left          : 0;
    width         : 100%;
    height        : 60px;
    fill          : var(--c);
    z-index       : 3;
    pointer-events: none
}

.wv.t {
    top: -59px
}

.wv.b {
    bottom   : -59px;
    transform: scaleY(-1)
}

/* hero */
.hero {
    min-height : 92vh;
    min-height : 92svh;
    display    : flex;
    align-items: center;
    padding    : 22vh 0 16vh;
    text-align : center;
    overflow   : visible
}

.hero h1 {
    margin             : 0;
    font-size          : clamp(4.5rem, 18vw, 11rem);
    line-height        : .95;
    color              : var(--p);
    -webkit-text-stroke: 3px var(--k);
    paint-order        : stroke fill;
    text-shadow        : .045em .045em 0 var(--k);
    animation          : glitch 3.6s infinite
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: none
    }

    92% {
        transform  : translate(-5px, 2px) skewX(-4deg);
        text-shadow: -6px 0 #00e5ff, 6px 4px #ff2d95
    }

    95% {
        transform  : translate(5px, -2px) skewX(4deg);
        text-shadow: 6px 0 #00e5ff, -6px -4px #ff2d95
    }
}

.sticker {
    display    : inline-block;
    margin-top : 24px;
    background : var(--p);
    color      : var(--k);
    font-weight: 800;
    padding    : 8px 18px;
    border     : 3px solid var(--k);
    box-shadow : 5px 5px 0 var(--k);
    transform  : rotate(-4deg);
    animation  : wob 3s ease-in-out infinite
}

@keyframes wob {
    50% {
        transform: rotate(3deg) scale(1.06)
    }
}

.star {
    position           : absolute;
    color              : var(--p);
    -webkit-text-stroke: 2px var(--k);
    paint-order        : stroke fill;
    animation          : float 5s ease-in-out infinite;
    z-index            : 2
}

@keyframes float {
    50% {
        transform: translateY(-16px) rotate(25deg)
    }
}

.marq {
    background : var(--k);
    color      : var(--p);
    overflow   : hidden;
    white-space: nowrap;
    transform  : rotate(-1.4deg);
    margin     : -26px -12px 0;
    position   : relative;
    z-index    : 6
}

.marq div {
    display       : inline-block;
    padding       : 11px 0;
    font-weight   : 800;
    font-size     : 1.2rem;
    letter-spacing: .08em;
    animation     : scroll 24s linear infinite
}

@keyframes scroll {
    to {
        transform: translateX(-50%)
    }
}

/* capítulos */
.zone {
    position: relative;
    overflow: hidden
}

.bl {
    position      : absolute;
    pointer-events: none;
    z-index       : 0
}

.bl i {
    display     : block;
    aspect-ratio: 1;
    transform   : var(--t, none);
    animation   : tilt 12s ease-in-out infinite
}

@keyframes tilt {
    50% {
        rotate: 2.5deg
    }
}

.row {
    display              : grid;
    grid-template-columns: 1.1fr .9fr;
    gap                  : 5vw;
    align-items          : center;
    min-height           : 100vh;
    min-height           : 100svh;
    padding              : 11vh 0
}

.row.r .txt {
    order: 2
}

.num {
    font-size          : clamp(4rem, 11vw, 7rem);
    line-height        : 1;
    margin             : 0;
    color              : var(--p);
    -webkit-text-stroke: 3px var(--k);
    paint-order        : stroke fill
}

h2.t {
    font-size          : clamp(2.2rem, 6vw, 3.6rem);
    line-height        : 1;
    margin             : 0 0 16px;
    font-weight        : 400;
    color              : var(--v);
    -webkit-text-stroke: 1.5px var(--k);
    paint-order        : stroke fill
}

.txt p {
    margin   : 0 0 1em;
    max-width: 54ch
}

.pb {
    aspect-ratio: 4/5;
    overflow    : hidden;
    display     : grid;
    place-items : center;
    border      : 3px solid var(--k);
    transform   : var(--t, none);
    animation   : tilt 9s ease-in-out infinite;
    background  : repeating-linear-gradient(45deg, var(--v) 0 14px, #7c32ff 14px 28px);
    color       : #fff;
    font-weight : 800;
    transition  : transform .6s cubic-bezier(.3, 1.6, .5, 1)
}

.pb img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    display   : block
}

.fl {
    filter  : drop-shadow(8px 8px 0 var(--k));
    position: relative
}

.fl:hover .pb {
    transform: var(--t, none) scale(1.06) rotate(-3deg)
}

.gg .fl {
    cursor    : zoom-in;
    transition: filter .25s ease
}

.gg .fl:hover,
.gg .fl:focus-within {
    filter: drop-shadow(10px 12px 0 var(--k))
}

.gg .fl:hover .pb,
.gg .fl:focus-within .pb {
    transform : scale(1.07) rotate(-3deg);
    box-shadow: 0 12px 24px rgba(20, 9, 31, .24)
}

.cp {
    position   : absolute;
    left       : 8%;
    bottom     : -2vh;
    font-size  : 1.4rem;
    transform  : rotate(-5deg);
    background : var(--p);
    color      : var(--k);
    padding    : 2px 14px;
    border     : 2px solid var(--k);
    white-space: nowrap
}

/* frase */
.frase {
    padding   : 15vh 0;
    text-align: center
}

.frase p {
    margin     : 0 auto;
    font-size  : clamp(2.8rem, 10vw, 7rem);
    line-height: 1;
    max-width  : 11em;
    text-shadow: .04em .04em 0 var(--k)
}

.frase small {
    display    : block;
    margin-top : 16px;
    font-weight: 800;
    color      : var(--p)
}

/* galería */
.gal {
    display    : flex;
    align-items: center;
    min-height : 100vh;
    min-height : 100svh;
    padding    : 14vh 0
}

.gal>.wrap {
    width: 100%
}

.gal h2.t {
    text-align   : center;
    margin-bottom: 6vh
}

.gg {
    display              : grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap                  : clamp(10px, 2vw, 24px);
    align-items          : start
}

.gg .fl {
    width    : 100%;
    min-width: 0
}

.gallery-actions {
    position       : relative;
    z-index        : 6;
    display        : flex;
    justify-content: center;
    padding-top    : clamp(48px, 7vh, 72px)
}

.gallery-trigger {
    margin: 0
}

/* mueve */
.mv {
    display    : flex;
    align-items: center;
    min-height : 100vh;
    min-height : 100svh;
    padding    : 14vh 0
}

.mv>.wrap {
    width: 100%
}

.mv h2.t {
    margin-bottom: 5vh
}

.bs {
    display        : flex;
    flex-wrap      : wrap;
    gap            : 3vh 3vw;
    justify-content: center
}

.bb {
    width          : min(46%, 250px);
    aspect-ratio   : 1;
    display        : flex;
    flex-direction : column;
    justify-content: center;
    align-items    : center;
    text-align     : center;
    padding        : 9%;
    font-size      : .95rem;
    line-height    : 1.4;
    font-weight    : 600;
    color          : #fff;
    border         : 3px solid var(--k);
    transform      : var(--t, none);
    animation      : tilt 8s ease-in-out infinite;
    transition     : transform .6s cubic-bezier(.3, 1.6, .5, 1);
    filter         : drop-shadow(6px 6px 0 var(--k))
}

.bb:hover {
    transform: var(--t, none) scale(1.08) rotate(-3deg)
}

.bb b {
    font-size    : 1.8rem;
    line-height  : 1;
    margin-bottom: 6px;
    font-weight  : 700
}

.bb:nth-child(2) {
    margin-top: 5vh
}

.bb:nth-child(4) {
    margin-top: 4vh
}

/* final */
.end {
    display        : flex;
    flex-direction : column;
    justify-content: center;
    min-height     : 100vh;
    min-height     : 100svh;
    padding        : 14vh 0 0;
    text-align     : center
}

.end h2 {
    margin     : 0 0 5vh;
    font-size  : clamp(2.8rem, 9vw, 6.5rem);
    line-height: .95;
    font-weight: 400;
    text-shadow: .04em .04em 0 var(--k)
}

.btn {
    display        : inline-block;
    background     : var(--p);
    color          : var(--k);
    font           : inherit;
    font-weight    : 800;
    text-decoration: none;
    padding        : 14px 26px;
    border         : 3px solid var(--k);
    box-shadow     : 5px 5px 0 var(--k);
    margin         : 6px 8px;
    transition     : transform .15s, box-shadow .15s;
    cursor         : pointer
}

.btn:hover {
    transform : translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--k)
}

.fixed-action {
    position: fixed;
    z-index : 20;
    margin  : 0;
    padding : 10px 16px
}

.fixed-action {
    opacity   : 1;
    transform : none;
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .9, .2, 1)
}

.home-action {
    top       : 78px;
    right     : 5vw;
    background: var(--p)
}

.home-action {
    rotate: -3deg
}

.home-action.is-swept {
    opacity       : 0;
    transform     : translateY(50px);
    pointer-events: none
}

.top-action {
    z-index       : 60;
    right         : max(20px, calc((100vw - 1500px) / 2));
    bottom        : 20px;
    display       : grid;
    width         : 52px;
    aspect-ratio  : 1;
    place-items   : center;
    padding       : 0;
    border        : 4px solid var(--k);
    background    : var(--p);
    color         : var(--k);
    font-size     : 1.5rem;
    line-height   : 1;
    opacity       : 0;
    visibility    : hidden;
    transform     : translateY(8px);
    pointer-events: none;
    transition    : opacity .2s ease, transform .2s ease, visibility .2s ease
}

.top-action.is-visible {
    opacity       : 1;
    visibility    : visible;
    transform     : none;
    pointer-events: auto;
    transition    : opacity .2s ease, transform .2s ease, visibility .2s ease
}

.top-action[hidden] {
    display: none
}

footer {
    padding  : 12vh 20px 28px;
    font-size: .95rem
}

footer img {
    height : 44px;
    display: block;
    margin : 0 auto 10px
}

footer p {
    margin: .2em 0
}

footer a {
    color      : var(--p);
    font-weight: 800
}

/* texto por palabras */
.w {
    display       : inline-block;
    overflow      : hidden;
    vertical-align: top;
    padding       : .1em .12em .2em;
    margin        : -.1em -.12em -.2em
}

.w i {
    display         : inline-block;
    font-style      : normal;
    transform       : translateY(120%) rotate(8deg);
    transform-origin: 0 100%;
    transition      : transform .9s cubic-bezier(.2, .9, .2, 1)
}

.in .w i {
    transform: none
}

.js .rv {
    opacity   : 0;
    transform : translateY(50px);
    transition: opacity .8s, transform .9s cubic-bezier(.2, .9, .2, 1)
}

.js .rv.in {
    opacity  : 1;
    transform: none
}

.js .ro {
    opacity   : 0;
    transition: opacity 1s
}

.js .ro.in {
    opacity: 1
}

@media(max-width:760px) {
    nav {
        align-items: flex-start;
        padding    : 14px 16px
    }

    nav>div {
        display        : flex;
        flex-wrap      : wrap;
        justify-content: flex-end;
        gap            : 6px 12px;
        max-width      : 65vw
    }

    nav a {
        margin   : 0;
        font-size: .82rem
    }

    .home-action {
        top  : 72px;
        right: 16px
    }

    .row,
    .gal,
    .mv,
    .end {
        min-height: 100vh;
        min-height: 100svh
    }

    .hero {
        min-height: 92vh;
        min-height: 92svh;
        padding   : 18vh 0 14vh
    }

    .row {
        grid-template-columns: 1fr;
        padding              : 10vh 0
    }

    .row.r .txt {
        order: 0
    }

    .fl {
        max-width: 300px;
        margin   : 0 auto
    }

    .gg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap                  : 34px 14px
    }

    .gg .fl {
        max-width: none;
        margin   : 0
    }

    .gg .cp {
        font-size  : clamp(.85rem, 3.5vw, 1.1rem);
        padding    : 2px 8px;
        white-space: normal
    }

    .gallery-actions {
        padding-top: 52px
    }

    .bb {
        width: min(46%, 250px)
    }

    .gallery-dialog-grid {
        gap: 10px
    }

    .gallery-dialog-grid figcaption {
        font-size: .9rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation : none !important;
        transition: none !important
    }

    .w i,
    .js .rv,
    [data-s] {
        transform: none !important;
        opacity  : 1 !important
    }
}