@charset "utf-8";

/* WOORIGINALS — RESPONSIVE
   Importar DESPUÉS de styles.css.
-------------------------------------------------- */

@media (min-width: 901px) and (max-width: 1199px) {
    :root {
        --cover-width: 18vw;
        --cover-gap: 1.4rem;
        --thumb-gap: 3.6rem;
    }

    .hero-copy {
        width: 43vw;
    }

    .hero-copy h1 {
        font-size: clamp(4.8rem,6.5vw,8rem);
    }
}

/* TABLET Y MÓVIL: DOS FILAS HORIZONTALES
   Las portadas permanecen verticales. Solo cambia el eje del movimiento.
-------------------------------------------------- */

@media (max-width: 900px) {
    :root {
        --side: 6vw;
        --hero-peek: 0rem;
        --cover-width: clamp(11rem, 32vw, 20rem);
        --cover-gap: 1.2rem;
        --cover-duration: 36s;
        --panel-radius: 4rem;
        --thumb-gap: 2.4rem;
    }

    .hero {
        position: relative;
        height: auto;
        min-height: 0;
    }

    .brand-logo {
        position: relative;
        left: auto;
        top: auto;
        padding: 3rem var(--side) 0;
        font-size: 2.8rem;
    }

    .hero-copy {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        max-width: none;
        padding: 5rem var(--side) 3.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(4.3rem, 8vw, 6.7rem);
    }

    .hero-copy p {
        margin-top: 1.8rem;
        font-size: 1.8rem;
        max-width: 48rem;
    }

    .hero-covers {
        position: relative;
        inset: auto;
        width: 100%;
        flex-direction: column;
        gap: var(--cover-gap);
        padding-bottom: 0;
        overflow: clip;
    }

    .cover-column {
        flex: none;
        width: 100%;
        height: calc(var(--cover-width) * 2048 / 1343);
        overflow: clip;
    }

    .cover-track {
        display: flex;
        width: max-content;
        animation-name: cover-scroll-horizontal;
    }

    .cover-group {
        flex: none;
        flex-direction: row;
        padding-bottom: 0;
        padding-right: var(--cover-gap);
    }

    .cover-group img {
        flex: 0 0 var(--cover-width);
        width: var(--cover-width);
        height: auto;
    }

    /* Fila superior: izquierda a derecha. Fila inferior: derecha a izquierda. */

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

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

    .arca-content {
        padding-top: 0;
        padding-bottom: 5rem;
    }

    .arca-heading {
        margin-bottom: 3rem;
    }
    
    .arca-books {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .book-context,.book-status {
        font-size: 1.3rem;
    }
}

/* CONTENIDO, CARRUSELES Y DETALLES
-------------------------------------------------- */

@media (max-width:1100px) {
    :root {
        --article-visible: 2.5;
        --section-space: 7rem;
    }

    .footer-top {
        gap: 3rem;
    }
}

@media (max-width:900px) {
    .logo-header {
        width: 16rem;
    }

    .arca-heading {
        max-width: 75%;
        min-height: 38rem;
        margin-bottom: 4rem;
    }

    .arca-background {
        height: 50rem;
        background-image: linear-gradient(0deg,#000 0%,transparent 85%),linear-gradient(90deg,#000 0%,rgba(0,0,0,.8) 40%,transparent 100%),var(--arca-art);
    }

    .complementarios {
        gap: 3rem;
        padding: 4rem 3rem;
    }

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

    .articles-section {
        padding-bottom: 7rem;
    }

    .footer-top {
        flex-wrap: wrap;
        gap: 3rem;
        padding-bottom: 4rem;
    }

    .footer-copy {
        flex: 1 1 100%;
    }

    .store-link {
        width: 16rem;
    }

    .detail-book {
        gap: 4rem;
    }

    /* En tablet y móvil, etiqueta arriba y las dos tiendas en una fila. */
    .detail-stores {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-stores .store-logos {
        max-width: 100%;
    }

    .detail-scroll {
        padding-top: 8rem;
    }
}

@media (max-width:600px) {
    :root {
        --article-visible: 1.5;
        --article-gap: 1.6rem;
        --section-space: 5.5rem;
        --panel-radius: 2rem;
    }

    .brand-logo {
        display: flex;
        justify-content: center;
    }

    .logo-header {
        width: 14.4rem;
    }

    .hero-copy {
        padding-top: 4rem;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: clamp(4.1rem, calc(8vw - .2rem), 6.5rem);
    }

    .hero-copy p {
        margin-inline: auto;
    }

    /* ARCA: imagen visible antes del texto, solo en móvil. */
    .arca-heading {
        max-width: 100%;
        min-height: 34rem;
        margin-bottom: 3rem;
        padding-top: 75vw;
    }

    .arca-background {
        height: 75vw;
        background-image: linear-gradient(0deg, #000 0%, transparent 28%), var(--arca-art, none);
    }

    .arca-heading h2 {
        font-size: 3.8rem;
    }

    .book-title {
        font-size: 1.7rem;
    }

    .complementarios {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

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

    .content-section h2,.footer-copy h2 {
        font-size: 3.8rem;
    }

    .section-copy p,.footer-copy p {
        margin-top: 1.4rem;
    }

    .filters {
        margin: 2rem 0 2.5rem;
    }

    .filters button {
        font-size: 1.4rem;
    }

    .articles-section {
        padding-bottom: 5.5rem;
    }

    .carousel-controls {
        margin-top: 1rem;
    }

    .site-footer {
        padding: 5rem 2rem 2.5rem;
        text-align: center;
    }

    .footer-top {
        gap: 2.5rem;
        justify-content: center;
    }

    .footer-copy p {
        margin-inline: auto;
    }

    /* Las dos tiendas permanecen juntas, incluso en pantallas estrechas. */
    .site-footer .store-logos {
        width: 100%;
        max-width: 33rem;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .site-footer .store-link {
        flex: 0 1 16rem;
        width: auto;
        min-width: 0;
    }

    .store-logos {
        gap: 1rem;
    }

    .store-link {
        width: min(40vw,16rem);
    }

    .footer-bottom {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 1.5rem;
    }

    .footer-home {
        grid-column: 1;
        grid-row: 1;
    }

    .site-footer .social {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .footer-legal {
        grid-column: 1;
        grid-row: 3;
        text-align: center;
        font-size: 1.2rem;
    }

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

    .detail-cover,.standalone-detail .detail-cover {
        position: static;
        width: min(68vw,30rem);
        max-width: none;
        margin: 0 auto;
    }

    .detail-cover .cover-image {
        max-height: none;
    }

    .detail-copy h1,.detail-article h1,.detail-list h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .article-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 2.5rem 1.5rem;
    }

    .close-detail {
        width: 4.2rem;
        height: 4.2rem;
        top: 1.6rem;
    }

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

    .detail-scroll {
        padding-top: 7rem;
    }
}

@media (max-width: 900px) {
    :root {
        --body-copy: 1.8rem;
    }

    .arca-wrap {
        margin-top: 3rem;
    }

    .scroll-cue {
        display: none;
    }

    .page-progress {
        right: 1.2rem;
        height: 11rem;
    }

    .detail-scroll {
        padding-top: 7rem;
    }
}

@media (max-width: 600px) {
    .carousel-controls {
        gap: 1.5rem;
    }

    .carousel-btn {
        width: 4.2rem;
        height: 4.2rem;
    }

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

    .footer-bottom {
        padding-top: 1rem;
    }

    .social {
        font-size: 1.4rem;
    }

    .social img {
        width: 2.6rem;
        height: 2.6rem;
    }


    .future-cover {
        padding: 1.2rem;
    }
}

/* ENTRE LÍNEAS — COMPONENTES EDITORIALES
-------------------------------------------------- */
@media (max-width: 600px) {
    .article-body h2 {
        font-size: 2.6rem;
    }

    .article-body h3 {
        font-size: 2rem;
    }

    .editorial-gallery,
    .editorial-gallery.is-three,
    .editorial-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .article-body blockquote {
        font-size: 2.1rem;
    }

    .editorial-book-link {
        padding: 1.4rem;
        gap: 1.4rem;
    }
}
