.hero {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--color-background);
}

.hero__picture,
.hero__background {
    width: 100%;
    height: 100%;
}

.hero__background {
    object-fit: contain;
    object-position: center;
}

.hero__content {
    position: absolute;
    top: 48%;
    left: max(
        1.5rem,
        calc((100% - 72rem) / 2 - 1.5rem)
    );
    width: min(40%, 34rem);
    transform: translateY(-50%);
    color: #3b210e;
}

.hero__eyebrow,
.order-eyebrow {
    margin-bottom: 0.8rem;
    color: #a56618;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__title {
    display: flex;
    width: max-content;
    flex-direction: column;
    align-items: center;
    gap: 0.08em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.hero__title span,
.hero__title em {
    width: 100%;
    text-align: center;
}

.hero__title em {
    color: #b97818;
    font-size: 0.62em;
    font-weight: 500;
}

.hero__description {
    max-width: 28rem;
    margin-top: 1.25rem;
    color: #183650;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.package-options {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.package-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgb(165 102 24 / 28%);
    border-radius: 0.85rem;
    background: rgb(255 250 242 / 82%);
    box-shadow: 0 0.45rem 1.2rem rgb(59 33 14 / 7%);
    backdrop-filter: blur(3px);
}

.package-option h2 {
    color: #3b210e;
    font-size: 0.95rem;
    line-height: 1.2;
}

.package-option p {
    margin-top: 0.15rem;
    color: #76573b;
    font-size: 0.78rem;
}

.package-option strong {
    color: #ad6818;
    font-size: 1.35rem;
}

.package-option a,
.order-whatsapp {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    padding-inline: 1.1rem;
    border-radius: 999px;
    background: #153b57;
    color: #fffaf2;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.order-page {
    width: 100%;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: var(--color-background);
}

.order-card {
    width: min(100%, 32rem);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.order-back {
    display: inline-block;
    margin-bottom: 1.8rem;
    color: var(--color-primary);
    font-weight: 700;
}

.order-card h1 {
    color: #3b210e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.3rem);
    line-height: 1;
}

.order-price {
    margin-top: 0.8rem;
    color: #ad6818;
    font-size: 2.2rem;
    font-weight: 800;
}

.order-summary {
    margin-block: 1.6rem;
}

.order-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.order-summary dt {
    color: var(--color-text-muted);
}

.order-summary dd {
    margin: 0;
    font-weight: 800;
}

.order-whatsapp {
    width: 100%;
    min-height: 3rem;
}

.order-pending {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f4eadb;
    color: #6e5137;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .hero__content {
        top: 4%;
        left: 7%;
        width: 86%;
        transform: none;
        text-align: center;
    }

    .hero__title {
        margin-inline: auto;
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }

    .hero__description {
        margin-inline: auto;
    }

    .package-option {
        grid-template-columns: minmax(0, 1fr) auto;
        text-align: left;
    }

    .package-option a {
        grid-column: 1 / -1;
    }
}

/* Ancho compacto de descripción y paquetes */
.hero__description,
.package-options {
    width: 25rem;
    max-width: 100%;
}

.package-option {
    grid-template-columns: minmax(0, 1fr) 3rem 4rem;
    padding: 0.72rem 0.8rem;
}

/* Desplaza la composición fotográfica dentro de su marco */
.hero__background {
    object-fit: contain;
    object-position: 46% center;
}

/* Centrado del texto descriptivo de la portada */
.hero__description {
    text-align: center;
}

.order-unit-price {
    margin-top: 0.9rem;
    color: var(--color-text-muted);
}

.order-unit-price strong {
    color: #ad6818;
}

.quantity-control {
    margin-top: 1.6rem;
}

.quantity-control__label {
    margin-bottom: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

.quantity-control__buttons {
    display: grid;
    grid-template-columns: 3rem 4rem 3rem;
    align-items: center;
    justify-content: start;
    gap: 0.45rem;
}

.quantity-button {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fffaf2;
    color: #153b57;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
}

.quantity-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.quantity-value {
    color: #3b210e;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.order-total {
    color: #ad6818;
    font-size: 1.2rem;
}

.customer-field {
    margin-top: 1.5rem;
}

.customer-field label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

.customer-field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: #fffaf2;
    color: var(--color-text);
    outline: none;
}

.customer-field input:focus {
    border-color: #ad6818;
    box-shadow: 0 0 0 3px rgb(173 104 24 / 14%);
}

.pickup-location {
    width: 25rem;
    max-width: 100%;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(138,79,32,.20);
    color: #5e4635;
    font-size: .84rem;
    line-height: 1.45;
    text-align: center;
}

.pickup-location strong {
    color: #8a4f20;
}

@media (max-width: 767px) {
    .pickup-location {
        margin-inline: auto;
    }
}

/* La portada usa exactamente el mismo marco */
.hero {
    width: var(--page-frame-width);
    margin-inline: auto;
}

@media (max-width: 767px) {
    .hero,
    .site-header,
    .site-footer {
        width: 100%;
    }
}

/* CSPC - Centrar "DULCE ARTESANAL CUBANO" respecto al título */




/* Centrado exacto del lema respecto al título */
.hero__brand {
    width: max-content;
    max-width: 100%;
}

.hero__brand .hero__eyebrow {
    display: block;
    width: 100%;
    margin: 0 0 0.9rem;
    text-align: center;
    transform: none;
}

/* INICIO: mapas fijos CSPC */
.pickup-location__address {
    margin-top: 0.25rem;
    color: #5e4635;
    line-height: 1.45;
    text-align: center;
}

.pickup-location__maps {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.map-link {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgb(138 79 32 / 22%);
    border-radius: 999px;
    background: rgb(255 250 242 / 88%);
    color: #3b210e;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0.25rem 0.7rem rgb(59 33 14 / 8%);
}

.map-link:hover,
.map-link:focus-visible {
    border-color: #8a4f20;
    transform: translateY(-1px);
}

.map-link__icon {
    font-size: 1rem;
    line-height: 1;
}

.map-link__pin {
    width: 0.85rem;
    height: 0.85rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            #4285f4 0 25%,
            #34a853 25% 50%,
            #fbbc05 50% 75%,
            #ea4335 75% 100%
        );
    color: transparent;
    font-size: 0;
}
/* FIN: mapas fijos CSPC */


.package-card p{
    width:100%;
    text-align:center;
    margin:.15rem 0 0;
}


.package-weight{
    display:block;
    width:100%;
    margin:.20rem 0 .35rem;
    text-align:center;
    font-size:.82rem;
    color:#6b5b4d;
}

/* CSPC: centrar el peso exactamente debajo del título del paquete */
.package-option > div:first-child {
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

.package-option > div:first-child h2,
.package-option > div:first-child .package-weight {
    width: 100%;
    margin-inline: 0;
    text-align: center;
}

