@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700;900&family=Poppins:wght@500;600;700;800&display=swap');

/* ==========================================================================
   Ambros Pizza Sogamoso - CSS principal limpio
   HTML semántico + CSS puro + JS vanilla
   ========================================================================== */

:root {
    --ap-font-title: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ap-font-body: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ap-magenta: #c0005a;
    --ap-magenta-dark: #87003c;
    --ap-magenta-card: #e50064;
    --ap-yellow: #ffd400;
    --ap-yellow-soft: #ffe57d;
    --ap-cream: #fff4df;
    --ap-dark: #252323;
    --ap-brown: #2a1712;
    --ap-muted: #6b5f59;
    --ap-white: #ffffff;

    --ap-border: rgba(23, 17, 15, 0.1);
    --ap-shadow-soft: 0 18px 44px rgba(23, 17, 15, 0.1);
    --ap-shadow-strong: 0 28px 80px rgba(118, 13, 18, 0.24);

    --ap-container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    color: var(--ap-dark);
    background: var(--ap-cream);
    font-family: var(--ap-font-body);
    font-weight: 400;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 138, 29, 0.16), transparent 30%),
        radial-gradient(circle at 95% 10%, rgba(192, 0, 90, 0.14), transparent 28%),
        linear-gradient(180deg, #fff4df, #fff9ef);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    color: var(--ap-white);
    background: var(--ap-magenta);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--ap-font-title);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.ap-container,
.ap-hero__container,
.ap-footer__container {
    width: min(100% - 32px, var(--ap-container));
    margin-inline: auto;
}

.ap-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--ap-font-title);
    font-weight: 700;
    line-height: 1;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.ap-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Header Ambros - Cápsula flotante
   ========================================================================== */

.ap-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    padding: 34px 0 0;
    background: transparent;
    pointer-events: none;
}

.ap-header__shell {
    position: relative;
    width: min(100% - 32px, 705px);
    min-height: 168px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    align-items: center;
    pointer-events: auto;
}

.ap-header__cart,
.ap-header__status {
    position: relative;
    min-height: 102px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: var(--ap-magenta);
    box-shadow: none;
}

.ap-header__cart {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 84px 0 26px;
    border-radius: 999px 0 0 999px;
    margin-right: -80px;
}

.ap-header__status {
    justify-content: flex-end;
    gap: 20px;
    padding: 0 26px 0 84px;
    border-radius: 0 999px 999px 0;
    margin-left: -80px;
}

.ap-header__cart-icon,
.ap-header__status-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.ap-header__cart-icon {
    color: var(--ap-magenta);
    background: var(--ap-yellow);
}

.ap-header__status-icon {
    color: #00b91a;
    background: #24f000;
}

.ap-header__cart-icon svg,
.ap-header__status-icon svg {
    width: 30px;
    height: 30px;
}

.ap-header__status.is-open {
    background: rgba(255, 255, 255, 0.16);
}

.ap-header__status.is-open span:last-child {
    color: #ffffff;
}


.ap-header__status.is-closed span:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.ap-header__cart-count {
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.014em;
}

.ap-header__cart-text {
    display: grid;
    gap: 0;
    color: #ffffff;
    line-height: 1;
}

.ap-header__cart-text strong,
.ap-header__cart-text small {
    display: block;
    font-family: var(--ap-font-title);
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.006em;
}

.ap-header__status-text {
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.016em;
}

.ap-header__brand {
    position: relative;
    z-index: 5;
    width: 166px;
    height: 166px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 999px;
    background: var(--ap-yellow);
    box-shadow: none;
}

.ap-header__brand::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 0;
    border-radius: inherit;
    background: #5b1440;
}

.ap-header__brand img {
    position: relative;
    z-index: 2;
    width: 146px;
    height: 146px;
    object-fit: contain;
    border-radius: 999px;
}

.ap-header__status.is-closed {
    background: #3a3034;
}

.ap-header__status.is-closed .ap-header__status-icon {
    color: #3a3034;
    background: #d8d2cf;
}

/* ==========================================================================
   Hero - Fondo imagen + producto lateral Ambros
   ========================================================================== */

.ap-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 220px 0 90px;
    margin-top: 0;
    isolation: isolate;
    background:
        linear-gradient(105deg, #ffe9a8 0%, #ffd769 48%, #e6ad21 100%);
}


/* Imagen decorativa fondo izquierdo con fusión tipo Photoshop: Luz suave */
.ap-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 56%;
    height: 100%;
    background-image: url("../img/banners/hero-bg-ambros.png");
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;

    opacity: 0.78;
    mix-blend-mode: soft-light;

    pointer-events: none;
}

/* Luz suave central */
.ap-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            ellipse at 50% 48%,
            rgba(255, 255, 235, 0.48) 0%,
            rgba(255, 239, 165, 0.28) 28%,
            rgba(255, 218, 95, 0) 62%
        );
    pointer-events: none;
}

.ap-hero__container {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--ap-container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(390px, 1.18fr);
    align-items: center;
    gap: 46px;
}

.ap-hero__content {
    max-width: 560px;
}

