.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.header-actions {
    margin-left: auto;
}

.footer-logo {
    height: 5.78rem;
    width: auto;
    object-fit: contain;
}

.segment-switcher {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
}

.segment-switcher--header {
    padding: 0 0 0.45rem;
}

.segment-switcher-bar {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 40;
    background: #000000;
    border-bottom: 1px solid rgba(65, 74, 52, 0.35);
    padding: 0.65rem 1.25rem 0.85rem;
}

.segment-switcher--mobile {
    justify-content: center;
    gap: 0.85rem;
    max-width: 72rem;
    margin: 0 auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.55rem;
}

.segment-switcher--mobile::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    body.has-segment-switcher .site-main {
        padding-top: 9.5rem;
    }
}

.segment-switcher__item {
    position: relative;
    flex: 0 0 auto;
    display: block;
    border-radius: 0.65rem;
    outline: none;
}

.segment-switcher__icon {
    display: block;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    object-fit: cover;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.segment-switcher--mobile .segment-switcher__icon {
    width: 2.35rem;
    height: 2.35rem;
}

.segment-switcher__item:hover .segment-switcher__icon,
.segment-switcher__item:focus-visible .segment-switcher__icon {
    transform: scale(1.05);
    opacity: 0.92;
}

.segment-switcher__item--actual {
    cursor: default;
}

.segment-switcher__item--actual::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    transform: translateX(-50%);
    width: 1.35rem;
    height: 2px;
    background: #ffffff;
    border-radius: 9999px;
}

.segment-switcher__item--actual:hover .segment-switcher__icon {
    transform: none;
    opacity: 1;
}

.segment-switcher--mobile .segment-switcher__item--actual::after {
    bottom: -0.35rem;
    width: 1.5rem;
}

.segment-switcher__tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(-4px);
    padding: 0.3rem 0.55rem;
    border-radius: 0.45rem;
    background: rgba(16, 20, 21, 0.96);
    color: #fff;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 60;
}

.segment-switcher__tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(16, 20, 21, 0.96);
}

