/**
 * Portada v2 — sistema autónomo y coherente sobre WooCommerce.
 */

.lmr-v2-home {
    overflow: hidden;
    background: #faf6f0;
    color: #2c2c2c;
}

.lmr-v2-shell {
    width: min(100% - 40px, 1240px);
    margin-inline: auto;
}

.lmr-v2-kicker {
    margin: 0 0 0.85rem;
    color: var(--lmr-color-kicker, #5f713f);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.lmr-v2-hero {
    background: #173e2d;
    color: #fff;
}

.lmr-v2-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
    min-height: clamp(460px, 58svh, 620px);
    padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

.lmr-v2-hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.lmr-v2-hero .lmr-v2-kicker {
    color: #d8e7b2;
}

.lmr-v2-hero h1 {
    max-width: 11ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2.75rem, 5.5vw, 4.9rem);
    line-height: 0.98;
}

.lmr-v2-hero__lead {
    max-width: 610px;
    margin: 1.25rem 0 0;
    color: #edf3ef;
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    line-height: 1.55;
}

.lmr-v2-hero__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.lmr-v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none !important;
}

.lmr-v2-button--light {
    border-color: #fff;
    background: #fff;
    color: #173e2d !important;
}

.lmr-v2-button--light:hover {
    border-color: #d8e7b2;
    background: #d8e7b2;
    color: #173e2d !important;
}

.lmr-v2-button--dark {
    border-color: #173e2d;
    background: #173e2d;
    color: #fff !important;
}

.lmr-v2-button--dark:hover {
    border-color: #285f47;
    background: #285f47;
    color: #fff !important;
}

.lmr-v2-text-link {
    min-height: 44px;
    padding-block: 0.65rem;
    color: #fff !important;
    font-weight: 750;
    text-decoration: underline !important;
    text-underline-offset: 0.22em;
}

.lmr-v2-search {
    max-width: 560px;
    margin-top: 1.75rem;
}

.lmr-v2-search label {
    display: block;
    margin-bottom: 0.4rem;
    color: #f4f7f5;
    font-size: 0.9375rem;
    font-weight: 750;
}

.lmr-v2-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.lmr-v2-search input[type="search"] {
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 1rem;
}

.lmr-v2-search button {
    min-height: 46px;
    padding-inline: 1.2rem;
    border-color: #d8e7b2;
    background: #d8e7b2;
    color: #173e2d;
}

.lmr-v2-hero__visual {
    position: relative;
    width: 100%;
    max-width: 530px;
    margin-inline: auto;
}

.lmr-v2-hero__shape {
    position: absolute;
    z-index: 0;
    inset: -7% -8% 10% 18%;
    border-radius: 46% 54% 65% 35% / 40% 44% 56% 60%;
    background: #2c694d;
    transform: rotate(-4deg);
}

.lmr-v2-hero__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border: 7px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    box-shadow: 0 22px 48px rgba(4, 20, 12, 0.28);
}

.lmr-v2-trust {
    border-bottom: 1px solid #d9d4cb;
    background: #fff;
}

.lmr-v2-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.lmr-v2-trust__grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 76px;
    padding: 1rem;
    color: #173e2d;
}

.lmr-v2-trust__grid > div + div {
    border-left: 1px solid #e2ddd5;
}

.lmr-v2-trust span {
    color: #8b765e;
    font-family: Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
}

.lmr-v2-trust strong {
    font-size: 1rem;
}

.lmr-v2-products {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.lmr-v2-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
}

.lmr-v2-section-heading h2 {
    max-width: 720px;
    margin: 0;
    color: #173e2d;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.lmr-v2-section-heading > a {
    flex: 0 0 auto;
    min-height: 44px;
    color: #173e2d;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.lmr-v2-product-grid .woocommerce {
    width: 100%;
}

.lmr-v2-product-grid .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 !important;
}

.lmr-v2-product-grid .woocommerce ul.products::before,
.lmr-v2-product-grid .woocommerce ul.products::after {
    display: none;
}

.lmr-v2-product-grid .woocommerce ul.products li.product {
    display: flex;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 1rem !important;
    border: 1px solid #ded8ce !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(25, 54, 40, 0.055);
}

.lmr-v2-product-grid .woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #f8f6f1;
    object-fit: contain;
}

