/* Modal de compartir */
.share-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.share-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.share-modal {
    width: min(420px, 100%);
    background: #0e1014;
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 20px;
    padding: 28px 24px 22px;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.12),
        0 0 40px rgba(56, 189, 248, 0.18),
        0 24px 64px rgba(0, 0, 0, 0.65);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s ease;
}

.share-overlay.open .share-modal {
    transform: scale(1) translateY(0);
}

.share-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(90deg, #00d2ff, #9d50bb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.share-subtitle {
    text-align: center;
    font-size: 12px;
    font-family: 'DM Mono', 'Space Mono', monospace;
    color: #6b6b85;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 8px;
}

.share-qr-wrap {
    background: #161820;
    border: 1px solid #2a2a38;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.share-qr-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border: none;
    border-radius: 12px;
    background: #fff;
    display: block;
}

.share-link-row {
    display: none;
}

.share-actions {
    display: flex;
    gap: 8px;
}

.share-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 11px 10px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'DM Mono', 'Space Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.share-btn:active {
    transform: scale(0.97);
}

.share-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.share-btn-copy {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.share-btn-copy:hover {
    box-shadow: 0 0 26px rgba(6, 182, 212, 0.5);
}

.share-btn-download {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.35);
}

.share-btn-download:hover {
    box-shadow: 0 0 26px rgba(147, 51, 234, 0.5);
}

.share-btn-close {
    background: #1a1d24;
    color: #6b6b85;
    border: 1px solid #2a2a38;
}

.share-btn-close:hover {
    color: #d4d4e8;
    border-color: #3d3d52;
    background: #22252e;
}

@media (max-width: 480px) {
    .share-modal {
        padding: 22px 16px 18px;
    }

    .share-actions {
        flex-wrap: wrap;
    }

    .share-btn {
        min-width: calc(50% - 4px);
    }

    .share-btn-close {
        flex: 1 1 100%;
    }
}
