:root {
    --mipo-home-rose: #ad526b;
    --mipo-home-green: #7c945f;
    --mipo-home-green-dark: #63784a;
}

.home .elementor-1178 > .elementor-element-1709df0 {
    display: none;
}

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

.mipo-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: clamp(660px, 79vh, 790px);
    overflow: hidden;
    place-items: center;
    padding: clamp(146px, 17vh, 184px) 32px 68px;
    color: #fff;
    background-color: #524b4c;
    background-image: var(--mipo-home-hero-image);
    background-repeat: no-repeat;
    /* Mantiene el ramo como punto focal en vez de centrar el espacio vacío. */
    background-position: center 68%;
    background-size: cover;
}

.mipo-home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(25, 20, 22, 0.12) 0%, rgba(26, 22, 24, 0.1) 42%, rgba(20, 18, 19, 0.26) 100%),
        linear-gradient(90deg, rgba(30, 28, 29, 0.08), rgba(30, 28, 29, 0.02) 55%, rgba(30, 28, 29, 0.08));
    content: "";
}

.mipo-home-hero__inner {
    width: min(1080px, 100%);
    margin-inline: auto;
    text-align: center;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48);
}

.mipo-home-hero h1 {
    margin: 0;
    color: #fff;
    font-family: Alegreya, Georgia, serif;
    font-size: clamp(46px, 4.1vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.74);
}

.mipo-home-hero__description {
    max-width: 1030px;
    margin: 50px auto 0;
    color: #fff;
    font-family: Alegreya, Georgia, serif;
    font-size: clamp(20px, 1.55vw, 27px);
    line-height: 1.25;
    text-wrap: balance;
}

.mipo-home-hero__benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(970px, 100%);
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
}

.mipo-home-hero__benefits li {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    padding-inline: 18px;
    color: #fff;
    font-family: Alegreya, Georgia, serif;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.15;
}

.mipo-home-hero__benefits li:not(:last-child)::after {
    position: absolute;
    top: 20px;
    right: 0;
    width: 1px;
    height: 57px;
    background: rgba(255, 255, 255, 0.76);
    content: "";
}

.mipo-home-hero__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: var(--mipo-home-rose);
    background: rgba(255, 249, 249, 0.94);
    box-shadow: 0 5px 20px rgba(36, 18, 24, 0.16);
}

.mipo-home-hero__icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mipo-home-hero__actions {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 34px;
}

.mipo-home-hero .mipo-home-hero__button {
    display: inline-flex;
    min-width: 228px;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 13px 24px;
    font-family: Antic, Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mipo-home-hero .mipo-home-hero__button:hover,
.mipo-home-hero .mipo-home-hero__button:focus-visible {
    transform: translateY(-2px);
}

.mipo-home-hero .mipo-home-hero__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.88);
    outline-offset: 3px;
}

.mipo-home-hero__button--primary {
    color: #fff;
    background: var(--mipo-home-green);
    box-shadow: 0 8px 24px rgba(34, 45, 25, 0.2);
}

.mipo-home-hero__button--primary:hover,
.mipo-home-hero__button--primary:focus-visible {
    color: #fff;
    background: var(--mipo-home-green-dark);
}

.mipo-home-hero__button--whatsapp {
    color: var(--mipo-home-rose);
    border-color: var(--mipo-home-rose) !important;
    background: rgba(255, 247, 247, 0.94);
}

.mipo-home-hero__button--whatsapp:hover,
.mipo-home-hero__button--whatsapp:focus-visible {
    color: #8e3d56;
    border-color: #8e3d56 !important;
    background: #fff;
}

.mipo-home-hero__button--whatsapp svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.home.ast-theme-transparent-header #masthead {
    text-shadow: 0 1px 9px rgba(0, 0, 0, 0.38);
}

.home.ast-theme-transparent-header .ast-primary-header-bar {
    background: linear-gradient(180deg, rgba(22, 17, 19, 0.13), transparent);
}

@media (max-width: 921px) {
    .mipo-home-hero {
        min-height: 780px;
        padding: 132px 28px 54px;
        background-position: 59% 62%;
    }

    .mipo-home-hero::before {
        background: linear-gradient(180deg, rgba(28, 21, 24, 0.2), rgba(24, 19, 21, 0.3));
    }

    .mipo-home-hero__description {
        margin-top: 32px;
        font-size: 20px;
        line-height: 1.32;
    }

    .mipo-home-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(560px, 100%);
        row-gap: 24px;
    }

    .mipo-home-hero__benefits li:nth-child(2)::after {
        content: none;
    }

    .mipo-home-hero__actions {
        margin-top: 30px;
    }
}