.ap-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: #8b1235;
    background: rgba(192, 0, 90, 0.12);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.ap-hero__content h1 {
    margin: 24px 0 12px;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: clamp(2.65rem, 4vw, 3.65rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.018em;
}

#hero-title,
.ap-hero__title {
    max-width: 720px;
    margin: 0;

    font-size: clamp(2.7rem, 3.8vw, 4.05rem);
    line-height: 0.98;
    letter-spacing: -0.055em;

    color: var(--ap-magenta, #d10068);
    font-weight: 700;
}

#hero-title span,
.ap-hero__title span {
    display: block;
}

#hero-title strong,
.ap-hero__title strong {
    color: var(--ap-magenta, #d10068);
    font-weight: inherit;
}


.ap-hero__content p {
    max-width: 500px;
    margin: 0;
    color: rgba(42, 23, 18, 0.76);
    font-family: var(--ap-font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    font-weight: 500;
    line-height: 1.52;
    letter-spacing: 0.002em;
}

.ap-hero__actions {
    display: flex;
    align-items: center;
    margin-top: 28px;
}

.ap-hero__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 26px 0 34px;
    border-radius: 999px;

    color: #ffffff;
    background: var(--ap-magenta);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.ap-hero__btn:hover {
    transform: translateY(-3px);
    background: var(--ap-magenta);
    box-shadow: 0 18px 38px rgba(169, 0, 78, 0.28);
}

.ap-hero__btn-text,
.ap-hero__btn-icon {
    position: relative;
    z-index: 2;
}

.ap-hero__btn-text {
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.012em;
}

.ap-hero__btn-icon {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.ap-hero__btn:hover .ap-hero__btn-icon {
    transform: translateX(4px) rotate(-6deg) scale(1.08);
}

.ap-btn-aware__bubble {
    position: absolute;
    left: var(--ap-x, 50%);
    top: var(--ap-y, 50%);
    z-index: 1;

    width: 0;
    height: 0;
    border-radius: 999px;

    background:
        radial-gradient(circle, #ab055b 0%, #640357 42%, #5d0e5a 100%);

    transform: translate(-50%, -50%);

    transition:
        width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ap-btn-aware:hover .ap-btn-aware__bubble {
    width: 280%;
    height: 280%;
}

@media (prefers-reduced-motion: reduce) {
    .ap-hero__btn,
    .ap-hero__btn-icon,
    .ap-btn-aware__bubble {
        transition: none;
    }

    .ap-hero__btn:hover {
        transform: none;
    }

    .ap-hero__btn:hover .ap-hero__btn-icon {
        transform: none;
    }
}

/* Producto derecho */
.ap-hero__media {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
}

.ap-hero__product {
    position: relative;
    z-index: 3;
    width: min(100%, 620px);
    filter: drop-shadow(0 34px 36px rgba(97, 56, 0, 0.24));
    transform: translateY(10px) rotate(-1deg);
}

/* Hojas decorativas */
.ap-hero__leaf {
    position: absolute;
    z-index: 2;
    width: 74px;
    height: 34px;
    border-radius: 999px 0 999px 0;
    background:
        linear-gradient(135deg, rgba(20, 150, 44, 0.95), rgba(111, 206, 64, 0.9));
    box-shadow: 0 18px 28px rgba(46, 110, 30, 0.16);
    transform: rotate(-36deg);
}

.ap-hero__leaf::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
}

.ap-hero__leaf--one {
    left: 8%;
    bottom: 12%;
    transform: rotate(-22deg);
}

.ap-hero__leaf--two {
    right: 2%;
    top: 20%;
    transform: rotate(-48deg);
}

.ap-hero__leaf--three {
    left: 12%;
    top: 42%;
    transform: rotate(-60deg);
}

/* ==========================================================================
   Responsive Hero
   ========================================================================== */

@media (max-width: 1020px) {
    .ap-hero__container {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
    }

    .ap-hero__content {
        order: 2;
        max-width: 680px;
        margin-inline: auto;
    }

    .ap-hero__media {
        order: 1;
        width: 100%;
        min-height: 300px;
    }

    .ap-hero__eyebrow,
    .ap-hero__actions {
        margin-inline: auto;
    }

    .ap-hero__content p {
        margin-inline: auto;
    }

    .ap-hero__product {
        width: min(100%, 430px);
        transform: translateY(0) rotate(-1deg);
    }
}

@media (max-width: 680px) {
    .ap-hero {
        min-height: auto;
        padding: 150px 0 54px;
    }

    .ap-hero::before {
        width: 100%;
        height: 46%;
        background-position: center top;
        opacity: 0.42;
        mix-blend-mode: soft-light;
    }

    .ap-hero::after {
        background:
            radial-gradient(
                ellipse at 50% 34%,
                rgba(255, 255, 235, 0.38) 0%,
                rgba(255, 239, 165, 0.18) 34%,
                rgba(255, 218, 95, 0) 68%
            );
    }

    .ap-hero__container {
        width: min(100% - 24px, var(--ap-container));
        gap: 20px;
    }

    .ap-hero__media {
        min-height: 235px;
        margin-top: 6px;
    }

    .ap-hero__product {
        width: min(100%, 330px);
    }

    .ap-hero__content h1 {
        max-width: 340px;
        margin: 16px auto 10px;
        font-size: clamp(2.25rem, 11.6vw, 3.1rem);
        line-height: 1.06;
        letter-spacing: -0.014em;
    }

    .ap-hero__content p {
        max-width: 320px;
        font-size: 0.96rem;
        line-height: 1.48;
    }

    .ap-hero__btn {
        width: min(100%, 328px);
        min-height: 58px;
        gap: 14px;
        padding: 0 20px;
        margin-inline: auto;
    }

    .ap-hero__btn span {
        font-size: 1.35rem;
    }

    .ap-hero__btn-icon {
        width: 28px;
        height: 28px;
    }

    .ap-hero__leaf {
        width: 46px;
        height: 22px;
    }

    .ap-hero__leaf--one {
        left: 7%;
        bottom: 4%;
    }

    .ap-hero__leaf--two {
        right: 8%;
        top: 18%;
    }

    .ap-hero__leaf--three {
        left: 12%;
        top: 48%;
    }
}

@media (max-width: 390px) {
    .ap-hero {
        padding-top: 142px;
    }

    .ap-hero__media {
        min-height: 215px;
    }

    .ap-hero__product {
        width: min(100%, 300px);
    }

    .ap-hero__content h1 {
        max-width: 315px;
        font-size: clamp(2.05rem, 11vw, 2.72rem);
    }

    .ap-hero__content p {
        max-width: 300px;
        font-size: 0.92rem;
    }

    .ap-hero__btn {
        width: min(100%, 300px);
        min-height: 54px;
    }

    .ap-hero__btn span {
        font-size: 1.24rem;
    }
}

/* ==========================================================================
   Menú productos - Buscador único + grilla general
   ========================================================================== */

.ap-menu {
    position: relative;
    overflow: hidden;
    padding: 86px 0 110px;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(255, 0, 117, 0.38), transparent 24%),
        linear-gradient(180deg, #8c003d 0%, #91003f 48%, #780033 100%);
    color: #ffffff;
}

.ap-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 92px 92px;
    pointer-events: none;
}

.ap-menu::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 12%),
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.08), transparent 14%),
        radial-gradient(circle at 50% 82%, rgba(255, 0, 117, 0.32), transparent 22%);
    pointer-events: none;
}

.ap-menu__inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 1060px);
    margin-inline: auto;
}

.ap-menu__heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.ap-menu__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--ap-yellow);
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.ap-menu__heading h2 {
    margin: 18px 0 10px;
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.ap-menu__heading p {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.58;
    letter-spacing: 0.002em;
}

.ap-menu-search {
    position: relative;
    width: min(100%, 604px);
    margin: 0 auto 50px;
}

.ap-menu-search input {
    width: 100%;
    min-height: 58px;
    padding: 0 74px 0 24px;
    border: 3px solid rgba(80, 35, 58, 0.2);
    border-radius: 999px;
    outline: none;
    color: #5b4f55;
    background: #fffdf9;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.78),
        0 16px 34px rgba(23, 17, 15, 0.16);
    font-family: var(--ap-font-body);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.002em;
}

.ap-menu-search input::placeholder {
    color: rgba(65, 54, 60, 0.62);
}

.ap-menu-search input:focus {
    border-color: var(--ap-yellow);
    box-shadow:
        0 0 0 4px rgba(255, 212, 0, 0.2),
        0 18px 38px rgba(23, 17, 15, 0.18);
}

.ap-menu-search__icon {
    position: absolute;
    right: 19px;
    top: 50%;
    display: grid;
    place-items: center;
    color: rgba(88, 70, 80, 0.45);
    transform: translateY(-50%);
    pointer-events: none;
}
.ap-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;

    max-height: 980px;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 8px 12px 28px 4px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* Scrollbar elegante */
.ap-products-grid::-webkit-scrollbar {
    width: 10px;
}

.ap-products-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.ap-products-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 212, 0, 0.85);
}

.ap-products-grid::-webkit-scrollbar-thumb:hover {
    background: var(--ap-yellow);
}

/* Firefox */
.ap-products-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--ap-yellow) rgba(255, 255, 255, 0.12);
}