@media (hover: hover) and (pointer: fine) {
    .segment-switcher__item:hover .segment-switcher__tooltip,
    .segment-switcher__item:focus-visible .segment-switcher__tooltip,
    .segment-switcher__item--actual:hover .segment-switcher__tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

@media (min-width: 768px) {
    .segment-switcher--header .segment-switcher__icon {
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 0.65rem;
        transform-origin: center bottom;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .segment-switcher--header .segment-switcher__item:hover .segment-switcher__icon,
    .segment-switcher--header .segment-switcher__item:focus-visible .segment-switcher__icon {
        transform: scale(1.2);
        opacity: 1;
    }

    .segment-switcher--header .segment-switcher__tooltip {
        font-size: 0.7rem;
    }
}

@media (min-width: 1024px) {
    .segment-switcher--header .segment-switcher__icon {
        width: 1.88rem;
        height: 1.88rem;
    }
}

.scanning-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #a1fbff, transparent);
    animation: scan 3s linear infinite;
    position: absolute;
    width: 100%;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.pulse-border {
    animation: border-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cyber-grid {
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 24px 24px;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.producto-descripcion p + p {
    margin-top: 0.75rem;
}

.producto-descripcion ul,
.producto-descripcion ol {
    margin: 0.75rem 0 0 1.25rem;
}

body.package-gallery-open {
    overflow: hidden;
}

.package-gallery {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.package-gallery.hidden {
    display: none;
}

.package-gallery__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(6px);
}

.package-gallery__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 56rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.package-gallery__close {
    position: absolute;
    top: -0.25rem;
    right: 0;
    color: #e2e8f0;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
}

.package-gallery__title {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    padding-right: 2.5rem;
}

.package-gallery__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
}

.package-gallery__image {
    max-width: 100%;
    max-height: min(70vh, 40rem);
    object-fit: contain;
    border-radius: 1rem;
    border: 1px solid rgba(161, 251, 255, 0.2);
    box-shadow: 0 0 30px rgba(161, 251, 255, 0.12);
}

.package-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(161, 251, 255, 0.3);
    background: rgba(15, 23, 42, 0.85);
    color: #a1fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.package-gallery__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.package-gallery__nav--prev {
    left: 0.5rem;
}

.package-gallery__nav--next {
    right: 0.5rem;
}

.package-gallery__counter {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.package-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.package-gallery__thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.65;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.package-gallery__thumb.is-active {
    border-color: #a1fbff;
    opacity: 1;
}

.package-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #a1fbff;
    color: #0f172a;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.cart-qty__btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(161, 251, 255, 0.25);
    background: rgba(15, 23, 42, 0.7);
    color: #a1fbff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.cart-app--updating .cart-qty__btn,
.cart-app--updating .cart-qty__input,
.cart-app--updating .cart-remove {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

.cart-qty .cart-qty__input {
    width: 3rem;
    min-height: 2rem;
    text-align: center;
    border-radius: 0.5rem;
    border: 1px solid rgba(161, 251, 255, 0.45) !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #a1fbff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.35rem 0.25rem;
    -moz-appearance: textfield;
    appearance: textfield;
    box-shadow: none !important;
}

.cart-qty .cart-qty__input:focus {
    outline: none;
    border-color: #a1fbff !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(161, 251, 255, 0.2) !important;
}

.cart-qty .cart-qty__input:-webkit-autofill,
.cart-qty .cart-qty__input:-webkit-autofill:hover,
.cart-qty .cart-qty__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
    box-shadow: 0 0 0 1000px #0f172a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #a1fbff;
}

.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-remove,
.checkout-remove {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

#cart-items > .cart-item:nth-child(even),
#checkout-lineas > .checkout-linea:nth-child(even) {
    background-color: rgba(148, 163, 184, 0.07);
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 6rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: calc(100vw - 2rem);
    transform: translateX(-50%) translateY(1.25rem) scale(0.96);
    opacity: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: #f8fafc;
    border: 2px solid rgba(161, 251, 255, 0.55);
    border-radius: 1rem;
    padding: 0.95rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        0 16px 40px rgba(2, 6, 23, 0.55),
        0 0 24px rgba(161, 251, 255, 0.18);
    pointer-events: none;
}

.cart-toast--visible {
    display: flex;
    pointer-events: auto;
}

.cart-toast__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.cart-toast--action .cart-toast__content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.cart-toast__icon {
    font-size: 1.35rem;
    color: #a1fbff;
    flex-shrink: 0;
}

.cart-toast__message {
    color: #f8fafc;
}

.cart-toast__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(161, 251, 255, 0.45);
    background: rgba(161, 251, 255, 0.08);
    color: #a1fbff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-toast__action:hover {
    background: rgba(161, 251, 255, 0.16);
    border-color: rgba(161, 251, 255, 0.7);
}

.cart-toast.hidden {
    display: none;
}

.cart-toast--animate {
    animation:
        cart-toast-in 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) forwards,
        cart-toast-glow 1.1s ease-in-out 0.35s 2;
}

.cart-toast--error {
    border-color: rgba(248, 113, 113, 0.65);
    box-shadow:
        0 16px 40px rgba(2, 6, 23, 0.55),
        0 0 20px rgba(248, 113, 113, 0.2);
}

.cart-toast--error .cart-toast__icon {
    color: #fca5a5;
}

@keyframes cart-toast-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(1.25rem) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes cart-toast-glow {
    0%,
    100% {
        box-shadow:
            0 16px 40px rgba(2, 6, 23, 0.55),
            0 0 18px rgba(161, 251, 255, 0.15);
    }

    50% {
        box-shadow:
            0 16px 40px rgba(2, 6, 23, 0.55),
            0 0 34px rgba(161, 251, 255, 0.42);
    }
}

.package-feature-thumb {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-block;
    background: rgba(15, 23, 42, 0.5);
}

.package-feature-thumb img {
    display: block;
}

/* Modal de recomendaciones cross-segmento (carrito) */
.cart-rec-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cart-rec-modal.hidden {
    display: none;
}

.cart-rec-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.cart-rec-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 22rem;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(192, 202, 255, 0.2);
}

.cart-rec-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    color: rgba(192, 202, 255, 0.8);
    padding: 0.25rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cart-rec-modal__close:hover {
    color: #fff;
    background: rgba(161, 251, 255, 0.1);
}

.cart-rec-modal__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 2rem 1rem 0;
}

.cart-rec-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.cart-rec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.55rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(192, 202, 255, 0.16);
    background: rgba(0, 0, 0, 0.18);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cart-rec-card:hover {
    border-color: rgba(161, 251, 255, 0.35);
    background: rgba(161, 251, 255, 0.05);
}

.cart-rec-card__image {
    width: 100%;
    max-width: 5.5rem;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(161, 251, 255, 0.2);
    background: rgba(15, 23, 42, 0.5);
}

.cart-rec-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-rec-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(148, 163, 184, 0.15);
}

.cart-rec-card__name {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.cart-rec-card__products {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.cart-rec-card__product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: rgba(192, 202, 255, 0.8);
    font-size: 0.65rem;
    line-height: 1.25;
}

.cart-rec-card__product .material-symbols-outlined {
    font-size: 0.75rem;
    color: #a1fbff;
    flex-shrink: 0;
}

.cart-rec-card__price {
    color: #a1fbff;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (min-width: 480px) {
    .cart-rec-modal__panel {
        max-width: 26rem;
    }

    .cart-rec-card__image {
        max-width: 6.5rem;
    }
}

.home-cross-rec__title {
    color: #fff;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    text-align: center;
}

.home-cross-rec__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.85rem 1rem;
    width: 100%;
}

.home-cross-rec__grid > .cart-rec-card {
    flex: 0 0 auto;
    width: fit-content;
    min-width: 8.75rem;
    max-width: 11.5rem;
}