@media (max-width: 544px) {
    .mipo-home-hero {
        min-height: 0;
        padding: 112px 18px 42px;
        background-position: 62% 58%;
    }

    .mipo-home-hero h1 {
        font-size: clamp(34px, 10.5vw, 46px);
        letter-spacing: 0.045em;
    }

    .mipo-home-hero__description {
        margin-top: 26px;
        font-size: 17px;
        line-height: 1.34;
        text-wrap: pretty;
    }

    .mipo-home-hero__benefits {
        gap: 20px 8px;
        margin-top: 28px;
    }

    .mipo-home-hero__benefits li {
        gap: 7px;
        padding-inline: 6px;
        font-size: 15px;
    }

    .mipo-home-hero__benefits li:not(:last-child)::after {
        content: none;
    }

    .mipo-home-hero__icon {
        width: 46px;
        height: 46px;
    }

    .mipo-home-hero__icon svg {
        width: 27px;
        height: 27px;
    }

    .mipo-home-hero__actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }

    .mipo-home-hero .mipo-home-hero__button {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mipo-home-hero .mipo-home-hero__button {
        transition: none;
    }
}


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

.mipo-home-categories {
    padding: clamp(30px, 3.4vw, 54px) clamp(18px, 2.2vw, 36px);
    background: #fbf8f6;
}

.mipo-home-categories__inner {
    width: min(1760px, 100%);
    margin-inline: auto;
}

.mipo-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.2vw, 22px);
}

.mipo-home-category-card {
    display: grid;
    min-width: 0;
    min-height: 188px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    border: 1px solid rgba(112, 84, 91, 0.1);
    border-radius: 12px;
    color: #262b2b;
    background: rgba(255, 253, 252, 0.96);
    box-shadow: 0 5px 20px rgba(75, 50, 57, 0.08);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.mipo-home-category-card:hover,
.mipo-home-category-card:focus-visible {
    color: #262b2b;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(75, 50, 57, 0.14);
}

.mipo-home-category-card:focus-visible {
    outline: 3px solid rgba(173, 82, 107, 0.45);
    outline-offset: 3px;
}

.mipo-home-category-card__media {
    min-width: 0;
    overflow: hidden;
    background: #eee6e3;
}

.mipo-home-category-card__media img,
.mipo-home-category-card__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 188px;
    object-fit: cover;
    object-position: center;
    transition: transform 350ms ease;
}

.mipo-home-category-card:hover .mipo-home-category-card__image {
    transform: scale(1.035);
}

.mipo-home-category-card__content {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 31px 23px 25px;
}

.mipo-home-category-card__title {
    color: #222929;
    font-family: Alegreya, Georgia, serif;
    font-size: clamp(19px, 1.1vw, 24px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
}

.mipo-home-category-card__description {
    margin-top: 14px;
    padding-right: 28px;
    color: #777678;
    font-family: Antic, Arial, sans-serif;
    font-size: clamp(15px, 1vw, 19px);
    line-height: 1.28;
}

.mipo-home-category-card__arrow {
    position: absolute;
    right: 19px;
    bottom: 22px;
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 50%;
    color: #303838;
    background: #f8e5e8;
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
    transition: color 180ms ease, background-color 180ms ease;
}

.mipo-home-category-card:hover .mipo-home-category-card__arrow,
.mipo-home-category-card:focus-visible .mipo-home-category-card__arrow {
    color: #fff;
    background: var(--mipo-home-rose);
}

@media (max-width: 1260px) {
    .mipo-home-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .mipo-home-categories {
        padding: 24px 14px 30px;
    }

    .mipo-home-categories__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mipo-home-category-card {
        min-height: 164px;
        grid-template-columns: minmax(0, 44%) minmax(0, 56%);
        border-radius: 10px;
    }

    .mipo-home-category-card__media img,
    .mipo-home-category-card__image {
        min-height: 164px;
    }

    .mipo-home-category-card__content {
        padding: 23px 17px 19px;
    }

    .mipo-home-category-card__title {
        font-size: clamp(18px, 5.2vw, 22px);
    }

    .mipo-home-category-card__description {
        margin-top: 10px;
        padding-right: 22px;
        font-size: 15px;
    }

    .mipo-home-category-card__arrow {
        right: 14px;
        bottom: 15px;
        width: 39px;
        height: 39px;
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mipo-home-category-card,
    .mipo-home-category-card__image,
    .mipo-home-category-card__arrow {
        transition: none;
    }
}
