/*
Theme Name: Aurum Child
Theme URI: https://www.lanavajasuizaeditores.com/
Description: Tema hijo de Aurum para La Navaja Suiza Editores.
Author: La Navaja Suiza Editores
Template: aurum
Version: 1.0.0
Text Domain: aurum-child
*/

/* =========================================================
   La Navaja Suiza - Variables generales
   ========================================================= */

:root {
    --lns-red: #b60021;
    --lns-black: #292929;
    --lns-text: #444444;
    --lns-light-gray: #e5e5e5;
    --lns-soft-bg: #f7f5f3;
}

/* =========================================================
   La Navaja Suiza - Listados de autores, traductores e ilustradores
   ========================================================= */

.lns-clean-index {
    margin-top: 20px;
}

.lns-clean-index .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 64px;
    row-gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lns-clean-index .wp-block-post {
    position: relative;
    list-style: none;
    padding: 0 0 18px 0;
}

.lns-clean-index .wp-block-post::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 3px;
    background: var(--lns-red);
    transition: width 0.18s ease;
}

.lns-clean-index .wp-block-post:hover::after {
    width: 120px;
}

body .lns-clean-index h3.wp-block-post-title,
body .lns-clean-index h3.wp-block-post-title a {
    color: var(--lns-black) !important;
    font-size: 24px !important;
    line-height: 1.22 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

body .lns-clean-index h3.wp-block-post-title {
    margin: 0 !important;
}

body .lns-clean-index h3.wp-block-post-title a:hover {
    color: var(--lns-red) !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .lns-clean-index .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 42px;
    }
}

@media (max-width: 600px) {
    .lns-clean-index .wp-block-post-template {
        grid-template-columns: 1fr;
        row-gap: 26px;
    }
}

/* =========================================================
   La Navaja Suiza - Home rediseñada
   ========================================================= */

.lns-home-section {
    margin-top: 56px;
}

.lns-home-section:first-of-type {
    margin-top: 0;
}

.lns-home-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.lns-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.lns-section-title,
.lns-section-title-center {
    color: var(--lns-black);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 400;
    font-variant: none;
}

.lns-section-title {
    margin: 0;
}

.lns-section-title-center {
    text-align: center;
    margin: 0 0 10px 0;
}

