@charset "utf-8";

@import url("https://use.typekit.net/usz4phq.css");

/* WOORIGINALS — WEB V2
   Variables generales y estilos desktop. Responsive en responsive.css.
-------------------------------------------------- */

:root {
    --font-general: "aptos", Arial, sans-serif;
    --black: #000;
    --white: #FFF;
    --side: 5vw;
    --thumb-gap: 5.2rem;
    --ink: var(--black);
    --cover-ratio: 1343 / 2048;
    --cover-right: 10vw;
    /* Margen independiente del panel ARCA (5vw). */
    --cover-width: clamp(15rem, 17.2vw, 29rem);
    --cover-gap: 1.8rem;
    --cover-duration: 48s;
    --hero-peek: 5vh;
    --panel-radius: 4rem;
    --body-copy: clamp(1.8rem, 1.55vw, 2.2rem);
    --section-space: 10rem;
    --cover-border: rgba(0,0,0,.16);
    --cover-border-dark: rgba(255,255,255,.23);
    --book-radius: .5rem;
    --article-radius: 2rem;
    --thumb-shadow: 0 .5rem 1.6rem rgba(0,0,0,.16);
    --thumb-shadow-dark: 0 .4rem 1.6rem rgba(255,255,255,.16);
    --article-gap: 2.6rem;
    --article-visible: 3.5;
    --arca-intro-height: 50rem;
    --soft-gray: #f3f3f3;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font: 400 2rem/1.38 var(--font-general);
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* ESCENARIO Y HERO
-------------------------------------------------- */

.story {
    position: relative;
    isolation: isolate;
}

.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 44rem;
    overflow: clip;
    background: var(--white);
}

.brand-logo {
    position: absolute;
    z-index: 2;
    left: var(--side);
    top: 4.7vh;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: var(--side);
    top: 47.5%;
    transform: translateY(-50%);
    width: 44vw;
    max-width: 70rem;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(5rem, 6.8vw, 10rem);
    font-weight: 400;
    letter-spacing: -.048em;
    line-height: .94;
}

.hero-copy p {
    margin: 3.2rem 0 0;
    max-width: 49rem;
    color: rgba(0,0,0,.68);
    font-size: var(--body-copy);
    line-height: 1.38;
}

/* COLUMNAS VERTICALES
   Dos copias idénticas de cada grupo garantizan un ciclo continuo.
   La segunda columna arranca desfasada media carátula.
-------------------------------------------------- */

.hero-covers {
    position: absolute;
    top: 0;
    bottom: 0;
    right: var(--cover-right);
    display: flex;
    gap: var(--cover-gap);
    width: calc(2 * var(--cover-width) + var(--cover-gap));
    overflow: clip;
}

.cover-column {
    flex: 0 0 var(--cover-width);
    position: relative;
    min-width: 0;
}

.cover-track {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    animation: cover-scroll var(--cover-duration) linear infinite;
}

.cover-group {
    display: flex;
    flex-direction: column;
    gap: var(--cover-gap);
    padding-bottom: var(--cover-gap);
}

.cover-group img {
    display: block;
    width: 100%;
    aspect-ratio: var(--cover-ratio);
    height: auto;
    object-fit: contain;
}

.cover-column-down .cover-track {
    animation-direction: reverse;
    animation-delay: calc(var(--cover-duration) * -.13);
}

.cover-column-up .cover-track {
    animation-delay: calc(var(--cover-duration) * -.30);
}