.ap-product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 508px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--ap-magenta-card);
    box-shadow: 0 24px 46px rgba(20, 0, 14, 0.28);

    opacity: 0;
    transform: translateY(28px) scale(0.98);

    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    will-change: opacity, transform;
}

.ap-product-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Entrada escalonada */
.ap-product-card:nth-child(1) {
    transition-delay: 0.04s;
}

.ap-product-card:nth-child(2) {
    transition-delay: 0.08s;
}

.ap-product-card:nth-child(3) {
    transition-delay: 0.12s;
}

.ap-product-card:nth-child(4) {
    transition-delay: 0.16s;
}

.ap-product-card:nth-child(5) {
    transition-delay: 0.20s;
}

.ap-product-card:nth-child(6) {
    transition-delay: 0.24s;
}

.ap-product-card:nth-child(7) {
    transition-delay: 0.28s;
}

.ap-product-card:nth-child(8) {
    transition-delay: 0.32s;
}

.ap-product-card:nth-child(9) {
    transition-delay: 0.36s;
}

.ap-product-card:nth-child(10) {
    transition-delay: 0.40s;
}

.ap-product-card:nth-child(11) {
    transition-delay: 0.44s;
}

.ap-product-card:nth-child(12) {
    transition-delay: 0.48s;
}

@media (hover: hover) and (pointer: fine) {
    .ap-product-card.is-visible:hover {
        transform: translateY(-6px) scale(1);
        border-color: var(--ap-yellow);
        box-shadow:
            0 34px 70px rgba(20, 0, 14, 0.38),
            0 0 0 1px rgba(255, 212, 0, 0.15);
    }

    .ap-product-card.is-visible:hover .ap-product-card__image img {
        transform: scale(1.045);
    }
}

.ap-product-card__image {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 1.23 / 1;
    background: #f7ead8;
    border-radius: 10px 10px 0 0;
}

.ap-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.ap-product-card__category {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #7b0034;
    background: var(--ap-yellow);
    font-family: var(--ap-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(20, 0, 14, 0.14);
}

.ap-product-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
    color: #ffffff;
}

.ap-product-card h3 {
    margin: 0;
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: clamp(1.22rem, 1.7vw, 1.55rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.014em;
}

.ap-product-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--ap-yellow);
    font-family: var(--ap-font-title);
    line-height: 1;
}

.ap-product-card__rating strong {
    color: var(--ap-yellow);
    font-size: 0.9rem;
    font-weight: 700;
}

.ap-product-card__rating span {
    color: var(--ap-yellow);
    font-size: 0.94rem;
    letter-spacing: -0.04em;
}

.ap-product-card__ingredients {
    display: grid;
    gap: 5px;
    margin: 18px 0 20px;
    padding: 0;
    list-style: none;
}

.ap-product-card__ingredients li {
    position: relative;
    padding-left: 22px;
    color: #ffffff;
    font-family: var(--ap-font-body);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: 0;
}

.ap-product-card__ingredients li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1;
}

.ap-product-card p {
    margin: 14px 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.48;
}

.ap-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.ap-product-card__price {
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ap-product-card__add {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #fff3dc 100%);
    box-shadow:
        0 12px 24px rgba(20, 0, 14, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.ap-product-card__add img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
    transition: transform 0.22s ease;
}

.ap-product-card__add:hover {
    background: linear-gradient(180deg, #ffe57d 0%, #ffd400 100%);
    box-shadow:
        0 16px 28px rgba(20, 0, 14, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.04);
}

.ap-product-card__add:hover img {
    transform: scale(1.08) rotate(-4deg);
}

.ap-product-card__add:active {
    transform: translateY(0) scale(0.98);
}

.ap-product-card__add:focus-visible {
    box-shadow:
        0 0 0 4px rgba(255, 212, 0, 0.24),
        0 12px 24px rgba(20, 0, 14, 0.16);
}

.ap-product-card.is-hidden {
    display: none;
}

.ap-menu__empty {
    width: min(100%, 560px);
    margin: 34px auto 0;
    padding: 22px 24px;
    border-radius: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    font-family: var(--ap-font-title);
    font-size: 1.05rem;
    font-weight: 600;
}

/* ==========================================================================
   Responsive productos con scroll vertical
   ========================================================================== */

@media (max-width: 980px) {
    .ap-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        max-height: 920px;
        padding-right: 8px;
    }
}

@media (max-width: 680px) {
    .ap-products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        max-height: 760px;
        padding: 6px 8px 24px 0;
    }

    .ap-product-card {
        width: 100%;
        max-width: 360px;
        min-height: auto;
        margin-inline: auto;
    }

    .ap-product-card__image {
        aspect-ratio: 1.2 / 1;
    }

    .ap-product-card__body {
        padding: 18px;
    }

    .ap-product-card h3 {
        font-size: 1.34rem;
        font-weight: 700;
        letter-spacing: -0.012em;
    }

    .ap-product-card__ingredients li {
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.26;
    }

    .ap-product-card__price {
        font-size: 1.55rem;
        font-weight: 700;
    }

    .ap-product-card__add {
        width: 46px;
        height: 46px;
    }

    .ap-product-card__add img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 420px) {
    .ap-products-grid {
        max-height: 720px;
    }

    .ap-product-card {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-product-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Footer premium Ambros
   ========================================================================== */

.ap-footer {
    position: relative;
    overflow: hidden;
    padding: 74px 0 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 212, 0, 0.18), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.09), transparent 30%),
        linear-gradient(
            135deg,
            var(--ap-magenta-dark) 0%,
            var(--ap-magenta) 46%,
            #6d0030 100%
        );
}

.ap-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 88px 88px;
    pointer-events: none;
}

.ap-footer__container {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--ap-container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 54px;
    align-items: start;
}

.ap-footer__brand {
    max-width: 560px;
}

.ap-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--ap-yellow);
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--ap-font-title);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.ap-footer__brand strong {
    display: block;
    margin: 0 0 14px;
    color: #ffffff;
    font-family: var(--ap-font-title);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.ap-footer__brand p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.68;
}

.ap-footer__details {
    display: grid;
    gap: 14px;
}

.ap-footer__details article {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.ap-footer__details article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: var(--ap-yellow);
}

.ap-footer__details span {
    display: block;
    margin-bottom: 6px;
    color: var(--ap-yellow);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ap-footer__details strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--ap-font-body);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.ap-footer__bottom {
    position: relative;
    z-index: 2;
    margin-top: 58px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
}

