@media (max-width: 767px) {
    :root {
        --header-height: 52px;
        --footer-height: 40px;
        --container-padding: 0.75rem;
    }

    html,
    body {
        width: 100%;
        height: auto;
        min-height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    main {
        display: block;
        min-height: 0;
        overflow: visible;
    }

    .site-header,
    .site-footer {
        position: relative;
        left: 0;
        width: 100%;
        margin-inline: 0;
    }

    .header {
        min-height: var(--header-height);
        justify-content: center;
        padding-inline: 0.75rem;
    }

    .logo {
        font-size: 0.95rem;
        text-align: center;
        white-space: normal;
    }

    .hero {
        position: relative;
        width: 100%;
        min-height: 48rem;
        height: auto;
        display: flex;
        align-items: flex-start;
        overflow: hidden;
        padding: 1.1rem 0 2rem;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(
                to bottom,
                rgb(248 241 230 / 94%) 0%,
                rgb(248 241 230 / 83%) 42%,
                rgb(248 241 230 / 20%) 68%,
                transparent 100%
            );
        pointer-events: none;
    }

    .hero__picture {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero__background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
    }

    .hero__content {
        position: relative;
        z-index: 2;
        top: auto;
        left: auto;
        width: min(calc(100% - 1.5rem), 28rem);
        margin-inline: auto;
        transform: none;
        text-align: center;
    }

    .hero__eyebrow {
        margin-bottom: 0.55rem;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .hero__title {
        width: 100%;
        margin-inline: auto;
        gap: 0.05em;
        font-size: clamp(2.75rem, 13vw, 4.2rem);
        line-height: 0.9;
    }

    .hero__title em {
        font-size: 0.58em;
    }

    .hero__description {
        width: 100%;
        max-width: 22rem;
        margin: 0.85rem auto 0;
        font-size: 0.88rem;
        line-height: 1.35;
        text-align: center;
    }

    .package-options {
        width: 100%;
        max-width: 23rem;
        margin: 0.9rem auto 0;
        gap: 0.6rem;
    }

    .package-option {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem 0.75rem;
        padding: 0.7rem;
        text-align: left;
    }

    .package-option h2 {
        font-size: 0.88rem;
    }

    .package-option strong {
        font-size: 1.2rem;
    }

    .package-option a {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 2.4rem;
    }

    .footer {
        min-height: var(--footer-height);
        padding-inline: 0.5rem;
    }

    .footer p {
        font-size: 0.72rem;
    }

    .order-page {
        min-height: calc(
            100svh
            - var(--header-height)
            - var(--footer-height)
        );
        padding: 1rem 0.75rem;
    }

    .order-card {
        width: 100%;
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .order-card h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .quantity-control__buttons {
        justify-content: center;
    }
}

/* INICIO: ajuste móvil portada y dirección */
@media (max-width: 767px) {

    /*
     * Todo el contenido textual comparte el mismo eje central.
     */
    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(calc(100% - 1.5rem), 28rem);
        min-height: calc(
            100svh
            - var(--header-height)
            - var(--footer-height)
            - 2.2rem
        );
        margin-inline: auto;
        text-align: center;
    }

    .hero__brand {
        width: 100%;
        max-width: 23rem;
        margin-inline: auto;
    }

    .hero__brand .hero__eyebrow {
        width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .hero__title {
        width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .hero__description,
    .package-options {
        width: 100%;
        max-width: 23rem;
        margin-inline: auto;
    }

    /*
     * La dirección baja al final del Hero, justo antes del footer.
     */
    .pickup-location {
        width: min(100%, 23rem);
        margin: auto auto 0;
        padding: 0.65rem 0.85rem;
        border: 0;
        border-radius: 0.75rem;
        background: rgb(0 0 0 / 58%);
        color: #ffffff;
        box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 18%);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .pickup-location strong {
        color: #ffffff;
    }

    .pickup-copy {
        min-height: 3rem;
        margin-top: 0.15rem;
        color: #ffffff;
    }

    .pickup-copy__address,
    .pickup-copy__prompt {
        color: #ffffff;
        text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
    }

    .pickup-copy__prompt {
        font-weight: 800;
    }

    .pickup-copy__confirmation {
        min-height: 1rem;
        margin-top: 0.15rem;
        color: #ffffff;
        text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
    }
}
/* FIN: ajuste móvil portada y dirección */

/* INICIO: mapas fijos móvil CSPC */
@media (max-width: 767px) {
    .pickup-location {
        padding: 0.7rem 0.85rem;
        border-radius: 0.75rem;
        background: rgb(0 0 0 / 58%);
        color: #ffffff;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .pickup-location strong,
    .pickup-location__address {
        color: #ffffff;
        text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
    }

    .pickup-location__maps {
        flex-wrap: wrap;
    }

    .map-link {
        flex: 1 1 8.5rem;
        max-width: 10rem;
        background: rgb(255 255 255 / 94%);
        color: #23180f;
    }
}
/* FIN: mapas fijos móvil CSPC */