.checkout-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.checkout-alert--error {
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.checkout-alert--warning {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(161, 251, 255, 0.25);
}

.checkout-alert--success {
    background: rgba(6, 78, 59, 0.35);
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}

.checkout-cupones {
    margin-bottom: 0.15rem;
}

.checkout-cupon-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(192, 202, 255, 0.55);
    margin-bottom: 0.3rem;
}

.checkout-cupones__row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 14rem;
}

.checkout-cupon-input {
    flex: 1;
    min-width: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(192, 202, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e3e5;
    padding: 0.38rem 0.55rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.checkout-cupon-input::placeholder {
    color: rgba(192, 202, 255, 0.4);
}

.checkout-cupon-input:focus {
    outline: none;
    border-color: rgba(161, 251, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.checkout-cupon-apply {
    border-radius: 0.5rem;
    padding: 0.38rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(192, 202, 255, 0.8);
    background: transparent;
    border: 1px solid rgba(192, 202, 255, 0.22);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.checkout-cupon-apply:hover {
    border-color: rgba(161, 251, 255, 0.4);
    color: #a1fbff;
}

.checkout-cupon-message {
    margin-top: 0.35rem;
    font-size: 0.72rem;
}

.checkout-cupon-message--error {
    color: #fca5a5;
}

.checkout-cupon-message--success {
    color: #86efac;
}

.checkout-cupon-limite {
    color: rgba(192, 202, 255, 0.7);
    font-size: 0.72rem;
    line-height: 1.35;
}

.checkout-linea--sin-stock {
    border-color: rgba(248, 113, 113, 0.35);
}

.checkout-remove--header {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 0.5rem;
    background: rgba(127, 29, 29, 0.25);
}

.checkout-linea-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(127, 29, 29, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.checkout-linea__image,
.cart-item__image {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}

@media (min-width: 640px) {
    .checkout-linea__image,
    .cart-item__image {
        width: 14rem;
        height: 14rem;
    }
}

.checkout-linea__image img,
.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.checkout-variantes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.checkout-variant-thumb {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.checkout-variant-thumb__image {
    display: block;
    width: 5rem;
    height: 5rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 2px solid rgba(2, 6, 23, 0.95);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-variant-thumb__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.checkout-variant-thumb:hover .checkout-variant-thumb__image {
    border-color: rgba(51, 65, 85, 0.95);
    box-shadow: inset 0 0 0 1px rgba(30, 41, 59, 0.9);
}

.checkout-variant-thumb__label {
    color: #c0caff;
    margin-top: 0.375rem;
    max-width: 5rem;
    font-size: 0.6875rem;
    line-height: 1.25;
}

.checkout-variant-thumb:hover .checkout-variant-thumb__label {
    color: #a1fbff;
}

.checkout-variant-thumb.is-selected .checkout-variant-thumb__image {
    border-color: #a1fbff;
    box-shadow: 0 0 18px rgba(161, 251, 255, 0.35);
}

.checkout-variant-thumb.is-selected .checkout-variant-thumb__label {
    color: #a1fbff;
    font-weight: 700;
}

.pedido-resumen-meta__grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .pedido-resumen-meta__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pedido-resumen-meta__row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    font-size: 0.875rem;
}

.pedido-resumen-meta__row span {
    color: #c0caff;
}

.pedido-resumen-meta__row strong {
    color: #fff;
    font-weight: 600;
}

.pedido-resumen-variante {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pedido-resumen-variante__thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(161, 251, 255, 0.25);
    flex-shrink: 0;
}

.pedido-resumen-variante__label {
    color: #c0caff;
    font-size: 0.875rem;
    line-height: 1.35;
}

@media print {
    body * {
        visibility: hidden;
    }

    #pedido-print-host,
    #pedido-print-host * {
        visibility: visible;
    }

    #pedido-print-host {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        background: #ffffff !important;
        color: #111827 !important;
    }

    .no-print,
    header,
    footer,
    nav,
    #auth-modal,
    #user-menu-modal,
    #cart-toast,
    .profile-sidebar,
    .profile-back-btn,
    #pedido-resumen-documento,
    #pedido-resumen-pdf-source,
    .pedido-pdf-export-host,
    .payment-success-header,
    .payment-success-actions {
        display: none !important;
        visibility: hidden !important;
    }

    .pedido-pdf-block {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Perfil de usuario */
.profile-page {
    min-height: calc(100vh - 8rem);
    max-width: 100%;
    overflow-x: clip;
}

.profile-gate {
    max-width: 32rem;
    margin: 0 auto;
}

.profile-app {
    min-width: 0;
    max-width: 100%;
}

.profile-app__layout {
    display: grid;
    grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.profile-sidebar,
.profile-content {
    border-radius: 1.5rem;
    border: 1px solid rgba(192, 202, 255, 0.18);
    padding: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.profile-sidebar__header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(192, 202, 255, 0.12);
}

.profile-sidebar__title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.profile-sidebar__subtitle {
    color: rgba(192, 202, 255, 0.75);
    font-size: 0.8rem;
    word-break: break-word;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-nav-scroll {
    min-width: 0;
}

.profile-nav-scroll-hint {
    display: none;
}

.profile-nav__group {
    margin-bottom: 0.75rem;
}

.profile-nav__group-title {
    color: rgba(192, 202, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
}

.profile-nav__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    padding: 0.7rem 0.75rem;
    border-radius: 0.85rem;
    color: rgba(192, 202, 255, 0.9);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-nav__item:hover {
    background: rgba(161, 251, 255, 0.08);
    color: #fff;
}

.profile-nav__item--active {
    background: rgba(161, 251, 255, 0.14);
    color: #a1fbff;
    font-weight: 700;
}

.profile-nav__item--danger {
    margin-top: 0.5rem;
    color: #fca5a5;
}

.profile-nav__item--danger:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.profile-panel__title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.profile-panel__subtitle {
    color: rgba(192, 202, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.profile-panel__header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #a1fbff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 36rem;
}

.profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-field span {
    color: rgba(192, 202, 255, 0.85);
    font-size: 0.85rem;
}

.profile-field input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(192, 202, 255, 0.2);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    padding: 0.75rem 0.9rem;
}

.profile-field input:focus {
    outline: none;
    border-color: rgba(161, 251, 255, 0.55);
}

.profile-field__error {
    color: #fca5a5;
    font-size: 0.8rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.profile-btn--primary {
    background: #a1fbff;
    color: #4570ff;
    align-self: flex-start;
}

.profile-btn--primary:hover {
    opacity: 0.9;
}

.profile-alert {
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    font-size: 0.9rem;
}

.profile-alert--success {
    background: rgba(52, 211, 153, 0.12);
    color: #a7f3d0;
}

.profile-note {
    color: rgba(192, 202, 255, 0.8);
    font-size: 0.85rem;
}

.profile-link-btn {
    color: #a1fbff;
    text-decoration: underline;
}

.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-order-card {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(192, 202, 255, 0.16);
    background: rgba(0, 0, 0, 0.18);
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.profile-order-card:hover {
    border-color: rgba(161, 251, 255, 0.35);
    background: rgba(161, 251, 255, 0.05);
}

.profile-order-card__folio {
    color: #fff;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-order-card__main {
    min-width: 0;
    flex: 1 1 auto;
}

.profile-order-card__date {
    color: rgba(192, 202, 255, 0.7);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.profile-order-card__warn {
    color: #ff8a80;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.35rem;
    text-align: left;
}

.profile-order-card__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #a1fbff;
}

.profile-order-card__total {
    font-weight: 700;
}

.profile-order-detail__title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-order-detail__subtitle {
    color: rgba(192, 202, 255, 0.75);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.profile-order-detail__header {
    margin-bottom: 1.25rem;
}

.profile-alertas-wrap {
    display: grid;
    gap: 1rem;
}

.profile-alertas-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 1rem;
    background: rgba(8, 12, 24, 0.55);
    border: 1px solid rgba(192, 202, 255, 0.12);
}

.profile-alertas-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    background: transparent;
    color: rgba(192, 202, 255, 0.72);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.profile-alertas-tab .material-symbols-outlined {
    font-size: 1.15rem;
    opacity: 0.9;
}

.profile-alertas-tab:hover {
    color: #e8eef8;
    background: rgba(192, 202, 255, 0.06);
}

.profile-alertas-tab--active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(56, 189, 248, 0.28));
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.12);
}

.profile-alertas-tab--active .material-symbols-outlined {
    opacity: 1;
}

.profile-alertas-tab__count {
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.55);
    color: rgba(232, 238, 248, 0.9);
}

.profile-alertas-tab--active .profile-alertas-tab__count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.profile-alertas-panels {
    min-height: 8rem;
}

.profile-alertas-panel[hidden],
.profile-alertas-panel.hidden {
    display: none !important;
}

.profile-alertas-section__title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.profile-alertas-list {
    display: grid;
    gap: 0.75rem;
}

.profile-alerta-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    appearance: none;
    border: 1px solid rgba(192, 202, 255, 0.16);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.45);
    color: inherit;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-alerta-card:hover {
    border-color: rgba(192, 202, 255, 0.35);
    background: rgba(15, 23, 42, 0.65);
}

.profile-alerta-card__avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 2px solid rgba(161, 251, 255, 0.85);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
}

.profile-alerta-card__avatar--detail {
    width: 3.25rem;
    height: 3.25rem;
}

.profile-alerta-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-alerta-card__avatar-fallback {
    font-size: 1.6rem;
    color: rgba(161, 251, 255, 0.95);
    line-height: 1;
}

.profile-alerta-card__main {
    flex: 1;
    min-width: 0;
}

.profile-alerta-card__title {
    color: #fff;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.profile-alerta-card__meta {
    color: rgba(192, 202, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.35;
}

.profile-alerta-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.profile-alerta-badge.is-ok {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.profile-alerta-badge.is-bad {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.profile-alerta-badge.is-muted {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.profile-alerta-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-alerta-detail__title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.profile-alerta-detail__meta {
    color: rgba(192, 202, 255, 0.75);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.profile-alerta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.profile-alerta-actions--historial {
    margin-top: -0.35rem;
    margin-bottom: 1.1rem;
}

.profile-alerta-actions--historial .profile-btn--secondary {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-width: 1px;
    border-color: rgba(161, 251, 255, 0.45);
    background: rgba(161, 251, 255, 0.14);
}

.profile-alerta-actions .profile-btn .material-symbols-outlined {
    font-size: 1.05rem;
    vertical-align: -0.15em;
    margin-right: 0.2rem;
}

.profile-alerta-historial-lead {
    margin: -0.25rem 0 0.45rem !important;
    font-size: 0.78rem !important;
}

.profile-alerta-historial-panel {
    max-width: min(26rem, 94vw);
}

.profile-alerta-historial-list {
    text-align: left;
    margin: 0 0 0.5rem;
    max-height: min(48vh, 20rem);
    overflow: auto;
}

.profile-alerta-historial-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.35rem 0.15rem;
    color: rgba(192, 202, 255, 0.7);
}

.profile-alerta-historial-empty .material-symbols-outlined {
    font-size: 1.35rem;
    color: rgba(161, 251, 255, 0.7);
}

.profile-alerta-historial-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.profile-alerta-historial-card {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(192, 202, 255, 0.12);
    background: rgba(15, 23, 42, 0.45);
}

.profile-alerta-historial-card__icon {
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.profile-alerta-historial-card--is-ok .profile-alerta-historial-card__icon {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}

.profile-alerta-historial-card--is-bad .profile-alerta-historial-card__icon {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

.profile-alerta-historial-card__icon .material-symbols-outlined {
    font-size: 1rem;
}

.profile-alerta-historial-card__body {
    min-width: 0;
    flex: 1;
}

.profile-alerta-historial-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin: 0 0 0.25rem;
}

.profile-alerta-historial-card__title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.2;
    min-width: 0;
}

.profile-alerta-historial-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    margin: 0;
    color: rgba(192, 202, 255, 0.7);
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-alerta-historial-card__time .material-symbols-outlined {
    font-size: 0.8rem;
}

.profile-alerta-historial-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
}

.profile-alerta-historial-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(161, 251, 255, 0.1);
    color: rgba(232, 238, 248, 0.9);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.15;
}

.profile-alerta-historial-chip .material-symbols-outlined {
    font-size: 0.78rem;
    color: rgba(161, 251, 255, 0.95);
}

.profile-alerta-status-note {
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.profile-alerta-status-note strong {
    color: #fff;
    font-weight: 700;
}

.profile-btn--danger {
    background: rgba(180, 35, 24, 0.95);
    color: #fff;
}

.profile-btn--danger:hover {
    opacity: 0.92;
}

.profile-alerta-colabs {
    display: grid;
    gap: 0.75rem;
}

.profile-alerta-notif-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.profile-alerta-notif-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.6rem;
    padding: 0.15rem 0;
    color: rgba(232, 238, 248, 0.92);
    font-size: 0.8rem;
    line-height: 1.25;
}

.profile-alerta-notif-line__icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: rgba(161, 251, 255, 0.9);
}

.profile-alerta-notif-line__text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-alerta-badge--sm {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
    flex-shrink: 0;
}

.profile-alerta-colab {
    border: 1px solid rgba(192, 202, 255, 0.14);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: rgba(15, 23, 42, 0.4);
}

.profile-alerta-colab__meta {
    margin: 0;
    color: rgba(192, 202, 255, 0.7);
    font-size: 0.78rem;
}

.profile-alerta-colab__notas {
    margin: 0.35rem 0;
    color: #e8eef8;
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.profile-alerta-colab__notas.is-empty {
    color: rgba(192, 202, 255, 0.55);
    font-style: italic;
}

.profile-alerta-colab__maps {
    margin: 0.55rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-alerta-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

.profile-alerta-maps-btn .material-symbols-outlined {
    font-size: 1.05rem;
}

.profile-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(192, 202, 255, 0.75);
}

.profile-empty .material-symbols-outlined {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .profile-app__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-sidebar {
        position: sticky;
        top: 4.5rem;
        z-index: 20;
        padding: 0.85rem;
        width: 100%;
        overflow: hidden;
    }

    .profile-sidebar__header {
        display: none;
    }

    .profile-nav-scroll {
        position: relative;
    }

    .profile-nav-scroll::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 2.75rem;
        height: calc(100% - 1.35rem);
        pointer-events: none;
        background: linear-gradient(to right, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.92));
    }

    .profile-nav-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.15rem;
        margin-top: 0.35rem;
        padding-right: 0.1rem;
        color: rgba(161, 251, 255, 0.8);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .profile-nav-scroll-hint .material-symbols-outlined {
        font-size: 1rem;
        animation: profile-nav-scroll-nudge 1.6s ease-in-out infinite;
    }

    .profile-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding-bottom: 0.35rem;
        padding-right: 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(161, 251, 255, 0.55) rgba(192, 202, 255, 0.14);
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .profile-nav::-webkit-scrollbar {
        height: 6px;
    }

    .profile-nav::-webkit-scrollbar-thumb {
        background: rgba(161, 251, 255, 0.55);
        border-radius: 999px;
    }

    .profile-nav::-webkit-scrollbar-track {
        background: rgba(192, 202, 255, 0.14);
        border-radius: 999px;
    }

    .profile-nav__group {
        display: contents;
        margin-bottom: 0;
    }

    .profile-nav__group-title {
        display: none;
    }

    .profile-nav__item {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.55rem 0.8rem;
        max-width: 100%;
    }

    .profile-nav__item .material-symbols-outlined {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .profile-nav__item--danger {
        margin-top: 0;
    }

    .profile-content {
        padding: 1rem;
        overflow-x: hidden;
    }

    .profile-form__grid {
        grid-template-columns: 1fr;
    }

    .profile-panel__header-row {
        flex-direction: column;
    }

    .profile-order-card__meta {
        flex-shrink: 0;
    }
}

@keyframes profile-nav-scroll-nudge {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.65;
    }

    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

/* Banners de cupones (página principal) */
.coupon-banners {
    position: relative;
}

.coupon-banners__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 0.85rem;
    aspect-ratio: 5 / 2;
    min-height: 4.5rem;
}

.coupon-banners__track {
    display: flex;
    height: 100%;
    width: calc(var(--coupon-banner-slides, 1) * 100%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.coupon-banners__slide {
    flex: 0 0 calc(100% / var(--coupon-banner-slides, 1));
    width: calc(100% / var(--coupon-banner-slides, 1));
    height: 100%;
    margin: 0;
}

.coupon-banners__link {
    display: block;
    width: 100%;
    height: 100%;
}

.coupon-banners__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coupon-banners__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.55rem;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    z-index: 2;
    pointer-events: none;
}

.coupon-banners__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.coupon-banners__dot.is-active {
    background: #a1fbff;
    transform: scale(1.25);
}

@media (min-width: 768px) {
    .coupon-banners__viewport {
        border-radius: 1rem;
    }
}

/* Direcciones */
.direccion-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.direccion-modal.hidden {
    display: none;
}

body.direccion-modal-open {
    overflow: hidden;
}

.direccion-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.72);
    backdrop-filter: blur(4px);
}

.direccion-modal__panel {
    position: relative;
    width: min(100%, 34rem);
    max-height: min(92vh, 52rem);
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .direccion-modal {
        padding: 0.75rem;
    }

    .direccion-modal__panel {
        width: min(100%, 42rem);
        max-height: 98vh;
        padding: 1.75rem 2rem 1.5rem;
    }

    .direccion-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        row-gap: 0.7rem;
        margin-top: 0.85rem;
    }

    .direccion-form__grid,
    .direccion-form > .direccion-field:nth-child(5),
    .direccion-form > .direccion-field:nth-child(7),
    .direccion-form > .direccion-field:nth-child(8),
    .direccion-field--checkbox,
    .direccion-form__actions,
    #direccion-form-id {
        grid-column: 1 / -1;
    }

    .direccion-field input,
    .direccion-field textarea {
        padding: 0.55rem 0.8rem;
    }

    .direccion-field textarea {
        min-height: 3.25rem;
    }
}

.direccion-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    color: #c0caff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.direccion-modal__title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.direccion-modal__subtitle {
    color: #8b92a8;
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.direccion-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.direccion-form__grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .direccion-form__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .direccion-field--wide {
        grid-column: 1 / -1;
    }
}

.direccion-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #c0caff;
    font-size: 0.85rem;
}

.direccion-field input,
.direccion-field textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0.7rem 0.85rem;
}

