/* ========== BOTÓN FLOTANTE DE COMPARTIR ========== */
.share-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 10001;
    overflow: hidden;
}

.share-float-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff8555, #ffa73e);
}

.share-float-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.share-icon {
    transition: transform 0.3s ease;
}

.share-float-btn:hover .share-icon {
    transform: rotate(15deg);
}

.share-float-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-float-btn.clicked::before {
    width: 300px;
    height: 300px;
}

/* ========== MODAL PRINCIPAL ========== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.show {
    display: flex;
    opacity: 1;
}

.share-modal-content {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.share-modal.show .share-modal-content {
    transform: scale(1);
}

/* ========== HEADER DEL MODAL ========== */
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.share-modal-title {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    transform: rotate(90deg);
}

/* ========== SECCIÓN QR ========== */
.qr-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.qr-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff6b35;
    font-weight: 600;
}

.qr-container {
    display: inline-block;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.qr-container:hover {
    transform: scale(1.05);
}

.qr-image {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 8px;
}

.qr-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.enlarge-qr-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.enlarge-qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* ========== REDES SOCIALES ========== */
.social-section {
    margin-bottom: 20px;
}

.social-title {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: #ff6b35;
    font-weight: 600;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-height: 80px;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Colores específicos para cada red social */
.facebook { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.telegram { background: linear-gradient(135deg, #0088cc, #00a0dc); }
.instagram { background: linear-gradient(135deg, #e4405f, #f77737, #fccc63); }
.linkedin { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.pinterest { background: linear-gradient(135deg, #bd081c, #e60023); }
.reddit { background: linear-gradient(135deg, #ff4500, #ff6314); }
.email { background: linear-gradient(135deg, #ea4335, #fbbc05); }
.copy-link { background: linear-gradient(135deg, #6c757d, #495057); }

/* ========== MODAL QR AMPLIADO ========== */
.qr-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-fullscreen-modal.show {
    display: flex;
    opacity: 1;
}

.qr-fullscreen-content {
    text-align: center;
    max-width: 90%;
    max-height: 90%;
}

.qr-fullscreen-image {
    max-width: 100%;
    max-height: 70vh;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.qr-fullscreen-title {
    color: #ff6b35;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.qr-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-fullscreen-close:hover {
    background: #ff6b35;
    transform: rotate(90deg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .share-modal-content {
        padding: 20px;
        width: 95%;
    }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-btn {
        padding: 12px 8px;
        font-size: 11px;
        min-height: 70px;
    }

    .social-icon {
        font-size: 20px;
    }

    .qr-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .share-float-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-container {
        padding: 10px;
    }

    .qr-image {
        width: 120px;
        height: 120px;
    }
}

/* ========== ANIMACIONES ========== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.share-float-btn.bounce {
    animation: bounce 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-btn {
    animation: fadeInUp 0.6s ease forwards;
}

.social-btn:nth-child(1) { animation-delay: 0.1s; }
.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.3s; }
.social-btn:nth-child(4) { animation-delay: 0.4s; }
.social-btn:nth-child(5) { animation-delay: 0.5s; }
.social-btn:nth-child(6) { animation-delay: 0.6s; }
.social-btn:nth-child(7) { animation-delay: 0.7s; }
.social-btn:nth-child(8) { animation-delay: 0.8s; }
.social-btn:nth-child(9) { animation-delay: 0.9s; }
.social-btn:nth-child(10) { animation-delay: 1.0s; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}