/* === App Download Modal === */
.app-dl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 4, 4, 0.78);
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: appDlFade 0.22s ease-out;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
@keyframes appDlFade { from { opacity: 0; } to { opacity: 1; } }

.app-dl-modal {
    background: #363636;
    border-radius: 22px;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(241, 146, 141, 0.14),
        0 0 60px rgba(241, 146, 141, 0.16),
        0 0 140px rgba(241, 146, 141, 0.10),
        0 30px 90px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(241, 146, 141, 0.10);
    overflow: hidden;
    padding: 36px 32px 28px;
    color: #fff;
    animation: appDlIn 0.28s cubic-bezier(.2,.8,.2,1);
}
@keyframes appDlIn {
    from { transform: translateY(14px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.app-dl-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.app-dl-close:hover { background: rgba(255, 255, 255, 0.14); }

.app-dl-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(241, 146, 141, 0.14);
    color: #F1928D;
    font-size: 11px;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.35px;
    font-family: 'Inter', sans-serif;
}
.app-dl-modal__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #F1928D;
    border-radius: 50%;
}
.app-dl-modal__title {
    font-family: 'Playfair Display', ui-serif, Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.012em;
}
.app-dl-modal__subtitle {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.app-dl-qr-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.app-dl-qr-box__label {
    font-size: 13px;
    font-weight: 500;
    color: #1a0f0f;
    font-family: 'Inter', sans-serif;
}
.app-dl-qr-frame {
    position: relative;
    width: 200px;
    height: 200px;
}
.app-dl-qr-img {
    width: 200px;
    height: 200px;
    display: block;
    background: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.app-dl-qr-img.is-loaded { opacity: 1; }
.app-dl-qr-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}
.app-dl-qr-skeleton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(241, 146, 141, 0.18) 50%, transparent 100%);
    animation: appDlShimmer 1.2s infinite;
}
@keyframes appDlShimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
.app-dl-qr-skeleton svg {
    width: 32px;
    height: 32px;
    color: #F1928D;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.app-dl-divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
}
.app-dl-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}
.app-dl-divider span {
    position: relative;
    background: #363636;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.app-dl-stores {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-dl-store-btn {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.2;
    transition: all 0.2s;
}
.app-dl-store-btn:hover {
    background: rgba(241, 146, 141, 0.08);
    border-color: rgba(241, 146, 141, 0.4);
}
.app-dl-store-btn svg { flex-shrink: 0; }
.app-dl-store-btn__sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    display: block;
    line-height: 1.1;
}
.app-dl-store-btn__name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    line-height: 1.1;
}

/* Trigger del header */
.btn-app-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid #F1928D;
    color: #F1928D !important;
    background: linear-gradient(135deg, rgba(241,146,141,0.10) 0%, rgba(241,146,141,0.04) 100%);
    font-family: 'Inter', sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-decoration: none !important;
    margin-right: 10px;
    transition: all 0.22s ease;
    cursor: pointer;
    line-height: 1;
    position: relative;
    box-shadow: 0 0 0 0 rgba(241,146,141,0);
}
.btn-app-download:hover {
    background: linear-gradient(135deg, rgba(241,146,141,0.22) 0%, rgba(241,146,141,0.12) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(241,146,141,0.28), 0 0 0 4px rgba(241,146,141,0.08);
}
.btn-app-download:active { transform: translateY(0); }
.btn-app-download__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(241,146,141,0.18);
    flex-shrink: 0;
    transition: background 0.22s ease;
}
.btn-app-download__icon svg {
    stroke: #F1928D;
    display: block;
    transition: stroke 0.22s ease;
    width: 11px;
    height: 14px;
}
.btn-app-download:hover .btn-app-download__icon { background: #F1928D; }
.btn-app-download:hover .btn-app-download__icon svg { stroke: #ffffff; }
.btn-app-download__label {
    white-space: nowrap;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 600px) {
    .btn-app-download { display: none !important; }
}