.direccion-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
}

.direccion-field--checkbox input {
    width: auto;
}

.direccion-field__error {
    color: #fca5a5;
    font-size: 0.78rem;
    margin: 0;
}

.direccion-required {
    color: #fca5a5;
}

.direccion-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.direccion-btn {
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.direccion-btn--primary {
    background: #a1fbff;
    color: #1b2a6b;
}

.direccion-btn--ghost {
    background: transparent;
    color: #c0caff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.direccion-alert {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    font-size: 0.88rem;
}

.direccion-alert--success {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}

.direccion-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.direccion-card.is-selected {
    border-color: rgba(161, 251, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(161, 251, 255, 0.2);
}

.direccion-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.direccion-card__title {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.direccion-card__badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.35);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.direccion-card__resumen {
    color: #8b92a8;
    font-size: 0.88rem;
    margin: 0.45rem 0 0;
}

.direccion-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.direccion-card__btn {
    border-radius: 0.65rem;
    border: 1px solid rgba(161, 251, 255, 0.25);
    background: rgba(161, 251, 255, 0.08);
    color: #a1fbff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.direccion-card__btn--ghost {
    border-color: rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #c0caff;
}

.direccion-texto__linea {
    margin: 0;
    color: #e8eaed;
    font-size: 0.9rem;
    line-height: 1.45;
}

.checkout-direccion {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-direccion__header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .checkout-direccion__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.checkout-direccion__title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.checkout-direccion__hint {
    color: #8b92a8;
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.checkout-direccion__add,
.profile-btn--secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(161, 251, 255, 0.25);
    background: rgba(161, 251, 255, 0.08);
    color: #a1fbff;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.checkout-direccion__list,
.profile-direcciones-list {
    display: grid;
    gap: 0.75rem;
}

.checkout-direccion__empty {
    color: #8b92a8;
    font-size: 0.9rem;
}

.checkout-direccion__warning {
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.88rem;
}

.checkout-direccion__selected {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(161, 251, 255, 0.2);
    background: rgba(161, 251, 255, 0.05);
}

.checkout-direccion__selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkout-direccion__selected-label {
    color: #a1fbff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.checkout-direccion__edit {
    border: 0;
    background: transparent;
    color: #c0caff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Perfiles (cuenta) */
.profile-perfiles-list {
    padding: 0.5rem 0 1rem;
}

.perfil-list-grouped {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.perfil-segment-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.perfil-segment-group--add {
    padding-top: 0.35rem;
    border: 0;
}

.perfil-segment-group__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.perfil-segment-group__icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.perfil-segment-group__icon-fallback {
    font-size: 1.5rem;
    color: #a1fbff;
}

.perfil-segment-group__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
}

.perfil-segment-group--add .perfil-segment-group__items {
    justify-content: center;
}

.perfil-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    max-width: 7.25rem;
    text-align: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.perfil-circle-item:hover {
    opacity: 0.9;
}

.perfil-circle-item__image {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 999px;
    border: 2px solid rgba(161, 251, 255, 0.85);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
}

.perfil-circle-item__image--add {
    border-style: dashed;
    background: rgba(161, 251, 255, 0.06);
}

.perfil-circle-item__name {
    color: #e8eaed;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.perfil-circle-item--pedido {
    padding: 0;
    background: transparent;
}

.perfil-circle-item--pedido.perfil-circle-item--add .perfil-circle-item__image {
    background: rgba(255, 255, 255, 0.6);
}

.perfil-circle-item--pedido .perfil-circle-item__name {
    color: #fff;
    text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.85);
}

#pedido-asignar-perfil-modal .user-menu-modal__panel {
    position: relative;
}

#pedido-asignar-perfil-modal.is-busy .user-menu-modal__backdrop,
#pedido-asignar-perfil-modal.is-busy .perfil-actions-modal__close,
#pedido-asignar-perfil-modal.is-busy #pedido-asignar-perfil-list,
#pedido-asignar-perfil-modal.is-busy [data-pedido-asignar-perfil-add] {
    pointer-events: none;
}

.pedido-asignar-perfil-busy {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: inherit;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(2px);
}

.pedido-asignar-perfil-busy.hidden {
    display: none;
}

.pedido-asignar-perfil-busy__spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 3px solid rgba(161, 251, 255, 0.2);
    border-top-color: #a1fbff;
    animation: pedido-asignar-perfil-spin 0.8s linear infinite;
}

.pedido-asignar-perfil-busy__text {
    margin: 0;
    color: #e8eaed;
    font-size: 0.95rem;
    font-weight: 600;
}

@keyframes pedido-asignar-perfil-spin {
    to {
        transform: rotate(360deg);
    }
}

.perfil-circle-item__meta {
    color: #8b92a8;
    font-size: 0.75rem;
    line-height: 1.3;
}

body.perfil-actions-open {
    overflow: hidden;
}

.perfil-actions-modal {
    z-index: 115;
}

.perfil-actions-modal .user-menu-modal__panel {
    max-width: 22rem;
}

.perfil-actions-modal .user-menu-modal__header {
    position: relative;
    padding-right: 2.5rem;
}

.perfil-actions-modal__close {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #c0caff;
    cursor: pointer;
}

.perfil-actions-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.perfil-actions-modal .user-menu-modal__item {
    min-height: 3rem;
    font-size: 1rem;
}

.perfil-actions-modal .user-menu-modal__item:hover {
    background: rgba(103, 232, 249, 0.12);
    color: #a5f3fc;
}

.perfil-actions-modal .user-menu-modal__item .material-symbols-outlined {
    color: #67e8f9;
    font-size: 1.35rem;
}

@media (max-width: 639px) {
    .perfil-actions-modal {
        align-items: flex-end;
        padding: 0;
    }

    .perfil-actions-modal .user-menu-modal__panel {
        max-width: 100%;
        border-radius: 1.25rem 1.25rem 0 0;
        padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    }

    .perfil-actions-modal .user-menu-modal__item {
        min-height: 3.25rem;
        font-size: 1.05rem;
    }
}

.perfil-create-page-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.12);
    color: #67e8f9;
}