.lns-section-kicker {
    display: block;
    color: var(--lns-red);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.lns-section-line {
    width: 42px;
    height: 2px;
    background: var(--lns-red);
    margin: 12px auto 0 auto;
}

.lns-section-link {
    color: var(--lns-red);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.lns-section-link:hover {
    color: var(--lns-black);
    text-decoration: none;
}

/* =========================================================
   Home - productos
   ========================================================= */

body .lns-home-products ul.products,
body .lns-home-products .woocommerce ul.products {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body .lns-home-products ul.products::before {
    content: none !important;
    display: none !important;
}

body .lns-home-products ul.products::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

body .lns-home-products ul.products li.product,
body .lns-home-products .woocommerce ul.products li.product,
body .lns-home-products ul.products li.product.first,
body .lns-home-products ul.products li.product.last {
    position: relative !important;
    float: left !important;
    clear: none !important;
    width: 22% !important;
    max-width: 22% !important;
    margin: 0 4% 64px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    overflow: visible !important;
}

body .lns-home-products ul.products li.product:nth-child(4n) {
    margin-right: 0 !important;
}

body .lns-home-products ul.products li.product:nth-child(4n+1) {
    clear: left !important;
}

body .lns-home-products ul.products li.product img,
body .lns-home-products .woocommerce ul.products li.product img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 380px !important;
    object-fit: contain !important;
    margin: 0 auto 24px auto !important;
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.18),
        8px 10px 0 rgba(0, 0, 0, 0.035) !important;
    transform: perspective(900px) rotateY(-2deg);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body .lns-home-products ul.products li.product:hover img {
    transform: perspective(900px) rotateY(0deg) translateY(-5px);
    box-shadow:
        0 24px 44px rgba(0, 0, 0, 0.22),
        10px 12px 0 rgba(0, 0, 0, 0.04) !important;
}

body .lns-home-products ul.products li.product .woocommerce-loop-product__title,
body .lns-home-products ul.products li.product h2,
body .lns-home-products ul.products li.product h3,
body .lns-home-products ul.products li.product .woocommerce-loop-product__title a,
body .lns-home-products ul.products li.product h2 a,
body .lns-home-products ul.products li.product h3 a {
    display: block !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    color: var(--lns-red) !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-decoration: none !important;
}

body .lns-home-products ul.products li.product .price {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--lns-black) !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-align: left !important;
}

/* Botón añadir al carrito oculto en Home: no mostramos símbolo + */
body .lns-home-products ul.products li.product .button,
body .lns-home-products ul.products li.product a.button,
body .lns-home-products ul.products li.product .add_to_cart_button,
body .lns-home-products ul.products li.product .added_to_cart {
    display: none !important;
}

body .lns-home-products ul.products li.product .button::before,
body .lns-home-products ul.products li.product a.button::before,
body .lns-home-products ul.products li.product .add_to_cart_button::before,
body .lns-home-products ul.products li.product .button::after,
body .lns-home-products ul.products li.product a.button::after,
body .lns-home-products ul.products li.product .add_to_cart_button::after,
body .lns-home-products ul.products li.product .added_to_cart::before,
body .lns-home-products ul.products li.product .added_to_cart::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   Home - Catálogo
   ========================================================= */

.lns-catalog-band {
    background: var(--lns-soft-bg);
    padding: 48px 54px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
}

.lns-catalog-band h2 {
    color: var(--lns-black);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 400;
    margin: 0 0 14px 0;
}

.lns-catalog-band p {
    color: var(--lns-text);
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
}

.lns-catalog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.lns-button-primary,
.lns-button-secondary {
    display: inline-block;
    padding: 14px 30px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--lns-red);
}

.lns-button-primary {
    background: var(--lns-red);
    color: #ffffff;
}

.lns-button-primary:hover {
    background: var(--lns-black);
    border-color: var(--lns-black);
    color: #ffffff;
    text-decoration: none;
}

.lns-button-secondary {
    background: #ffffff;
    color: var(--lns-red);
}

.lns-button-secondary:hover {
    background: var(--lns-red);
    color: #ffffff;
    text-decoration: none;
}

/* =========================================================
   Home - FAQ
   ========================================================= */

.lns-faq {
    max-width: 980px;
    margin: 0 auto;
}

.lns-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 0;
    margin-top: 34px;
}

.lns-faq details {
    border-bottom: 1px solid var(--lns-light-gray);
    padding: 18px 0;
}

.lns-faq summary {
    cursor: pointer;
    color: var(--lns-black);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 400;
    list-style: none;
}

.lns-faq summary::-webkit-details-marker {
    display: none;
}

.lns-faq summary::after {
    content: "+";
    float: right;
    color: var(--lns-red);
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

.lns-faq details[open] summary::after {
    content: "–";
}

.lns-faq-content {
    margin-top: 14px;
    color: #555555;
    font-size: 16px;
    line-height: 1.55;
}

.lns-faq-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

.lns-faq-content a {
    color: var(--lns-red);
    text-decoration: none;
    font-weight: 700;
}

.lns-faq-content a:hover {
    text-decoration: underline;
}

.lns-faq-more {
    text-align: center;
    margin-top: 28px;
}

/* =========================================================
   La Navaja Suiza - Páginas informativas
   Contacto, Distribución, Newsletter, La Editorial
   ========================================================= */

.lns-info-page,
.lns-info-page-wide {
    padding-top: 20px;
}

.lns-info-title {
    color: var(--lns-red);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    font-variant: small-caps;
    margin: 0 0 10px 0;
}

.lns-info-line {
    width: 100%;
    height: 3px;
    background: var(--lns-red);
    margin: 0 0 32px 0;
}

.lns-info-content {
    color: var(--lns-text);
    font-size: 18px;
    line-height: 1.55;
}

.lns-info-content p {
    margin-top: 0;
    margin-bottom: 22px;
}

.lns-info-content h2 {
    color: var(--lns-black);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 18px;
}

.lns-info-content a {
    color: var(--lns-red);
    text-decoration: none;
}

.lns-info-content a:hover {
    text-decoration: underline;
}

.lns-red {
    color: var(--lns-red);
}

.lns-small-caps {
    font-variant: small-caps;
}

.lns-info-separator {
    border: 0;
    border-top: 1px solid var(--lns-light-gray);
    margin: 34px 0;
}

.lns-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
}