.ap-footer__bottom-inner {
    width: min(100% - 32px, var(--ap-container));
    min-height: 62px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ap-footer__bottom span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .ap-footer {
        padding-top: 62px;
    }

    .ap-footer__container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ap-footer__brand {
        max-width: 620px;
        text-align: center;
        margin-inline: auto;
    }

    .ap-footer__eyebrow {
        margin-inline: auto;
    }

    .ap-footer__brand p {
        margin-inline: auto;
    }

    .ap-footer__details {
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
    }

    .ap-footer__bottom {
        margin-top: 44px;
    }

    .ap-footer__bottom-inner {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .ap-footer {
        padding-top: 54px;
    }

    .ap-footer__container,
    .ap-footer__bottom-inner {
        width: min(100% - 24px, var(--ap-container));
    }

    .ap-footer__brand strong {
        font-size: 1.72rem;
    }

    .ap-footer__brand p {
        font-size: 0.95rem;
        line-height: 1.58;
    }

    .ap-footer__details article {
        padding: 16px 18px;
        border-radius: 20px;
    }

    .ap-footer__details strong {
        font-size: 0.94rem;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
    .ap-hero__container {
        grid-template-columns: 1fr;
    }

    .ap-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .ap-hero {
        min-height: auto;
        padding: 168px 0 70px;
    }

    .ap-hero__container {
        display: flex;
        flex-direction: column;
        gap: 26px;
        text-align: center;
    }

    .ap-hero__media {
        order: 1;
        width: 100%;
        min-height: 270px;
        margin-top: 4px;
    }

    .ap-hero__content {
        order: 2;
        max-width: 680px;
        margin-inline: auto;
    }

    .ap-hero__eyebrow,
    .ap-hero__actions {
        margin-inline: auto;
    }

    .ap-hero__content h1 {
        max-width: 520px;
        margin: 18px auto 12px;
        font-size: clamp(2.65rem, 9vw, 4.05rem);
        line-height: 1.04;
        letter-spacing: -0.016em;
    }

    .ap-hero__content p {
        max-width: 430px;
        margin-inline: auto;
    }

    .ap-hero__actions {
        justify-content: center;
        margin-top: 26px;
    }

    .ap-hero__product {
        width: min(100%, 420px);
        transform: translateY(0) rotate(-1deg);
    }

    .ap-hero__leaf--one {
        left: 10%;
        bottom: 6%;
    }

    .ap-hero__leaf--two {
        right: 10%;
        top: 12%;
    }

    .ap-hero__leaf--three {
        left: 16%;
        top: 36%;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 105px;
    }

    .ap-header {
        width: 100%;
        padding: 18px 0 0;
        background: transparent;
        transform: translateZ(0);
        will-change: transform;
    }

    .ap-header__shell {
        width: min(100% - 18px, 430px);
        min-height: 96px;
        grid-template-columns: 1fr 94px 1fr;
    }

    .ap-header__cart,
    .ap-header__status {
        min-height: 62px;
    }

    .ap-header__cart {
        gap: 6px;
        padding: 0 46px 0 12px;
        margin-right: -47px;
    }

    .ap-header__status {
        gap: 8px;
        padding: 0 12px 0 46px;
        margin-left: -47px;
    }

    .ap-header__cart-icon,
    .ap-header__status-icon {
        width: 38px;
        height: 38px;
    }

    .ap-header__cart-icon svg,
    .ap-header__status-icon svg {
        width: 19px;
        height: 19px;
    }

    .ap-header__cart-count {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    .ap-header__cart-text strong,
    .ap-header__cart-text small {
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0;
    }

    .ap-header__status-text {
        font-size: 1.22rem;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    .ap-header__brand {
        width: 98px;
        height: 98px;
    }

    .ap-header__brand::before {
        inset: 6px;
    }

    .ap-header__brand img {
        width: 86px;
        height: 86px;
    }

    .ap-footer__container {
        align-items: flex-start;
        flex-direction: column;
    }

    .ap-footer__info {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .ap-menu {
        padding: 64px 0 82px;
        border-radius: 0;
    }

    .ap-menu__inner {
        width: min(100% - 24px, 1060px);
    }

    .ap-menu__heading {
        margin-bottom: 24px;
    }

    .ap-menu__heading h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -0.014em;
    }

    .ap-menu__heading p {
        font-size: 0.96rem;
    }

    .ap-menu-search {
        margin-bottom: 30px;
    }

    .ap-menu-search input {
        min-height: 52px;
        padding: 0 58px 0 18px;
        border-width: 2px;
        font-size: 0.96rem;
    }

    .ap-menu-search__icon {
        right: 15px;
    }

    .ap-menu-search__icon svg {
        width: 28px;
        height: 28px;
    }

    .ap-products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ap-product-card {
        width: 100%;
        max-width: 360px;
        min-height: auto;
        margin-inline: auto;
    }

    .ap-product-card__image {
        aspect-ratio: 1.2 / 1;
    }

    .ap-product-card__body {
        padding: 18px;
    }

    .ap-product-card h3 {
        font-size: 1.34rem;
        font-weight: 700;
        letter-spacing: -0.012em;
    }

    .ap-product-card__ingredients li {
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.26;
    }

    .ap-product-card__price {
        font-size: 1.55rem;
        font-weight: 700;
    }

        .ap-product-card__add {
            width: 46px;
            height: 46px;
        }

        .ap-product-card__add svg {
    width: 20px;
    height: 20px;
    }

    .ap-product-card__add span {
        font-size: 2.2rem;
    }
}

@media (max-width: 520px) {
    html {
        scroll-padding-top: 92px;
    }

    .ap-hero {
        padding: 150px 0 54px;
    }

    .ap-hero__container {
        width: min(100% - 24px, var(--ap-container));
        gap: 20px;
    }

    .ap-hero__media {
        min-height: 235px;
        margin-top: 6px;
    }

    .ap-hero__product {
        width: min(100%, 330px);
    }

    .ap-hero__content h1 {
        max-width: 340px;
        margin: 16px auto 10px;
        font-size: clamp(2.25rem, 11.6vw, 3.1rem);
        line-height: 1.06;
        letter-spacing: -0.014em;
    }

    .ap-hero__content p {
        max-width: 320px;
        font-size: 0.96rem;
        line-height: 1.48;
    }

    .ap-hero__btn {
        width: min(100%, 328px);
        min-height: 58px;
        gap: 14px;
        padding: 0 20px;
        margin-inline: auto;
    }

    .ap-hero__btn span {
        font-size: 1.35rem;
    }

    .ap-hero__btn svg {
        width: 30px;
        height: 30px;
    }

    .ap-hero__leaf {
        width: 46px;
        height: 22px;
    }

    .ap-hero__leaf--one {
        left: 7%;
        bottom: 4%;
    }

    .ap-hero__leaf--two {
        right: 8%;
        top: 18%;
    }

    .ap-hero__leaf--three {
        left: 12%;
        top: 48%;
    }
}

@media (max-width: 420px) {
    .ap-header {
        padding: 14px 0 0;
    }

    .ap-header__shell {
        width: min(100% - 12px, 370px);
        min-height: 84px;
        grid-template-columns: 1fr 82px 1fr;
    }

    .ap-header__cart,
    .ap-header__status {
        min-height: 54px;
    }

    .ap-header__cart {
        gap: 5px;
        padding: 0 38px 0 9px;
        margin-right: -41px;
    }

    .ap-header__status {
        gap: 6px;
        padding: 0 9px 0 38px;
        margin-left: -41px;
    }

    .ap-header__cart-icon,
    .ap-header__status-icon {
        width: 32px;
        height: 32px;
    }

    .ap-header__cart-icon svg,
    .ap-header__status-icon svg {
        width: 16px;
        height: 16px;
    }

    .ap-header__cart-count {
        font-size: 1rem;
    }

    .ap-header__cart-text strong,
    .ap-header__cart-text small {
        font-size: 0.52rem;
    }

    .ap-header__status-text {
        font-size: 1.08rem;
    }

    .ap-header__brand {
        width: 86px;
        height: 86px;
    }

    .ap-header__brand::before {
        inset: 5px;
    }

    .ap-header__brand img {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 390px) {
    .ap-hero {
        padding-top: 142px;
    }

    .ap-hero__media {
        min-height: 215px;
    }

    .ap-hero__product {
        width: min(100%, 300px);
    }

    .ap-hero__content h1 {
        max-width: 315px;
        font-size: clamp(2.05rem, 11vw, 2.72rem);
    }

    .ap-hero__content p {
        max-width: 300px;
        font-size: 0.92rem;
    }

    .ap-hero__btn {
        width: min(100%, 300px);
        min-height: 54px;
    }

    .ap-hero__btn span {
        font-size: 1.24rem;
    }
}

@media (max-width: 360px) {
    .ap-header__shell {
        width: min(100% - 10px, 340px);
        min-height: 78px;
        grid-template-columns: 1fr 74px 1fr;
    }

    .ap-header__cart,
    .ap-header__status {
        min-height: 48px;
    }

    .ap-header__cart {
        padding: 0 34px 0 7px;
        margin-right: -37px;
    }

    .ap-header__status {
        padding: 0 7px 0 34px;
        margin-left: -37px;
    }

    .ap-header__cart-icon,
    .ap-header__status-icon {
        width: 28px;
        height: 28px;
    }

    .ap-header__cart-count {
        font-size: 0.88rem;
    }

    .ap-header__cart-text strong,
    .ap-header__cart-text small {
        font-size: 0.47rem;
    }

    .ap-header__status-text {
        font-size: 0.96rem;
    }

    .ap-header__brand {
        width: 78px;
        height: 78px;
    }

    .ap-header__brand img {
        width: 68px;
        height: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   Mini carrito Ambros
   ========================================================================== */

body.ap-cart-open {
    overflow: hidden;
}

.ap-mini-cart {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: stretch end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.ap-mini-cart.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ap-mini-cart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 0, 12, 0.56);
    backdrop-filter: blur(5px);
}

.ap-mini-cart__panel {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);

    height: 100dvh;
    max-height: 100dvh;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    background:
        radial-gradient(circle at 50% 0%, rgba(255, 212, 0, 0.14), transparent 30%),
        linear-gradient(180deg, #fffaf0, #fff1dc);

    box-shadow: -24px 0 70px rgba(24, 0, 12, 0.28);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.ap-mini-cart.is-open .ap-mini-cart__panel {
    transform: translateX(0);
}

.ap-mini-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 22px 18px;
    border-bottom: 1px solid rgba(23, 17, 15, 0.08);
}

.ap-mini-cart__header span {
    display: block;
    margin-bottom: 4px;
    color: var(--ap-magenta);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ap-mini-cart__header h2 {
    margin: 0;
    color: #2a1712;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.ap-mini-cart__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--ap-magenta);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.ap-mini-cart__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 18px 8px;
}

.ap-mini-cart__empty {
    padding: 26px 20px;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 14px 34px rgba(23, 17, 15, 0.08);
}

.ap-mini-cart__empty strong {
    display: block;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: 1.15rem;
}

.ap-mini-cart__empty p {
    margin: 8px 0 0;
    color: rgba(42, 23, 18, 0.68);
    font-size: 0.94rem;
    line-height: 1.45;
}

.ap-mini-cart__items {
    display: grid;
    gap: 14px;
}

.ap-mini-cart-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(23, 17, 15, 0.08);
}

.ap-mini-cart-item img {
    width: 86px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
    background: #f7ead8;
}

.ap-mini-cart-item__content {
    min-width: 0;
}

.ap-mini-cart-item__content span {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--ap-magenta);
    font-size: 0.72rem;
    font-weight: 700;
}

.ap-mini-cart-item__content h3 {
    margin: 0 0 6px;
    color: #2a1712;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.16;
}

.ap-mini-cart-item__content strong {
    display: block;
    color: var(--ap-magenta);
    font-family: var(--ap-font-title);
    font-size: 1.05rem;
    font-weight: 700;
}

.ap-mini-cart-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
}

.ap-mini-cart-item__actions button {
    min-width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: #7b0034;
    background: #ffe7a1;
    font-weight: 700;
    cursor: pointer;
}

.ap-mini-cart-item__actions b {
    min-width: 22px;
    color: #2a1712;
    text-align: center;
}

.ap-mini-cart-item__actions [data-cart-remove] {
    width: auto;
    padding: 0 10px;
    color: #ffffff;
    background: var(--ap-magenta);
    font-size: 0.78rem;
}

.ap-mini-cart__footer {
    flex: 0 0 auto;

    max-height: 46dvh;
    overflow-y: auto;

    display: grid;
    gap: 12px;
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(23, 17, 15, 0.08);
    background: rgba(255, 250, 240, 0.96);
}

.ap-mini-cart__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #ffffff;
    background: var(--ap-magenta);
}

.ap-mini-cart__total span {
    font-size: 0.88rem;
    font-weight: 700;
}

.ap-mini-cart__total strong {
    font-family: var(--ap-font-title);
    font-size: 1.35rem;
    font-weight: 700;
}

.ap-mini-cart__field {
    display: grid;
    gap: 6px;
}

.ap-mini-cart__field span {
    color: #2a1712;
    font-size: 0.82rem;
    font-weight: 700;
}

.ap-mini-cart__field input,
.ap-mini-cart__field textarea {
    width: 100%;
    border: 1px solid rgba(23, 17, 15, 0.12);
    border-radius: 16px;
    outline: none;
    color: #2a1712;
    background: #ffffff;
    font-size: 0.94rem;
}

.ap-mini-cart__field input {
    min-height: 42px;
    padding: 0 14px;
}

.ap-mini-cart__field textarea {
    resize: none;
    padding: 12px 14px;
}

.ap-mini-cart__field input:focus,
.ap-mini-cart__field textarea:focus {
    border-color: var(--ap-yellow);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.24);
}

.ap-mini-cart__checkout {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #18a83f;
    font-family: var(--ap-font-title);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(24, 168, 63, 0.22);
}

.ap-mini-cart__checkout.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.ap-mini-cart__clear {
    border: 0;
    color: var(--ap-magenta);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 560px) {
    .ap-mini-cart {
        place-items: end stretch;
    }

    .ap-mini-cart__panel {
        width: 100%;
        height: min(92dvh, 760px);
        max-height: 92dvh;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
    }

    .ap-mini-cart.is-open .ap-mini-cart__panel {
        transform: translateY(0);
    }

    .ap-mini-cart__header {
        padding: 20px 18px 14px;
    }

    .ap-mini-cart__body {
        min-height: 0;
        padding: 16px 14px 8px;
    }

    .ap-mini-cart__footer {
        max-height: 52dvh;
        padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   Iconos PNG Ambros
   ========================================================================== */

.ap-header__cart-icon img,
.ap-header__status-icon img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.ap-header__cart-icon,
.ap-header__status-icon {
    overflow: hidden;
}

.ap-menu-search__icon img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    opacity: 0.62;
}

.ap-hero__btn-icon {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.ap-product-card__add img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
    transition: transform 0.22s ease;
}

.ap-product-card__add:hover img {
    transform: scale(1.08) rotate(-4deg);
}

/* Limpieza por si quedaron SVG antiguos */
.ap-product-card__add svg,
.ap-header__cart-icon svg,
.ap-header__status-icon svg,
.ap-menu-search__icon svg,
.ap-hero__btn svg {
    display: none;
}

/* Responsive iconos PNG */
@media (max-width: 820px) {
    .ap-header__cart-icon img,
    .ap-header__status-icon img {
        width: 22px;
        height: 22px;
    }

    .ap-hero__btn-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 680px) {
    .ap-menu-search__icon img {
        width: 24px;
        height: 24px;
    }

    .ap-product-card__add img {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 420px) {
    .ap-header__cart-icon img,
    .ap-header__status-icon img {
        width: 19px;
        height: 19px;
    }
}

/* ==========================================================================
   Ubicación Ambros - Mapa full width + geolocalización
   ========================================================================== */

.ap-location {
    position: relative;
    overflow: hidden;
    padding: 96px 0 0;
     background: #ffffff;
}

.ap-location::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(90deg, rgba(192, 0, 90, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(192, 0, 90, 0.07) 1px, transparent 1px);
    background-size: 84px 84px;
    pointer-events: none;
}

/* Contenedor general */
.ap-location__container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
}

/* Contenido superior centrado */
.ap-location__content {
    width: min(100% - 32px, 820px);
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.ap-location__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 16px;
    margin-inline: auto;
    border-radius: 999px;
    color: #8b1235;
    background: rgba(192, 0, 90, 0.1);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.ap-location__content h2 {
    max-width: 720px;
    margin: 18px auto 12px;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.ap-location__content p {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(42, 23, 18, 0.72);
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.62;
}

.ap-location__info {
    width: min(100%, 700px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px auto 0;
}

.ap-location__info article {
    padding: 16px;
    border: 1px solid rgba(192, 0, 90, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(23, 17, 15, 0.06);
}

.ap-location__info span {
    display: block;
    margin-bottom: 6px;
    color: var(--ap-magenta);
    font-size: 0.78rem;
    font-weight: 700;
}

.ap-location__info strong {
    display: block;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.28;
}

.ap-location__status {
    width: min(100%, 700px);
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: 18px;
    color: #6b4a22;
    background: rgba(255, 212, 0, 0.2);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ap-location__status.is-success {
    color: #0c6b2a;
    background: rgba(24, 168, 63, 0.12);
}

.ap-location__status.is-error {
    color: #9a0c4c;
    background: rgba(192, 0, 90, 0.1);
}

.ap-location__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 22px auto 0;
}

.ap-location__btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-family: var(--ap-font-title);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.ap-location__btn:hover {
    transform: translateY(-2px);
}

.ap-location__btn--primary {
    color: #ffffff;
    background: var(--ap-magenta);
}

.ap-location__btn--secondary {
    color: #7b0034;
    background: var(--ap-yellow);
}

.ap-location__whatsapp {
    min-height: 48px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 14px auto 0;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: #18a83f;
    font-family: var(--ap-font-title);
    font-size: 0.92rem;
    font-weight: 700;
}

.ap-location__whatsapp[aria-disabled="true"] {
    opacity: 0.48;
    pointer-events: none;
}

/* Mapa full width */
.ap-location__map {
    position: relative;
    width: 100%;
    min-height: 540px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f3e5ce;
    box-shadow: none;
}

.ap-location__map iframe {
    width: 100%;
    height: 100%;
    min-height: 540px;
    display: block;
    border: 0;
    filter: saturate(1.05) contrast(1.02);
}

/* Tarjeta flotante sobre mapa */
.ap-location__map-card {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 24px;
    width: min(100% - 32px, 460px);
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 22px;
    color: #ffffff;
    background: rgba(122, 0, 52, 0.88);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.ap-location__map-card strong {
    font-family: var(--ap-font-title);
    font-size: 1.08rem;
    font-weight: 700;
}

.ap-location__map-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

/* ==========================================================================
   Responsive ubicación
   ========================================================================== */

@media (max-width: 960px) {
    .ap-location__content {
        width: min(100% - 32px, 720px);
        max-width: 720px;
    }

    .ap-location__content p {
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .ap-location {
        padding: 72px 0 0;
    }

    .ap-location__container {
        width: 100%;
        gap: 28px;
    }

    .ap-location__content {
        width: min(100% - 24px, 720px);
    }

    .ap-location__content h2 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .ap-location__content p {
        font-size: 0.96rem;
    }

    .ap-location__info {
        grid-template-columns: 1fr;
    }

    .ap-location__actions {
        flex-direction: column;
    }

    .ap-location__btn,
    .ap-location__whatsapp {
        width: 100%;
    }

    .ap-location__map {
        min-height: 420px;
    }

    .ap-location__map iframe {
        min-height: 420px;
    }

    .ap-location__map-card {
        bottom: 18px;
        width: min(100% - 24px, 420px);
    }
}

/* ==========================================================================
   Comentarios y calificaciones Ambros
   ========================================================================== */

.ap-reviews {
    position: relative;
    padding: 96px 0 110px;
    background: #ffffff;
}

.ap-reviews__container {
    width: min(100% - 32px, var(--ap-container));
    margin-inline: auto;
}

.ap-reviews__heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.ap-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: #8b1235;
    background: rgba(192, 0, 90, 0.1);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.ap-reviews__heading h2 {
    margin: 18px 0 12px;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.ap-reviews__heading p {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(42, 23, 18, 0.72);
    font-size: 1rem;
    line-height: 1.62;
}

.ap-reviews__layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 28px;
    align-items: start;
}

.ap-review-form {
    padding: 24px;
    border: 1px solid rgba(192, 0, 90, 0.1);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 212, 0, 0.16), transparent 34%),
        #fffaf3;
    box-shadow: 0 22px 60px rgba(42, 23, 18, 0.08);
}

.ap-review-form__trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.ap-review-form__field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.ap-review-form__field label,
.ap-review-form__field > span {
    color: #2a1712;
    font-size: 0.88rem;
    font-weight: 700;
}

.ap-review-form__field input,
.ap-review-form__field textarea {
    width: 100%;
    border: 1px solid rgba(23, 17, 15, 0.12);
    border-radius: 18px;
    outline: none;
    color: #2a1712;
    background: #ffffff;
    font-size: 0.96rem;
}

.ap-review-form__field input {
    min-height: 48px;
    padding: 0 15px;
}

.ap-review-form__field textarea {
    resize: vertical;
    min-height: 112px;
    padding: 14px 15px;
}

.ap-review-form__field input:focus,
.ap-review-form__field textarea:focus {
    border-color: var(--ap-yellow);
    box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.24);
}

.ap-review-stars {
    display: grid;
    gap: 10px;
}

.ap-review-stars label {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    outline: none;
}

.ap-review-stars input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ap-magenta);
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.ap-review-stars input:focus,
.ap-review-stars input:focus-visible {
    outline: none;
    box-shadow: none;
}

.ap-review-stars span {
    display: inline-flex;
    align-items: center;
    color: var(--ap-yellow);
    font-size: 1.08rem;
    line-height: 1;
    letter-spacing: 0.02em;
    outline: none;
}

/* Estado seleccionado más fino */
.ap-review-stars input:checked + span {
    color: var(--ap-yellow);
    text-shadow: 0 4px 12px rgba(255, 212, 0, 0.22);
}

.ap-review-form__btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--ap-magenta);
    font-family: var(--ap-font-title);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(192, 0, 90, 0.22);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.ap-review-form__btn:hover {
    transform: translateY(-2px);
    background: #a9004e;
    box-shadow: 0 20px 40px rgba(192, 0, 90, 0.26);
}

.ap-review-form__message {
    min-height: 22px;
    margin: 14px 0 0;
    color: #7b0034;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
}

.ap-review-form__message.is-success {
    color: #0c6b2a;
}

.ap-review-form__message.is-error {
    color: #9a0c4c;
}

.ap-reviews-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ap-review-card {
    min-height: 180px;
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fff8eb 100%);
    border: 1px solid rgba(192, 0, 90, 0.08);
    box-shadow: 0 18px 44px rgba(42, 23, 18, 0.07);
}

.ap-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ap-review-card__top strong {
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: 1rem;
    font-weight: 700;
}

.ap-review-card__top span {
    color: var(--ap-yellow);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.ap-review-card p {
    margin: 0;
    color: rgba(42, 23, 18, 0.72);
    font-size: 0.96rem;
    line-height: 1.58;
}

@media (max-width: 920px) {
    .ap-reviews__layout {
        grid-template-columns: 1fr;
    }

    .ap-reviews-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ap-reviews {
        padding: 72px 0 82px;
    }

    .ap-reviews__container {
        width: min(100% - 24px, var(--ap-container));
    }

    .ap-reviews__heading {
        margin-bottom: 30px;
    }

    .ap-reviews__heading h2 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .ap-reviews__layout {
        gap: 22px;
    }

    .ap-review-form {
        padding: 20px;
        border-radius: 24px;
    }

    .ap-reviews-list {
        grid-template-columns: 1fr;
    }

    .ap-review-card {
        min-height: auto;
    }
}

/* Quitar rectángulo feo al seleccionar estrellas */
.ap-review-stars label,
.ap-review-stars input,
.ap-review-stars span {
    outline: none;
    box-shadow: none;
}

.ap-review-stars input:focus,
.ap-review-stars input:focus-visible {
    outline: none;
    box-shadow: none;
}

.ap-review-stars label:focus,
.ap-review-stars label:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   Reseñas Google Maps Ambros
   ========================================================================== */

.ap-google-reviews {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    background: #ffffff;
}

.ap-google-reviews::before {
    content: "";
    position: absolute;
    left: -140px;
    top: -160px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 212, 0, 0.16);
    pointer-events: none;
}

.ap-google-reviews::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -160px;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    background: rgba(192, 0, 90, 0.08);
    pointer-events: none;
}

.ap-google-reviews__container {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--ap-container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 32px;
    align-items: center;
}

.ap-google-reviews__content {
    max-width: 720px;
}

.ap-google-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: #8b1235;
    background: rgba(192, 0, 90, 0.1);
    font-family: var(--ap-font-title);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.ap-google-reviews__content h2 {
    max-width: 680px;
    margin: 18px 0 12px;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.ap-google-reviews__content p {
    max-width: 560px;
    margin: 0;
    color: rgba(42, 23, 18, 0.72);
    font-size: 1rem;
    line-height: 1.62;
}

.ap-google-reviews__score {
    width: fit-content;
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(192, 0, 90, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(42, 23, 18, 0.08);
}

.ap-google-reviews__score strong {
    color: var(--ap-yellow);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 6px 18px rgba(255, 212, 0, 0.22);
}

.ap-google-reviews__score span {
    color: rgba(42, 23, 18, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
}

.ap-google-reviews__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ap-google-reviews__btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    font-family: var(--ap-font-title);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.ap-google-reviews__btn:hover {
    transform: translateY(-2px);
}

.ap-google-reviews__btn--primary {
    color: #ffffff;
    background: var(--ap-magenta);
    
}

.ap-google-reviews__btn--primary:hover {
    background: #a9004e;
   
}

.ap-google-reviews__btn--secondary {
    color: #7b0034;
    background: var(--ap-yellow);

}

.ap-google-reviews__content small {
    display: block;
    margin-top: 14px;
    color: rgba(42, 23, 18, 0.55);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ap-google-reviews__card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(192, 0, 90, 0.08);
    border-radius: 30px;
    background: #fffaf3;
    box-shadow: 0 24px 70px rgba(42, 23, 18, 0.1);
}

.ap-google-reviews__card::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(255, 212, 0, 0.24);
    pointer-events: none;
}

.ap-google-reviews__icon {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(42, 23, 18, 0.08);
}

.ap-google-reviews__icon img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

.ap-google-reviews__card strong {
    position: relative;
    z-index: 2;
    display: block;
    color: #2a1712;
    font-family: var(--ap-font-title);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.014em;
}

.ap-google-reviews__card p {
    position: relative;
    z-index: 2;
    margin: 10px 0 18px;
    color: rgba(42, 23, 18, 0.72);
    font-size: 0.96rem;
    line-height: 1.58;
}

.ap-google-reviews__card a {
    position: relative;
    z-index: 2;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    color: #ffffff;
    background: #18a83f;
    font-family: var(--ap-font-title);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.ap-google-reviews__card a:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive reseñas Google
   ========================================================================== */

@media (max-width: 860px) {
    .ap-google-reviews__container {
        grid-template-columns: 1fr;
    }

    .ap-google-reviews__content {
        max-width: 720px;
        margin-inline: auto;
        text-align: center;
    }

    .ap-google-reviews__content h2,
    .ap-google-reviews__content p,
    .ap-google-reviews__score,
    .ap-google-reviews__actions {
        margin-inline: auto;
    }

    .ap-google-reviews__actions {
        justify-content: center;
    }

    .ap-google-reviews__card {
        max-width: 520px;
        margin-inline: auto;
        text-align: center;
    }

    .ap-google-reviews__icon {
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .ap-google-reviews {
        padding: 72px 0;
    }

    .ap-google-reviews__container {
        width: min(100% - 24px, var(--ap-container));
        gap: 24px;
    }

    .ap-google-reviews__content h2 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .ap-google-reviews__content p {
        font-size: 0.96rem;
    }

    .ap-google-reviews__score {
        width: 100%;
    }

    .ap-google-reviews__actions {
        flex-direction: column;
    }

    .ap-google-reviews__btn {
        width: 100%;
    }

    .ap-google-reviews__card {
        padding: 24px;
        border-radius: 26px;
    }
}

/* ==========================================================================
   Limpieza visual - quitar formas decorativas Google Reviews
   ========================================================================== */

.ap-google-reviews::before,
.ap-google-reviews::after,
.ap-google-reviews__card::before {
    display: none;
}


/* ==========================================================================
   Animaciones suaves de entrada - Productos
   ========================================================================== */

.ap-product-card {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    will-change: opacity, transform;
}

.ap-product-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Entrada escalonada */
.ap-product-card:nth-child(1) {
    transition-delay: 0.04s;
}

.ap-product-card:nth-child(2) {
    transition-delay: 0.08s;
}

.ap-product-card:nth-child(3) {
    transition-delay: 0.12s;
}

.ap-product-card:nth-child(4) {
    transition-delay: 0.16s;
}

.ap-product-card:nth-child(5) {
    transition-delay: 0.20s;
}

.ap-product-card:nth-child(6) {
    transition-delay: 0.24s;
}

.ap-product-card:nth-child(7) {
    transition-delay: 0.28s;
}

.ap-product-card:nth-child(8) {
    transition-delay: 0.32s;
}

.ap-product-card:nth-child(9) {
    transition-delay: 0.36s;
}

.ap-product-card:nth-child(10) {
    transition-delay: 0.40s;
}

.ap-product-card:nth-child(11) {
    transition-delay: 0.44s;
}

.ap-product-card:nth-child(12) {
    transition-delay: 0.48s;
}

/* Hover solo en equipos con mouse */
@media (hover: hover) and (pointer: fine) {
    .ap-product-card.is-visible:hover {
        transform: translateY(-6px) scale(1);
        border-color: var(--ap-yellow);
        box-shadow:
            0 34px 70px rgba(20, 0, 14, 0.38),
            0 0 0 1px rgba(255, 212, 0, 0.15);
    }

    .ap-product-card.is-visible:hover .ap-product-card__image img {
        transform: scale(1.045);
    }
}

/* Si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .ap-product-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Difuminado inferior en scroll de productos
   ========================================================================== */

.ap-products-grid {
    --ap-products-fade-size: 86px;

    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 calc(100% - var(--ap-products-fade-size)),
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 calc(100% - var(--ap-products-fade-size)),
        transparent 100%
    );

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* ==========================================================================
   HEADER - Estado abierto/cerrado
   ========================================================================== */

.ap-header__status {
    cursor: default;
    text-decoration: none;
    user-select: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease;
}

/* Abierto: color marca sólido */
.ap-header__status.is-open {
    background: var(--ap-magenta);
    opacity: 1;
    box-shadow: none;
}

.ap-header__status.is-open .ap-header__status-text {
    color: #ffffff;
    opacity: 1;
}

.ap-header__status.is-open .ap-header__status-icon {
    background: #24f000;
    opacity: 1;
    filter: none;
}

/* Cerrado: oscuro sólido */
.ap-header__status.is-closed {
    background: #3a3034;
    opacity: 1;
    box-shadow: none;
}

.ap-header__status.is-closed .ap-header__status-text {
    color: rgba(255, 255, 255, 0.86);
    opacity: 1;
}

.ap-header__status.is-closed .ap-header__status-icon {
    background: #d8d2cf;
    opacity: 1;
    filter: grayscale(1);
}

/* ==========================================================================
   Animación premium botones - Google Reviews + Ubicación
   ========================================================================== */

.ap-google-reviews__btn,
.ap-google-reviews__card a,
.ap-location__btn,
.ap-location__whatsapp {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    z-index: 1;

    transition:
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ap-google-reviews__btn::after,
.ap-google-reviews__card a::after,
.ap-location__btn::after,
.ap-location__whatsapp::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--ap-magenta);
    transition: width 0.35s ease;
}

.ap-google-reviews__btn:hover::after,
.ap-google-reviews__card a:hover::after,
.ap-location__btn:hover::after,
.ap-location__whatsapp:hover::after {
    width: 100%;
}

.ap-google-reviews__btn:hover,
.ap-google-reviews__card a:hover,
.ap-location__btn:hover,
.ap-location__whatsapp:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Botones primarios magenta */
.ap-google-reviews__btn--primary,
.ap-location__btn--primary {
    border: 2px solid var(--ap-magenta);
    background: var(--ap-magenta);
    color: #ffffff;
}

.ap-google-reviews__btn--primary::after,
.ap-location__btn--primary::after {
    background: var(--ap-magenta-dark);
}

/* Botones secundarios amarillos */
.ap-google-reviews__btn--secondary,
.ap-location__btn--secondary {
    border: 2px solid var(--ap-yellow);
    background: var(--ap-yellow);
    color: #7b0034;
}

.ap-google-reviews__btn--secondary::after,
.ap-location__btn--secondary::after {
    background: var(--ap-magenta);
}

/* Botones verdes tipo WhatsApp */
.ap-google-reviews__card a,
.ap-location__whatsapp {
    border: 2px solid #18a83f;
    background: #18a83f;
    color: #ffffff;
}

.ap-google-reviews__card a::after,
.ap-location__whatsapp::after {
    background: var(--ap-magenta);
}
/* ==========================================================================
   HEADER - Animación desde el centro hacia los lados
   ========================================================================== */

.ap-header__cart,
.ap-header__status,
.ap-header__brand {
    will-change: transform, opacity, filter;
}

/* Lado izquierdo: nace cerca del centro y sale hacia la izquierda */
.ap-header__cart {
    opacity: 0;
    transform: translateX(92px) scaleX(0.88);
    filter: blur(10px);
    animation: apHeaderCartFromCenter 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.18s;
}

/* Lado derecho: nace cerca del centro y sale hacia la derecha */
.ap-header__status {
    opacity: 0;
    transform: translateX(-92px) scaleX(0.88);
    filter: blur(10px);
    animation: apHeaderStatusFromCenter 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.18s;
}

/* Logo central */
.ap-header__brand {
    opacity: 0;
    transform: scale(0.72);
    filter: blur(8px);
    animation: apHeaderLogoCenterIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.42s;
}

@keyframes apHeaderCartFromCenter {
    0% {
        opacity: 0;
        transform: translateX(92px) scaleX(0.88);
        filter: blur(10px);
    }

    62% {
        opacity: 1;
        transform: translateX(-8px) scaleX(1.02);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
        filter: blur(0);
    }
}

@keyframes apHeaderStatusFromCenter {
    0% {
        opacity: 0;
        transform: translateX(-92px) scaleX(0.88);
        filter: blur(10px);
    }

    62% {
        opacity: 1;
        transform: translateX(8px) scaleX(1.02);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
        filter: blur(0);
    }
}

@keyframes apHeaderLogoCenterIn {
    0% {
        opacity: 0;
        transform: scale(0.72);
        filter: blur(8px);
    }

    65% {
        opacity: 1;
        transform: scale(1.07);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@media (max-width: 520px) {
    .ap-header__cart {
        transform: translateX(42px) scaleX(0.92);
        filter: blur(6px);
        animation-duration: 0.74s;
    }

    .ap-header__status {
        transform: translateX(-42px) scaleX(0.92);
        filter: blur(6px);
        animation-duration: 0.74s;
    }

    .ap-header__brand {
        animation-duration: 0.74s;
        animation-delay: 0.34s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-header__cart,
    .ap-header__status,
    .ap-header__brand {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

.ap-header__cart {
    transform: translateX(92px);
}

.ap-header__status {
    transform: translateX(-92px);
}