.perfil-create-page-modal__icon .material-symbols-outlined {
    font-size: 1.6rem;
}

.perfil-create-page-modal .user-confirm-modal__title {
    line-height: 1.35;
}

.perfil-create-page-modal__actions {
    flex-wrap: wrap;
}

.perfil-create-page-modal__btn-primary {
    background: #67e8f9;
    color: #042f2e;
    border: 1px solid #67e8f9;
}

.perfil-create-page-modal__btn-primary:hover {
    background: #a5f3fc;
    border-color: #a5f3fc;
}

.perfil-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.perfil-modal.hidden {
    display: none;
}

body.perfil-modal-open {
    overflow: hidden;
}

.perfil-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.72);
    backdrop-filter: blur(4px);
}

.perfil-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 36rem);
    max-height: min(94vh, 52rem);
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.perfil-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    color: #c0caff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.perfil-modal__title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.perfil-modal__header {
    flex-shrink: 0;
}

.perfil-step {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.perfil-segmentos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-top: 1.25rem;
    max-height: min(60vh, 28rem);
    overflow-y: auto;
}

.perfil-segmento-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    max-width: 7.25rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.perfil-segmento-option__image {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 999px;
    border: 2px solid rgba(161, 251, 255, 0.85);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
}

.perfil-segmento-option__name {
    color: #c0caff;
    font-size: 0.95rem;
    font-weight: 600;
}

