:root{
    --em-navy:#000645;
    --em-orange:#df6a27;
    --em-purple:#7222a8;
    --em-ink:#182033;
    --em-muted:#667080;
    --em-paper:#fff9f2;
    --em-soft:#f6f6f7;
    --em-line:#e8e3dc;
}

.em-home,
.em-home *{
    box-sizing:border-box;
}

.em-home{
    color:var(--em-ink);
    overflow:hidden;
}

.em-shell{
    width:min(1180px,calc(100% - 48px));
    margin:0 auto;
}

.em-section{
    padding:88px 0;
}

.em-eyebrow{
    display:block;
    margin-bottom:14px;
    color:var(--em-orange);
    font-size:13px;
    line-height:1.3;
    font-weight:800;
    letter-spacing:.16em;
}

.em-heading{
    max-width:720px;
    margin-bottom:42px;
}

.em-heading-center{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}

.em-heading h2,
.em-season h2,
.em-closing h2{
    margin:0 0 15px;
    padding:0;
    color:var(--em-navy);
    font-size:clamp(34px,4vw,52px);
    line-height:1.08;
    font-weight:800;
}

.em-heading p,
.em-season-copy p{
    margin:0;
    color:var(--em-muted);
    font-size:18px;
    line-height:1.7;
}

.em-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:13px 24px;
    border-radius:7px;
    text-decoration:none!important;
    font-weight:800;
    transition:transform .15s ease,box-shadow .15s ease;
}

.em-btn:hover{
    transform:translateY(-2px);
}

.em-btn-primary{
    background:var(--em-orange);
    color:#fff!important;
    box-shadow:0 9px 24px rgba(223,106,39,.22);
}

.em-btn-secondary{
    border:1px solid rgba(0,6,69,.2);
    background:#fff;
    color:var(--em-navy)!important;
}

.em-btn-light{
    background:#fff;
    color:var(--em-navy)!important;
}

/* HERO */
.em-hero{
    background:
        radial-gradient(circle at 80% 20%,rgba(223,106,39,.12),transparent 30%),
        linear-gradient(135deg,#fff 0%,#fff9f2 100%);
}

.em-hero-grid{
    min-height:610px;
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:70px;
    align-items:center;
    padding-top:58px;
    padding-bottom:68px;
}

.em-hero-copy h1{
    margin:0 0 24px;
    padding:0;
    color:var(--em-navy);
    font-size:clamp(46px,5.2vw,72px);
    line-height:1.01;
    font-weight:800;
    letter-spacing:-.025em;
}

.em-hero-copy>p{
    max-width:650px;
    margin:0;
    color:var(--em-muted);
    font-size:19px;
    line-height:1.7;
}

.em-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:30px;
}

.em-hero-art{
    position:relative;
}

.em-hero-image-wrap{
    padding:16px;
    border-radius:28px;
    background:#fff;
    box-shadow:0 24px 60px rgba(31,34,55,.12);
    transform:rotate(1.5deg);
}

.em-hero-image-wrap img{
    display:block;
    width:100%;
    height:auto;
    border-radius:19px;
}

.em-hero-stamp{
    position:absolute;
    left:-32px;
    bottom:28px;
    display:grid;
    padding:14px 19px;
    border-radius:10px;
    background:var(--em-navy);
    color:#fff;
    box-shadow:0 12px 30px rgba(0,6,69,.22);
}

.em-hero-stamp strong{
    font-size:16px;
}

.em-hero-stamp span{
    font-size:13px;
    opacity:.8;
}

/* PITOS */
.em-pitos-section{
    background:#fff;
}

.em-pitos-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.em-pito-card{
    grid-column:span 2;
    overflow:hidden;
    border:1px solid var(--em-line);
    border-radius:18px;
    background:#fff;
    color:var(--em-ink)!important;
    text-decoration:none!important;
    box-shadow:0 8px 26px rgba(27,31,44,.05);
    transition:transform .18s ease,box-shadow .18s ease;
}

.em-pito-card:nth-child(4){
    grid-column:2 / span 2;
}

.em-pito-card:nth-child(5){
    grid-column:4 / span 2;
}

.em-pito-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 38px rgba(27,31,44,.1);
}

.em-pito-image{
    aspect-ratio:1/1;
    overflow:hidden;
    background:var(--em-paper);
}

.em-pito-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.em-pito-copy{
    padding:24px;
}

.em-pito-copy h3{
    margin:0 0 10px;
    padding:0;
    color:var(--em-navy);
    font-size:21px;
    line-height:1.25;
}

.em-pito-copy p{
    margin:0 0 17px;
    color:var(--em-muted);
    line-height:1.55;
}

