/* --- CONTENEDOR PRINCIPAL --- */
#share-section {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20;
    padding: 0; overflow-y: auto;
    background: radial-gradient(circle at center, #b61943 0%, #000000 100%);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
#share-section.active-section { opacity: 1; pointer-events: auto; }

.share-content-container {
    /* Padding lateral y superior para librar header y sidebar */
    padding: 140px 30px 150px 100px;
    max-width: 1000px; margin: 0 auto;
}

/* --- 1. ENCABEZADO --- */
.share-header { text-align: center; margin-bottom: 40px; }
.share-header h2 { font-size: 2.5rem; color: #fff; text-transform: uppercase; font-weight: 800; margin-bottom: 15px; }
.share-verse { font-size: 1.3rem; font-style: italic; color: var(--secondary); font-family: serif; margin-bottom: 5px; }
.verse-ref { display: block; font-size: 0.9rem; color: #aaa; margin-bottom: 20px; }
.share-intro { color: #ccc; line-height: 1.6; max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

/* --- 2. BOTÓN PRINCIPAL (Pulsante) --- */
.main-share-action { text-align: center; margin-bottom: 40px; }
.pulse-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; color: #fff; padding: 15px 40px; border-radius: 50px;
    font-size: 1.2rem; font-weight: bold; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(182, 25, 66, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: sharePulse 2s infinite;
}
.pulse-button:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(182, 25, 66, 0.6); }
.pulse-button i { font-size: 1.4rem; }
.small-text { display: block; margin-top: 10px; color: #888; font-size: 0.9rem; }

@keyframes sharePulse {
    0% { box-shadow: 0 0 0 0 rgba(182, 25, 66, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(182, 25, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(182, 25, 66, 0); }
}

/* SEPARADOR */
.share-divider { text-align: center; margin: 30px 0; position: relative; }
.share-divider::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.1); z-index: 1; }
.share-divider span { background: #000; /* Truco para tapar la línea */ padding: 0 15px; color: #888; position: relative; z-index: 2; font-size: 0.9rem; text-transform: uppercase; }

/* --- 3. GRID REDES SOCIALES --- */
.social-share-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px; margin-bottom: 50px;
}
.social-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px; padding: 20px; text-align: center; text-decoration: none;
    color: #fff; transition: all 0.3s; display: flex; flex-direction: column; align-items: center;
}
.social-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }

.social-icon {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 10px; transition: all 0.3s;
}
.social-card span { font-weight: 600; font-size: 0.9rem; }

/* Colores específicos al hover */
.fb .social-icon { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.fb:hover .social-icon { background: #1877f2; color: #fff; }
.tw .social-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tw:hover .social-icon { background: #000; color: #fff; }
.wa .social-icon { background: rgba(37, 211, 102, 0.2); color: #25d366; }
.wa:hover .social-icon { background: #25d366; color: #fff; }
.tg .social-icon { background: rgba(0, 136, 204, 0.2); color: #0088cc; }
.tg:hover .social-icon { background: #0088cc; color: #fff; }

/* --- 4. HERRAMIENTAS (QR y Link) --- */
.share-tools-container { display: flex; flex-wrap: wrap; gap: 30px; }
.tool-box { flex: 1 1 300px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; text-align: center; }
.tool-box h3 { color: #fff; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tool-box h3 i { color: var(--secondary); }
.tool-box p { color: #ccc; font-size: 0.9rem; margin-bottom: 20px; }

/* QR Específico */
.qr-container-glass {
    background: #fff; padding: 15px; border-radius: 10px; display: inline-block;
    position: relative; margin-bottom: 15px;
}
#qrcode img { display: block; } /* Asegura que el QR generado se vea bien */
.qr-logo-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 2px;
}

/* Copiar Enlace Específico */
.copy-link-container {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px; padding: 5px 5px 5px 20px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: all 0.3s;
}
.copy-link-container:hover { background: rgba(255,255,255,0.1); }
#share-url-text { color: #fff; font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.btn-copy {
    background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 30px;
    font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.3s;
}
.btn-copy:hover { background: #d1204f; }

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .share-content-container { 
        padding: 130px 20px 150px 20px; 
        
    }
    .share-header h2 { font-size: 1.8rem; 
        
    }
    .share-verse { font-size: 1.1rem; 
        
    }
    .pulse-button { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
     .share-content-container { 
         padding: 130px 20px 150px 20px; } /* Ajuste para el sidebar móvil */
}