.lns-two-columns-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.lns-press-links p {
    margin-bottom: 18px;
}

.lns-press-links a {
    color: var(--lns-red);
    font-variant: small-caps;
    font-weight: 700;
    text-decoration: none;
}

.lns-press-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   La Navaja Suiza - Índice alfabético
   Autores, Traductores e Ilustradores
   ========================================================= */

.lns-alpha-index {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 42px 0;
    padding: 18px 0 20px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.lns-alpha-index-label {
    color: var(--lns-red);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-right: 12px;
}

.lns-alpha-index a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    color: var(--lns-black);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.lns-alpha-index a:hover {
    color: var(--lns-red);
    border-color: var(--lns-red);
    text-decoration: none;
}

.lns-clean-index .wp-block-post[id] {
    scroll-margin-top: 120px;
}

/* =========================================================
   La Navaja Suiza - Caja visual del menú principal
   ========================================================= */

@media (min-width: 992px) {
    #menu-main-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    #menu-main-menu > li {
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        background: transparent !important;
    }

    #menu-main-menu > li > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f3f3f1 !important;
        color: var(--lns-black) !important;
        padding: 18px 16px !important;
        line-height: 1.1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    #menu-main-menu > li.current-menu-item > a,
    #menu-main-menu > li.current_page_item > a,
    #menu-main-menu > li.current-menu-ancestor > a,
    #menu-main-menu > li > a:hover {
        color: var(--lns-red) !important;
        text-decoration: none !important;
    }
}

/* =========================================================
   Libros - catálogo completo
   ========================================================= */

body.page-id-39 ul.products li.product .woocommerce-loop-product__title,
body.page-id-39 ul.products li.product h2,
body.page-id-39 ul.products li.product h3,
body.page-id-39 ul.products li.product .woocommerce-loop-product__title a,
body.page-id-39 ul.products li.product h2 a,
body.page-id-39 ul.products li.product h3 a {
    color: var(--lns-red) !important;
    font-weight: 700 !important;
}


body.page-id-39 ul.products li.product .woocommerce-loop-product__title,
body.page-id-39 ul.products li.product h2,
body.page-id-39 ul.products li.product h3,
body.page-id-39 ul.products li.product .woocommerce-loop-product__title a,
body.page-id-39 ul.products li.product h2 a,
body.page-id-39 ul.products li.product h3 a {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
}

body.page-id-39 ul.products li.product .price {
    display: block !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    color: var(--lns-black) !important;
    font-weight: 400 !important;
}

/* Botón añadir al carrito oculto en Libros: no mostramos símbolo + */
body.page-id-39 ul.products li.product .button,
body.page-id-39 ul.products li.product a.button,
body.page-id-39 ul.products li.product .add_to_cart_button,
body.page-id-39 ul.products li.product .added_to_cart {
    display: none !important;
}

body.page-id-39 ul.products li.product .button::before,
body.page-id-39 ul.products li.product a.button::before,
body.page-id-39 ul.products li.product .add_to_cart_button::before,
body.page-id-39 ul.products li.product .button::after,
body.page-id-39 ul.products li.product a.button::after,
body.page-id-39 ul.products li.product .add_to_cart_button::after,
body.page-id-39 ul.products li.product .added_to_cart::before,
body.page-id-39 ul.products li.product .added_to_cart::after {
    content: none !important;
    display: none !important;
}