.em-pito-copy span{
    color:var(--em-orange);
    font-weight:800;
}

/* 2026 */
.em-season{
    background:var(--em-navy);
}

.em-season-grid{
    display:grid;
    grid-template-columns:.95fr 1.05fr;
    gap:70px;
    align-items:center;
}

.em-season-image{
    padding:14px;
    border-radius:24px;
    background:#fff;
    transform:rotate(-1.2deg);
}

.em-season-image img{
    display:block;
    width:100%;
    border-radius:16px;
}

.em-season-copy h2,
.em-season-copy p{
    color:#fff;
}

.em-season-copy p{
    max-width:600px;
    margin-bottom:28px;
    opacity:.82;
}

/* CATEGORÍAS */
.em-categories{
    background:var(--em-paper);
}

.em-category-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.em-category-card{
    grid-column:span 2;
    overflow:hidden;
    border:1px solid var(--em-line);
    border-radius:17px;
    background:#fff;
    color:var(--em-ink)!important;
    text-decoration:none!important;
    transition:transform .18s ease,box-shadow .18s ease;
}

.em-category-card:nth-child(4){
    grid-column:2 / span 2;
}

.em-category-card:nth-child(5){
    grid-column:4 / span 2;
}

.em-category-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 34px rgba(31,34,55,.09);
}

.em-category-image{
    aspect-ratio:1.45/1;
    overflow:hidden;
}

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

.em-category-copy{
    padding:23px;
}

.em-category-copy h3{
    margin:0 0 8px;
    padding:0;
    color:var(--em-navy);
    font-size:21px;
}

.em-category-copy p{
    min-height:50px;
    margin:0 0 14px;
    color:var(--em-muted);
    line-height:1.5;
}

.em-category-copy span{
    color:var(--em-orange);
    font-weight:800;
}

/* PRODUCTOS */
.em-products-section{
    background:#fff;
}

.em-heading-row{
    max-width:none;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
}

.em-heading-row h2{
    margin-bottom:0;
}

.em-text-link{
    color:var(--em-purple)!important;
    text-decoration:none!important;
    font-weight:800;
}

.em-all-products{
    white-space:nowrap;
    padding-bottom:8px;
}

.em-products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.em-product{
    overflow:hidden;
    border:1px solid var(--em-line);
    border-radius:15px;
    background:#fff;
}

.em-product-image{
    display:block;
    aspect-ratio:1/1;
    overflow:hidden;
    background:#fafafa;
}

.em-product-image img{
    width:100%!important;
    height:100%!important;
    margin:0!important;
    object-fit:contain;
}

.em-product-body{
    padding:20px;
}

.em-product-body h3{
    min-height:48px;
    margin:0 0 10px;
    padding:0;
    font-size:17px;
    line-height:1.4;
}

.em-product-body h3 a{
    color:var(--em-navy)!important;
    text-decoration:none!important;
}

.em-price{
    margin-bottom:14px;
    font-size:17px;
    font-weight:800;
}

/* BENEFICIOS */
.em-benefits{
    padding:80px 0;
    background:var(--em-soft);
}

.em-benefits-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.em-benefit{
    padding:28px 25px;
    border-radius:15px;
    background:#fff;
}

.em-benefit-icon{
    display:grid;
    width:46px;
    height:46px;
    place-items:center;
    margin-bottom:19px;
    border-radius:50%;
    background:var(--em-paper);
    color:var(--em-orange);
    font-size:22px;
    font-weight:900;
}

.em-benefit h3{
    margin:0 0 8px;
    padding:0;
    color:var(--em-navy);
    font-size:19px;
}

.em-benefit p{
    margin:0;
    color:var(--em-muted);
    line-height:1.55;
}

/* CIERRE */
.em-closing{
    padding:75px 0;
    background:var(--em-orange);
    text-align:center;
    color:#fff;
}

.em-closing p{
    margin:0 0 8px;
    font-weight:800;
    letter-spacing:.04em;
}

.em-closing h2{
    max-width:760px;
    margin:0 auto 27px;
    color:#fff;
}

/* TIENDA PROVISIONAL */
.em-coming{
    padding:100px 0;
    text-align:center;
}