.lmr-v2-product-grid .woocommerce-loop-product__title {
    color: #2c2c2c !important;
    font-family: inherit !important;
    font-size: 1.05rem !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.lmr-v2-product-grid .price {
    margin-top: 0.6rem !important;
    color: #173e2d !important;
    font-size: 1.125rem !important;
    font-weight: 800 !important;
}

.lmr-v2-product-grid .button {
    width: 100%;
    min-height: 48px;
    margin-top: auto !important;
    padding: 0.7rem 0.9rem !important;
    border-radius: 8px !important;
    background: #173e2d !important;
    color: #fff !important;
    text-align: center;
}

.lmr-v2-story {
    padding-block: clamp(4rem, 8vw, 7rem);
    background: #fff;
}

.lmr-v2-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.lmr-v2-story__visual {
    overflow: hidden;
    border-radius: 16px;
    background: #ede7dd;
}

.lmr-v2-story__image {
    display: block;
    width: 100%;
    min-height: 420px;
    object-fit: cover;
}

.lmr-v2-story__content {
    max-width: 580px;
}

.lmr-v2-story h2 {
    margin: 0 0 1.25rem;
    color: #173e2d;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
}

.lmr-v2-story p:not(.lmr-v2-kicker) {
    color: #454c47;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.lmr-v2-story .lmr-v2-button {
    margin-top: 1rem;
}

.lmr-v2-closing {
    padding-block: clamp(4rem, 8vw, 6.5rem);
    background: #285f47;
    color: #fff;
    text-align: center;
}

.lmr-v2-closing__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lmr-v2-closing .lmr-v2-kicker {
    color: #d8e7b2;
}

.lmr-v2-closing h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    line-height: 1.08;
}

.lmr-v2-closing .lmr-v2-button {
    margin-top: 1.75rem;
}

@media (max-width: 1024px) {
    .lmr-v2-product-grid .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .lmr-v2-shell {
        width: min(100% - 28px, 1240px);
    }

    .lmr-v2-hero__grid,
    .lmr-v2-story__grid {
        grid-template-columns: 1fr;
    }

    .lmr-v2-hero__grid {
        gap: 2rem;
        min-height: 0;
        padding-block: 2.5rem;
    }

    .lmr-v2-hero h1 {
        font-size: clamp(2.6rem, 12vw, 3.65rem);
    }

    .lmr-v2-search {
        margin-top: 1.35rem;
    }

    .lmr-v2-search__controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .lmr-v2-hero__visual {
        max-width: 540px;
    }

    .lmr-v2-trust__grid {
        grid-template-columns: 1fr;
        padding-block: 0.5rem;
    }

    .lmr-v2-trust__grid > div {
        justify-content: flex-start;
        min-height: 54px;
    }

    .lmr-v2-trust__grid > div + div {
        border-top: 1px solid #e2ddd5;
        border-left: 0;
    }

    .lmr-v2-section-heading {
        align-items: end;
        flex-direction: row;
        gap: 1.25rem;
    }

    .lmr-v2-story__visual {
        order: 2;
    }

    .lmr-v2-story__content {
        order: 1;
    }

    .lmr-v2-story__image {
        min-height: 0;
    }

    .lmr-v2-products,
    .lmr-v2-story {
        padding-block: 4rem;
    }
}

@media (max-width: 520px) {
    .lmr-v2-shell {
        width: min(100% - 32px, 1240px);
    }

    .lmr-v2-hero__grid {
        gap: 1.75rem;
        padding-block: 2.25rem;
    }

    .lmr-v2-hero h1 {
        font-size: clamp(2.5rem, 13vw, 3.25rem);
    }

    .lmr-v2-hero__lead {
        margin-top: 1rem;
        font-size: 1.0625rem;
    }

    .lmr-v2-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.25rem;
        margin-top: 1.35rem;
    }

    .lmr-v2-button,
    .lmr-v2-text-link {
        width: 100%;
        min-height: 50px;
        text-align: center;
    }

    .lmr-v2-search label {
        font-size: 1rem;
    }

    .lmr-v2-search__controls {
        gap: 0.35rem;
    }

    .lmr-v2-search button {
        min-width: 84px;
        padding-inline: 0.75rem;
    }

    .lmr-v2-hero__visual {
        width: min(100% - 32px, 420px);
    }

    .lmr-v2-trust__grid > div {
        min-height: 50px;
        padding: 0.75rem 0;
    }

    .lmr-v2-products,
    .lmr-v2-story {
        padding-block: 3.5rem;
    }

    .lmr-v2-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .lmr-v2-section-heading > a {
        display: inline-flex;
        align-items: center;
        min-height: 48px;
        padding: 0.65rem 1rem;
        border: 2px solid #173e2d;
        border-radius: 8px;
        text-decoration: none;
    }

    .lmr-v2-product-grid .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lmr-v2-product-grid .woocommerce ul.products li.product {
        padding: 1.125rem !important;
    }

    .lmr-v2-product-grid .woocommerce ul.products li.product:nth-child(n + 5) {
        display: none;
    }

    .lmr-v2-product-grid .woocommerce-loop-product__title {
        font-size: 1.125rem !important;
    }

    .lmr-v2-product-grid .button {
        min-height: 52px;
        font-size: 1rem !important;
    }

    .lmr-v2-story__grid {
        gap: 1.75rem;
    }

    .lmr-v2-story__visual {
        border-radius: 12px;
    }

    .lmr-v2-closing {
        padding-block: 3.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lmr-v2-home *,
    .lmr-v2-home *::before,
    .lmr-v2-home *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