body.page-id-39 ul.products li.product img {
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.18),
        8px 10px 0 rgba(0, 0, 0, 0.035) !important;
    transform: perspective(900px) rotateY(-2deg);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.page-id-39 ul.products li.product:hover img {
    transform: perspective(900px) rotateY(0deg) translateY(-5px);
    box-shadow:
        0 24px 44px rgba(0, 0, 0, 0.22),
        10px 12px 0 rgba(0, 0, 0, 0.04) !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    body .lns-home-products ul.products li.product,
    body .lns-home-products .woocommerce ul.products li.product,
    body .lns-home-products ul.products li.product.first,
    body .lns-home-products ul.products li.product.last {
        width: 47% !important;
        max-width: 47% !important;
        margin-right: 6% !important;
    }

    body .lns-home-products ul.products li.product:nth-child(4n) {
        margin-right: 6% !important;
    }

    body .lns-home-products ul.products li.product:nth-child(4n+1) {
        clear: none !important;
    }

    body .lns-home-products ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }

    body .lns-home-products ul.products li.product:nth-child(2n+1) {
        clear: left !important;
    }

    .lns-catalog-band {
        grid-template-columns: 1fr;
    }

    .lns-catalog-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .lns-two-columns,
    .lns-two-columns-half {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 700px) {
    .lns-home-section {
        margin-top: 42px;
    }

    .lns-section-heading {
        display: block;
    }

    .lns-section-link {
        display: inline-block;
        margin-top: 14px;
    }

    .lns-section-title,
    .lns-section-title-center {
        font-size: 28px;
    }

    body .lns-home-products ul.products li.product,
    body .lns-home-products .woocommerce ul.products li.product,
    body .lns-home-products ul.products li.product.first,
    body .lns-home-products ul.products li.product.last {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 46px 0 !important;
        padding: 0 !important;
        clear: both !important;
        float: none !important;
        position: relative !important;
        text-align: left !important;
        min-height: 0 !important;
        height: auto !important;
    }

    body .lns-home-products ul.products li.product a,
    body .lns-home-products ul.products li.product a.woocommerce-LoopProduct-link,
    body .lns-home-products ul.products li.product a.woocommerce-loop-product__link {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    body .lns-home-products ul.products li.product img,
    body .lns-home-products .woocommerce ul.products li.product img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 0 18px 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
        box-shadow:
            0 14px 26px rgba(0, 0, 0, 0.16),
            6px 8px 0 rgba(0, 0, 0, 0.035) !important;
        transform: none !important;
    }

    body .lns-home-products ul.products li.product:hover img,
    body.page-id-39 ul.products li.product:hover img {
        transform: none !important;
    }

    body .lns-home-products ul.products li.product .woocommerce-loop-product__title,
    body .lns-home-products ul.products li.product h2,
    body .lns-home-products ul.products li.product h3 {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 0 6px 0 !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    body .lns-home-products ul.products li.product .price {
        font-size: 22px !important;
    }

    body.page-id-39 ul.products li.product .woocommerce-loop-product__title,
    body.page-id-39 ul.products li.product h2,
    body.page-id-39 ul.products li.product h3 {
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 6px !important;
    }

    body.page-id-39 ul.products li.product .price {
        margin-top: 0 !important;
    }

    body.page-id-39 ul.products li.product .button,
    body.page-id-39 ul.products li.product a.button,
    body.page-id-39 ul.products li.product .add_to_cart_button,
    body.page-id-39 ul.products li.product .added_to_cart {
        display: none !important;
    }

    body.page-id-39 ul.products li.product img {
        box-shadow:
            0 14px 26px rgba(0, 0, 0, 0.16),
            6px 8px 0 rgba(0, 0, 0, 0.035) !important;
        transform: none !important;
    }

    .lns-catalog-band {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }

    .lns-catalog-actions {
        justify-content: flex-start;
    }

    .lns-catalog-band h2 {
        font-size: 30px;
    }

    .lns-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lns-info-title {
        font-size: 24px;
    }

    .lns-info-content {
        font-size: 17px;
    }

    .lns-info-content h2 {
        font-size: 23px;
    }

    .lns-alpha-index {
        gap: 6px;
        margin-bottom: 32px;
    }

    .lns-alpha-index-label {
        width: 100%;
        margin-bottom: 6px;
    }

    .lns-alpha-index a {
        min-width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* =========================================================
   Home y Libros - profundidad en portadas
   Sombra visible en reposo + movimiento en hover, sin alterar colores
   ========================================================= */

/* Evitar recortes de sombra */
body .lns-home-products,
body .lns-home-products ul.products,
body .lns-home-products ul.products li.product,
body .lns-home-products ul.products li.product a,
body.page-id-39 ul.products,
body.page-id-39 ul.products li.product,
body.page-id-39 ul.products li.product a {
    overflow: visible !important;
}

/* HOME - área/portada del libro */
body .lns-home-products ul.products li.product .item-image,
body .lns-home-products ul.products li.product .product-image,
body .lns-home-products ul.products li.product .product-images,
body .lns-home-products ul.products li.product .product-thumbnail,
body .lns-home-products ul.products li.product .image-placeholder,
body .lns-home-products ul.products li.product .woocommerce-LoopProduct-link > img,
body .lns-home-products ul.products li.product .woocommerce-loop-product__link > img {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
    margin: 0 auto 12px auto !important;
    transform: none !important;
    filter: none !important;
    box-shadow:
        0 10px 14px -5px rgba(0, 0, 0, 0.48),
        0 22px 26px -18px rgba(0, 0, 0, 0.36) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

/* HOME - limpiar la imagen para que no aparezcan marcas/bordes duplicados */
body .lns-home-products ul.products li.product img {
    outline: none !important;
    filter: none !important;
    transform: none !important;
}

/* HOME - movimiento al pasar por encima, sin cambiar colores */
body .lns-home-products ul.products li.product:hover .item-image,
body .lns-home-products ul.products li.product:hover .product-image,
body .lns-home-products ul.products li.product:hover .product-images,
body .lns-home-products ul.products li.product:hover .product-thumbnail,
body .lns-home-products ul.products li.product:hover .image-placeholder,
body .lns-home-products ul.products li.product:hover .woocommerce-LoopProduct-link > img,
body .lns-home-products ul.products li.product:hover .woocommerce-loop-product__link > img {
    transform: translateY(-5px) !important;
    filter: none !important;
    box-shadow:
        0 16px 22px -7px rgba(0, 0, 0, 0.58),
        0 32px 38px -22px rgba(0, 0, 0, 0.46) !important;
}

/* LIBROS - área/portada del libro */
body.page-id-39 ul.products li.product .item-image,
body.page-id-39 ul.products li.product .product-image,
body.page-id-39 ul.products li.product .product-images,
body.page-id-39 ul.products li.product .product-thumbnail,
body.page-id-39 ul.products li.product .image-placeholder,
body.page-id-39 ul.products li.product .woocommerce-LoopProduct-link > img,
body.page-id-39 ul.products li.product .woocommerce-loop-product__link > img {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
    margin: 0 auto 12px auto !important;
    transform: none !important;
    filter: none !important;
    box-shadow:
        0 10px 14px -5px rgba(0, 0, 0, 0.48),
        0 22px 26px -18px rgba(0, 0, 0, 0.36) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

/* LIBROS - limpiar la imagen para que no aparezcan marcas/bordes duplicados */
body.page-id-39 ul.products li.product img {
    outline: none !important;
    filter: none !important;
    transform: none !important;
}

/* LIBROS - movimiento al pasar por encima, sin cambiar colores */
body.page-id-39 ul.products li.product:hover .item-image,
body.page-id-39 ul.products li.product:hover .product-image,
body.page-id-39 ul.products li.product:hover .product-images,
body.page-id-39 ul.products li.product:hover .product-thumbnail,
body.page-id-39 ul.products li.product:hover .image-placeholder,
body.page-id-39 ul.products li.product:hover .woocommerce-LoopProduct-link > img,
body.page-id-39 ul.products li.product:hover .woocommerce-loop-product__link > img {
    transform: translateY(-5px) !important;
    filter: none !important;
    box-shadow:
        0 16px 22px -7px rgba(0, 0, 0, 0.58),
        0 32px 38px -22px rgba(0, 0, 0, 0.46) !important;
}

/* Móvil: sombra visible, sin desplazamiento */
@media (max-width: 700px) {
    body .lns-home-products ul.products li.product .item-image,
    body .lns-home-products ul.products li.product .product-image,
    body .lns-home-products ul.products li.product .product-images,
    body .lns-home-products ul.products li.product .product-thumbnail,
    body .lns-home-products ul.products li.product .image-placeholder,
    body .lns-home-products ul.products li.product .woocommerce-LoopProduct-link > img,
    body .lns-home-products ul.products li.product .woocommerce-loop-product__link > img,
    body.page-id-39 ul.products li.product .item-image,
    body.page-id-39 ul.products li.product .product-image,
    body.page-id-39 ul.products li.product .product-images,
    body.page-id-39 ul.products li.product .product-thumbnail,
    body.page-id-39 ul.products li.product .image-placeholder,
    body.page-id-39 ul.products li.product .woocommerce-LoopProduct-link > img,
    body.page-id-39 ul.products li.product .woocommerce-loop-product__link > img {
        transform: none !important;
        filter: none !important;
        box-shadow:
            0 10px 14px -6px rgba(0, 0, 0, 0.46),
            0 20px 24px -18px rgba(0, 0, 0, 0.34) !important;
    }
}

/* =========================================================
   Home - sombra editorial para LayerSlider
   ========================================================= */

body.home .lns-home-section:first-of-type .ls-wp-container,
body.home .lns-home-section:first-of-type .ls-container,
body.home .lns-home-section:first-of-type .layerslider,
body.home .lns-home-section:first-of-type [id^="layerslider_"] {
    display: block !important;
    overflow: visible !important;

    box-shadow:
        0 10px 14px -5px rgba(0, 0, 0, 0.48),
        0 22px 26px -18px rgba(0, 0, 0, 0.36) !important;

    transition:
        box-shadow 0.22s ease,
        transform 0.22s ease !important;
}

/* Hover suave: movimiento sin cambiar colores */
body.home .lns-home-section:first-of-type .ls-wp-container:hover,
body.home .lns-home-section:first-of-type .ls-container:hover,
body.home .lns-home-section:first-of-type .layerslider:hover,
body.home .lns-home-section:first-of-type [id^="layerslider_"]:hover {
    transform: translateY(-3px) !important;

    box-shadow:
        0 16px 22px -7px rgba(0, 0, 0, 0.58),
        0 32px 38px -22px rgba(0, 0, 0, 0.46) !important;
}

/* Móvil: sombra sí, movimiento no */
@media (max-width: 700px) {
    body.home .lns-home-section:first-of-type .ls-wp-container,
    body.home .lns-home-section:first-of-type .ls-container,
    body.home .lns-home-section:first-of-type .layerslider,
    body.home .lns-home-section:first-of-type [id^="layerslider_"] {
        transform: none !important;

        box-shadow:
            0 10px 14px -6px rgba(0, 0, 0, 0.46),
            0 20px 24px -18px rgba(0, 0, 0, 0.34) !important;
    }

    body.home .lns-home-section:first-of-type .ls-wp-container:hover,
    body.home .lns-home-section:first-of-type .ls-container:hover,
    body.home .lns-home-section:first-of-type .layerslider:hover,
    body.home .lns-home-section:first-of-type [id^="layerslider_"]:hover {
        transform: none !important;
    }
}