@media(max-width:980px){
    .em-hero-grid,
    .em-season-grid{
        grid-template-columns:1fr;
        gap:42px;
    }

    .em-hero-grid{
        min-height:0;
    }

    .em-hero-art{
        max-width:680px;
    }

    .em-hero-stamp{
        left:18px;
    }

    .em-pitos-grid,
    .em-category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .em-pito-card,
    .em-pito-card:nth-child(4),
    .em-pito-card:nth-child(5),
    .em-category-card,
    .em-category-card:nth-child(4),
    .em-category-card:nth-child(5){
        grid-column:auto;
    }

    .em-products-grid,
    .em-benefits-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:640px){
    .em-shell{
        width:min(100% - 30px,1180px);
    }

    .em-section{
        padding:64px 0;
    }

    .em-hero-grid{
        padding-top:45px;
        padding-bottom:55px;
    }

    .em-hero-copy h1{
        font-size:42px;
    }

    .em-hero-copy>p,
    .em-heading p,
    .em-season-copy p{
        font-size:16px;
    }

    .em-actions{
        display:grid;
    }

    .em-btn{
        width:100%;
    }

    .em-pitos-grid,
    .em-category-grid,
    .em-products-grid,
    .em-benefits-grid{
        grid-template-columns:1fr;
    }

    .em-heading-row{
        display:block;
    }

    .em-all-products{
        display:inline-block;
        margin-top:15px;
    }

    .em-category-copy p,
    .em-product-body h3{
        min-height:0;
    }

    .em-hero-stamp{
        position:static;
        margin:15px 0 0;
    }
}

/* Neutralizar el espaciado de Divi en páginas que usan estos shortcodes */
body:has(.em-home) #main-content .et_pb_section,
body:has(.em-coming) #main-content .et_pb_section{
    padding-top:0!important;
    padding-bottom:0!important;
}

body:has(.em-home) #main-content .et_pb_row,
body:has(.em-coming) #main-content .et_pb_row{
    width:100%!important;
    max-width:none!important;
    padding-top:0!important;
    padding-bottom:0!important;
}

body:has(.em-home) #main-content .et_pb_column,
body:has(.em-coming) #main-content .et_pb_column{
    padding:0!important;
}


/* =========================================================
   TIENDA EL MELLI
   ========================================================= */

.em-shop{
    background:#fff;
    color:var(--em-ink);
}

.em-shop-hero{
    background:
        radial-gradient(circle at 86% 18%,rgba(223,106,39,.13),transparent 28%),
        radial-gradient(circle at 8% 85%,rgba(114,34,168,.08),transparent 26%),
        var(--em-paper);
    border-bottom:1px solid var(--em-line);
}

.em-shop-hero-inner{
    padding-top:86px;
    padding-bottom:86px;
    text-align:center;
}

.em-shop-hero h1{
    margin:12px auto 20px;
    padding:0;
    max-width:850px;
    color:var(--em-navy);
    font-size:clamp(48px,6vw,78px);
    line-height:1.02;
    letter-spacing:-2.5px;
}

.em-shop-hero p{
    max-width:700px;
    margin:0 auto 30px;
    color:var(--em-muted);
    font-size:19px;
    line-height:1.65;
}

.em-shop-hero .em-actions{
    justify-content:center;
}

/* Categorías principales */

.em-shop-categories{
    background:#fff;
}

.em-shop-category-grid{
    display:grid;
    grid-template-columns:repeat(12,1fr);
    gap:20px;
}

.em-shop-category-card{
    grid-column:span 4;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid var(--em-line);
    border-radius:18px;
    background:#fff;
    color:var(--em-ink)!important;
    text-decoration:none!important;
    box-shadow:0 8px 26px rgba(27,31,44,.05);
    transition:transform .18s ease,box-shadow .18s ease;
}

.em-shop-category-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 38px rgba(27,31,44,.1);
}

.em-shop-category-card:nth-child(7){
    grid-column:5 / span 4;
}

.em-shop-category-image{
    aspect-ratio:1.35/1;
    overflow:hidden;
    background:var(--em-paper);
}

.em-shop-category-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.em-shop-cat-pitos .em-shop-category-image img{
    object-fit:contain;
}

.em-shop-category-copy{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:23px;
}

.em-shop-category-copy h3{
    margin:0 0 9px;
    padding:0;
    color:var(--em-navy);
    font-size:22px;
    line-height:1.25;
}

.em-shop-category-copy p{
    margin:0 0 17px;
    color:var(--em-muted);
    line-height:1.55;
}

.em-shop-category-copy span{
    margin-top:auto;
    color:var(--em-orange);
    font-weight:800;
}

/* Pitos dentro de la tienda */

.em-shop-pitos{
    background:var(--em-soft);
}

.em-shop-pitos-grid{
    display:grid;
    grid-template-columns:repeat(10,1fr);
    gap:20px;
}

.em-shop-pito-card{
    grid-column:span 2;
    overflow:hidden;
    border:1px solid var(--em-line);
    border-radius:18px;
    background:#fff;
    color:var(--em-ink)!important;
    text-decoration:none!important;
    box-shadow:0 8px 26px rgba(27,31,44,.05);
    transition:transform .18s ease,box-shadow .18s ease;
}