.perfil-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0;
    margin-top: 1rem;
}

.perfil-form__body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
    padding-bottom: 0.5rem;
}

.perfil-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: inherit;
}

.perfil-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #c0caff;
    font-size: 0.85rem;
}

.perfil-field input,
.perfil-field select {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0.7rem 0.85rem;
}

.perfil-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c0caff' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.perfil-field select option {
    color: #111;
}

.perfil-field__error {
    color: #fca5a5;
    font-size: 0.78rem;
    margin: 0;
}

.perfil-field__hint {
    margin: 0;
    color: rgba(192, 202, 255, 0.75);
    font-size: 0.78rem;
    line-height: 1.4;
}

.perfil-required {
    color: #fca5a5;
}

.perfil-segmento-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.perfil-segmento-chip__img {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(161, 251, 255, 0.35);
}

.perfil-form__divider {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid rgba(161, 251, 255, 0.22);
}

.perfil-whatsapp {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.perfil-whatsapp__title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.perfil-whatsapp__note {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
    font-size: 0.85rem;
    line-height: 1.4;
}

.perfil-wa-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.perfil-wa-label {
    color: #c0caff;
    font-size: 0.85rem;
    line-height: 1.35;
}

.perfil-wa-masked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.perfil-wa-masked__text {
    margin: 0;
    color: #e8eaed;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.08em;
}

.perfil-wa-change {
    border: 0;
    background: transparent;
    color: #a1fbff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.perfil-btn {
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.perfil-btn--primary {
    background: #a1fbff;
    color: #1b2a6b;
}

.perfil-btn--ghost {
    background: transparent;
    color: #c0caff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.perfil-btn.hidden,
.perfil-step.hidden,
.perfil-form.hidden {
    display: none;
}

.perfil-alert {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    font-size: 0.88rem;
}

.perfil-alert--success {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}

.perfil-empty-inline {
    color: #8b92a8;
    text-align: center;
    width: 100%;
}

.perfil-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .perfil-images {
        grid-template-columns: 1fr;
    }
}

.perfil-image-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.perfil-image-field__ratio {
    color: #8b92a8;
    font-weight: 400;
}

.perfil-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 0.85rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #8b92a8;
    overflow: hidden;
}

.perfil-image-preview:not(.has-image) {
    cursor: pointer;
}

.perfil-image-preview:not(.has-image):hover {
    border-color: rgba(161, 251, 255, 0.45);
    color: #a1fbff;
}

.perfil-image-preview--square {
    aspect-ratio: 1 / 1;
    max-width: 9.5rem;
}

.perfil-image-preview--wide {
    aspect-ratio: 3 / 1;
    max-width: 100%;
}

.perfil-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
}

.perfil-btn--icon .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
}

.perfil-image-preview.has-image {
    border-style: solid;
    border-color: rgba(161, 251, 255, 0.28);
}

.perfil-image-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.perfil-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.perfil-image-actions .perfil-btn--icon {
    padding: 0.5rem;
}