@keyframes cover-scroll {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(0,-50%,0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .hero-covers:hover .cover-track {
        animation-play-state: paused;
    }
}

.hero-covers:focus-visible .cover-track,
.hero-covers.is-paused .cover-track,
.hero-covers.is-offscreen .cover-track {
    animation-play-state: paused;
}

/* PANEL EXPANSIVO DE ARCA
   El scroll reduce el margen (5vw a 0) y el radio (4rem a 0).
   El contenedor fluye sobre el Hero; el contenido no se escala.
-------------------------------------------------- */

.arca-wrap {
    position: relative;
    z-index: 3;
    margin-top: calc(-1 * var(--hero-peek));
    --panel-side: var(--side);
    --panel-round: var(--panel-radius);
}

.arca-panel {
    margin-inline: var(--panel-side);
    border-radius: var(--panel-round) var(--panel-round) var(--panel-bottom, 0rem) var(--panel-bottom, 0rem);
    background: var(--black);
    color: var(--white);
    min-height: 90vh;
    overflow: clip;
}

.arca-content {
    padding: 0 var(--side) 9vh;
}

.arca-heading {
    max-width: 52%;
    min-height: var(--arca-intro-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 4rem;
    padding-block: 4rem;
}
.arca-heading h2 {
    margin: 0;
    font-size: clamp(3.8rem, 4.8vw, 7rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.045em;
    white-space: pre-line;
}

.arca-heading p {
    font-size: var(--body-copy);
    color: rgba(255,255,255,.78);
    margin: 2.4rem 0 0;
    max-width: 56rem;
    white-space: pre-line;
}

.arca-books {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: var(--thumb-gap);
}

.book-thumb {
    min-width: 0;
}

.book-thumb img, .book-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: var(--cover-ratio);
    display: block;
    object-fit: contain;
}

.book-placeholder {
    display: grid;
    place-content: center;
    min-width: 0;
    min-height: 0;
    text-align: center;
    border: 0.1rem solid rgba(255,255,255,.28);
    font-size: clamp(1.8rem,3vw,4rem);
    letter-spacing: .12em;
}

.book-placeholder small {
    font-size: 1.2rem;
    letter-spacing: .03em;
    opacity: .65;
    margin-top: 1rem;
}

.book-info {
    display: block;
    padding-top: 2rem;
}

.book-context,.book-status {
    display: block;
    color: rgba(255,255,255,.65);
    font-size: 1.5rem;
}

.book-title {
    display: block;
    font-size: clamp(1.8rem,2vw,2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin: .3rem 0;
}

/* SISTEMA GENERAL / MARCA / CARÁTULAS
-------------------------------------------------- */

body {
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
    outline: .2rem solid currentColor;
    outline-offset: .4rem;
}

button {
    cursor: pointer;
}

.logo-header {
    display: block;
    width: 19.04rem;
    max-width: 55vw;
    height: auto;
}

.cover-group img,.cover-image,.book-placeholder {
    border: .1rem solid var(--cover-border);
}

.arca-panel {
    position: relative;
    --cover-border: var(--cover-border-dark);
}

.arca-background {
    position: absolute;
    inset: 0 0 auto;
    height: clamp(50rem,47vw,76rem);
    background-image:var(--arca-art, none);
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    pointer-events: none;
}

.arca-content {
    position: relative;
    z-index: 1;
}

.book-thumb {
    display: block;
}

/* Esquinas de los thumbnails y hover sin alterar la imagen. */
.book-thumb .cover-image,
.book-thumb .book-placeholder,
.book-thumb .future-cover {
    border-radius: var(--book-radius);
}

.book-thumb .cover-image,
.book-thumb .book-placeholder {
    transition: box-shadow .22s ease;
}

@media (hover: hover) and (pointer: fine) {
    a.book-thumb:hover .cover-image,
    a.book-thumb:hover .book-placeholder {
        box-shadow: var(--thumb-shadow);
    }

    /* Sobre negro, un halo gris tenue hace visible el efecto. */
    .arca-panel a.book-thumb:hover .cover-image,
    .arca-panel a.book-thumb:hover .book-placeholder {
        box-shadow: var(--thumb-shadow-dark);
    }
}

.book-context,.book-status {
    color: rgba(0,0,0,.58);
}

.arca-panel .book-context,.arca-panel .book-status {
    color: rgba(255,255,255,.66);
}

.book-title {
    font-size: clamp(1.7rem,1.85vw,2.6rem);
}

.book-placeholder {
    background: #101010;
    color: #fff;
    border: .1rem solid var(--cover-border-dark);
}

/* CONTENIDOS DEL HOME
-------------------------------------------------- */

.content-section {
    position: relative;
    background: #fff;
    padding: var(--section-space) var(--side);
}

.content-section h2,.footer-copy h2 {
    font-size: clamp(3.8rem,4.8vw,7rem);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -.045em;
    margin: 0;
}

.section-copy p,.footer-copy p {
    font-size: var(--body-copy);
    margin: 2rem 0 0;
    max-width: 49rem;
    color: rgba(0,0,0,.68);
}

.complementarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    margin: 4rem var(--side) var(--section-space);
    background: var(--soft-gray);
    border-radius: var(--panel-radius);
    padding: 6rem 4rem;
}
.complementarios h2 {
    white-space: pre-line;
}
.complementary-books,.independent-books {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: var(--thumb-gap);
}

.independent {
    padding-top: 2rem;
}

.independent-books {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.book-thumb[hidden] {
    display: none;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.8rem 0 3.5rem;
}

.filters button {
    font-size: 1.6rem;
    border: .1rem solid #ccc;
    border-radius: 5rem;
    background: #fff;
    padding: .65rem 2rem;
    color: #000;
}

.filters button[aria-pressed=true] {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* ENTRE LÍNEAS / CARRUSEL
-------------------------------------------------- */

.articles-section {
    padding-top: 2rem;
    padding-bottom: 10rem;
    padding-right: 0;
}

.articles-section .section-copy {
    padding-right: var(--side);
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2.7rem;
    padding-right: var(--side);
    margin-bottom: 1.5rem;
}

.carousel-btn {
    display: grid;
    place-items: center;
    border: 0;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    background: transparent;
    transition: opacity .18s ease, transform .18s ease;
}

.carousel-btn img {
    width: 3.5rem;
    height: 3.5rem;
}

.carousel-btn:not(:disabled):hover {
    transform: scale(1.15);
}

.carousel-btn:disabled {
    opacity: .19;
    cursor: default;
}

.articles-track {
    display: flex;
    gap: var(--article-gap);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    /* El margen inicial viaja con los artículos; el recorte es en el
       borde de la pantalla. Conservar el margen al final del recorrido. */
    margin-left: calc(-1 * var(--side));
    padding-inline: var(--side);
    scroll-padding-inline: var(--side);
    /* Espacio para que las sombras no se recorten arriba ni abajo. */
    margin-top: -1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    overscroll-behavior-inline: contain;
}

.articles-track::-webkit-scrollbar {
    display: none;
}

.articles-track .article-card {
    flex: 0 0 calc((100% - var(--article-gap) * (var(--article-visible) - 1)) / var(--article-visible));
    scroll-snap-align: start;
}

.article-card {
    display: block;
    min-width: 0;
}

.article-image,.more-tile {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: var(--article-radius);
    transition: box-shadow .22s ease;
}

.article-image {
    border: .1rem solid rgba(0,0,0,.12);
}

@media (hover: hover) and (pointer: fine) {
    .article-card:hover .article-image,
    .article-card:hover .more-tile {
        box-shadow: var(--thumb-shadow);
    }
}

.article-category {
    display: block;
    font-size: 1.4rem;
    color: #666;
    margin-top: 2rem;
}

.article-title {
    display: block;
    font-size: clamp(1.8rem,1.8vw,2.4rem);
    line-height: 1.18;
    font-weight: 600;
    margin-top: .4rem;
}

.more-tile {
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 2rem;
}

.more-tile img {
    width: 3.5rem;
    height: 3.5rem;
    filter: brightness(0) invert(1);
}

/* PIE DE PÁGINA
-------------------------------------------------- */

.site-footer {
    background: #000;
    color: #fff;
    padding: 7rem 4rem 3rem;
    position: relative;
    margin-inline: var(--side);
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding-bottom: 6rem;
}

.footer-copy {
    flex: 1;
}

.footer-copy h2 {
    font-size: clamp(3.5rem,4.5vw,6.5rem);
}

.footer-copy p {
    color: rgba(255,255,255,.67);
}

.store-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.store-link {
    display: block;
    width: clamp(12rem,15vw,20rem);
    flex: none;
}

.store-link img {
    display: block;
    width: 100%;
    height: auto;
}

.store-link {
    transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .store-link:not(.pending-link):hover {
        transform: translateY(-.1rem) scale(1.02);
    }
}


.social {
    transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .social:hover {
        transform: translateY(-.3rem);
    }
}


.pending-link {
    cursor: default;
}

.footer-bottom {
    padding-top: 2.6rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
}

.logo-footer {
    display: block;
    width: 15rem;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.footer-legal {
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255,255,255,.65);
}

.social {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    white-space: nowrap;
}

.social img {
    display: block;
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1);
}

/* DETALLES: VENTANA COMPLETA Y PÁGINAS INDEPENDIENTES
-------------------------------------------------- */

.detail-dialog {
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: #fff;
    color: #000;
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.detail-dialog[open] {
    animation: detail-in .38s cubic-bezier(.2,.65,.2,1) both;
}

.detail-dialog.is-closing {
    animation: detail-out .25s ease both;
}

@keyframes detail-in {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes detail-out {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.detail-dialog::backdrop {
    background: transparent;
}

.detail-scroll {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7rem var(--side) 4rem;
}

.close-detail {
    position: fixed;
    top: 2.5rem;
    right: var(--side);
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    width: 5.4rem;
    height: 5.4rem;
    padding: 0;
}

.close-detail img {
    width: 3.4rem;
    height: 3.4rem;
}

.detail-book {
    display: grid;
    grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
    align-items: start;
    gap: clamp(4rem,5vw,7rem);
    max-width: 125rem;
    margin: auto;
}

.detail-cover {
    position: sticky;
    top: 0;
    max-width: min(38rem, calc((100svh - 12rem) * 1343 / 2048));
    width: 100%;
}

.detail-cover .cover-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--cover-ratio);
    object-fit: contain;
}

.detail-copy h1,.detail-article h1,.detail-list h1 {
    font-size: clamp(3.6rem,5vw,7rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: 1rem 0 3rem;
}

.eyebrow {
    color: #666;
    font-size: 1.5rem;
    display: block;
}

.detail-text {
    font-size: 1.8rem;
    line-height: 1.5;
}

.detail-text p {
    margin: 0 0 1.4rem;
}

/* Disponibilidad y tiendas en una línea en desktop. */
.detail-stores {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.detail-stores .eyebrow {
    flex: none;
    white-space: nowrap;
}

.detail-stores .store-logos {
    flex-wrap: nowrap;
    min-width: 0;
}

.detail-stores .store-link {
    flex: 0 1 auto;
    min-width: 0;
}

.detail-article,.detail-list {
    max-width: 100rem;
    margin: auto;
}

.detail-article {
    max-width: 84rem;
}

.article-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    margin-bottom: 3rem;
}

.draft-note {
    font-size: 1.4rem;
    color: #777;
    margin-top: -1.5rem;
}

.standalone-detail .detail-scroll {
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.standalone-detail .detail-cover {
    top: 7rem;
}

@media (prefers-reduced-motion:reduce) {
    .cover-track {
        animation-play-state: paused !important;
    }

    .arca-wrap {
        --panel-side: 0rem !important;
        --panel-round: 0rem !important;
        --panel-bottom: 0rem !important;
    }

    .detail-dialog[open],.detail-dialog.is-closing {
        animation: none;
    }

    .scroll-cue img {
        animation: none;
    }
}

/* INDICADORES DE NAVEGACIÓN — SVG Y ESTILOS DE WOOHU */

.scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: calc(var(--hero-peek) + 2rem);
    left: var(--side);
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
}

.scroll-cue img {
    width: 3.5rem;
    height: 3.5rem;
    display: block;
    animation: scroll-cue-drop 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-drop {
    0%,100% {
        transform: rotate(90deg) translateX(-.2rem);
    }

    50% {
        transform: rotate(90deg) translateX(1rem);
    }
}

.page-progress {
    position: fixed;
    z-index: 40;
    top: 50%;
    right: 2.6rem;
    transform: translateY(-50%);
    pointer-events: none;
    width: .3rem;
    height: 15rem;
    transition: opacity .2s ease;
}

.page-progress-track {
    position: relative;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,.27);
    border-radius: 10rem;
    overflow: hidden;
}

.page-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--white);
    border-radius: 10rem;
}

.page-progress.on-light .page-progress-track {
    background: rgba(0,0,0,.20);
}

.page-progress.on-light .page-progress-fill {
    background: var(--black);
}

.has-open-lightbox .page-progress {
    opacity: 0;
}

/* OBRAS FUTURAS — espacios sin enlaces ni rutas ficticias */

.future-cover {
    display: grid;
    place-items: center;
    text-align: center;
    aspect-ratio: var(--cover-ratio);
    width: 100%;
    border: .1rem solid var(--cover-border);
    background: var(--soft-gray);
    padding: 2rem;
}

.future-cover span {
    font-size: clamp(1.4rem, calc(2.1vw - .2rem), 2.8rem);
    line-height: 1.12;
    color: #666;
    max-width: 20rem;
}

/* Líneas estáticas de las obras futuras: no son indicadores de carga. */
.future-info {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.future-line {
    display: block;
    background: #ededed;
    border-radius: .2rem;
    height: .7rem;
}

.future-line-context {
    width: 32%;
}

.future-line-title {
    width: 78%;
    height: 1.3rem;
}

.future-line-status {
    width: 45%;
}

.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
}

.article-links a {
    text-decoration: underline;
    text-underline-offset: .25rem;
}