.em-shop-pito-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 38px rgba(27,31,44,.1);
}

.em-shop-pito-image{
    aspect-ratio:1/1;
    overflow:hidden;
    background:var(--em-paper);
}

.em-shop-pito-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.em-shop-pito-copy{
    padding:19px;
}

.em-shop-pito-copy h3{
    margin:0 0 9px;
    padding:0;
    color:var(--em-navy);
    font-size:19px;
    line-height:1.25;
}

.em-shop-pito-copy p{
    margin:0 0 15px;
    color:var(--em-muted);
    font-size:14px;
    line-height:1.55;
}

.em-shop-pito-copy span{
    color:var(--em-orange);
    font-size:14px;
    font-weight:800;
}

/* Catálogo WooCommerce */

.em-shop-products{
    background:#fff;
}

.em-shop-woocommerce{
    margin-top:35px;
}

.em-shop-woocommerce ul.products{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:24px!important;
    margin:0!important;
}

.em-shop-woocommerce ul.products::before,
.em-shop-woocommerce ul.products::after{
    display:none!important;
}

.em-shop-woocommerce ul.products li.product{
    float:none!important;
    width:auto!important;
    margin:0!important;
    padding:0 0 22px!important;
    overflow:hidden;
    border:1px solid var(--em-line);
    border-radius:16px;
    background:#fff;
    box-shadow:0 7px 22px rgba(27,31,44,.05);
}

.em-shop-woocommerce ul.products li.product a img{
    width:100%!important;
    margin:0 0 18px!important;
    aspect-ratio:1/1;
    object-fit:contain;
    background:#fff;
}

.em-shop-woocommerce ul.products li.product .woocommerce-loop-product__title{
    padding:0 18px!important;
    color:var(--em-navy);
    font-size:17px!important;
    line-height:1.35;
}

.em-shop-woocommerce ul.products li.product .price{
    padding:0 18px;
    color:var(--em-orange)!important;
    font-weight:800!important;
}

.em-shop-woocommerce ul.products li.product .button{
    margin:10px 18px 0!important;
}

.em-shop-woocommerce .woocommerce-pagination{
    margin-top:38px;
}

.em-shop-woocommerce .woocommerce-pagination ul{
    border:0!important;
}

.em-shop-woocommerce .woocommerce-pagination ul li{
    border:0!important;
    margin:3px!important;
}

.em-shop-woocommerce .woocommerce-pagination ul li a,
.em-shop-woocommerce .woocommerce-pagination ul li span{
    min-width:42px;
    padding:12px!important;
    border-radius:8px;
    background:var(--em-soft);
    color:var(--em-navy);
}

.em-shop-woocommerce .woocommerce-pagination ul li span.current{
    background:var(--em-navy);
    color:#fff;
}

/* Divi: eliminar espacios del módulo que contiene Tienda2 */

body:has(.em-shop) #main-content .et_pb_section{
    padding-top:0!important;
    padding-bottom:0!important;
}

body:has(.em-shop) #main-content .et_pb_row{
    width:100%!important;
    max-width:none!important;
    padding-top:0!important;
    padding-bottom:0!important;
}

/* Responsive Tienda */

@media(max-width:980px){
    .em-shop-category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .em-shop-category-card,
    .em-shop-category-card:nth-child(7){
        grid-column:auto;
    }

    .em-shop-category-card:nth-child(7){
        grid-column:1 / -1;
        max-width:calc(50% - 10px);
        width:100%;
        justify-self:center;
    }

    .em-shop-pitos-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .em-shop-pito-card{
        grid-column:auto;
    }

    .em-shop-pito-card:nth-child(5){
        grid-column:1 / -1;
        max-width:calc(50% - 10px);
        width:100%;
        justify-self:center;
    }

    .em-shop-woocommerce ul.products{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media(max-width:640px){
    .em-shop-hero-inner{
        padding-top:55px;
        padding-bottom:60px;
    }

    .em-shop-hero h1{
        font-size:44px;
        letter-spacing:-1.5px;
    }

    .em-shop-hero p{
        font-size:16px;
    }

    .em-shop-category-grid,
    .em-shop-pitos-grid{
        grid-template-columns:1fr;
    }

    .em-shop-category-card,
    .em-shop-category-card:nth-child(7),
    .em-shop-pito-card,
    .em-shop-pito-card:nth-child(5){
        grid-column:auto;
        max-width:none;
    }

    .em-shop-woocommerce ul.products{
        grid-template-columns:1fr!important;
    }
}
