/* =================================================================
   MP Home V2 — Hero + banners + cat cards + latest products
   Estética editorial Lady Pipa / María Paskaró.
   ================================================================= */

.mpfk-hero,
.mpfk-banners,
.mpfk-cat-cards,
.mpfk-latest {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0a0a0a;
}

/* =================================================================
   Override de Flatsome `li { margin-bottom: .6em }`.
   ================================================================= */
.mpfk-hero li,
.mpfk-hero ul,
.mpfk-hero ol,
.mpfk-banners li,
.mpfk-banners ul,
.mpfk-banners ol,
.mpfk-cat-cards li,
.mpfk-cat-cards ul,
.mpfk-cat-cards ol,
.mpfk-latest li,
.mpfk-latest ul,
.mpfk-latest ol {
    margin: 0 !important;
    padding-left: 0;
}

/* =================================================================
   KILL WHITE GAP entre el header negro y el primer .mpfk-hero
   ================================================================= */
body.home #wrapper,
body.home #main,
body.home #content,
body.home #content.content-area,
body.page-id-54519 #wrapper,
body.page-id-54519 #main,
body.page-id-54519 #content,
body.page-id-54519 #content.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 0 !important;
}

.header-wrapper-sticky,
.header-clone,
.header-bottom-sticky,
.header-shadow,
.sticky-shadow {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

body:has(.mpfk-hero) #wrapper,
body:has(.mpfk-hero) #main,
body:has(.mpfk-hero) #content,
body:has(.mpfk-hero) #content.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 0 !important;
}

/* Secciones MPFK: sin margin/padding/border heredados */
section.mpfk-hero,
section.mpfk-banners,
.mpfk-hero,
.mpfk-banners {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* =================================================================
   1) HERO SLIDER
   ================================================================= */
.mpfk-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
}
.mpfk-hero__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 480px;
    max-height: 88vh;
}
@media (max-width: 768px) {
    .mpfk-hero__viewport {
        aspect-ratio: 4 / 5;
        min-height: auto;
        max-height: none;
    }
}

.mpfk-hero__track {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 100%;
    width: 100%;
}
.mpfk-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--mpfk-hero-text, #fff);
    overflow: hidden;
}
.mpfk-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.mpfk-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1);
    transition: transform 6s ease-out;
}
.mpfk-hero__slide.is-active .mpfk-hero__img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .mpfk-hero__img { object-position: 75% center; }
}

.mpfk-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vw 8vw;
    text-align: center;
    align-items: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.mpfk-hero__content--left   { text-align: left;   align-items: flex-start; }
.mpfk-hero__content--right  { text-align: right;  align-items: flex-end; }
.mpfk-hero__content--center { text-align: center; align-items: center; }

@media (max-width: 768px) {
    .mpfk-hero__content {
        justify-content: flex-end;
        padding-bottom: 22vw;
    }
}

.mpfk-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: inherit;
    opacity: 0.92;
}
.mpfk-hero__title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin: 0 0 14px;
    color: inherit;
    max-width: 22ch;
}
.mpfk-hero__subtitle {
    font-size: clamp(0.92rem, 1.3vw, 1.05rem);
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 24px;
    color: inherit;
    max-width: 50ch;
    opacity: 0.95;
}

.mpfk-hero__cta,
a.mpfk-hero__cta {
    display: inline-block !important;
    padding: 16px 40px !important;
    background: #ffffff !important;
    color: #0a0a0a !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 0 !important;
    text-shadow: none !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    line-height: 1 !important;
}
.mpfk-hero__cta:hover,
a.mpfk-hero__cta:hover {
    background: #0a0a0a !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.mpfk-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}
.mpfk-hero__nav:hover { background: rgba(255, 255, 255, 0.28); }
.mpfk-hero__nav--prev { left: 18px; }
.mpfk-hero__nav--next { right: 18px; }

@media (max-width: 600px) {
    .mpfk-hero__nav { display: none; }
}

.mpfk-hero__dots {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.mpfk-hero__dot {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.mpfk-hero__dot.is-active {
    background: #fff;
    width: 40px;
}

@media (max-width: 768px) {
    .mpfk-hero__dots { bottom: 14px; }
}

/* =================================================================
   2) BANNERS — 2 o 3 columnas (mobile = stack horizontal)
   ================================================================= */
.mpfk-banners {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    width: 100%;
}
.mpfk-banners--2 { grid-template-columns: 1fr 1fr; }
.mpfk-banners--1 { grid-template-columns: 1fr; }

@media (max-width: 768px) {
    .mpfk-banners,
    .mpfk-banners--2,
    .mpfk-banners--3 {
        grid-template-columns: 1fr;
    }
}

.mpfk-banner {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    aspect-ratio: 1 / 1;
}

@media (min-width: 769px) {
    .mpfk-banners--3 .mpfk-banner { aspect-ratio: 1 / 1; }
    .mpfk-banners--2 .mpfk-banner { aspect-ratio: 16 / 11; }
}

@media (max-width: 768px) {
    .mpfk-banner { aspect-ratio: 16 / 9; }
}

.mpfk-banner__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.mpfk-banner:hover .mpfk-banner__media { transform: scale(1.04); }

.mpfk-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.62) 100%);
    z-index: 2;
}

.mpfk-banner__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(20px, 3vw, 40px);
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.mpfk-banner__eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.95;
    color: #fff;
}
.mpfk-banner__title {
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
    color: #fff;
}
.mpfk-banner__subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.45;
    margin: 0 0 16px;
    opacity: 0.95;
    max-width: 36ch;
    color: #fff;
}
.mpfk-banner__cta {
    display: inline-block;
    padding: 13px 30px;
    background: #fff;
    color: #0a0a0a;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: background 0.25s ease, color 0.25s ease;
}
.mpfk-banner:hover .mpfk-banner__cta {
    background: #0a0a0a;
    color: #fff;
}

/* =================================================================
   3) CATEGORY CARDS (3 col)
   ================================================================= */
.mpfk-cat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.6vw, 24px);
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
    background: #fff;
}
@media (max-width: 900px) {
    .mpfk-cat-cards { grid-template-columns: 1fr; gap: 16px; padding: 32px 16px; }
}

.mpfk-cat-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #0a0a0a;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.mpfk-cat-card__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #f5f2ec;
}
.mpfk-cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.mpfk-cat-card:hover .mpfk-cat-card__media img { transform: scale(1.06); }

.mpfk-cat-card__label {
    position: absolute;
    bottom: 28px;
    left: 28px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 10px 18px;
    line-height: 1;
    z-index: 2;
}

@media (max-width: 900px) {
    .mpfk-cat-card__label { bottom: 20px; left: 20px; font-size: 0.72rem; padding: 8px 14px; }
}

/* =================================================================
   4) LATEST PRODUCTS GRID
   ================================================================= */
.mpfk-latest {
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
    background: #fff;
}
.mpfk-latest__header {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.mpfk-latest__title {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.mpfk-latest__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px) clamp(12px, 1.6vw, 24px);
}
@media (max-width: 900px) {
    .mpfk-latest__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .mpfk-latest__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

.mpfk-latest__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: #0a0a0a;
    transition: opacity 0.2s ease;
}
.mpfk-latest__card:hover { opacity: 0.88; }

.mpfk-latest__card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f2ec;
}
.mpfk-latest__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.mpfk-latest__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.mpfk-latest__card:hover .mpfk-latest__img--hover { opacity: 1; }
.mpfk-latest__card:hover .mpfk-latest__img--main { transform: scale(1.03); }

.mpfk-latest__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #8B0000;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 10px;
    line-height: 1;
    z-index: 2;
}
.mpfk-latest__badge--featured { background: #b5a242; }
.mpfk-latest__badge--sale     { background: #8B0000; }

.mpfk-latest__name {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a0a0a;
    margin-top: 2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mpfk-latest__price {
    font-size: 0.82rem;
    font-weight: 500;
    color: #0a0a0a;
}
.mpfk-latest__price del { color: #999; text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.mpfk-latest__price ins { color: #0a0a0a; text-decoration: none; font-weight: 600; }
